Manuscript Offprint
arXiv:2610.33557Nowcasting aerosol particle size distributions from PM2.5 with physics-regularized flow matching
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Zhi-Song Liu , Jenni Köykkä , Wenqing Peng , Ammar Kheder , Petri Clusius , and Michael Boy
Department of Computational Engineering, LUT University, Finland
Atmospheric Modelling Center, Lahti (AMC-Lahti), Finland
Institute for Atmospheric and Earth System Research (INAR), University of Helsinki, Finland
Correspondence: Zhi-Song Liu (zhisong.liu@lut.fi)
Abstract. The mass concentration of particles smaller than 2.5 m (PM ) is cheap to measure and widely monitored, whereas the particle number size distribution (PSD) requires costly instruments and is measured at only a few research stations. Yet many aerosol effects, such as vapor uptake, cloud droplet formation and deposition in the human respiratory tract, depend on the PSD rather than on mass. We explore whether recent generative deep learning models can nowcast the PSD: from the PM record and eight meteorological parameters over a 24 h window, a model generates an ensemble of plausible hourly size distributions for the same window, reflecting that one mass can arise from many size distributions. Rather than proposing a single best model, we use two contrasting Finnish stations, the boreal forest site Hyytiälä and the urban site Kumpula, as a controlled testbed. On it, we benchmark six generative models against deterministic and climatological baselines, locally and after transfer between sites, and test physical constraints for neural network training. Flow matching performs best overall; its guided variant has the lowest continuous ranked probability score (CRPS) at both sites. A constraint based on a reduced aerosol general dynamic equation (GDE) lowers the CRPS by 5.5–11.5 % at the training site and reduces errors after transfer between sites. Transfer remains harder than local estimation, identifying training on large multi-station data sets as the next step towards PSD estimates at unmonitored locations. This benchmark establishes physics-informed generative models as a promising route from routine air-quality monitoring to size-resolved aerosol information.
1 Introduction
Particle number and particle mass describe different aspects of an aerosol population. Newly formed or freshly emitted ultrafine particles can dominate number concentration while contributing negligibly to mass, whereas far fewer accumulation-mode particles can dominate PM , the mass concentration of particles smaller than 2.5 m in aerodynamic diameter. The particle number size distribution (PSD) is the state on which aerosol processes act: condensational growth, coagulation and deposition change it, and its shape in turn determines how fast vapors condense onto the particles, how many particles can activate as cloud droplets and where they deposit in the respiratory tract (Seinfeld and Pandis, 2016; Kulmala et al., 2001). Air-quality networks routinely report PM , whereas size-resolved measurements require differential mobility particle sizers (DMPS) with specialist operation and quality control (Kulmala et al., 2012; Wiedensohler et al., 2012). The practical question is therefore how much of the PSD can be recovered from routine PM and meteorological observations.
Two families of methods approach this question from opposite directions. Process-based models such as SOSAA (Boy et al., 2011; Clusius et al., 2026) solve the forward problem: given emissions, meteorology and chemistry, they simulate how the PSD evolves by resolving gas-phase chemistry, boundary-layer dynamics and aerosol microphysics. Their inputs, however, include emissions, vertical meteorology and gas-phase concentrations that are not normally available at a monitoring station. Recovering the PSD from PM is instead an inverse problem: the size distribution must be inferred from a single mass integral of it, together with the weather. Machine-learning methods suit this inverse problem since they learn the mapping from bulk quantities to size information directly from data. Vartiainen et al. (2025) downscaled climate-model aerosol output to daily number concentrations in three size ranges, and Barahona et al. (2026) inferred modal size distributions and mixing state from bulk aerosol mass and meteorology. Together, these works establish that bulk properties contain recoverable size information.
However, both studies return a single deterministic estimate, which cannot represent the central difficulty of this inverse problem: the same can arise from a few large particles or many small ones. We refer to this as the mass-number ambiguity. A regression trained on squared error returns the conditional mean of the plausible spectra, which smooths the hour-to-hour and size-resolved structure that matters for number-sensitive applications. In our data, a gradient-boosting regression reproduces only 58 % of the observed between-window variability of the PSD, against 83 % for the generative model introduced below (Appendix D2). Two further questions are rarely tested. First, a good full-spectrum score need not imply accurate derived quantities, because different quantities weight particle diameter differently. The number of ultrafine particles (smaller than 100 nm) is dominated by the smallest particles and is relevant for health and new particle formation (World Health Organization, 2021), whereas the condensation sink, the rate at which condensable vapors are lost to existing particles, is weighted towards larger particles (Kulmala et al., 2001). A model can reproduce one of these quantities and miss the other. Second, a model fitted at one station may not transfer to a station with a different aerosol regime.
Conditional generative models (Lipman et al., 2023; Liu et al., 2023; Rombach et al., 2021; Lovelace et al., 2023; Liu et al., 2025) learn a distribution of outputs for a fixed input, and therefore offer a direct way to represent this ambiguity. Among them, flow matching (FM) learns a smooth transport from Gaussian noise to the data by regressing a velocity field, which makes training a simple regression problem and sampling a fixed number of integration steps (Lipman et al., 2023; Liu et al., 2023). In this work, we use FM to generate an ensemble of hourly PSDs for a 24 h window from the concurrent PM and meteorological record (Fig. 1). We call this task PSD nowcasting: the model reconstructs the PSD of the observed window based on the observed PM , and receives no PSD measurement at any time. Such a nowcast could fill gaps in existing size-distribution records or provide an estimated PSD at stations that measure only PM . This also changes the spatial scale of the available information: a size-resolved measurement describes the aerosol at a single research station, whereas a computational estimate can be produced wherever PM is monitored, for example at every station of a municipal air-quality network, and thus at a much higher spatial density. Since a generative objective alone does not enforce aerosol physics, we add soft penalties of two kinds: integral constraints on resolved mass and number, and a dynamical constraint based on a reduced general dynamic equation (GDE).
Since generative models have not yet been applied to this problem, our aim is exploratory. Rather than proposing a single best model, we benchmark the main families of generative models for PSD nowcasting and test whether physical constraints can guide neural network training. A benchmark of this kind needs controlled conditions more than scale: every model must see the same inputs, training period and evaluation windows, so that differences can be attributed to the modelling choices. We therefore use two well-characterized stations with long, continuous PSD records as a testbed: the Hyytiälä boreal forest station and the Kumpula urban station in Finland. Their contrasting aerosol regimes also make the pair a deliberately demanding test of transfer between environments. Within this testbed we address four research questions:
– RQ1. Does conditional generation reconstruct the full spectrum better than deterministic, climatological, and alternative generative methods?
– RQ2. Do physical constraints improve the generated spectra, and does the form of the constraint matter?
– RQ3. For two derived quantities with contrasting size weighting, ultrafine particle number and the condensation sink, are the generated spectra more accurate than past PSDs observed in the same season and at the same hour of day?
– RQ4. How much of this information survives transfer between the boreal and the urban site?
Our contributions are a benchmark and a set of diagnostics rather than a single optimized model, and they map onto the three gaps above. First, we formulate PSD nowcasting as conditional generation, so that the mass–number ambiguity appears as ensemble spread rather than being averaged away, and compare six generative models on equal terms. Second, we compare integral and dynamical physical constraints under one training objective. Third, we evaluate the spectra on derived quantities and on transfer between sites. As the reference, we sample complete PSD sequences observed in the training period in the same season and at the same hour of day; this historical ensemble shows what could be estimated without any knowledge of the current PM and weather, so improving on it shows what those observations add. Our main findings are: (1) all six generative models have a lower continuous ranked probability score (CRPS) than gradient boosting at both sites; (2) the dynamical constraint lowers full-spectrum CRPS by 11.5 % and 5.5 % at the two sites, whereas either integral constraint alone raises it; (3) the GDE-constrained model has the lowest CRPS of the four learned models for both derived quantities at both sites; and (4) transferability depends on both the quantity and the direction of transfer, and boreal-to-urban transfer fails for ultrafine particle number. These findings are a proof of concept on a controlled two-station testbed. They show which modelling choices matter and where models trained on a single station fail, which is the information needed before scaling the approach to large, multi-station training data. Section 2 describes the observations and the task, Sect. 3 the model and evaluation, and Sect. 4 the results, organized by research question. Section 5 interprets the results, lists limitations and outlines future work.

