SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.09041 · ICML · 2026

U-Cast: A Surprisingly Simple and Efficient Frontier Probabilistic AI Weather Forecaster

Rose Yu, Rühling Salva, Cachay, Duncan Watson-Parris

arXiv · PDF · Open in the Atlas

Code that ran

9 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 6 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.09041.json · badge: /api/ran/2604.09041.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Rose-STL-Lab/u-cast community
Papers with Code archive
9 ran · 6 no recorded run
FunctionStatusWhere it lives
Conv2d Ran
ran on a synthesized input · constructed an object; no result was computed
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("bc9ac84ffbec918e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Conv2d: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel': 3,
    'bias': True,
    'up': False,
    'down': False,
    'init_mode': 'kaiming_normal',
    'init_weight': 1,
    'init_bias': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
UNetBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("c5ea6da36bec358a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, UNetBlock: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torch import nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 4,
    'out_channels': 8,
    'up': False,
    'down': False,
    'attention': False,
    'num_heads': None,
    'channels_per_head': 64,
    'dropout': 0.0,
    'skip_scale': 1.0,
    'eps': 1e-05,
    'resample_proj': False,
    'init': {},
    'init_zero': {'init_weight': 0},
    'init_attn': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type UNetBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UNetBlock output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
WeightedCRPS Ran
ran on a synthesized input
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("18863817b0c6f431")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor

class AbstractWeightedLoss(torch.nn.Module):

    def __init__(self, weights: Tensor=None, **kwargs):
        super().__init__(**kwargs)
        self.weights = weights

    @property
    def weights(self):
        return self._weights

    @weights.setter
    def weights(self, weights):
        self._weights = weights

    def weigh_loss(self, loss) -> Tensor:
        try:
            loss = self.weights * loss
        except RuntimeError as e:
            raise RuntimeError(f'Failed to multiply self.weights.shape={self.weights.shape!r} by loss.shape={loss.shape!r}.') from e
        return loss.mean()

    def forward(self, preds, targets) -> Tensor:
        raise NotImplementedError('Subclasses must implement this method.')

def crps_ensemble(truth: Tensor, predicted: Tensor) -> Tensor:
    """
    .. Author: Salva Rühling Cachay

    pytorch adaptation of https://github.com/TheClimateCorporation/properscoring/blob/master/properscoring/_crps.py#L187
    but implementing the fair, unbiased CRPS as in Zamo & Naveau (2018; https://doi.org/10.1007/s11004-017-9709-7)

    This implementation is based on the identity:
    .. math::
        CRPS(F, x) = E_F|X - x| - 1/2 * E_F|X - X'|
    where X and X' denote independent random variables drawn from the forecast
    distribution F, and E_F denotes the expectation value under F.

    We use the fair, unbiased formulation of the ensemble CRPS, which is particularly important for small ensembles.
    Anecdotally, the unbiased CRPS leads to slightly smaller (i.e. "better") values than the biased version.
    Basically, we use n_members * (n_members - 1) instead of n_members**2 to average over the ensemble spread.
    See Zamo & Naveau (2018; https://doi.org/10.1007/s11004-017-9709-7) for details.
    """
    assert truth.ndim == predicted.ndim - 1, f'truth.shape={truth.shape!r}, predicted.shape={predicted.shape!r}'
    assert truth.shape == predicted.shape[1:]
    n_members = predicted.shape[0]
    skill = (predicted - truth).abs().mean(dim=0)
    forecasts_diff = torch.unsqueeze(predicted, 0) - torch.unsqueeze(predicted, 1)
    spread = forecasts_diff.abs().sum(dim=(0, 1)) / (n_members * (n_members - 1))
    crps = skill - 0.5 * spread
    return crps

class WeightedCRPS(AbstractWeightedLoss):
    require_ensembling: bool = True

    def forward(self, preds, targets) -> Tensor:
        return self.weigh_loss(crps_ensemble(predicted=preds, truth=targets))


INIT_ARGS = {
    'weights': torch.tensor([0.5, 0.3, 0.2])
}

ARGS = {
    'preds': torch.randn(5, 3),
    'targets': torch.randn(3)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WeightedMAE Ran
ran on a synthesized input
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("cf350b6dd214bfc4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torch import Tensor

INIT_ARGS = {
    'weights': torch.tensor([0.5, 1.0, 1.5, 2.0], dtype=torch.float32)
}

ARGS = {
    'preds': torch.randn(2, 4, dtype=torch.float32),
    'targets': torch.randn(2, 4, dtype=torch.float32)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WeightedMSE Ran
ran on a synthesized input · constructed an object; no result was computed
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("f6594489c2e4e57a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, WeightedMSE: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor

torch.manual_seed(0)

# Create tiny tensors for preds and targets
batch_size = 2
dim = 4
preds = torch.randn(batch_size, dim)
targets = torch.randn(batch_size, dim)

# Create weights tensor that can be broadcast with the loss
# Loss will have shape (batch_size, dim) after (preds - targets) ** 2
# So weights should be broadcastable to that shape
weights = torch.ones(batch_size, dim)

ARGS = {
    'weights': weights,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WeightedMSE — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WeightedMSE output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
crps_ensemble Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("6b4b0a52e7198412")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor

torch.manual_seed(0)

# Construct tiny tensors for the function
# truth: shape (batch_size, ...) e.g., (2, 4) for 2 samples, 4 features
# predicted: shape (n_members, batch_size, ...) e.g., (3, 2, 4) for 3 ensemble members, 2 samples, 4 features

truth = torch.randn(2, 4)
predicted = torch.randn(3, 2, 4)

ARGS = {
    "truth": truth,
    "predicted": predicted,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logger Ran
ran; our contract draft was wrong, not the code
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("fd84c604a3d07817")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import torch

torch.manual_seed(0)

ARGS = {
    "name": "test_logger",
    "level": logging.INFO,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pytorch_lightning, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_loss Ran
ran; our contract draft was wrong, not the code
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("08774a8177349136")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned WeightedMSE. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor

torch.manual_seed(0)

ARGS = {
    'name': 'weighted_mse',
    'reduction': 'mean',
    'weights': torch.tensor([1.0, 2.0]),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WeightedMSE — a WeightedMSE output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WeightedMSE output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
weight_init Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("d41a4250066bce93")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'shape': (4, 3),
    'mode': 'xavier_uniform',
    'fan_in': 10,
    'fan_out': 8,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
AbstractWeightedLoss Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("38b46ea4d645cbcc")
How it ran

no invocation recorded.

AttentionOp Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("4c33843a004df581")
How it ran

no invocation recorded.

BaseModel Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("ce9f25067b473473")
How it ran

no invocation recorded.

DhariwalUNet Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("2888869bc2199f21")
How it ran

no invocation recorded.

disable_inference_dropout Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("70c2e7a5547a47f9")
How it ran

no invocation recorded.

enable_inference_dropout Not yet run
unverified (harvested, no recorded run)
Rose-STL-Lab/u-cast/src/models/networks_edm.py
code served (permissive licence) · get_code("9d02993302ab66d8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 13 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
weight_init
brick of this paper's assembly: helper
49 other papers
44 dated earlier, 3 the same month, 2 later · 1 only as an assembly brick
2303.10137 (2023-03)
A Recipe for Watermarking Diffusion Models
2305.15266 (2023-05)
Diffusion-Based Audio Inpainting
2305.16269 (2023-05)
UDPM: Upsampling Diffusion Probabilistic Models
and 46 more not named here
AttentionOp
brick of this paper's assembly: model
2 other papers
2 dated earlier · 1 only as an assembly brick
2512.00252 (2025-12)
DAISI: Data Assimilation with Inverse Sampling using Stochastic Interpolants
2512.15657 (2025-12)
SoFlow: Solution Flow Models for One-Step Generative Modeling

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

AI-based weather forecasting now rivals traditional physics-based ensembles, but state-of-theart (SOTA) models rely on specialized architectures and massive computational budgets, creating a high barrier to entry. We demonstrate that such complexity is unnecessary for frontier performance. We introduce U-Cast, a probabilistic forecaster built on a standard U-Net backbone trained with a simple recipe: deterministic pretraining on Mean Absolute Error followed by short probabilistic fine-tuning on the Continuous Ranked Probability Score (CRPS) using Monte Carlo Dropout for stochasticity. As a result, our model matches or exceeds the probabilistic skill of GenCast and IFS ENS at 1.5 ˝resolution while reducing training compute by over 10ˆcompared to leading CRPS-based models and inference latency by over 10ˆcompared to diffusion-based models. U-Cast trains in under 12 H200 GPUdays and generates a 15-day ensemble forecast in 3 seconds. These results suggest that scalable, general-purpose architectures paired with efficient training curricula can match complex domainspecific designs at a fraction of the cost, opening the training of frontier probabilistic weather models to the broader community. Our code is available at: https://github.com/Rose-STL-Lab/u-cast.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.09041")
get_code_for_paper("2604.09041")
have("2604.09041")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.09041.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.09041.svg)](https://syntology.ai/paper/2604.09041)

Connect an agent — have() is free.