AirFlow: Context Preserving and Multi-Rate State Modeling for Air Quality Forecasting
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
AirFlow: Context Preserving and Multi-Rate State Modeling for Air Quality Forecasting Fan Yang∗
Nan Chen∗
Yijie Dong
Yuchen Zhang
Wei Zhang† School of Software Technology, Zhejiang University Hangzhou, Zhejiang 310000, China
arXiv:2608.09775v1 [cs.AI] 10 Aug 2026
Abstract Accurate air quality forecasting is essential for public health and urban environmental management, but remains challenging because pollutant channels differ in periodicity and distribution drift, while their concentration trajectories contain both multi-scale dependencies and rapid changes. Recent methods have improved spatial dependency learning and meteorological covariate modeling. However, pollutant channels are still passed through the same normalization rule and temporal backbone, using a shared latent representation for channel-specific distributions and changes at different rates. To address this limitation, we propose AirFlow, a pollutant-aware dual-stream framework that operates on station multivariate observations without additional graph propagation or predefined signal decomposition. Specifically, AirFlow designs two novel blocks: (1) a statistic-guided normalization routing mechanism that selects a normalization path for each pollutant according to its 24-hour autocorrelation and distribution drift; and (2) a hierarchical dual-stream state model that combines multi-scale state space propagation with learnable response coefficients, where gated bidirectional cross-attention exchanges information and adaptively fuses the resulting representations. Experiments on real-world data from multiple cities show that AirFlow achieves the best performance in 34 of 36 metrics comparisons, with reductions of up to 11.11% root mean square error over the state-of-the-art baseline. AirFlow also requires only 0.0483M parameters and 0.0215G FLOPs, achieving high forecasting accuracy with low computational overhead.
1
Introduction
tions. Increasing the complexity of graph propagation therefore does not necessarily resolve the forecasting errors caused by unobserved environmental changes. These unobserved changes manifest in the measured trajectories as abrupt peaks, rapid rises or drops, and shifts in level and variability. Such changes are difficult because a forecasting model must preserve the historical context preceding a pollution episode while responding rapidly once the concentration regime changes. We therefore study a complementary question to increasingly elaborate spatial modeling: how to improve pollutant-aware temporal state evolution when transport context is incomplete. This forecasting scenario poses two related modeling challenges. First, different pollutants exhibit distinct statistical characteristics. PM2.5 and PM10 are more susceptible to local emissions, dust, accumulation, and rapid removal, resulting in abrupt peaks, baseline drift, and non-stationary fluctuations [20]. In contrast, NO2 often shows traffic activity-related periodicity, while O3 presents diurnal variation. Applying a shared normalization strategy may preserve useful magnitude relations
Air pollution remains a major concern for urban environmental management, public health protection, and early warning systems [1, 47]. Fine particulate matter and gaseous pollutants are closely associated with respiratory and cardiovascular diseases [4, 7], while severe pollution episodes increase the burden on healthcare systems and emergency response [23]. Reliable air quality forecasting is therefore essential for proactive risk assessment and policy intervention. Spatial modeling remains valuable when inter-station transport can be supported by synchronized wind fields, emission inventories, terrain attributes, and boundarylayer conditions. In many operational monitoring systems, however, these variables are unavailable, coarsely sampled, or temporally misaligned with pollutant observations [8, 35]. Under this setting, coordinates and historical correlations provide useful but incomplete spatial priors, because the effective influence between stations varies with atmospheric transport and emission condi-
1
Incomplete Transport Context
Heterogeneous Dynamics
AirFlow Solution
Pollutant-Specific Statistics PM2.5
Peaks & Drift
PM10
Large Fluctuations
NO2
Spatial relations may not reflect time-varying pollutant transport.
Periodic Variations
...
O3
Diurnal Cycle
Entangled Dynamics:
Unavailable, coarse, or misaligned Persistent Context, Periodic Patterns
Wind Emission Boundary Terrain Field Inventory Layer
Sharp Peaks, Rapid Rises/Drops
... Input Multi-Pollutant Sequences Pollutant-Adaptive Normalization Structural Memory Transient Dynamics Gated CrossAttention Fusion
← Stable Events SMS↑
Forecast
→ Abrupt Events TDS↑
Figure 1: Motivation and framework of AirFlow for multivariate air quality forecasting. framework that couples statistic-guided normalizafor some variables while compressing local variations or tion routing with multi-rate latent state modeling. amplifying distribution shifts in others [22, 28]. Second, The routing mechanism preserves cross-window conthe temporal behavior of each pollutant is nonuniform. Periodic activity and gradual accumulation generate percentration references for statistically stable chansistent dependencies [9], whereas changes in emissions, nels while reducing local level and scale shifts for drifting channels, avoiding a uniform preprocessing dispersion, and removal conditions produce sharp rises, assumption across pollutants. rapid drops, and short-lived peaks [3, 27]. Accurate forecasting therefore requires both stable historical context • We design a novel hierarchical dual stream state and flexible responses to changing concentration condimodel that combines multi-scale dependency modtions [12, 15]. Figure 1 summarizes the forecasting sceeling with heterogeneous hidden state transitions. nario, the modeling challenges, and the overall design of Gated bidirectional cross-attention conditions rapidAirFlow. response features on relevant historical context beExisting forecasting methods address these difficulfore adaptive fusion. ties only partially [24]. General sequence models usually process all pollutants using shared normalization • Experiments across multiple cities and pollutants and single state-update mechanism, limiting their ability show accuracy gains and competitive computational to accommodate variable-specific statistics and nonunioverhead without additional graph propagation. form changes [48]. Decomposition-based methods separate sequences into trend, seasonal, frequency, or multiscale components [40], but their predefined or shared 2 Related Work decomposition bases may not adapt well to pollutant concentration distributions, while component-wise pro2.1 Air Quality Forecasting cessing may represent abrupt variations as residual or high-frequency parts without sufficiently preserving their Spatial inductive biases are widely adopted in air-quality connection to the preceding pollution state. These limforecasting to represent interactions across monitoring itations motivate an adaptive framework that accomlocations. PM2.5 -GNN incorporates geographical knowlmodates pollutant-specific distributions while combining edge into graph construction, whereas GAGNN models contextual dependency modeling with state transitions. dependencies at both city and city-group levels [2, 38]. AirFlow addresses air quality forecasting under inAirFormer develops scalable spatial attention for timecomplete transport context by coordinating two levels of varying correlations over a nationwide monitoring netpollutant heterogeneity: statistic-guided normalization work [25]. DGN-AEA further constructs dynamic relapreserves channel-dependent distribution information, while tions from adaptive edge attributes [44], while DSGT complementary state-transition pathways model persisconstructs them from time-varying station observations tent context and heterogeneous response rates without and auxiliary features [42]. MGSFformer combines multipredefined decomposition or graph propagation. The main granularity observations with spatiotemporal correlations contributions of this work are summarized as follows: [46]. These methods improve spatial representation through increasingly flexible relation construction, while the learned
• We propose AirFlow, a lightweight pollutant-aware 2
Linear
MinMax Router
Input
Gated
B×L×P
HDS-1
HDS-2
HDS-3
Decoder
Output B×O
RevIN
DSFE
Adaptive Normalization
DSFF
Hierarchical Dual Stream
Dual Stream Feature Extraction(DSFE)
Dual Stream Feature Fusion(DSFF)
B×L×d B×L×d
Linear
Structural Memory Stream S Transient Dynamics Stream T
B×d
DWConv1D
SiLU
MHA(Q=S,K=T,V=T)
SiLU Selective
Propagation
𝒫
Selective
Propagation
𝒫
MHA(Q=T,K=S,V=S) ^ T
^ S …
Wh
Neurons
L
Gated Fusion
^ + (1 − G) ⊙ T ^ F = G ⊙S
Linear Feed Forward Transformation
Linear B×L×d
B×L×d
HK Structural Memory Stream
Transient Dynamics Stream
Figure 2: Overall architecture of AirFlow. Adaptive Normalization handles heterogeneous statistics via statisticguided router. Stacked Hierarchical Dual Stream (HDS) composed of Dual Stream Feature Extraction (DSFE) and Dual Stream Feature Fusion (DSFF). DSFE learns complementary representations through Structural Memory Stream and Transient Dynamics Stream, while DSFF fuses them via gated cross-attention. The final representations are decoded for forecasting. dependencies remain tied to the signals used to infer inter-station relations. Beyond learned spatial relations, recent studies incorporate atmospheric knowledge into the forecasting process. MasterGNN processes air quality and weather stations modeling and suppresses observation noise accumulation caused by spatial-temporal propagation [13]. CauAir models the causal association between weather covariates and Air Quality Index (AQI) [31]. Physicsguided methods further encode transport dynamics. AirPhyNet represents diffusion and advection with graphbased differential equation networks, Air-DualODE combines open system physical dynamics with a data-driven Neural ordinary differential equation (ODE) branch, and AirDDE models propagation delays through multifactor historical features and delay function grounded in diffusion and advection processes [18, 36, 39]. These studies demonstrate that spatial and meteorological context provides valuable information for air quality forecasting. However, recent advances have emphasized sophisticated spatial dependency modeling, while the heterogeneous temporal patterns of pollutant concentrations
remain underexplored. Additional spatial dependencies enrich contextual information, but they may also compensate for, rather than resolve, insufficient modeling of abrupt changes and non-stationary patterns. This motivates us to strengthen pollutant-aware temporal modeling and verify whether competitive or better performance can be achieved without constructing additional graph propagation.
2.2
Normalization and Temporal Modeling
Normalization methods address non-stationarity by controlling which statistics are removed, estimated, and restored. Reversible Instance Normalization (RevIN) applies reversible instance mean and variance normalization, whereas SAN estimates evolving statistics over local temporal slices [22, 30]. SIN selects statistics according to local invariance and global variability [14]; FAN and DDN extend normalization to frequency-domain and dual-domain distribution changes [5, 45]. These methods show that normalization choices embody different as3
sumptions about distribution change, motivating pollutantwise routing rather than one fixed operator across channels. Temporal forecasting models capture sequence dependencies through different computational mechanisms. Convolutional neural network (CNN)-based models extract local patterns with temporal convolutions, whereas recurrent neural network (RNN)-based models propagate historical information through recurrent hidden states [41]. Transformer-based models capture long-term interactions with attention [48], while selective state space models provide input-dependent state propagation with linear sequence complexity [6, 11]. Liquid neural network (LNN)-based models regulate hidden-state transitions through differential dynamics [15, 16]. To address non-stationarity and temporal patterns at different scales, recent models further introduce adaptive decomposition, multi-resolution processing, and frequencydomain representations [17, 19, 21, 43]. These works suggest that component construction and latent-state modeling are complementary design strategies. AirFlow follows the latter to model multi-scale context and ratevarying changes without relying on a fixed component partition.
3.2
Station-Wise Pollutant Normalization
For pollutant p at station s, let xs,p ∈ RT denote its training sequence, where T is the sequence length. The periodicity score is ρs,p = Corr (xs,p [1:T − h], xs,p [1 + h:T ]) ,
(2)
where h is the lag of one diurnal cycle and Corr denotes the Pearson correlation coefficient [33]. The driftrate score is Std (MAw (xs,p )) , (3) νs,p = Std(xs,p ) + ε where MAw is the moving average with weekly window length w, Std denotes standard deviation, and ε > 0 prevents division by zero. The score νs,p summarizes the relative variation of the smoothed sequence. The normalization route is determined for each station– pollutant pair: ( RevIN, ρs,p < θρ ∧ νs,p ≥ θν , (4) rs,p = MinMax, otherwise,
where θρ and θν are routing thresholds. The rule gives priority to periodicity because instance-wise centering may weaken the cross-window level information associated with a stable recurring pattern. For input window i from station s, let xs,i,p ∈ RL 3 Methodology denote pollutant p. Its normalized sequence is xs,i,p − xmin,s,p , rs,p = MinMax, 3.1 Problem Formulation x max,s,p − xmin,s,p + ε es,i,p = x xs,i,p − µs,i,p Let S denote the set of monitoring stations. For station + βp , rs,p = RevIN, γp L×P s ∈ S and forecasting origin t, the input Xs,t ∈ R σs,i,p contains L observations of P pollutants collected at the (5) same station. For a fixed target pollutant, AirFlow learns where xmin,s,p and xmax,s,p are the station training extrema, µs,i,p and σs,i,p are the mean and standard devibs,t = f (Xs,t ; Θ) ∈ RO , y (1) ation of the input window, γp and βp are learnable affine parameters. MinMax uses the station-specific training where O is the forecasting horizon and Θ denotes the range for every input window, preserving absolute conmodel parameters. Training sequences are generated by centration levels and cross-window comparability. RevIN sliding a window over each station, and the model is standardizes each window with its own mean and varishared across all stations. The target pollutant is fixed ance, reducing local level and scale shifts [22]. AirFlow in each training run. prefers MinMax when a stable periodic pattern provides AirFlow is designed for two properties of multi-pollutant a reliable cross-window reference, and uses RevIN when observations. Pollutants differ in periodicity and distriweak periodicity is accompanied by stronger slow distribution shift, making a single normalization rule unsuitbution movement. The normalized channels are concateable for all channels. Their trajectories also contain longnated and projected to the initial hidden representation range dependencies and rapid variations that favor difH0 ∈ Rn×L×d , where n is the batch size and d is the ferent state-update patterns. AirFlow therefore combines hidden dimension. The corresponding target statistics station pollutant normalization with two temporal streams. are retained for inverse transformation. As shown in Figure 2, the normalized sequence is projected to a d-dimensional latent space and passed through 3.3 Hierarchical Dual-Stream Encoder K Hierarchical Dual-Stream (HDS) blocks. Each block contains Structural Memory Stream (SMS), Transient AirFlow stacks K residual HDS blocks to refine the laDynamics Stream(TDS), and Gated Bidirectional Crosstent representation. Let Hk denote the input to the k-th Attention (GBCA) module. A prediction head maps the block, with H0 produced by the input projection and final representation to the future target sequence. k = 0, . . . , K − 1. 4
3.3.1
Structural Memory Stream
3.3.3
A learned projection of Hk produces two representations. The convolution-enhanced representation is U = SiLU(DWConv(Πu (Hk ))), and the context-preserving representation is Z = SiLU(Πz (Hk )), where Πu and Πz are learned projections and DWConv is depth-wise temporal convolution. The selective propagation operator P is applied to both representations, that is U′ = P(U) and Z′ = P(Z). To define the operator, let V ∈ {U, Z} denote either input representation. The input at position j generates a positive discretization vector ∆j ∈ Rde and vectors Bj , Cj ∈ Rds , where de is the expanded width and ds is the state dimension. Let A ∈ Rde ×ds denote the transition coefficients, with A = − exp(Alog ). We define Aj = exp(Diag(∆j )A) and Bj = ∆j B⊤ j . The state Mj ∈ Rde ×ds is updated by Mj = Aj ⊙ Mj−1 + Diag(Vj )Bj ,
(6)
b = MHA(T, S, S), T
(10)
where the arguments of Multi-Head Attention (MHA) are query, key, and value [37]. This bidirectional retrieval allows each stream to be conditioned on the other before their relative contributions are estimated by the tokenb T])), b wise gate G = σ(MLP([S∥ where ∥ denotes concatenation. The fused representation is b + (1 − G) ⊙ T. b F=G⊙S
3.4
(11)
Prediction
After the final HDS block, the representation is decoded by mean pooling and two-layer prediction head D: L X 1 b = D HK,j . (13) y L j=1
(8)
where Wo projects the expanded representation back to width d. The symmetric interaction combines local filtering with selective propagation without introducing a predefined decomposition. 3.3.2
b = MHA(S, T, T), S
where Φ denotes the feed forward transformation applied after fusion.
(7)
where D ∈ Rde is the direct term. The product Mj Cj is matrix–vector multiplication. The symbols A, B, C, and D follow the standard state-space roles [6, 11]. The SMS output is S = Wo [U′ ⊙ Z + Z′ ⊙ U] ,
The GBCA module performs cross-stream interaction and adaptive fusion. Specifically, the SMS representation uses the TDS representation as key and value to retrieve recurrent state information, while the reverse direction retrieves propagated context information:
The gate is estimated at each temporal position from the mutually conditioned representations. The block output is Hk+1 = Hk + Φ(F), (12)
where Diag(·) forms a diagonal matrix and ⊙ denotes element-wise multiplication. The propagated output is P(V)j = Mj Cj + D ⊙ Vj ,
Gated Bidirectional Cross-Attention
Training is performed in the scale associated with the target route, and predictions are transformed back to the original concentration scale for evaluation. Multi-step air quality forecasting requires both accurate concentration values and consistent changes across adjacent forecasting horizons. We therefore optimize a trajectory-aware objective with a robust concentration term and an inter-step variation term:
Transient Dynamics Stream
TDS maintains a set of latent features with different learnable response scales. At position j, the candidate e j = tanh(Wx Hk,j +Wh hj−1 +bh ), its response state is h coefficients are computed as α = σ(η ⊘ τ ), where η is learnable scalar, τ is learnable vector, ⊘ is element-wise division, and σ is sigmoid function. The state is updated by e j − hj−1 ). hj = hj−1 + α ⊙ (h (9)
n
L=
O
1 XX ψ(ei,o ) + λ∆ L∆ , nO i=1 o=1
(14)
where ei,o = ybi,o −yi,o is the point-wise forecasting error, and λ∆ controls the variation term. The penalty ψ is: e2 λs + λ1 |e|, |e| < κ, 2κ ψ(e) = (15) (λ + λ )|e| − λs κ , |e| ≥ κ, s 1 2
Different latent features require different degrees of temporal persistence, some need to accumulate information over longer contexts, whereas others need to respond more rapidly to recent observations. A smaller entry of α retains more of the preceding state, while a larger entry places greater weight on the current candidate state. Finally, the recurrent states are projected to obtain T ∈ Rn×L×d .
where κ > 0 is the transition point and λs , λ1 ≥ 0 are fixed weights. This penalty retains quadratic sensitivity to small residuals and grows linearly for large residuals, 5
preventing a small number of severe pollution episodes from dominating optimization while maintaining a direct penalty on absolute concentration deviations. Point-wise accuracy does not constrain how the predicted trajectory changes across horizons. The inter-step variation term is L∆ =
n O−1 X X 1 2 (∆b yi,o − ∆yi,o ) , n(O − 1) i=1 o=1
exhibit limited performance. Although Mamba improves computational efficiency, it does not outperform recurrent baselines. The vanilla Transformer underperforms due to the lack of temporal inductive bias, whereas its variants (e.g., iTransformer and PatchTST) achieve better results by augmenting variable-wise dependencies or local temporal representation. LNN has relatively fewer neurons but is originally developed for causal decisionmaking under irregular sampling, thus failing to achieve competitive performance on this task. In contrast, domain-specific models designed for spatiotemporal air quality forecasting exhibit clear advantages over general-purpose sequence models. Especially the physics-guided model Air-DualODE retains RMSE advantage on Tianjin PM2.5 and AQI. It is also worth noting that on the NO2 forecasting task, where temporal fluctuations are driven by regular anthropogenic activities, the performance differences among most models remain relatively small. AirFlow ranks first in 34 of the 36 comparisons while operating only on station-level multivariate observations. On the Beijing dataset, it reduces RMSE over the strongest baseline (Air-DualODE) by 5.26% for PM2.5 , 5.24% for PM10 , 1.48% for NO2 , and 2.24% for AQI. On the Hangzhou dataset, which represents a different geographic domain characterized by subtropical monsoon climate and hightech manufacturing emissions, AirFlow reduces RMSE over the Air-DualODE by 6.05%, 11.11%, 1.63%, and 7.71% for PM2.5 , PM10 , NO2 , and AQI. These results indicate that in pollutant-only scenarios, prioritizing station pollutant dynamics can achieve strong forecasting accuracy without additional graph propagation.
(16)
where ∆b yi,o = ybi,o+1 − ybi,o and ∆yi,o = yi,o+1 −yi,o . This design couples adjacent forecasting horizons and penalizes discrepancies in both the direction and magnitude of concentration changes.
4
Experiments
4.1
Experimental Settings
Datasets We evaluate AirFlow on hourly air quality records from Beijing, Tianjin, and Hangzhou. All datasets are publicly available at https://quotsoft.net/air. After filtering stations with PM2.5 missing rates below 20%, the three datasets contain 35, 21, and 12 monitoring stations. Each dataset spans from Jan. 1, 2023 to Dec. 31, 2024. The data from each station are divided chronologically into training, validation, and test sets with a ratio of 8:1:1. Each station provides six pollutant measurements, including PM2.5 , PM10 , SO2 , NO2 , CO, and O3 . The four forecasting targets are listed in Table 1. PM2.5 is treated as the primary forecasting target due to its critical health impacts. Baselines We compare AirFlow with general sequence models and air quality forecasting models. The former includes BiLSTM [10], ConvLSTM [34], Transformer [37], LNN [15], PatchTST [32], iTransformer [29], and Mamba [11], covering recurrent, convolutional, attention-based, and state-space architectures. The latter includes PM2.5GNN [38], AirFormer [25], STAAGCN [26], AirPhyNet [18], MGSFformer [46], and Air-DualODE [36], which introduce spatial dependency learning, atmospheric priors, or auxiliary environmental context. Metrics Forecasts are evaluated in the original concentration scale using root mean square error (RMSE), Mean Absolute Error (MAE), and Coefficient of Determination (R2 ). These metrics quantify the model’s error magnitude, overall accuracy, and goodness of fit.
4.2
4.3
Ablation Study
To evaluate the contribution of components in AirFlow, we conduct ablation studies on the Beijing PM2.5 task. As shown in Table 2, AirFlow achieves the best performance across all evaluation metrics, demonstrating that each component contributes positively to the final performance. V0 removes AN, i.e. uses fixed MinMax, leads to 22.09% increase in MAE and 4.89% decrease in R2 , showing that input representation is sensitive to which station-level statistics are retained before temporal encoding. Removing TDS (V3 ) increases MAE by 12.85%, while removing SMS (V4 ) leads to a larger increase of 15.39%. These results indicate that modeling either long-term temporal correlations or abrupt change patterns is insufficient to match the performance of the full model. Within SMS, removing the context-preserving branch (V5 ) increases MAE by 7.23%, while removing the convolution-enhanced branch (V6 ) leads to 6.29% increase. Replacing GBCA with a simpler gate control (V7 ) increases MAE by 9.91% and reduces R2 by 2.1% relative to the AirFlow, indicating that fine-grained feature in-
Main Results
To demonstrate the effectiveness and robustness of AirFlow, we compared its performance with various stateof-the-art baselines. For fair comparisons, all baselines and AirFlow are evaluated under an identical experimental setup. As shown in Table 1, several interesting observations can be drawn. General-purpose sequence models 6
Table 1: Experimental results comparing AirFlow with baseline models across four target variables, averaged over three runs. Lower RMSE and MAE and higher R2 indicate better performance. Best results are highlighted in bold. Dataset
Model
PM2.5
PM10
NO2
AQI
RMSE ↓
MAE ↓
R2 ↑
RMSE ↓
MAE ↓
R2 ↑
RMSE ↓
MAE ↓
R2 ↑
RMSE ↓
MAE ↓
R2 ↑
Beijing
BiLSTM (2014) ConvLSTM (2015) Transformer (2017) PM2.5-GNN (2020) LNN (2021) PatchTST (2023) AirFormer (2023) STAAGCN (2023) iTransformer (2024) Mamba (2024) AirPhyNet (2024) MGSFformer (2025) Air-DualODE (2025) AirFlow (Ours)
16.44 16.48 17.33 15.84 17.02 16.12 15.68 15.98 15.88 16.64 15.93 15.62 15.22 14.42
9.01 9.08 10.34 8.42 8.67 8.83 8.40 8.41 8.58 8.62 8.87 8.29 8.18 7.47
0.8113 0.8104 0.7903 0.8262 0.7978 0.8186 0.8284 0.8132 0.8239 0.8068 0.8127 0.8297 0.8348 0.8513
28.89 30.51 27.13 24.85 26.10 30.29 26.45 24.81 29.89 26.19 33.18 25.42 23.67 22.43
15.06 15.41 16.18 13.88 14.29 14.03 13.96 13.90 13.92 14.46 18.32 14.12 13.38 13.02
0.7451 0.7157 0.7751 0.8182 0.7919 0.7197 0.7862 0.8120 0.7270 0.7904 0.7002 0.8098 0.8310 0.8443
12.79 12.76 12.80 12.82 12.83 12.75 12.79 12.82 12.95 12.81 14.17 12.76 12.84 12.65
8.68 8.70 8.58 8.89 8.59 8.59 8.61 8.72 8.78 8.64 9.71 8.60 8.88 8.55
0.6823 0.6835 0.6814 0.6788 0.6803 0.6872 0.6815 0.6806 0.6742 0.6814 0.5915 0.6822 0.6794 0.6889
22.14 21.46 21.16 20.12 21.73 20.09 21.60 20.29 20.95 22.09 20.49 20.32 19.68 19.24
12.08 12.12 11.83 11.44 11.75 11.43 11.30 11.48 11.46 11.99 11.49 11.39 11.21 10.87
0.7616 0.7761 0.7854 0.8096 0.7703 0.7937 0.7730 0.7999 0.7866 0.7626 0.8088 0.8007 0.8108 0.8184
Tianjin
BiLSTM (2014) ConvLSTM (2015) Transformer (2017) PM2.5-GNN (2020) LNN (2021) PatchTST (2023) AirFormer (2023) STAAGCN (2023) iTransformer (2024) Mamba (2024) AirPhyNet (2024) MGSFformer (2025) Air-DualODE (2025) AirFlow (Ours)
20.09 19.95 21.67 19.22 20.06 19.63 20.39 19.87 19.58 19.82 20.18 19.70 18.78 18.87
11.91 11.86 13.08 11.45 11.70 11.78 11.89 11.66 11.79 11.68 12.07 11.54 10.98 10.97
0.6828 0.6867 0.6311 0.6897 0.6839 0.6988 0.6734 0.6897 0.6921 0.6913 0.6799 0.6966 0.6974 0.7124
28.26 28.46 30.02 27.88 29.19 28.08 28.43 29.04 28.40 29.31 29.98 27.89 27.65 26.87
17.81 18.40 19.49 17.12 18.34 17.28 17.49 18.35 17.91 18.54 18.98 17.11 16.87 16.81
0.6717 0.6670 0.6296 0.6945 0.6497 0.6760 0.6678 0.6533 0.6685 0.6468 0.6305 0.6859 0.7001 0.7046
14.79 14.71 14.96 14.98 14.78 14.66 14.59 14.85 14.61 15.05 15.23 14.63 15.11 14.54
9.87 10.04 9.91 10.01 9.82 9.85 9.86 10.09 9.82 10.11 11.76 9.88 10.44 9.78
0.6681 0.6716 0.6601 0.6623 0.6687 0.6739 0.6767 0.6653 0.6762 0.6563 0.6488 0.6772 0.6537 0.6793
24.12 23.74 24.39 23.02 24.07 23.44 23.38 24.02 24.69 24.39 23.88 23.06 22.51 22.58
14.85 14.62 14.73 13.98 14.47 13.91 14.02 14.45 14.77 14.83 14.58 14.01 13.52 13.48
0.6670 0.6774 0.6595 0.6874 0.6683 0.6856 0.6871 0.6692 0.6510 0.6595 0.6735 0.6908 0.7012 0.7023
Hangzhou
BiLSTM (2014) ConvLSTM (2015) Transformer (2017) PM2.5-GNN (2020) LNN (2021) PatchTST (2023) AirFormer (2023) STAAGCN (2023) iTransformer (2024) Mamba (2024) AirPhyNet (2024) MGSFformer (2025) Air-DualODE (2025) AirFlow (Ours)
13.34 13.96 15.96 15.23 14.22 16.36 17.78 16.69 17.04 13.01 16.89 17.00 13.22 12.42
8.02 8.75 8.92 9.86 8.83 10.47 10.43 10.92 11.01 8.11 11.76 10.43 8.04 7.28
0.6865 0.6831 0.5654 0.6211 0.6802 0.5439 0.5075 0.5255 0.5053 0.7012 0.5675 0.5075 0.7026 0.7455
18.45 18.51 19.77 18.44 19.44 22.92 24.57 24.74 23.71 18.43 19.04 24.08 18.99 16.88
11.72 11.76 12.17 10.98 12.32 14.96 15.20 16.45 15.63 11.32 11.95 15.40 12.02 10.56
0.6817 0.6789 0.6345 0.6812 0.6468 0.5109 0.4356 0.4300 0.4768 0.6826 0.6609 0.4580 0.6629 0.7224
11.33 11.69 11.28 11.54 11.12 13.16 14.39 13.78 14.03 11.04 12.62 14.55 11.03 10.85
7.92 8.22 7.94 8.18 7.76 9.35 10.13 10.26 9.62 7.68 8.67 10.31 7.91 7.43
0.6107 0.5855 0.6146 0.6001 0.6249 0.4729 0.3710 0.4227 0.4009 0.6304 0.5165 0.3575 0.6306 0.6453
16.64 16.09 17.34 17.45 17.12 20.05 22.95 20.54 21.27 16.47 15.80 20.91 16.08 14.84
9.94 9.98 10.37 10.32 10.45 12.78 13.59 13.85 13.65 9.89 9.76 13.15 10.06 9.02
0.6546 0.6769 0.6246 0.6311 0.6341 0.5001 0.3435 0.4758 0.4378 0.6613 0.6891 0.4551 0.6780 0.7105
teractions are more effective than coarse weighting for multi-scale feature fusion.
Table 2: Ablation study on model components. ! and # indicate whether a module is included or removed. AN: Adaptive Normalization; CE: Convolution-Enhanced Branch in SMS; CP: Context-Preserving Branch in SMS. TDS: Transient Dynamics Stream; GBCA: Cross Attention. Best results are in bold.
4.4
For real-world air quality early-warning systems, computational complexity and memory footprint are as critical as forecasting accuracy. As summarized in Figure 3, AirFlow achieves a superior balance between modeling complexity and computational feasibility. Specifically, its parameter count (0.0483M) is lightweight compared to sequence models like iTransformer (1.6010M), and its FLOPs are approximately 1/95 of the spatiotemporal baseline AirFormer (0.0215G vs. 2.0378G). Furthermore, AirFlow maintains a remarkably low peak memory footprint (18.7 MB), avoiding the exorbitant memory costs of spatial models like MGSFformer (137.7 MB).
Variant AN CE CP TDS GBCA RMSE ↓ MAE ↓ R2 ↑ V0 V1 V2 V3 V4 V5 V6 V7 AirFlow
#
!
!
!
!
!
!
#
#
#
!
#
!
#
#
!
!
!
#
#
!
#
#
!
#
!
!
#
!
!
!
#
!
!
!
!
!
!
!
#
!
!
!
!
!
16.68 16.64 16.81 15.65 15.85 15.46 15.33 15.45 14.42
Computational Efficiency
9.12 0.8097 8.62 0.8068 8.70 0.8026 8.43 0.8276 8.62 0.8201 8.01 0.8323 7.94 0.8359 8.21 0.8334 7.47 0.8513
7
latent state modeling identify which historical dependencies should continue to propagate and how quickly different features update within the recurrent state. Gated cross-attention enables fine-grained interaction between the two streams, allowing rapid concentration changes to be interpreted against the relevant historical context before producing an integrated forecasting representation. Extensive experiments on three real-world datasets across multiple cities and pollutants demonstrate that AirFlow can provide accurate and efficient air quality forecasting.