Figure 1. PSD nowcasting as conditional generation. The same 24 h of PM and meteorology that condition the transformation of Gaussian noise also cover the generated hourly PSD: the target window is concurrent with the input record. Repeated noise draws give an ensemble for a fixed input. Generative integration time is distinct from the physical (clock) time of the measurements.
2.1 A boreal–urban station pair
We use SMEAR II at Hytytilä (61.85° N, 24.29° E) and SMEAR III at Kumpula, Helsinki (60.20° N, 24.96° E). Hytytilä is a boreal forest station where secondary particle formation and growth are prominent features of the particle population (Hari and Kulmala, 2005; Dal Maso et al., 2005). Kumpula is an urban background station near a major road, with local traffic contributions alongside regional aerosol (Järvi et al., 2009). The two stations therefore represent contrasting situations in which emissions and meteorology shape the observed particle mass and number concentrations. We chose them as a testbed, not as a representative sample of aerosol environments: their seven-year common record allows identical training and evaluation periods for all models, and their contrast provides an out-of-distribution test in each direction.
2.2 Data
The data set used in this study covers 1 January 2018–31 December 2024 at both stations, at hourly resolution. DMPS observations are averaged from native 10 min measurements. We retain the 50 archived diameter bins between 2.82 and 794 nm, without diameter interpolation. This grid resolves part of the nucleation range and the Aitken and accumulation ranges, and its limits define the support of every predicted PSD and derived quantity.
The upper limit of 794 nm has a direct consequence for mass. PM includes particles up to 2.5 m in aerodynamic diameter, which corresponds to a mobility diameter of about 2 m for a density of 1.5 g cm (Appendix C). Even the full DMPS range, which ends at 1000 nm, does not reach this size. The mass integrated from a predicted spectrum is therefore a resolved, partial mass that cannot be required to equal PM ; Sect. 3.2 explains how we use it only as a soft reference.
The model inputs are in-situ PM and eight ERA5 variables from the nearest grid cell: 2 m temperature and dewpoint, 10 m wind components, surface pressure, boundary-layer height, total precipitation and downward solar radiation (Hersbach et al., 2020). Additionally, a condensation particle counter (CPC) is used for one training constraint. PSDs are log-transformed and normalized per bin. The transformations, data checks and the unverified fitting period of the normalization are in Appendix A.
2.3 Nowcasting task
The task is a nowcast, not a forecast: the model estimates the PSD for the same hours as its inputs. For a window ending at hour , the model receives the PM and ERA5 record of those 24 hours, , and generates the PSD for the same 24 hours, (50 diameter bins by 24 hours). No PSD measurement is given to the model at any time. A 24 h window covers one full diurnal cycle of boundary-layer development, radiation and emissions, which strongly shape the PSD. Each example therefore requires 24 consecutive valid hours. Models are trained separately at each site and evaluated on a later period at that site and, without retraining, at the other site.
3 Methods
3.1 Conditional generation with flow matching
Flow Matching (FM) (Lipman et al., 2023) learns a velocity field that transports Gaussian noise to a PSD sequence , conditional on . During training, is sampled uniformly on , the intermediate state is , and the target velocity is :
Here is a generative time that indexes the integration from noise to data; it is distinct from the physical (clock) time of the measurements. At inference, 50 Euler steps integrate the learned field from a fresh Gaussian draw. Different draws give different PSD sequences for the same input, and eight draws form the ensemble. The network is a Transformer (Vaswani et al., 2017) that treats the 24 hourly spectra of a window as a sequence: each hour is embedded as one element, and self-attention lets the estimate for every hour draw on the inputs and spectra of all other hours. We chose this architecture because the PSD evolves through the day, so the spectrum at one hour is informative about its neighbours. The network has approximately parameters (Appendix B), and Fig. B1 illustrates the generation path.
3.2 Physical constraints
A generative objective does not by itself make the generated spectra obey aerosol physics. We therefore add soft physical penalties to the training objective. Physical relationships are defined for clean spectra, not for the partly noised intermediate states , so we evaluate them on the one-step clean-sample estimate , obtained by inverting the interpolation, after conversion to physical units. This estimate reuses the network output, so the penalties require no additional network evaluation. The total objective is
Near the noise end of the generative path , is little more than a guess, and penalizing it would mainly add noise to training. The factors and therefore down-weight the penalties there. The GDE term receives the steeper weight because it involves derivatives in time and size, which amplify any remaining noise. The two integral constraints ( and ) restrict spectral integrals; the dynamical constraint ( ) links neighbouring sizes and hours. Coefficients and numerical details are given in Appendix C.
3.2.1 Integral constraint 1: pseudo-mass consistency
Let be the estimated number concentration in diameter bin at hour , normalized by the logarithmic bin width , so that is the number concentration of particles in that bin. Assuming spherical particles of density , the mass resolved by the spectrum is
which is compared with the observed PM , , through a robust log-space discrepancy:
with T = 24 hours. The predicted spectrum covers only part of the size range sampled by the PM instrument, so exact agreement could only be reached by adding spurious mass within the resolved range. We therefore compare the two masses in logarithmic space, where a constant support mismatch becomes a constant offset, and use the Huber function, which is quadratic for small discrepancies and linear for large ones, so that this systematic mismatch cannot dominate the loss. Together with a finite weight, this imposes a soft reference rather than an equality. We call this term pseudo-mass consistency and label it “mass” in the tables. In the nowcast, the target window coincides with the input window, so is the same PM record that the model receives as input. The term is thus a self-consistency penalty between input and output.
3.2.2 Integral constraint 2: aerosol-number consistency
Mass constrains small particles only weakly, whereas total number is dominated by them. An independent measurement of total number can therefore constrain the part of the spectrum that mass resolves poorly. Let be the total number concentration measured by the CPC at hour , and let be the set of hours in the window with a valid CPC measurement. We compare the resolved number with the CPC record:
The CPC and DMPS have different detection ranges and responses, so their totals are closely related but not identical (log-space correlations of 0.988 and 0.963, median DMPS/CPC ratios 0.87 and 1.03 at the two sites; Appendix C).
3.2.3 Dynamical constraint: reduced general dynamic equation (GDE)
Aerosol dynamical processes, namely new particle formation, condensational growth, coagulation and deposition, change the particle population over time. Growth and coagulation in particular link neighbouring sizes and successive hours, a structure that the integral constraints cannot express. Atmospheric mixing is not an aerosol-dynamical process, but it also changes the population observed at a fixed station, so we include boundary-layer dilution as an additional term. We penalize the relative residual of a reduced GDE,
where is physical (clock) time in hours and stabilizes the division. The growth rate moves particles through size space, the coagulation sink is evaluated on the predicted PSD, absorbs unresolved sources and transport, and is the dilution rate from boundary-layer height . An auxiliary head reads only the conditioning and predicts growth and source terms together with a bounded log residual variance . The variance is needed because a single station cannot close the aerosol budget: on some days, advection of a different air mass dominates every local term, and the model should be able to down-weight such hours rather than be forced to balance them. The penalty is therefore the heteroscedastic Gaussian negative log-likelihood
in which the second term prevents the model from lowering the loss merely by inflating the variance. The equation is reduced: new particle formation enters only as a growth flux into the smallest resolved bin and through , deposition and the coagulation gain term are not represented explicitly, and can absorb these and other omitted processes. It therefore regularizes the generated evolution, but it does not close the aerosol budget at an open measurement site.
3.3 Comparison models and references
Generative models. The five comparison models span the main ways of learning a conditional distribution: iterative denoising, alternative transport couplings, guidance, one-step generation and energy-based modelling. A denoising diffusion model (Ho et al., 2020) reuses the FM backbone as a noise predictor. FM+OT replaces independent noise–data pairing with minibatch optimal-transport coupling (Tong et al., 2024). FM+CFG uses classifier-free guidance (Ho and Salimans, 2021), with the tabulated operating point at guidance scale w = 1. The Drifting Model (Deng et al., 2026) generates with one network evaluation, and Energy Matching (Balcerak et al., 2025) learns a scalar potential.
Deterministic models. Gradient boosting fits one histogram regressor per diameter bin, and a multilayer perceptron (MLP) predicts all values jointly. Both return one deterministic PSD per input, and so show what is gained or lost when the ambiguity is not represented.
Non-learning references. A month/hour climatology is the reference for the full spectrum. For the derived quantities, we use a deterministic seasonal template (mean PSD by season and UTC hour) and a probabilistic historical ensemble. Each member of the historical ensemble is a complete 24 h PSD sequence from the training period, matched to the target season and starting hour, so that it retains realistic dependence across bins and hours. It uses no or meteorology and therefore measures directly what the conditioning adds. All references are built from source-site training data only.
3.4 Evaluation design and fairness
Training ends at 2 November 2024, 00:00 UTC. The temporal holdout covers 2 November–31 December 2024 and contains 1417 hourly-stride windows per site. Table 1 lists the three evaluation populations. In the paired transfer test, a model trained at the other station, applied without retraining, and a locally trained model are scored on identical target-site windows, so their ratio isolates the cost of transfer. For a fair comparison, all learned models share the same inputs, target grid, training period and evaluation windows. Since the purpose is a controlled comparison of model families and constraints, we keep these settings fixed rather than tuning each model to its best achievable score on the test data; the reported scores therefore indicate relative performance under identical conditions, not the upper limit of any method.
Table 1. Evaluation populations. H and K denote Hytyiälä and Kumpula. All predictions cover the same 24 hours as their input record.
| Test | Scoring population | Question |
|---|---|---|
| Same-site temporal holdout | 1417 windows at each site; 2 November–31 December 2024 | Local skill on a later period (RQ1–RQ3) |
| Paired transfer | H-trained and K-trained models on the identical target-site holdout | Cost of transfer for each quantity (RQ4) |
| Extended full-spectrum transfer | All valid windows at the other site | Robustness over a longer period (Appendix E) |
3.5 Metrics
Table 2 summarizes the metrics. Each ensemble member is converted to physical units before scoring. For evaluated bin–hour pairs , indexed by window , the ensemble mean over members is , and the root mean square error over pairs is
The CRPS (Gneiting and Raftery, 2007) scores the whole ensemble; we use its finite-ensemble (fair) form
with and , averaged over all pairs. The first term penalizes distance from the observation; the second credits spread, so that spread alone cannot improve the score. For a deterministic prediction, CRPS equals the absolute error. The skill score relative to the historical ensemble is
Interval reliability uses the empirical 10th and 90th percentiles and :
The indicator function counts an observation when it lies inside the interval. A value , for example, means that only 60 % of observations fall inside a nominal 80 % interval. Block-bootstrap intervals resample 24 contiguous windows (Appendix D).
Table 2. Metrics, their interpretation and optimal values. RMSE and CRPS carry the units of the scored quantity.
| Metric | What it measures | Optimum |
|---|---|---|
| RMSE, Eq. (8) | Point error of the ensemble mean, weighting large concentration errors | 0 (lower is better) |
| corr. | Pearson correlation of log-spectra across bins and hours within a window, averaged over windows. | 1 |
| CRPS, Eq. (9) | Accuracy of the whole predictive distribution | 0 (lower is better) |
| CRPSS, Eq. (10) | Improvement over the historical ensemble | 1; 0 equals the reference |
| Fraction of observations inside the central 80 % interval | 0.80 | |
| Mean width of that interval; read with | Narrowest width at | |
| Brier score | Mean squared error of an event probability (Appendix F1) | 0 |
3.5.1 Derived atmospheric quantities
As motivated in the Introduction, we evaluate two quantities with contrasting diameter weighting. The first is the number concentration of ultrafine particles (UFP number) over the observed range 2.82–100 nm. Its upper bound follows the conventional definition of ultrafine particles as those smaller than 100 nm (World Health Organization, 2021); its lower bound is set by the DMPS grid. The second is the resolved condensation sink (Kulmala et al., 2001),

Figure 2. Generative models reproduce hour-to-hour spectral structure that deterministic and climatological estimates smooth out. Nowcast 24 h PSDs for one temporal-holdout day at Hyytiälä, compared with the observation (top left). Each generative panel shows a single ensemble member. Color is dN/dlog ; the vertical axis is mobility diameter and the horizontal axis is UTC hour.
where , is the vapor diffusion coefficient and the Fuchs–Sutugin correction. We use sulfuric-acid vapor properties, unit accommodation, 293.15 K and 101325 Pa for both predicted and observed PSDs, so that errors reflect the size distribution only. Number counts every particle equally, whereas the sink weights each particle by its diameter and a transition-regime correction, so that larger particles contribute more. Each ensemble member is integrated separately before scoring, which preserves the dependence across sizes.
4 Results
We first inspect generated spectra and full-spectrum scores (RQ1), then the effect of physical constraints (RQ2), the derived quantities (RQ3) and transfer (RQ4). Finally, we place the spectra in the context of a process model. Throughout, the aim is to compare model families and constraints under identical conditions and to identify where they fail.
4.1 RQ1: Generative ensembles give the best distributional skill, while gradient boosting remains competitive on point error
Before scoring, we check whether the generated spectra look like observed spectra. On a representative holdout day (Fig. 2), the FM variants reproduce the hour-to-hour movement of the dominant band and the abrupt change in the late afternoon. Gradient boosting and climatology return smooth bands that barely change through the day. The Drifting Model shows hour-

