arXiv:2610.05296cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05296

FlexCast: Adaptive Weather Forecasting from Arbitrary Field Sets

Yuang Zhang, Chen Hui, Weisi Lin, Haiqi Zhu, Xiulai Wang, Sun-Yuan Kung, Feng Jiang

ABSTRACT

Most deep learning weather models assign a fixed set of variables and pressure levels to predefined channels, limiting transfer across atmospheric field configurations. This dependence on a fixed field set limits the transferability of trained models across atmospheric field configurations. We propose FlexCast, a field-adaptive weather forecasting model that uses a single set of parameters to produce identity-aligned forecasts for variable-cardinality subsets drawn from a 69-field ERA5 registry. Specifically, a metadata-conditioned adapter the first encodes variable identity, pressure level, and field type and combines them with spatial features. Then, shared rank-16 projections are modulated by metadata-dependent gates to produce field-specific features, while masked set fusion aggregates the available fields into a fixed-width representation. Subsequently, a multiscale U-Transformer processes the fused atmospheric features, while an identity-aware query decoder produces forecasts for the requested fields. Finally, FlexCast learns a standardized six-hour increment and applies it recursively to generate forecasts at longer lead times. Experiments on the 2020 ERA5 test set demonstrate that FlexCast operates across varying field configurations. Compatible cross-field context is associated with lower forecast errors, whereas mismatched context increases them.

Index Terms— adaptive weather forecasting, variable-aware representation, variable-cardinality forecasting, set attention, ERA5

1. INTRODUCTION

Deep learning-based weather forecasting has made substantial progress in medium-range prediction. Models based on Fourier operators, graph propagation, three-dimensional architectures, and cascaded forecasting have improved the representation of atmospheric dynamics [1–5]. WeatherBench and WeatherBench 2 have also established common datasets and evaluation protocols [6, 7]. However, most existing models are trained with a fixed collection of atmospheric variables and pressure levels, in which each field is assigned to a predefined channel. Such a formulation is effective when the field configuration remains unchanged, but limits the transferability of trained models when different combinations of atmospheric fields are available.

A change in the available field set affects more than the number of input channels. Temperature fields at 850 and 500 hPa describe the same meteorological variable at different atmospheric levels. Surface fields and pressure-level fields also have distinct physical identities. A model operating on arbitrary field sets must therefore represent the identity of each supplied field, combine information from a variable number of fields, and preserve the correspondence between its predictions and the requested outputs. Masking absent channels alone

(a)

Figure

(b)

(c)

Fig. 1. Comparison of fixed-channel forecasting and FlexCast for arbitrary atmospheric field sets. (a) A fixed-channel model forecasts the complete 69-field state. (b) A changed input subset is incompatible with the fixed-channel model's predefined layout. (c) FlexCast forecasts the supplied fields from valid subsets with a single model. Here, G\mathcal{G} denotes the 69-field registry, XGX_{\mathcal{G}} is the complete input, St⊆GS_t \subseteq \mathcal{G} is the available subset, N=∣St∣N = |S_t|, and Qt=StQ_t = S_t are the requested forecast fields.

does not remove the dependence of conventional models on predefined channel positions. As illustrated in Fig. 1, the desired model accepts both the complete field collection and its valid subsets, while returning forecasts aligned with the identities of the supplied fields.

Recent studies have explored variable-adaptive expert allocation, heterogeneous atmospheric inputs, and shared representations for weather prediction [8–11]. Convolutional, graph-based, spherical, and space-time formulations offer different ways to model atmospheric dynamics [12–18]. Studies of scaling behavior and lightweight adaptation have further examined the roles of data coverage, model capacity, and parameter-efficient transfer [19, 20]. The setting considered here is more specific: the atmospheric field registry is fixed, but the subset supplied to the model can change between forecast cases, and that subset also defines the prediction targets. The objective is to learn a single forecasting operator for these arbitrary field configurations without training separate models or constructing field-specific forecasting branches.

To address this setting, FlexCast combines metadata-conditioned rank-16 updates [21–23] with masked Set Fusion to obtain a fixed-width spatial representation. A shared U-Transformer and identity-aware Query Decoder predict standardized six-hour increments for the requested fields; recursive application gives longer-lead forecasts.

*Corresponding author: chui@nuist.edu.cn.

Experiments on the 2020 ERA5 test set examine forecasting under different field cardinalities and cross-field context configurations. The results show that compatible context and broader atmospheric coverage generally improve forecast accuracy, whereas mismatched context increases prediction error. Overall, the main contributions of FlexCast are summarized as follows:

• We propose a field-adaptive weather forecasting model, FlexCast, which relaxes the fixed-field assumption of conventional weather models and produces identity-aligned forecasts from variable-cardinality subsets of a 69-field ERA5 registry. The same parameter set is used across different field combinations, from sparse subsets to the full 69-field collection.

• In FlexCast, a metadata-conditioned adapter is designed to combine the spatial features of each field with its variable identity, pressure level, pressure value, and field type. Shared rank-16 projections and metadata-dependent gates then generate field-specific feature updates. Masked set fusion aggregates the available features into a fixed-width representation for the shared forecasting backbone.

• A multiscale U-Transformer is employed to model spatial dependencies in the fused atmospheric representation, while an identity-aware query decoder reconstructs forecasts for the requested fields. In addition, a standardized six-hour increment is learned and reused recursively, allowing the same model to produce forecasts at longer lead times.

References (30)