Ventilation-Scaled Risk Certificates for Pollution Forecasts in Trapped Terrain

Cities that sit in basins, valleys or against mountain walls get their worst air when the air stops moving. Mountains block horizontal flushing, and cold air pooling at night presses the mixed layer of air near the ground into a thin lid. The same emissions then crowd into a much smaller volume. For a forecasting model, these episodes are where errors explode: on stagnant days the squared error can be orders of magnitude larger than on ventilated days. The statistical tools that promise "this model's future error will be at most X" usually assume the loss is bounded or light-tailed. Recent theory relaxes that assumption, but the resulting bounds need an unknown variance or tail scale. In a non-stationary atmosphere, that scale is exactly what we cannot estimate reliably.

This proposal starts from a physical observation. In the simplest box model of an urban airshed, concentration scales roughly as emissions divided by the ventilation coefficient, meaning mixing-layer height times wind speed. If forecast errors inherit that scale, most of the heavy tail is not random. It is a known, observable multiplier. We propose to divide the loss by this ventilation-derived scale before applying heavy-tailed PAC-Bayes bounds. PAC-Bayes bounds are guarantees on the expected error of a randomized predictor, stated in terms of its training error and its distance from a prior. The goal is to test whether this turns vacuous or brittle bounds into certificates that stay valid when conditions change. The same scale also yields a training objective that stops stagnant-day errors from dominating optimization.

Core Claim

The claim has an empirical half and a theoretical half, and the empirical half is the one that could fail.

Empirically, we claim the following about forecast losses in topographically trapped regions. The raw loss has unstable or apparently infinite higher moments. The ventilation-normalized loss

$$\tilde\ell_t = \left(\frac{V_t}{V_0}\right)^{2}(\hat y_t - y_t)^2$$

has approximately regime-invariant low-order moments. Here $\hat y_t$ and $y_t$ are the forecast and observed concentration at time $t$, $V_t$ is the ventilation coefficient (mixing-layer height times mean wind) known at forecast time, and $V_0$ is a fixed reference ventilation. The exponent 2 comes from the box-model scaling $C \propto 1/V$ applied to squared error. We will also fit the exponent from data rather than assume it.

Theoretically, suppose the conditional second moment of $\tilde\ell_t$ given the past is bounded by a single constant shared across regimes. Then the supermartingale PAC-Bayes bound of PAC-Bayes Generalisation Bounds for Heavy-Tailed Losses through Supermartingales applies directly to the normalized loss. That paper replaces Markov's inequality with a maximal inequality for nonnegative supermartingales. It obtains any-time-valid bounds for dependent sequences under only a bounded second moment. We do not claim a new concentration inequality. The contribution is supplying that paper's variance proxy from physics instead of from a stale empirical estimate. This makes the certificate hold simultaneously over a deployment period in which the proportion of stagnant days drifts.

Because $V_t$ is observed when the forecast is issued, a bound on normalized risk converts into a raw-scale statement for any regime. On days with ventilation $V$, the expected squared error is bounded by $(V_0/V)^2$ times the normalized bound. Public-health users care about this regime-conditional statement: how wrong the forecast can be on inversion days specifically.

Research Program

Measuring the tails. The first step is to characterize loss tails as a function of terrain and ventilation. This has never been done in either literature. Air Quality Arena benchmarks eleven zero-shot time-series foundation models and six supervised baselines on over 14,000 station-pollutant series. It reports that forecasting is hardest in India and Mexico, where supervised models fail to beat a seasonal naive forecast. It does not quantify tail indices or moment conditions of the resulting errors, and its series are univariate. We will estimate Hill-type tail indices and the stability of empirical second and third moments of forecast losses across its regions. This descriptive result tells us whether the "heavy tails in volatile regions" story is real. It says nothing yet about ventilation.

Linking tails to ventilation. The second step needs meteorological covariates. The primary testbed is the Beijing and Shenzhen station data used by AirPhyNet. AirPhyNet is a graph neural network with an embedded advection–diffusion differential equation. It reports 3.7–6.1% average MAE/RMSE reductions over ten baselines and up to 10% during sudden spikes. Its surface wind fields give a wind-only stagnation proxy. Beijing is bordered by the Yanshan and Taihang ranges, and Shenzhen is coastal, which gives a natural trapped-versus-ventilated contrast.

Where mixing-layer height is available, we use the true ventilation coefficient instead of the wind-only proxy. Candidate sources are the multi-year Beijing ceilometer record of Mixing layer height and its implications for air pollution over Beijing, China and the four-station North China Plain network of Mixing layer height on the North China Plain and meteorological evidence of serious air pollution in southern Hebei. We will seek access to these records. The North China Plain study reports that Shijiazhuang, against the Taihang Mountains, has a ventilation coefficient up to 1.5 times lower than Beijing or coastal Qinhuangdao. That gives a within-network gradient of trapping.

Known failure modes of the scale. The physics also warns where the scaling will break, and we treat those cases as pre-registered failure regions. Rapid formation of intense haze episodes via aerosol–boundary layer feedback in Beijing documents aerosols dimming sunlight, which collapses the mixed layer below 200 m. That feedback loop means $V_t$ is itself partly caused by the pollution being forecast. The ceilometer studies report biased mixing-height retrievals during neutral cold surges and dust events. We will therefore report certificate validity separately for high-humidity and dust-flagged periods. The Beijing ceilometer study flags relative humidity above 80% as the point where hygroscopic growth drives compression.