Hyytiälä — CRPS (95% CI)
Kumpula — CRPS (95% CI)
Figure 3. Generative ensembles have lower CRPS than gradient boosting at both sites, while point errors are similar. Top: RMSE of the ensemble mean (deterministic models supply a single prediction). Bottom: CRPS with 95 % block-bootstrap intervals. Lower is better.
to-hour striping, and the MLP reproduces the structure but exaggerates the small-particle band. Aggregated over the holdout, FM retains 83 % of the observed between-window standard deviation, whereas gradient boosting retains 58 % (Appendix D2).
Table 3 and Fig. 3 give the full scores. All six generative models have lower CRPS than gradient boosting and climatology at both sites. FM+CFG has the lowest CRPS among the unconstrained models, 126 cm at Hyytiälä and 421 cm at Kumpula, compared with 142 cm and 453 cm for plain FM and 172 cm and 663 cm for gradient boosting, respectively.
Point scores tell a more mixed story. At Hyytiälä, gradient boosting has the lowest RMSE (354 cm , against 389 cm for FM) and the highest correlation (0.862, against 0.820). This advantage is expected: gradient boosting minimizes the squared error in each bin and therefore returns the conditional mean, which is exactly what RMSE rewards. At Kumpula, FM+OT has the lowest RMSE (1427 cm ), and five of the six generative models are below gradient boosting (1571 cm ).
For the constraint and transfer experiments that follow, we retain plain FM as the base model. Guidance and optimal-transport coupling change the sampling and the training pairs, respectively, independently of the physical penalties, so they could be combined with the constraints later; using the plain model keeps the effect of each constraint isolated. The guidance trade-off is analysed in Appendix D4.
Table 3. Full-spectrum nowcast scores on the same-site temporal holdouts. corr. uses log-transformed spectra; CRPS and RMSE are in , with block-bootstrap intervals for CRPS. Best values are in bold.
| (a) Hyytiälä | |||
|---|---|---|---|
| Model | corr. ↑ | CRPS ↓ | RMSE ↓ |
| Climatology | 0.776 | 234 (195–274) | 442 |
| Gradient Boosting | 0.862 | 172 (144–204) | 354 |
| MLP | 0.783 | 246 (213–281) | 513 |
| Diffusion Model | 0.771 | 132 (110–158) | 382 |
| Drifting Model | 0.779 | 152 (127–180) | 425 |
| Energy Matching | 0.821 | 129 (110–152) | 376 |
| Flow Matching | 0.820 | 142 (118–171) | 389 |
| FM + OT | 0.822 | 146 (122–175) | 383 |
| FM + CFG | 0.826 | 126 (104–153) | 357 |
| (b) Kumpula | |||
|---|---|---|---|
| Model | corr. ↑ | CRPS ↓ | RMSE ↓ |
| Climatology | 0.889 | 782 (667–906) | 1710 |
| Gradient Boosting | 0.915 | 663 (575–762) | 1571 |
| MLP | 0.887 | 856 (774–946) | 1993 |
| Diffusion Model | 0.926 | 511 (412–628) | 1568 |
| Drifting Model | 0.888 | 535 (475–606) | 2059 |
| Energy Matching | 0.925 | 437 (375–508) | 1496 |
| Flow Matching | 0.929 | 453 (391–529) | 1509 |
| FM + OT | 0.932 | 442 (389–505) | 1427 |
| FM + CFG | 0.932 | 421 (366–488) | 1452 |
4.2 RQ2: A dynamical constraint improves the spectra; integral constraints alone do not
Table 4 shows that the form of the constraint matters more than its presence. The GDE constraint lowers CRPS from to () at Hyytiälä and from to () at Kumpula, and it also lowers the PSD RMSE and raises the correlation at both sites. The integral constraints have the opposite effect when used alone: pseudo-mass consistency raises CRPS to () at Hyytiälä and () at Kumpula, and number consistency raises it by at both sites. Combining them with GDE recovers part of this loss. Mass+GDE gives the lowest CRPS and RMSE at Kumpula ( and , respectively), whereas GDE alone remains best at Hyytiälä, and number+GDE does not reach the unconstrained CRPS at either site.
Within these formulations, therefore, constraining an integral is not enough to recover how the corresponding quantity is distributed across size and time. A mismatch in measurement support also explains why the integral constraints need care. The predicted spectrum ends at , whereas the instrument also samples larger particles, so forcing agreement between the two can push the spectrum in the wrong direction. At Hyytiälä, pseudo-mass consistency alone even raises the mass RMSE from to , while GDE alone lowers it to . Since the mass reference is the input itself (Sect. 3.2), these mass-RMSE values measure input–output consistency rather than independent accuracy. Number is better matched: CPC number correlates closely with DMPS-integrated number, although the median DMPS/CPC ratios of 0.87 and 1.03 show that the two instruments still differ (Sect. 3.2).
4.3 RQ3: Routine observations add information beyond historical spectra
A model can improve a bin-wise score without improving a derived quantity. We therefore compare ultrafine particle number and the condensation sink with the historical ensemble, which already contains realistic spectra and their seasonal variation (Fig. 4, Table 5). Every learned model matches or improves on this reference at both sites (CRPSS ; Table F1); the weakest case is gradient boosting, which only matches it for ultrafine particle number at Hyytiälä (CRPSS 0.00). FM+GDE has the
Table 4. Physical-constraint ablation on Flow Matching for the same-site temporal holdouts. CRPS and PSD RMSE are in cm; mass RMSE is in g m and measures consistency with the input PM. Best values are in bold.
| (a) Hyytiälä | ||||
|---|---|---|---|---|
| Model | corr. | CRPS | PSD RMSE | mass RMSE |
| Flow Matching | 0.821 | 141.9 | 388.5 | 0.19 |
| FM + mass | 0.808 | 157.8 | 399.6 | 0.22 |
| FM + GDE | 0.834 | 125.7 | 360.5 | 0.18 |
| FM + mass + GDE | 0.828 | 130.0 | 367.3 | 0.18 |
| FM + number | 0.820 | 170.2 | 433.0 | 0.20 |
| FM + number + GDE | 0.832 | 163.4 | 455.0 | 0.16 |
| (b) Kumpula | ||||
|---|---|---|---|---|
| Model | corr. | CRPS | PSD RMSE | mass RMSE |
| Flow Matching | 0.929 | 455.3 | 1515.9 | 1.18 |
| FM + mass | 0.917 | 528.3 | 1536.1 | 1.92 |
| FM + GDE | 0.934 | 430.5 | 1444.4 | 1.14 |
| FM + mass + GDE | 0.933 | 428.4 | 1430.0 | 0.77 |
| FM + number | 0.918 | 547.1 | 1577.0 | 1.28 |
| FM + number + GDE | 0.930 | 498.3 | 1567.8 | 1.36 |
lowest CRPS of the four learned models in all four site–quantity comparisons. Its CRPSS is 0.27 and 0.42 for ultrafine particle number and 0.83 and 0.82 for the condensation sink at Hyytiälä and Kumpula, respectively.
Most of the improvement comes from conditioning itself. For ultrafine particle number, the CRPS falls from 250 cm for the historical ensemble to 211 cm for FM at Hyytiälä, and from 1028 cm to 739 cm at Kumpula. GDE then lowers it further, to 181 cm (−14 %) and 599 cm (−19 %). The PM and meteorological record therefore carries size information beyond the season and hour of day.
The intervals are informative but too narrow. For ultrafine particle number, FM+GDE's mean 80 % interval is 391 cm wide at Hyytiälä and 1583 cm at Kumpula, against 1158 cm and 4070 cm for the historical ensemble, but it contains only 49 % and 52 % of the observations; for the condensation sink, coverage is 50 % and 49 %. Notably, the GDE constraint widens plain FM's intervals and raises its coverage for ultrafine particle number from 28 % to 49 % at Hyytiälä and from 29 % to 52 % at Kumpula. The constraint thus improves calibration as well as accuracy, although no learned model reaches the nominal 80 %.
4.4 RQ4: Transferability depends on both the quantity and the direction of transfer
A station without its own PSD archive would have to rely on a model trained elsewhere. Transfer between our two stations is the most demanding test in this benchmark, because each model has seen only one aerosol regime during training. We use it as a stress test that reveals where single-station training breaks down, not as an estimate of what a model trained on many stations could achieve. To measure the cost of transfer, we apply each model, without retraining, to the other site and divide its CRPS by that of the corresponding locally trained model on the same windows (Fig. 5). A ratio of one means that transfer costs nothing.
Urban to boreal. From Kumpula to Hyytiälä, the condensation sink degrades less than ultrafine particle number for all four learned models, with CRPS ratios of 1.2–2.5 against 2.7–6.1. Diffusion transfers best: its CRPS for the sink rises 1.48-fold, from 0.90 × 10 s to 1.33 × 10 s, while its CRPS for ultrafine particle number rises 2.74-fold, from 194 cm to 532 cm. Plain FM transfers worse on both counts, with a 6.07-fold degradation for ultrafine particle number and a 2.54-fold

Figure 4. Locally trained models add skill beyond the historical ensemble for both quantities, but their intervals remain too narrow. Top: CRPSS for ultrafine particle number and the resolved condensation sink; zero marks the historical ensemble and positive values indicate improvement. Bottom: central-80 % coverage, with the nominal 0.80 marked. Circles denote Hyytiälä and triangles Kumpula.
degradation for the sink. Good point accuracy after transfer does not imply good calibration: diffusion’s transferred coverage for the sink falls to 0.28, from 0.53 locally.
Boreal to urban. From Hyytiälä to Kumpula, the two quantities degrade by comparable amounts, with no consistent ordering between them, and this direction shows the more severe failure. For ultrafine particle number, every Hyytiälä-trained model is less skilful than the Hyytiälä-derived historical ensemble itself (CRPSS -0.07 to -0.36; Table F1c), and coverage collapses to 0.07–0.10. Plain FM’s CRPS for ultrafine particle number rises from 739 cm with local training to 1896 cm after transfer. In the example of Fig. E1, no transferred model reproduces the observed daytime enhancement of small particles at Kumpula. Condensation sink fares better: transferred FM+GDE has a CRPSS of +0.39, although its CRPS (3.26 × 10 s ) remains more than twice that of local FM+GDE (1.49 × 10 s ).
Effect of the constraint. GDE lowers FM’s transferred CRPS in all four direction–quantity cases, by 4–30 %, but it does not close the gap to local training in any of them. Skill scores against a transferred reference must also be read with care.
Table 5. Derived-quantity scores for local and transferred models on identical target-site windows. CRPS and central-80 % coverage (, nominal 0.80) are given for ultrafine particle (UFP) number and the condensation sink. Interval widths and CRPSS are in Table F1.
| (a) Hyytiälä target | ||||
|---|---|---|---|---|
| Model | UFP number | Condensation sink | ||
| CRPS | CRPS | |||
| Local training | ||||
| Gradient boosting | 250 | - | 1.73 | - |
| Diffusion | 194 | 0.53 | 0.90 | 0.53 |
| FM | 211 | 0.28 | 0.98 | 0.35 |
| FM + GDE | 181 | 0.49 | 0.83 | 0.50 |
| Historical ensemble | 250 | 0.69 | 4.80 | 0.55 |
| Kumpula-trained Hyytiälä | ||||
| Gradient boosting | 1378 | - | 2.08 | - |
| Diffusion | 532 | 0.21 | 1.33 | 0.28 |
| FM | 1281 | 0.05 | 2.49 | 0.11 |
| FM + GDE | 891 | 0.11 | 1.97 | 0.20 |
| Historical ensemble | 2010 | 0.05 | 11.33 | 0.23 |
| (b) Kumpula target | ||||
|---|---|---|---|---|
| Model | UFP number | Condensation sink | ||
| CRPS | CRPS | |||
| Local training | ||||
| Gradient boosting | 904 | - | 1.97 | - |
| Diffusion | 973 | 0.36 | 1.54 | 0.57 |
| FM | 739 | 0.29 | 1.74 | 0.34 |
| FM + GDE | 599 | 0.52 | 1.49 | 0.49 |
| Historical ensemble | 1028 | 0.56 | 8.44 | 0.54 |
| Hyytiälä-trained Kumpula | ||||
| Gradient boosting | 2294 | - | 6.26 | - |
| Diffusion | 1914 | 0.07 | 4.20 | 0.16 |
| FM | 1896 | 0.07 | 3.49 | 0.19 |
| FM + GDE | 1815 | 0.10 | 3.26 | 0.28 |
| Historical ensemble | 1693 | 0.22 | 5.33 | 0.73 |
For ultrafine particle number, the Kumpula-derived historical ensemble scores 2010 cm at Hyytiälä, against 250 cm for the local ensemble, so the large positive CRPSS in the urban-to-boreal direction partly reflects a weak reference rather than successful transfer. The paired ratio against local training avoids this ambiguity. Full-period spectra, fitted-component ratios and complete quantity diagnostics are given in Appendices E–G.
4.5 Comparison with the SOSAA-FP process model
To place the data-driven spectra in context, we compare them with SOSAA-FP, a one-dimensional model that explicitly represents chemistry and aerosol microphysics (Boy et al., 2011; Clusius et al., 2026). We use the SOSAA-FP runs of Clusius et al. (2026) for 1 March 2018, 02:00 UTC to 1 November 2018, 01:00 UTC (5880 hourly rows). Their 60-bin, 1.07–2000 nm grid contains our 50 diameters, so the spectra can be matched without interpolation. The matched windows are drawn from the stratified interpolation holdout, which shares observations with neighbouring training windows.
On 645 matched windows, FM has a correlation of 0.938 and an RMSE of 1002 cm, against a correlation of 0.715 and an RMSE of 2105 cm for SOSAA-FP (Table 6). The MLP has the lowest RMSE (867 cm). In two matched cases, SOSAA-FP underestimates concentrations across most sizes by about an order of magnitude, whereas FM follows the observed amplitude above about 10 nm (Figs. 6 and 7). This comparison comes with several caveats. The data-driven models were fitted to local DMPS records, whereas SOSAA-FP is a simulation driven by emissions, chemistry and meteorology. It can therefore diagnose processes and sources that the learned models cannot. The result shows only that routine observations reproduce the local spectrum more closely in this matched setting. The running-mean and seasonal diagnostic of Clusius et al. (2026) is given in Appendix H.
Ultrafine number
Condensation sink

Figure 5. Transfer costs more skill for ultrafine particle number than for the condensation sink from Kumpula to Hyytiälä, but not in the reverse direction. Points show transferred CRPS divided by the same model's locally trained CRPS on identical target-site windows. The dashed line at one denotes no loss; larger ratios indicate degradation. The horizontal axis is logarithmic.
Table 6. On matched 2018 windows at Hyytiälä, the learned models agree more closely with DMPS observations than SOSAA-FP does. Metrics use 645 windows and all 50 common diameter bins (2.82–794 nm); RMSE is in cm. The “vs SOSAA-FP” rows measure disagreement between models and are not skill scores.
| Metric | SOSAA-FP | Flow Matching | Diffusion Model | FM + CFG | MLP | FM + OT | Drifting Model | Energy Matching |
|---|---|---|---|---|---|---|---|---|
| Correlation vs observed | 0.715 | 0.938 | 0.868 | 0.924 | 0.957 | 0.950 | 0.849 | 0.913 |
| RMSE vs observed | 2105 | 1002 | 1531 | 1118 | 867 | 894 | 1378 | 1297 |
| Correlation vs SOSAA-FP | — | 0.754 | 0.729 | 0.760 | 0.743 | 0.744 | 0.662 | 0.740 |
| RMSE vs SOSAA-FP | — | 1763 | 971 | 1700 | 1865 | 1598 | 1317 | 1245 |
SOSAA-FP is a process-model simulation; the data-driven models were fitted to the local measurement record. Agreement with SOSAA-FP is therefore not a measure of accuracy.
5 Discussion
5.1 Interpretation
In summary, conditioning a flow-matching model on PM and meteorology yields spectra whose distribution, not only whose mean, tracks the observations, and a reduced GDE residual improves them further. Since this study is a benchmark on a two-station testbed, the value of these results lies less in the absolute scores than in what they reveal about model families,

Figure 6. In two matched cases, Flow Matching follows the observed spectral amplitude, whereas SOSAA-FP is about an order of magnitude lower. Hyytiälä, (a) 10 June 2018, 23:00 UTC, and (b) 12 August 2018, 10:00 UTC. Black: observed DMPS spectrum; salmon dashed: Flow Matching; red dashed: SOSAA-FP. Both use the common 2.82–794 nm interval.
constraints and failure modes. Three results call for interpretation: the different verdicts of RMSE and CRPS, the contrast between constraint types, and the dependence of transfer on quantity and direction.
Why ensembles beat regression on CRPS but not always on RMSE. Under the mass-number ambiguity, several distinct spectra are consistent with the same input. A squared-error regression returns their average, which RMSE rewards but which lacks the structure and spread of any single realization (Fig. 2). A generative ensemble spreads probability across the plausible spectra, which CRPS rewards. The two metrics therefore answer different questions. Gradient boosting's lower RMSE at Hyytiälä and the generative models' lower CRPS at both sites are consistent: the former is the better point estimate at that site, the latter the better description of what remains uncertain.
Why the dynamical constraint helps and the integral constraints do not. An integral constraint fixes one summary number and leaves many spectra that satisfy it. In the nowcast, the mass reference also duplicates information already given as input. When the resolved spectrum and the instrument do not sample the same size range, forcing agreement can distort the spectrum. The GDE residual instead constrains how neighbouring bins and hours relate to each other, and it also widens the too-narrow FM ensemble. These observations are consistent with a regularizing effect of the dynamics, but the evidence is indirect: the constrained runs also have more parameters and a longer training budget.
Why transferability depends on quantity and direction. Number and condensation sink weight the same spectrum differently. The sink is weighted towards larger particles, which tend to be regionally mixed and therefore shared between the two sites, whereas ultrafine particle number is dominated by the smallest particles, which reflect more local sources such as traffic at Kumpula and particle formation at Hyytiälä. We hypothesize that this explains why the sink transfers better from Kumpula

Figure 7. The same contrast holds through the day. Time-resolved PSDs for the cases of Fig. 6: (a–c) 10 June 2018 and (d–f) 12 August 2018. Within each row, panels show the observed DMPS distribution, SOSAA-FP and Flow Matching. Color gives on a common scale within each row.
to Hyytiälä. The boreal-to-urban failure is consistent with a missing source: the Hyytiälä record contains no analogue of the urban daytime small-particle enhancement, and a soft dynamical constraint cannot supply one. The present two-site comparison cannot separate the roles of emissions, formation, growth, transport and mixing, so these explanations remain hypotheses. A practical implication follows regardless: a PSD model should be judged by the quantity and uncertainty that its application needs, because full-spectrum correlation can remain high while the relevant integral degrades.
5.2 Limitations
Several limitations follow from the deliberate choice of a small, controlled testbed, and should be read in that light. The evidence rests on two stations, one late-year holdout of about 60 days and one training run per configuration, so the bootstrap intervals do not include training-run variability; repeated training and holdouts from other seasons would address this. Two stations are enough to compare model families under identical conditions and to expose failure under transfer, but not to show how far neural networks can generalize when trained on many aerosol regimes. That question requires large, multi-station training data and is the natural next step. Every learned ensemble is too narrow, with 80 % intervals containing about half of the observations locally and fewer after transfer, and eight members limit how finely quantiles can be resolved. Post-hoc calibration, larger ensembles and guidance selected on validation data rather than the exploratory test-set sweep (Appendix D4) are natural remedies. The fitting period of the shared PSD normalization has not been verified, so a scaling leak from test data is not yet ruled out, and quality flags were not applied (Appendix A). The high-number episode analysis contains only 0, 3, 29 and 0 qualifying days in the four settings, too few for reliable probability verification (Appendix F1).
The physical interpretation is also incomplete. The GDE gain cannot yet be attributed to the residual itself, because the constrained runs have an auxiliary head and a longer training budget, and the sulfuric-acid proxy in the growth term depends on , which is not among the stated inputs (Appendix C); capacity- and budget-matched controls are needed. The integral constraints use references with different measurement support, and in the nowcast the pseudo-mass reference is the input itself, so a size-resolved conversion between DMPS, and CPC support would be required to make them physically meaningful. Finally, the derived quantities are computed from the same DMPS spectra used for evaluation and so do not validate process physics independently, and the SOSAA-FP comparison uses windows that overlap training data and a single model configuration, so it cannot rank data-driven and process-based modelling in general.
6 Conclusions
We asked how much of the aerosol particle size distribution can be recovered from the concurrent PM and meteorological record. Treating this nowcast as conditional generation, we benchmarked six generative models and three physical constraints on a controlled two-station testbed, with the aim of identifying which modelling choices matter rather than proposing a single best model. Four findings stand out. (1) Generative ensembles give better distributional skill than deterministic and climatological estimates: all six generative models have lower CRPS than gradient boosting at both sites, although gradient boosting remains competitive on point error. (2) The form of a physical constraint matters: a reduced GDE lowers CRPS by 11.5 % and 5.5 % and widens the ensemble, whereas integral constraints on mass or number alone degrade the spectra. (3) The routine record adds information beyond historical spectra: FM+GDE has the lowest CRPS of the learned models for ultrafine particle number and the condensation sink at both sites, with skill scores of 0.27–0.83 against the historical ensemble, but its intervals contain only about half of the observations. (4) Transferability depends on the quantity and the direction: the condensation sink transfers better than ultrafine particle number from the urban to the boreal site, whereas boreal-to-urban transfer fails for ultrafine particle number. Local PSD nowcasting from routine observations is therefore feasible today, and the testbed has shown which ingredients are worth carrying forward.
These results raise the question of what would be required to nowcast PSDs at a station that measures only . First, and most importantly, the method should be scaled up: trained on large data sets from many stations that cover contrasting aerosol regimes, neural networks can be tested where their main strength lies, in learning from diverse data and generalizing to new domains and out-of-distribution conditions. The boreal-to-urban failure observed here, after training on a single station, is exactly the situation that multi-station training is designed to overcome. Second, calibrated uncertainty is a prerequisite for any use of the intervals. Third, training-derived climatology could be represented explicitly, for example by starting generation from a historical PSD template instead of pure noise. Fourth, source-sensitive predictors such as traffic or emission indicators could reduce the mass–number ambiguity directly. Finally, capacity-matched ablations would clarify how much of the constraint’s benefit is physical. These improvements are complementary to process models: data-driven nowcasts can extend the observational record, while process models remain necessary to explain it. The evaluation framework presented here can be used to measure progress along each of these axes.
Appendix A: Data preparation and evaluation splits
A1 Size grid and data assembly
The DMPS archives at both stations report 61 diameter bins between 1.00 and 1000 nm. We use a fixed 50-bin subset between 2.82 and 794 nm, excluding the nine smallest archived bins (1.00–2.51 nm) and the two largest (891 and 1000 nm), and we keep the archived bin centres without interpolation. Hourly values are means of the native 10 min measurements, each weighted equally. ERA5 variables are taken from the grid cell nearest to each station. After assembly, each station has 61 368 hourly records with complete PM , PSD and ERA5 values on a common time axis.
A2 Transformations
Particle concentrations span several orders of magnitude across bins and over time, so the model operates on log-transformed values. For each bin, the concentration n is transformed to and then scaled linearly to the interval ,
with fixed bin-wise constants and shared by both stations. The same scaling therefore applies at the training site and at the transfer target. Values outside the scaled range are kept rather than clipped. To return to physical units, the scaling is inverted and is applied after negative values of are set to zero, which guarantees non-negative concentrations. PM is transformed with , and positive, strongly skewed meteorological variables are also log-transformed.
A3 Examples and splits
An example is a 24 h window of inputs together with the PSD of the same 24 hours (Sect. 2). Windows start at every hour, so consecutive windows overlap by 23 hours, and a window is used only if all 24 hours are valid. Missing hours are kept as gaps on the time axis rather than removed, so that every window spans exactly 24 consecutive clock hours.
The data are split in time. All training windows end before 2 November 2024, 00:00 UTC, and the temporal holdout consists of the 1417 windows that start on or after this cutoff (60 days, 2 November–31 December 2024). Before the cutoff, 10 % of the eligible windows (6048 per station), stratified by month and hour of day, form an interpolation split, and the remaining 53 857 windows per station are used for training. Because the interpolation windows overlap with neighbouring training windows by up to 23 hours, the interpolation split measures how well a model reproduces the training period, not its skill on unseen periods. We use it only for the diagnostics in Appendix D2 and for the matched comparison with SOSAA-FP (Sect. 4.5); all skill statements in the main text refer to the temporal holdout. No separate validation set or early stopping is used.
Appendix B: Generative models and baselines
B1 Flow matching
Flow matching connects a sample of standard Gaussian noise and a data sample by the straight path
and trains the network to predict the velocity from the intermediate state (Eq. 1). Averaged over all pairs that pass through a given state, the regression target becomes the velocity of a transport that carries the whole noise distribution onto the conditional distribution of PSDs (Lipman et al., 2023; Liu et al., 2023). A new sample is generated by integrating this velocity field from a fresh noise draw. We use the explicit Euler scheme with K steps of size ,
with (Appendix I). The integration is deterministic for a given starting point, so all variability within an ensemble comes from the different noise draws . Figure B1 shows how an initially random field is resolved into a coherent spectrum along this path.
B2 Network architecture
The velocity network is a Transformer (Vaswani et al., 2017) that represents a 24 h window as a sequence of 24 hourly elements. For each hour, the current 50-bin state and the inputs of that hour are projected into a common feature space and added, and a learned position embedding identifies the hour within the window. Self-attention layers then exchange information between all hours. The generative time enters through adaptive layer normalization, which rescales the features of every layer according to ; the network can therefore behave differently near the noise end and near the data end of the path. A final projection maps each hour back to 50 bins. The network has about trainable parameters. The diffusion model, the classifier-free-guidance variant and the optimal-transport variant use the same network, so their differences reflect the generative objective rather than the architecture. Training settings are provided with the code (see Code availability); for interpreting the comparisons, the relevant difference is that plain FM, diffusion, FM+CFG and the MLP were trained for 200 epochs, whereas FM+OT, the Drifting Model, Energy Matching and all constrained FM variants were trained for 400 epochs.
B3 Comparison generative models
Diffusion. A denoising diffusion model (Ho et al., 2020) corrupts a data sample y gradually with Gaussian noise, , where decreases from one to nearly zero over the noising steps following a linear schedule. The network is trained to predict the added noise , and samples are generated by reversing the corruption step by step, adding fresh noise at each step. Unlike FM, the sampling path is stochastic.
Optimal-transport coupling (FM+OT). Standard FM pairs noise and data samples at random, so the straight paths of different pairs can cross. FM+OT instead pairs the samples within each training batch by solving an assignment problem that minimizes the total squared distance between paired samples (Tong et al., 2024). The resulting paths are shorter and cross less often, which can make the learned velocity field smoother.
Classifier-free guidance (FM+CFG). During training, the conditioning c is replaced by a learned null input for 15 % of the examples, so that one network learns both the conditional and the unconditional velocity (Ho and Salimans, 2021). At sampling time, the two are combined as
A guidance scale recovers ordinary conditional sampling, strengthens the influence of the inputs, and moves the samples towards the unconditional distribution, which widens the ensemble. The tables use ; the effect of is shown in Appendix D4.
Drifting Model. The Drifting Model (Deng et al., 2026) learns a generator that maps noise to a sample in a single network evaluation. During training, the distribution of generated samples is moved step by step towards the data distribution, so that no integration is needed at inference.
Energy Matching. Energy Matching (Balcerak et al., 2025) learns a scalar potential whose negative gradient defines the transport from noise to data. Because the potential does not depend on the generative time, the network does not receive t as an input. We train it with its flow-based objective only; the additional contrastive refinement stage of the method was not used, because it was unstable on these data.
B4 Deterministic baselines and non-learning references
Gradient boosting fits one regression model per diameter bin. Each hour of a training window is treated as a separate sample, with the hour of day encoded by its sine and cosine, so the model can adapt its estimate to the time of day but does not represent dependence between bins or between hours. The MLP is a fully connected network that maps the complete 24 h input window to all outputs at once. Both are trained on squared error and return a single PSD per input.
The month/hour climatology is the mean training-period PSD for each of the 288 combinations of calendar month and hour of day; each target hour is assigned the value of its own month and hour. The seasonal template is defined in the same way using seasons instead of months. The historical ensemble consists of eight complete 24 h PSD sequences drawn from the training period of the source station, each starting in the same season and at the same hour of day as the target window. Because whole sequences are used, every member retains the observed dependence across bins and hours. The historical ensemble ignores the current inputs and therefore shows what can be estimated from the training archive alone.