Certificates. The third step computes the certificates. We apply the supermartingale bound to $\tilde\ell_t$ with a single pooled variance constant. We also compute the soft-truncation bound of PAC-Bayes under potentially heavy tails. That bound uses a smooth Catoni influence function to get logarithmic dependence on the failure probability under finite second and third moments, but assumes independence. The two bounds trade off honestly: the supermartingale bound has the worse $1/\delta$ confidence dependence but tolerates temporal dependence.

Training objective. The fourth step turns the bound into a training objective. We minimize the supermartingale bound's empirical-risk-plus-variance-plus-KL objective on the normalized loss, inside AirPhyNet using the released code at kethmih/AirPhyNet. The question is whether this beats plain MSE training on stagnant-day error, not only on the bound.

Baselines

Naive reference. The seasonal naive forecast, repeating the value from the same hour on a previous day, is the reference that Air Quality Arena shows many supervised models cannot beat in volatile regions. Every method's stagnant-day error is reported relative to it on identical splits. No per-country numeric MASE values for it are reported in the file.

Strongest forecaster. The strongest existing forecasting model on the Beijing and Shenzhen data is AirPhyNet trained with its standard MSE/MAE objective. We re-run it from the official code with its published hyperparameters. Every loss variant gets an equal tuning budget on the same temporal splits. The file reports AirPhyNet only as relative gains of 3.7–6.1% average MAE/RMSE and up to 10% on spikes; it gives no absolute numbers. We will reproduce absolute numbers ourselves. Beating it means lower RMSE on the lowest-ventilation decile of test days at no more than a 2% cost in overall RMSE.

Tabular reference. On Taiwan-style tabular settings, the gradient-boosting model of Forecasting Air Quality in Taiwan by Using Machine Learning is the relevant reference. It reports RMSE 7.06 µg m⁻³ and $R^2 = 0.71$ in Taichung with power-plant stack telemetry, and notes persistent difficulty at the lee-side Chaozhou station. We cite it as a reference but cannot reproduce it without that dataset.

Strongest certificate. For certificates, the strongest competitor is the same supermartingale and Catoni bounds applied to the raw, unnormalized loss. Their variance and moment constants are estimated empirically from the training period, as those papers do. We also run a regime-stratified version with constants estimated separately per ventilation bin. Beating them means two things together. The normalized certificate must be valid at the nominal level on held-out winters with a different stagnation frequency. It must also be non-vacuous, meaning tighter than the naive forecast's realized error, in regimes where the raw bounds are either invalid or vacuous.

Ablations. Two ablations isolate the key ingredient. The first gives the model ventilation as an input feature but trains and certifies on the raw loss. The second uses the normalization with a fitted rather than box-model exponent.

Why not just…?

Why not just clip the loss or train with Huber loss? Clipping restores classical bounds but certifies a quantity that ignores the very episodes of interest. Inconsistency, Instability, and Generalization Gap of Deep Neural Network Training is cited in the file as showing that forcing unbounded losses into bounded frameworks gives loose or vacuous bounds. Huber loss is a real competitor for forecast accuracy, since it is close in spirit to Catoni truncation. We include Huber-trained AirPhyNet at equal tuning budget. If it matches our objective on stagnant-day RMSE, we will report that the training-side gain is not the contribution and keep only the certificate.

Why not just log-transform the target? Taking logs tames tails but changes what is being guaranteed. A bound on log-error does not translate into micrograms above a health threshold without re-introducing the scale. The ventilation scale is the physically motivated version of that transform, applied where it can be undone exactly because $V_t$ is known. We run log-target training as a baseline and compare errors in raw units.

Why not just use conformal prediction stratified by ventilation? This is the most serious threat. Split conformal intervals with ventilation-scaled nonconformity scores, calibrated separately per ventilation bin, might deliver most of the practical value with far less machinery. Two differences remain. Conformal methods give interval coverage, not a bound on expected squared error. Their standard guarantee rests on exchangeability, which multi-day stagnation episodes violate. We will run exactly this conformal variant and measure realized coverage on held-out winters. If it holds coverage as well as our certificate holds validity, the honest conclusion is that the lasting finding is the normalization itself, which helps any uncertainty method. We would state that plainly.

Why not just feed ventilation to the model as a feature? A better-informed model reduces the mean error but need not stabilize the tails of its residuals. It also does nothing for the nuisance-constant problem in the bounds. The feature-only ablation tests this directly. If it alone makes raw-loss moments stable across regimes, the normalization is redundant.

Decisive Checks

One experiment decides the empirical claim. Split Beijing winters by stagnation frequency. Estimate the pooled second-moment constant of $\tilde\ell_t$ on calmer winters, then test on the most stagnant winter. The normalized constant should transfer within sampling error, while the raw-loss constant should be exceeded. If the ratio of test to training second moment is similar for raw and normalized losses, the core claim is false and we stop there.

The second check is certificate validity versus tightness. Over repeated rolling deployments, count how often the realized normalized risk exceeds the any-time bound at confidence 0.95. Compare against raw and stratified-raw bounds, and report bound-to-realized ratios per ventilation decile.

The third check is transfer to the Shenzhen coastal network, where ventilation varies less. The method should reduce to ordinary behavior there, with little gain and no harm. Gains concentrated in Beijing's low-ventilation deciles, and absent in Shenzhen, would support the claim that the tail comes from trapping rather than from the model.

The fourth check, run on Air Quality Arena regions, asks whether the regions with the heaviest estimated loss tails are the ones the benchmark flags as hardest. That test is descriptive only, since that benchmark carries no ventilation data.