Figure B1. Flow Matching resolves Gaussian noise into a coherent 24 h spectrum during integration. Ensemble-mean state along the Euler integration of for one temporal-holdout sample (10 December 2024), from an almost purely Gaussian field at step 10 to the generated distribution at step 50, alongside the observation. Color is ; the vertical axis is mobility diameter.
Appendix C: Physical constraints
C1 Resolved mass and number
The resolved mass and number (Eqs. 3 and 5) are sums over the 50 bins of the predicted PSD, using logarithmic bin widths and a constant particle density . PM is defined by the aerodynamic diameter, whereas the DMPS sizes particles by their electrical mobility. For spherical particles, the two diameters are approximately related by with , neglecting shape and slip corrections. The PM cut therefore corresponds to a mobility diameter of about , well above the 794 nm upper limit of the grid. All predicted bins thus lie inside the PM size range, but the mass between 794 nm and about is missing from the resolved mass, which is why the mass term is used only as a soft reference.
Both integral constraints compare logarithms of the resolved and the measured quantity through the Huber function,
where u is the difference of the two logarithms. In logarithmic space, a constant multiplicative mismatch, such as the missing mass above 794 nm, becomes a constant offset, and the linear branch of the Huber function prevents such systematic offsets from dominating the gradient. The reference scales and in Eqs. (4) and (5) make the logarithms well defined at zero concentration, and negative reference values, which can arise from instrument noise, are set to zero. The number constraint is evaluated only in hours with a valid CPC measurement.
Each physical term is weighted so that its initial magnitude is comparable to that of the FM loss; for the mass term, this gives , and the number and GDE weights were set by the same rule. A mass weight of 1.0 led to a degenerate solution that satisfied the mass constraint at the expense of a realistic spectrum, which illustrates why the mass term must remain soft.
The CPC and the DMPS measure closely related but not identical quantities. Over the full record, their log-transformed total number concentrations correlate with Pearson at Hyytiälä (59 689 hours with both measurements) and at Kumpula (57 424 hours), with median DMPS/CPC ratios of 0.87 and 1.03, respectively. Possible contributors to the differences include particles below the DMPS lower limit, which the CPC counts, and differences in detection efficiency and sampling losses (Wiedensohler et al., 2012), which the number constraint does not model.
C2 Condensation and coagulation sinks
The condensation sink (Eq. 12) is the rate at which a condensable vapor is lost to the particle population (Kulmala et al., 2001). The Fuchs–Sutugin correction accounts for the transition between the continuum regime, where vapor diffuses to large particles, and the free-molecular regime of small particles,
where is the mean free path of the vapor molecules and the accommodation coefficient, set to one. For small particles, grows approximately with , and for large particles approximately with , so the sink is weighted towards larger particles. The coagulation sink of a particle of diameter d,
is its loss rate by coagulation with the existing particles, where K is the Brownian coagulation kernel (Kulmala et al., 2001; Seinfeld and Pandis, 2016) and is the number concentration in bin i. Both sinks are evaluated at fixed reference conditions (293.15 K, 101325 Pa) for predicted and observed spectra alike, so that differences between them reflect the size distribution only.
C3 Reduced general dynamic equation
For a size distribution at a fixed station, the continuity equation underlying the GDE constraint is
where is physical (clock) time. The second term on the left describes condensational growth as a flux through size space with velocity in . On the right, collects sources and transport, the coagulation term removes particles that collide with the existing population, and dilutes the population when the boundary layer of height grows. The equation is reduced in three respects: coagulation enters only as a loss, not as a gain at larger sizes; deposition is not represented explicitly; and new particle formation appears only as the growth flux into the smallest resolved bin. The source term S is unconstrained in sign and can absorb these omitted processes, as well as the advection of different air masses past the station.
The residual of Eq. (C4) is evaluated on the predicted spectrum (Eq. 6). Time derivatives are computed by finite differences over the 24 hourly values, central in the interior and one-sided at the first and last hour, and size derivatives by upwind differences in , which follow the direction of growth. At the lower edge of the grid, the incoming flux is set by the growth velocity of the first bin; it represents growth into the observed range rather than a nucleation rate. All rates are expressed per hour. The growth rate and the source term are predicted by an auxiliary network head from the conditioning only, so that they do not inherit noise from the intermediate generative state. The growth rate is constrained to be non-negative and is informed by a sulfuric-acid proxy proportional to concentration times radiation divided by the condensation sink (Petäjä et al., 2009); the dependence of this proxy on , which is not among the model inputs, is discussed in Sect. 5. The head also predicts the log residual variance of Eq. (7), which is bounded to , i.e. to variances between and , so that the model can neither ignore a residual entirely nor overweight it without limit. Because and are flexible, a low residual shows consistency with Eq. (C4) but does not uniquely identify the growth or source rates.
C4 Coupling the constraints to flow matching
During training, the network sees partly noised states , whereas the physical relationships apply to clean spectra. Inverting the straight path of Eq. (B1) gives the clean-sample estimate implied by the current velocity prediction,
which equals exactly when the predicted velocity is correct. The constraints are evaluated on after conversion to physical units, and their gradients flow back into . Near the noise end ( ), is an extrapolation from an almost random state, so the weights and of Eq. (2) suppress the constraints there; the GDE term, which contains derivatives that amplify noise, receives the steeper weight. The constraints act only on the training objective; generation at inference proceeds exactly as for unconstrained FM. All physical ablations use FM as the base model, and every constrained variant uses this time weighting.
Appendix D: Evaluation metrics and diagnostics
D1 Scores and their aggregation
For generative models, point scores (RMSE and correlation) use the ensemble mean. The correlation is computed for each window on the log-transformed spectrum, treating its values as one vector, and then averaged over windows. It measures agreement in spectral shape and temporal evolution, and it can be high simply because the typical shape of the PSD persists from window to window.
The CRPS of Eq. (9) uses the fair estimator for a finite ensemble of M = 8 members, which corrects the tendency of the ordinary estimator to penalize small ensembles; for deterministic predictions (M = 1), the pairwise term vanishes and the
CRPS reduces to the absolute error. The CRPS scores each bin and hour separately and therefore does not test whether the dependence between bins and hours is realistic.
Coverage is computed from the empirical 10th and 90th percentiles of the eight members. With eight members, these percentiles are coarse, so coverage values should be read as approximate. Coverage can be aggregated over bins in two ways: Table D1 reports the median of the per-bin coverage (0.454 for FM), whereas the guidance sweep in Appendix D4 reports the mean (0.528 for FM). The rank of an observation within its ensemble counts the members that lie strictly below it; for a calibrated ensemble, all ranks are equally likely. The spread–skill ratio is the mean ensemble standard deviation divided by the RMSE of the ensemble mean; values near one indicate an ensemble whose spread matches its error, and values below one indicate an ensemble that is too narrow.
Confidence intervals for the mean CRPS use a block bootstrap with 1000 replicates. Because consecutive windows overlap, the data are resampled in blocks of 24 consecutive windows, and the 2.5th and 97.5th percentiles of the resampled means form the 95 % interval. These intervals describe sampling uncertainty over windows, not variation between training runs. Ensemble members are drawn anew in each evaluation, so two evaluations of the same trained model differ slightly, as for FM in Tables 3 and 4 (CRPS of 142 and 141.9 cm ).
D2 Interpolation, variability and calibration
Three diagnostics describe how much of the observed variability a model reproduces. The standard-deviation ratio compares the standard deviation of the predicted and observed spectra across windows. The texture ratio compares their bin-to-bin variability within a window, which measures how much fine spectral structure is retained. The temporal correlation is the correlation between the predicted and observed time series of total number concentration. For generative models, all three use the ensemble mean, which is expected to be smoother than any single observation, so ratios below one partly reflect averaging rather than model deficiency.
On the overlapping interpolation split, the MLP reaches a correlation of 0.95, a value that reflects the overlap with training windows rather than skill on new periods (Figs. D1 and D2). On the temporal holdout, FM retains standard-deviation and texture ratios of 0.83 and 0.75, compared with 0.58 and 0.50 for gradient boosting (Table D1, Fig. D3). The rank histograms of all generative models depart from uniformity (Fig. D4), indicating ensembles that are too narrow, conditionally biased, or both.
D3 Generative objectives and small-particle errors
The generative objectives trade different aspects of skill. At Hyytiälä, optimal-transport coupling slightly improves the correlation (from 0.820 to 0.822) and the RMSE (from 389 cm to 383 cm ) of FM but worsens its CRPS (from 142 cm to 146 cm ), and the one-step Drifting Model reaches a CRPS of 152 cm and an RMSE of 425 cm at a fraction of the sampling cost. No objective is best in accuracy, coverage and cost at once.
Errors in the smallest bins are of particular interest because these bins carry the signature of new particle formation. We therefore examine the ten smallest bins (2.82–7.94 nm) separately (Fig. D5, Table D2). Windows whose maximum observed

Figure D1. On the overlapping interpolation split, all learned models reproduce the observed structure closely. Illustrative Hyytiälä example. The first panel is the observation; subsequent panels show one draw from each generative model or the deterministic prediction. Color is ; the vertical axis is mobility diameter and the horizontal axis is UTC hour.
(a) Split comparison

(b) CRPS on the extrapolation split
Figure D2. Scores on the overlapping interpolation split are not estimates of temporal skill. Hyytiälä. (a) Mean correlation of log-transformed spectra on the interpolation split and temporal holdout; lines connect the same model. (b) Temporal-holdout CRPS with 95 % block-bootstrap intervals; the dashed line denotes climatology.

Figure D3. Flow Matching preserves more of the observed PSD variability than gradient boosting. Temporal holdout, Hytytilä. (a) Ratio of predicted to observed standard deviation across windows and (b) ratio of predicted to observed within-window spectral texture; unity is ideal. (c) Taylor diagram combining the standard-deviation ratio (radius) with temporal correlation (angle); the black star marks the observation. Generative models use the ensemble mean.
Table D1. Distribution diagnostics for the Hytytilä temporal holdout. Variability ratios use the ensemble mean. Coverage is the median across bins of central-80 % interval coverage (nominal 0.80); definitions are in Appendix D.
| Model | std. ratio | texture ratio | coverage | temporal corr. |
|---|---|---|---|---|
| Flow Matching | 0.83 | 0.75 | 0.45 | 0.48 |
| FM + OT | 0.71 | 0.66 | 0.46 | 0.41 |
| FM + CFG | 0.86 | 0.75 | 0.59 | 0.51 |
| Diffusion Model | 0.44 | 0.53 | 0.41 | 0.58 |
| MLP | 1.07 | 1.05 | n/a | 0.00 |
| Gradient Boosting | 0.58 | 0.50 | n/a | 0.00 |
| Drifting Model | 0.43 | 0.52 | 0.65 | 0.31 |

Figure D4. No generative ensemble is calibrated. Ensemble rank histograms on the temporal holdout. Uniform ranks are expected for exchangeable observations and members (dashed line). A U-shape can reflect under-dispersion or a mixture of conditional biases; a dome indicates over-dispersion. Coverage is given in Table D1.
concentration in these bins reaches at least the 75th percentile of the holdout form a peak group (356 of 1417 windows, 25.1 %); the remaining windows form the background group. Errors concentrate between 11 and 17 UTC, a period selected by inspecting the holdout errors, so this analysis is descriptive. FM has the lowest RMSE in the peak group (188.1 cm, against 189.9 cm for gradient boosting), whereas gradient boosting has the lowest RMSE in the background group (63.6 cm). The peak group is defined by concentration alone and does not identify new particle formation events.
Table D2. Diurnal and smallest-bin peak-window errors at Hyytiälä for the ten smallest resolved bins (2.82–7.94 nm), averaged over 11–17 UTC. Peak windows are the top quartile by smallest-bin amplitude ( of 1417). Bias and RMSE are in cm.
| Model | bias | bg. RMSE | peak RMSE | ratio |
|---|---|---|---|---|
| Flow Matching | 18.8 | 111.0 | 188.1 | 1.69 |
| FM + OT | -11.4 | 99.0 | 202.1 | 2.04 |
| Gradient Boosting | -50.4 | 63.6 | 189.9 | 2.98 |
| Diffusion Model | 71.7 | 143.2 | 200.8 | 1.40 |

Figure D5. Errors in the smallest bins concentrate around midday for every model. Exploratory diagnostics for the ten smallest resolved bins (2.82–7.94 nm) at Hyytiälä. (a) Signed bias by UTC hour; the 11–17 UTC window was selected by inspecting these errors. (b) Background and peak-window RMSE; peak windows reach at least the holdout 75th-percentile amplitude (n = 356 of 1417). Values are in Table D2.
D4 Guidance trade-off
The guidance scale w of FM+CFG controls how strongly the samples follow the inputs, and therefore how wide the ensemble is (Fig. D6). At w = 1, FM+CFG improves on plain FM (CRPS of 126 cm against 142 cm ) but remains too narrow, with a mean coverage of 0.53. Reducing w to 0.25 widens the ensemble, raising the coverage to 0.63 and the spread–skill ratio to 0.60, at the cost of a higher CRPS (138 cm ). Increasing w to 2 narrows it, and the coverage drops to 0.41. The lowest CRPS of the sweep, 123 cm , occurs at w = 0.75 and is practically equal to that at w = 0.5. Because the sweep was evaluated on the holdout, it was not used to choose the reported operating point w = 1; selecting w in an application would require separate validation data.
Appendix E: Extended spatial transfer
The paired tests in Sect. 4.4 score transferred and locally trained models on the same 60-day holdout. As a complementary test over a longer period, Table E1 applies each model trained at one station, without retraining, to all valid windows at the other station. Because these windows cover a different period from the local holdouts, the scores in this appendix should not be compared directly with those in Table 3. Absolute errors are larger at Kumpula partly because its concentrations are higher.
In this longer test, diffusion has the highest correlation in both directions (0.792 at Kumpula and 0.689 at Hyytiälä) and the lowest CRPS and RMSE in the Kumpula-to-Hyytiälä direction (444.4 cm and 1188.6 cm , respectively). In the Hyytiälä-to-Kumpula direction, the Drifting Model has the lowest CRPS (1174.9 cm ) and FM+CFG the lowest RMSE (2494.4 cm ).
(a) Point accuracy vs. guidance scale

(b) Calibration vs. guidance scale
Figure D6. Guidance scale trades CRPS against interval coverage. Classifier-free-guidance sweep for FM+CFG on the Hyytiälä temporal holdout. (a) CRPS and correlation; (b) mean 80 % interval coverage and spread/skill ratio against the guidance scale w. w = 1 (dotted line) is plain conditional sampling; w < 1 blends towards the unconditional distribution.
Energy Matching occasionally produces extremely large samples under transfer. Its RMSE, which squares these values, is therefore not reported in either direction, and in the Kumpula-to-Hyytiälä direction its CRPS is also numerically unreliable and is omitted.
The physical constraints behave as in the local tests (Table E2). From Hyytiälä to Kumpula, GDE lowers the CRPS of FM from 1204.7 cm to 1188.9 cm , and number+GDE gives the lowest value (1174.0 cm ), at a lower correlation than GDE alone (0.723 against 0.732). In the reverse direction, GDE raises the correlation from 0.660 to 0.667 and lowers the CRPS from 830.8 cm to 732.9 cm ; mass+GDE gives a similar 732.4 cm . These improvements are modest and do not remove the component discrepancies described in Appendix G.
Appendix F: Derived quantities and episode verification
The derived quantities of Sect. 4.3 are computed separately for every ensemble member before scores are calculated, so the predicted distribution of each quantity retains the dependence between bins. The ultrafine particle number covers 2.82–100 nm, and the condensation sink uses Eq. (12) at the reference conditions of Appendix C2. Table F1 gives the full scores for the four evaluation settings: the two local holdouts and the two transfer directions, all on the same target-site windows. The seasonal template and the historical ensemble are always built from the training data of the source station. A positive CRPSS therefore means an improvement over what the source archive alone would provide, not over a locally trained model; Fig. F1 summarizes skill and coverage.

Figure E1. No Hyytiälä-trained model reproduces the urban daytime small-particle enhancement at Kumpula. Zero-shot application to SMEAR III for one day, compared with the observation (top left). Axes and color scale are as in Fig. 2.
Table E1. Cross-site (zero-shot) full-spectrum scores over all valid target-site windows. Correlation uses log-transformed spectra; CRPS and RMSE are in . RMSE is not reported for Energy Matching in either direction because it is dominated by rare, extremely large samples. In the Kumpula-to-Hyytiälä direction, Energy Matching's CRPS is also omitted (see text). Best values are in bold.
| (a) Hyytiälä-trained Kumpula | |||
|---|---|---|---|
| Model | corr. | CRPS | RMSE |
| Climatology | 0.714 | 1507.2 | 2705.8 |
| Gradient Boosting | 0.701 | 1387.1 | 2602.9 |
| MLP | 0.658 | 1399.4 | 2689.4 |
| Diffusion Model | 1228.5 | 2547.3 | |
| Drifting Model | 0.748 | 2515.3 | |
| Energy Matching | 0.756 | 1221.3 | |
| Flow Matching | 0.724 | 1204.7 | 2503.5 |
| FM + OT | 0.713 | 1253.0 | 2542.6 |
| FM + CFG | 0.723 | 1193.5 | |
| (b) Kumpula-trained Hyytiälä | |||
|---|---|---|---|
| Model | corr. | CRPS | RMSE |
| Climatology | 0.670 | 795.3 | 1222.1 |
| Gradient Boosting | 0.679 | 999.2 | 1505.6 |
| MLP | 0.655 | 1267.7 | 2486.4 |
| Diffusion Model | |||
| Drifting Model | 0.649 | 697.8 | 2108.6 |
| Energy Matching | 0.662 | ||
| Flow Matching | 0.660 | 830.8 | 1945.4 |
| FM + OT | 0.667 | 820.9 | 1830.3 |
| FM + CFG | 0.660 | 757.7 | 1843.8 |
Table E2. Physical-constraint ablation under zero-shot transfer, over all valid target-site windows. Columns follow Table 4, omitting PSD RMSE; CRPS is in and mass RMSE in . These periods differ from the local temporal holdouts and the paired tests. Best values are in bold.
| (a) Hyytiälä-trained Kumpula | |||
|---|---|---|---|
| Model | corr. | CRPS | mass RMSE |
| Flow Matching | 0.724 | 1204.7 | 1.29 |
| FM + mass | 0.696 | 1255.8 | 1.32 |
| FM + GDE | 1188.9 | ||
| FM + mass + GDE | 0.728 | 1185.9 | |
| FM + number | 0.702 | 1227.1 | 1.26 |
| FM + number + GDE | 0.723 | ||
| (b) Kumpula-trained Hyytiälä | |||
|---|---|---|---|
| Model | corr. | CRPS | mass RMSE |
| Flow Matching | 0.660 | 830.8 | 1.78 |
| FM + mass | 0.664 | 927.3 | 2.10 |
| FM + GDE | 0.667 | 732.9 | 1.56 |
| FM + mass + GDE | 0.668 | 732.4 | |
| FM + number | 0.665 | 913.6 | 2.32 |
| FM + number + GDE | 817.1 | 1.29 | |
F1 Sustained high-number episodes
An ensemble can also provide probabilities of events. As an example, we define a sustained high-number episode for a 24 h sequence by its largest 3 h running mean of ultrafine particle number, , and call the window an event if exceeds a threshold . The threshold is the 90th percentile of in the training data of the source station and is kept unchanged under transfer. The predicted event probability is the fraction of ensemble members whose exceeds , and its accuracy is measured by the Brier score, the mean squared difference between predicted probability and observed outcome (Brier, 1950). To avoid counting the same episode in many overlapping windows, we use one window per day, giving 60 daily cases per setting; consecutive days can still be correlated, and the one-day bootstrap blocks used for the intervals do not account for longer dependence. The event is a statistical definition, not a classification of new particle formation and not a health threshold.
The holdout periods contain few events. At Hyytiälä (threshold ) no day qualifies, and at Kumpula (threshold ) only 3 of 60 days do. Under transfer, the Hyytiälä threshold is exceeded on 29 of 60 days at Kumpula, whereas the Kumpula threshold is never exceeded at Hyytiälä, so a percentile threshold does not keep its rarity in a new environment. Near-zero Brier scores for samples without events do not show that events can be detected. Kumpula's local scores (0.031–0.067) rest on three events and cannot support a ranking, and in Hyytiälä-to-Kumpula transfer, scores of 0.454–0.484 are hardly better than always predicting no event (Brier score ). Table F2 and Fig. F2 document the available sample; reliable verification of event probabilities requires longer holdout periods.
Appendix G: Fitted size components
To see which part of the spectrum is lost under transfer, we describe each observed and predicted spectrum by three log-normal components (Hussein et al., 2005),
Table F1. Derived-quantity scores on paired target-site temporal holdouts: observed-range ultrafine particle (UFP) number and the resolved condensation sink. CRPSS is relative to the source-training historical ensemble (“probabilistic template”); bold marks the best CRPSS among the four learned models in each block. Deterministic predictions have no interval coverage or width. Unlike Tables E1 and E2, transfers here use the same target windows as the local models.
| (a) Hyytiälä holdout | ||||
|---|---|---|---|---|
| Model | CRPS | Cov80% | Width80% | CRPSS |
| UFP number (2.82–100 nm), | ||||
| Gradient Boosting | 250 | - | - | +0.00 |
| Diffusion Model | 194 | 0.53 | 521 | +0.22 |
| Flow Matching | 211 | 0.28 | 249 | +0.15 |
| FM + GDE | 181 | 0.49 | 391 | +0.27 |
| Seasonal template | 345 | - | - | -0.38 |
| Probabilistic template | 250 | 0.69 | 1158 | - |
| Condensation sink, | ||||
| Gradient Boosting | - | - | +0.64 | |
| Diffusion Model | 0.53 | +0.81 | ||
| Flow Matching | 0.35 | +0.80 | ||
| FM + GDE | 0.50 | +0.83 | ||
| Seasonal template | - | - | +0.09 | |
| Probabilistic template | 0.55 | - | ||
| (c) Hyytiälä-trained Kumpula | ||||
|---|---|---|---|---|
| Model | CRPS | Cov80% | Width80% | CRPSS |
| UFP number (2.82–100 nm), | ||||
| Gradient Boosting | 2294 | - | - | -0.36 |
| Diffusion Model | 1914 | 0.07 | 596 | -0.13 |
| Flow Matching | 1896 | 0.07 | 324 | -0.12 |
| FM + GDE | 1815 | 0.10 | 500 | -0.07 |
| Seasonal template | 2321 | - | - | -0.37 |
| Probabilistic template | 1693 | 0.22 | 1158 | - |
| Condensation sink, | ||||
| Gradient Boosting | - | - | -0.17 | |
| Diffusion Model | 0.16 | +0.21 | ||
| Flow Matching | 0.19 | +0.35 | ||
| FM + GDE | 0.28 | +0.39 | ||
| Seasonal template | - | - | -0.45 | |
| Probabilistic template | 0.73 | - | ||
| (b) Kumpula holdout | ||||
|---|---|---|---|---|
| Model | CRPS | Cov80% | Width80% | CRPSS |
| UFP number (2.82–100 nm), | ||||
| Gradient Boosting | 904 | - | - | +0.12 |
| Diffusion Model | 973 | 0.36 | 1110 | +0.05 |
| Flow Matching | 739 | 0.29 | 1088 | +0.28 |
| FM + GDE | 599 | 0.52 | 1583 | +0.42 |
| Seasonal template | 1198 | - | - | -0.17 |
| Probabilistic template | 1028 | 0.56 | 4070 | - |
| Condensation sink, | ||||
| Gradient Boosting | - | - | +0.77 | |
| Diffusion Model | 0.57 | +0.82 | ||
| Flow Matching | 0.34 | +0.79 | ||
| FM + GDE | 0.49 | +0.82 | ||
| Seasonal template | - | - | +0.06 | |
| Probabilistic template | 0.54 | - | ||
| (d) Kumpula-trained Hyytiälä | ||||
|---|---|---|---|---|
| Model | CRPS | Cov80% | Width80% | CRPSS |
| UFP number (2.82–100 nm), | ||||
| Gradient Boosting | 1378 | - | - | +0.31 |
| Diffusion Model | 532 | 0.21 | 806 | +0.74 |
| Flow Matching | 1281 | 0.05 | 686 | +0.36 |
| FM + GDE | 891 | 0.11 | 1053 | +0.56 |
| Seasonal template | 1474 | - | - | +0.27 |
| Probabilistic template | 2010 | 0.05 | 4070 | - |
| Condensation sink, | ||||
| Gradient Boosting | - | - | +0.82 | |
| Diffusion Model | 0.28 | +0.88 | ||
| Flow Matching | 0.11 | +0.78 | ||
| FM + GDE | 0.20 | +0.83 | ||
| Seasonal template | - | - | +0.17 | |
| Probabilistic template | 0.23 | - | ||
where is the number concentration, the geometric mean diameter and the geometric standard deviation of component . The parameters are fitted by minimizing relative residuals, so that the smallest particles carry weight comparable to the peak of the spectrum, and the ranges allowed for do not overlap, so that each component keeps its identity across spectra. We label the components C1–C3 in order of increasing diameter. They are fitted components, not identified sources or the conventional Aitken, accumulation and coarse modes, and the 2.82–794 nm grid does not resolve a coarse mode. The fits
Ultrafine number concentration (2.82-100 nm)




Resolved condensation sink (reference conditions)




Figure F1. Local skill is positive for both quantities, but boreal-to-urban transfer loses all skill for ultrafine particle number. Derived quantity skill and calibration on paired target-site holdouts: ultrafine particle number (upper group) and the resolved condensation sink (lower group). Each group shows CRPSS relative to the source-training historical ensemble above central-80 % coverage, with methods on the vertical axis. Dashed lines mark zero skill and nominal coverage of 0.80. Values are from Table F1.
describe the spectra well, with median log-space values of 0.978–0.991 (Fig. G2), although a good fit does not guarantee that the component parameters are unique.
For each component, the component number is the integral of the fitted log-normal, including its tails beyond the observed grid. We summarize the amplitude bias of a model by , the median over windows of the ratio of predicted to observed values.
Table F2. Sustained high-number episode verification, with evaluation settings in rows and methods in columns. Cells give the Brier score above its 95 % block-bootstrap interval (block length 1 day). Event counts give the observed days exceeding the source threshold .
| Setting | Gradient boosting | Diffusion | FM | FM + GDE | Seasonal template | Historical ensemble |
|---|---|---|---|---|---|---|
| Hyytiälä local | 0.000[0.000,0.000] | 0.000[0.000,0.001] | 0.001[0.000,0.002] | 0.000[0.000,0.001] | 0.000[0.000,0.000] | 0.004[0.002,0.007] |
| Kumpula local | 0.050[0.000,0.117] | 0.050[0.000,0.117] | 0.044[0.006,0.094] | 0.031[0.001,0.077] | 0.050[0.000,0.117] | 0.067[0.023,0.124] |
| Hyytiälä Kumpula | 0.483[0.367,0.617] | 0.483[0.367,0.617] | 0.484[0.367,0.617] | 0.484[0.367,0.617] | 0.483[0.367,0.617] | 0.454[0.344,0.576] |
| Kumpula Hyytiälä | 0.000[0.000,0.000] | 0.000[0.000,0.001] | 0.001[0.000,0.003] | 0.000[0.000,0.000] | 0.000[0.000,0.000] | 0.021[0.012,0.032] |
Sustained high-number episode verification (90th-percentile 3h running-mean threshold, one issue time/day)

Figure F2. The 60-day holdouts contain too few high-number episodes for reliable probability verification. Top row: reliability diagram per evaluation setting (mean predicted probability against observed event frequency; marker area scales with the number of days in each bin, and sparse bins are shown as they are). Bottom row: two 24 h examples for the Hyytiälä FM+GDE model, the highest observed episode (left) and the day with the largest mismatch between prediction and outcome, a failure case (right). The shaded band is the 10–90 % ensemble interval and the dashed line the threshold .
Table G1. Normalized component transfer ratios : cross-site predicted/observed component number divided by the same model's ratio at its training site. C1–C3 are ordered fitted components. Unity denotes an unchanged relative bias, not necessarily an unbiased target-site prediction.
| (a) Hyytiälä-trained → Kumpula | |||
|---|---|---|---|
| Model | C1 | C2 | C3 |
| Flow Matching | 0.049 | 0.309 | 0.837 |
| FM + mass | 0.035 | 0.285 | 0.859 |
| FM + GDE | 0.036 | 0.284 | 0.888 |
| FM + mass + GDE | 0.049 | 0.313 | 0.882 |
| FM + number | 0.047 | 0.272 | |
| FM + number + GDE | 0.054 | 0.289 | 0.924 |
| (b) Kumpula-trained → Hyytiälä | |||
|---|---|---|---|
| Model | C1 | C2 | C3 |
| Flow Matching | 16.1 | 2.44 | 1.18 |
| FM + mass | 15.3 | 2.54 | 1.23 |
| FM + GDE | 13.8 | 2.55 | 1.03 |
| FM + mass + GDE | 15.5 | 2.49 | 1.10 |
| FM + number | 14.5 | 2.72 | 1.22 |
| FM + number + GDE | 15.1 | 2.56 | |
Table G2. Median ratio of predicted to observed component number at Hyytiälä (temporal holdout), with interquartile range. Unity indicates an unbiased median component amplitude; it does not imply accurate individual spectra.
| Model | C1 | C2 | C3 |
|---|---|---|---|
| Flow Matching | 1.18 (0.36–3.89) | 0.98 (0.53–1.93) | 0.99 (0.68–1.42) |
| Diffusion Model | 1.54 (0.43–5.12) | 0.75 (0.33–1.57) | 0.91 (0.62–1.29) |
| FM + CFG | 1.26 (0.39–4.44) | 0.84 (0.45–1.64) | 1.00 (0.69–1.43) |
| MLP | 1.54 (0.43–5.32) | 0.95 (0.50–1.88) | 0.88 (0.54–1.34) |
| FM + GDE | 1.49 (0.48–5.21) | 1.02 (0.52–1.90) | 0.93 (0.65–1.34) |
observed , excluding windows with observed below . The transfer statistic
divides the ratio at the other station by the ratio at the training station; means that transfer leaves the relative amplitude bias unchanged, not that the transferred prediction is unbiased.
For Hyytiälä-trained FM, the local ratios are 1.18, 0.98 and 0.99 for C1–C3, and the ratios at Kumpula are 0.058, 0.301 and 0.829. For Kumpula-trained FM, the local ratios are 1.07, 1.30 and 0.98, and the ratios at Hyytiälä are 17.20, 3.17 and 1.15. Across all FM variants, the normalized C1 ratios span 0.035–0.054 in the boreal-to-urban direction and 13.8–16.1 in the reverse direction, whereas C3 stays near unity and C2 lies in between (Table G1, Fig. G1). Transfer therefore affects the smallest particles most, which is consistent with the weak constraint that bulk mass places on small-particle number; the fits do not attribute these differences to particular sources. Locally, the median component ratios of FM are close to one (Table G2), but the interquartile range for C1 is broad (0.36–3.89), so agreement in the median does not imply accurate components in individual windows.

Figure G1. Boreal-to-urban transfer changes the smallest fitted component most. Component-number ratios for Hytytilä-trained models, evaluated at Hytytilä (solid) and Kumpula (translucent). Bars show the median predicted/observed number and whiskers the interquartile range. C1–C3 are ordered fitted components on the 2.82–794 nm grid; these raw ratios differ from the normalized ratios in Table G1.
(a)

(b)
Figure G2. Three log-normal components describe the Hytytilä holdout spectra well. Left: distribution of log-space fit , with the median marked. Right: an observed spectrum and its ordered fitted components C1–C3 on the 2.82–794 nm grid.
Appendix H: SOSAA-FP and its comparison diagnostic
SOSAA is a one-dimensional column model that simulates the evolution of gases and aerosol particles in the atmospheric boundary layer by combining meteorology, emissions, gas-phase chemistry and aerosol dynamics (Boy et al., 2011; Clusius et al., 2026). In the SOSAA-FP configuration of Clusius et al. (2026), the column is simulated along backward air-mass trajectories arriving at Hytytilä, so that the simulated PSD reflects the emissions and processes encountered upstream of the station. We use the archived simulations of Clusius et al. (2026), whose 60-bin grid (1.07–2000 nm) contains the 50 diameters used here, so that observed, simulated and generated spectra can be compared bin by bin without interpolation. The matched windows of Sect. 4.5 are those of the interpolation split (Appendix A) that fall within the simulated period.
Hourly spectra emphasize short-term differences. To check whether the disagreement in Sect. 4.5 persists at longer time scales, we also apply the validation diagnostic of Clusius et al. (2026): 12 d running means and seasonal medians of the number concentration in two size ranges (Fig. H1). We use nominal ranges of 28.2–100 and 100–1000 nm, chosen to match the 30–100 and 100–1000 nm ranges of that study as closely as our bin edges allow. Both the observed and the simulated series are computed on the 50-bin analysis grid, so the upper range is truncated at 794 nm in both.

Figure H1. The validation diagnostic of Clusius et al. (2026) applied to the matched Hyytiälä/SOSAA-FP period. Twelve-day running means (left) and seasonal medians (right) for the nominal 28.2–100 and 100–1000 nm ranges (the latter truncated at 794 nm). Solid lines and bars: observations; dashed lines and hatched bars: SOSAA-FP.
Appendix I: Sampling cost
Iterative generative models trade accuracy against cost through the number of network evaluations (NFE) per sample. For FM, the NFE is the number of Euler steps K in Eq. (B2); for diffusion, it is the number of denoising steps, which we vary using the deterministic DDIM sampler; the Drifting Model always uses a single evaluation. Figure I1 shows that FM needs about 50 steps for its CRPS to converge, whereas its correlation hardly depends on the step count. Diffusion reaches its CRPS plateau within a few steps, but its correlation decreases as the number of steps grows. The two methods therefore trade point accuracy against probabilistic skill along the sampling budget, and neither dominates. The Drifting Model is not shown because its cost is fixed.

Figure I1. Flow Matching needs about 50 integration steps, whereas diffusion reaches its CRPS plateau within a few steps at a cost in correlation. (a) CRPS and (b) correlation of log-transformed spectra on the Hyytiälä temporal holdout as a function of the number of function evaluations (Euler steps for Flow Matching, DDIM denoising steps for diffusion).
Code and data availability. Repository DOI (Zenodo) for the model and analysis code (10.5281/zenodo.23540799) SMEAR data are available via the SmartSMEAR API (https://smear.avaa.csc.fi/); ERA5 data are available via the Copernicus Climate Data Store.
Author contributions. Z.-S. Liu implemented the modelling, coding, and paper drafting; J. Köykkä, W. Peng, A. Kheder, P. Clusius and M. Boy advised on atmospheric interpretation and paper revision.
Competing interests. The authors declare that they have no conflict of interest.
Acknowledgements. No funds are involved in this research work.
References
Balcerak, M., Amiranashvili, T., Terpin, A., Shit, S., Bogensperger, L., Kaltenbach, S., Koumoutsakos, P., and Menze, B.: Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling, in: Advances in Neural Information Processing Systems, 2025.
Barahona, D., Breen, K. H., Block, K., and Darmenov, A.: Deep learning representation of the aerosol size distribution, Geoscientific Model Development, 19, 2437–2459, https://doi.org/10.5194/gmd-19-2437-2026, 2026.
Boy, M., Sogachev, A., Lauros, J., Zhou, L., Guenther, A., and Smolander, S.: SOSA – a new model to simulate the concentrations of organic vapours and sulphuric acid inside the ABL – Part 1: Model description and initial evaluation, Atmospheric Chemistry and Physics, 11, 43–51, https://doi.org/10.5194/acp-11-43-2011, 2011.
Brier, G. W.: Verification of Forecasts Expressed in Terms of Probability, Monthly Weather Review, 78, 1–3, https://doi.org/10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2, 1950.
Clusius, P., Baykara, M., Xavier, C., Zhou, P., Tyree, J., Foreback, B., Åijälä, M., Graeffe, F., Petäjä, T., Kulmala, M., Paasonen, P., Palmer, P. I., and Boy, M.: Modelling the impact of anthropogenic aerosols on CCN concentrations over a rural boreal forest environment, Atmospheric Chemistry and Physics, 26, 1967–1992, https://doi.org/10.5194/acp-26-1967-2026, 2026.
Dal Maso, M., Kulmala, M., Riipinen, I., Wagner, R., Hussein, T., Aalto, P. P., and Lehtinen, K. E. J.: Formation and growth of fresh atmospheric aerosols: eight years of aerosol size distribution data from SMEAR II, Hyytiälä, Finland, Boreal Environment Research, 10, 323–336, 2005.
Deng, M., Li, H., Li, T., Du, Y., and He, K.: Generative Modeling via Drifting, arXiv preprint arXiv:2602.04770, https://doi.org/10.48550/arXiv.2602.04770, 2026.
Gneiting, T. and Raftery, A. E.: Strictly Proper Scoring Rules, Prediction, and Estimation, Journal of the American Statistical Association, 102, 359–378, https://doi.org/10.1198/016214506000001437, 2007.
Hari, P. and Kulmala, M.: Station for Measuring Ecosystem–Atmosphere Relations (SMEAR II), Boreal Environment Research, 10, 315–322, 2005.
Hersbach, H., Bell, B., Berrisford, P., Hirahara, S., Horányi, A., Muñoz-Sabater, J., Nicolas, J., Peubey, C., Radu, R., Schepers, D., et al.: The ERA5 global reanalysis, Quarterly Journal of the Royal Meteorological Society, 146, 1999–2049, https://doi.org/10.1002/qj.3803, 2020.
Ho, J. and Salimans, T.: Classifier-Free Diffusion Guidance, in: NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, https://openreview.net/forum?id=qw8AKxfYbI, 2021.
Ho, J., Jain, A., and Abbeel, P.: Denoising Diffusion Probabilistic Models, in: Advances in Neural Information Processing Systems, vol. 33, 2020.
Hussein, T., Dal Maso, M., Petäjä, T., Koponen, I. K., Paatero, P., Aalto, P. P., Hämeri, K., and Kulmala, M.: Evaluation of an automatic algorithm for fitting the particle number size distributions, Boreal Environment Research, 10, 337–355, 2005.
Järvi, L., Hannuniemi, H., Hussein, T., Junninen, H., Aalto, P. P., Hillamo, R., Mäkelä, T., Keronen, P., Siivola, E., Vesala, T., and Kulmala, M.: The urban measurement station SMEAR III: Continuous monitoring of air pollution and surface–atmosphere interactions in Helsinki, Finland, Boreal Environment Research, 14, 86–109, 2009.
Kulmala, M., Dal Maso, M., Mäkelä, J. M., Pirjola, L., Väkevä, M., Aalto, P., Miikkulainen, P., Hämeri, K., and O'Dowd, C. D.: On the formation, growth and composition of nucleation mode particles, Tellus B, 53, 479–490, 2001.
Kulmala, M., Petäjä, T., Nieminen, T., Sipilä, M., Manninen, H. E., Lehtipalo, K., Dal Maso, M., Aalto, P. P., Junninen, H., Paasonen, P., et al.: Measurement of the nucleation of atmospheric aerosol particles, Nature Protocols, 7, 1651–1667, https://doi.org/10.1038/nprot.2012.091, 2012.
Lipman, Y., Chen, R. T. Q., Ben-Hamu, H., Nickel, M., and Le, M.: Flow Matching for Generative Modeling, in: International Conference on Learning Representations (ICLR), 2023.
Liu, X., Gong, C., and Liu, Q.: Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow, in: International Conference on Learning Representations (ICLR), 2023.
Liu, Z.-S., He, C., Maier, R., and Rupp, A.: PUFM++: PointCloudUpsampling via Enhanced Flow Matching, in: arXiv:2501.15286, 2025.
Lovelace, J., Kishore, V., Wan, C., Shekhtman, E., and Weinberger, K.: Latent Diffusion for Language Generation, in: Advances in Neural Information Processing Systems, edited by Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., and Levine, S., vol. 36, pp. 56 998–57 025, https://doi.org/10.52202/075280-2492, 2023.
Petäjä, T., Mauldin III, R. L., Kosciuch, E., McGrath, J., Nieminen, T., Paasonen, P., Boy, M., Adamov, A., Kotiaho, T., and Kulmala, M.: Sulfuric acid and OH concentrations in a boreal forest site, Atmospheric Chemistry and Physics, 9, 7435–7448, https://doi.org/10.5194/acp-9-7435-2009, 2009.
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B.: High-Resolution Image Synthesis with Latent Diffusion Models, 2021.
Seinfeld, J. H. and Pandis, S. N.: Atmospheric Chemistry and Physics: From Air Pollution to Climate Change, John Wiley & Sons, Hoboken, New Jersey, 3rd edn., 2016.
Tong, A., Fatras, K., Malkin, N., Huguet, G., Zhang, Y., Rector-Brooks, J., Wolf, G., and Bengio, Y.: Improving and generalizing flow-based generative models with minibatch optimal transport, Transactions on Machine Learning Research, 2024.
Vartiainen, A., Mikkonen, S., Leinonen, V., Petäjä, T., Wiedensohler, A., Kühn, T., and Miinalainen, T.: Machine learning-based downscaling of aerosol size distributions from a global climate model, Atmospheric Measurement Techniques, 18, 5763–5782, https://doi.org/10.5194/amt-18-5763-2025, 2025.
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I.: Attention Is All You Need, in: Advances in Neural Information Processing Systems, vol. 30, https://papers.nips.cc/paper/7181-attention-is-all-you-need, 2017.
Wiedensohler, A., Birmili, W., Nowak, A., Sonntag, A., Weinhold, K., Merkel, M., Wehner, B., Tuch, T., Pfeifer, S., Fiebig, M., et al.: Mobility particle size spectrometers: harmonization of technical standards and data structure to facilitate high quality long-term observations of atmospheric particle number size distributions, Atmospheric Measurement Techniques, 5, 657–685, https://doi.org/10.5194/amt-5-657-2012, 2012.
World Health Organization: WHO global air quality guidelines: particulate matter (PM and PM ), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide, World Health Organization, Geneva, 2021.