Neural networks that predict how much carbon an ecosystem absorbs or releases are trained mostly on flux towers in Europe and North America. They are then applied to the semi-arid savannas, grasslands and shrublands of Africa, Australia and South America. Those dry regions produce most of the year-to-year swings in the global land carbon sink. When the inputs a network sees at deployment differ from its training data, a known remedy in vision is to recompute the network's normalization statistics on the new data. These are the running means and variances that batch normalization (a layer that rescales each feature using averages over a batch of examples) freezes at the end of training. Recent memory-based versions store statistics from many recent small batches so the remedy still works when data arrive one sample at a time.
The difficulty is that carbon flux prediction is a regression problem in which the distribution shift is partly the answer. During an El Niño drought, soil moisture, vapor pressure deficit and greenness all move away from normal. A normalization layer that quickly re-centers itself on the drought inputs will make the drought look like an ordinary year, and the model will predict an ordinary year. We propose a statistics memory keyed to the time of day and time of year and spanning many years of unlabeled satellite and weather inputs at the target location. It removes the site-level mismatch (different biome, sensor footprint, local calibration) while deliberately keeping the interannual anomaly that carbon scientists care about. The central empirical claim is testable. Short-memory test-time normalization will improve hourly error while shrinking the predicted year-to-year variability. A multi-year, cycle-aligned memory should improve both.
Core Claim
Existing memory-augmented normalization treats every mismatch between training and test statistics as nuisance. MemBN keeps a first-in-first-out queue of recent batch means and variances, building a virtual batch of 128 to 200 samples, and flushes the queue when a Z-score distance signals a domain change. TEMA uses an adaptive moving average. RoTTA balances a memory bank by predicted class. All three were built for image corruptions, where the corruption carries no information about the label. That assumption is inherited from AdaBN, which argues that weights hold task knowledge and normalization statistics hold domain "style." Schneider et al. likewise found that much corruption brittleness comes from stale statistics.
We take these results as the motivating evidence that statistics carry domain information. We disagree with their implicit corollary that all of that information should be adapted away. In flux regression the input statistics of a drought year encode the drought.
Our claim is that the right place to separate nuisance from signal is timescale. Site and biome differences are persistent over decades. Diurnal and seasonal swings are periodic and known in advance. Interannual anomalies are the residual. Normalization at a target location should therefore use statistics that are matched to the current phase of the day and year and averaged over a horizon long enough to span several ENSO cycles. These statistics can be computed from unlabeled inputs alone, because MODIS reflectance and gridded meteorology exist for roughly two decades at any location, whereas tower labels do not.
Concretely, for a layer's pre-normalization activations $a$ at location $s$, we define the normalization mean at phase $\phi$ (hour of day and day of year) as
$$\hat{\mu}_s(\phi) = (1-\lambda_s)\,\mu_{\text{src}}(\phi) + \lambda_s \cdot \frac{1}{|M_{s,H}(\phi)|}\sum_{t \in M_{s,H}(\phi)} a_t .$$
Here $\mu_{\text{src}}(\phi)$ is the phase-indexed training statistic. $M_{s,H}(\phi)$ is the set of stored timesteps at location $s$ within a phase window around $\phi$ over the past $H$ years. $\lambda_s \in [0,1]$ grows with the effective number of stored samples. The variance is defined analogously. The horizon $H$ is the key knob. At $H$ near zero the method reduces to a MemBN-like short queue. With a single phase bin it reduces to AdaBN on the site's full history. Because the memory is filled offline from historical inputs, test-time batch size plays no role, and a single sample can be normalized as reliably as a batch of 200.
Research Program
The first component is a phase-indexed statistics memory, built for every normalization layer of a batch-normalized flux model. Memory entries are binned by hour and day of year, and each bin stores per-location sufficient statistics accumulated over $H$ years of historical input cubes. No gradients, labels or per-site hyperparameter tuning are involved. We will also use the same phase-indexed statistics during training.
Training batches drawn from one tower are strongly non-independent: midday and night, dry and wet months. This is the regime where Batch Renormalization showed ordinary batch normalization collapsing (67.0% versus 78.6% on ImageNet with 2 images per class). Normalizing against phase-indexed memory rather than the raw micro-batch is our answer to training under the small batches (one to four examples) that multimodal satellite-plus-meteorology inputs force onto GPUs. Cross-Iteration Batch Normalization supplies a correction for stale training-time memory: it applies a Taylor correction for weight drift. We reuse that correction for the training-time memory only. At test time the weights are frozen and staleness does not arise.
The second component is an analysis of what normalization adaptation does to predicted interannual variability. We will decompose each layer's mismatch between source and target statistics into a persistent site component, a periodic component and an interannual residual. We then measure how much of each component each adaptation method removes. The estimation-shift analysis of Reducing Divergence in Batch Normalization for Domain Adaptation shows that per-layer discrepancies compound with depth. We will track the three components separately through depth to see whether the interannual residual is preserved, amplified or erased deep in the network.
The third component is the application regime. We concentrate on water-limited sites. Zhang et al. attribute 57% of detrended global GPP interannual variability to semi-arid regions, and Fan et al. attribute over half of pantropical biomass variability to them. Bastos et al. show the 2015/2016 El Niño weakened the land sink mainly through water-limited GPP. These are the conditions where a short-memory method would most likely wash out the signal. They are also where the geographic training bias documented by CarbonSense produces the largest site-level mismatch.
Baselines
The do-nothing reference is the same batch-normalized backbone with frozen training statistics. It is trained on identical data and evaluated on identical target sites, and it tells us how large the mismatch problem actually is here.
The strongest existing system on this data is EcoPerceiver from CarbonSense, a transformer with a 32-hour attention window over meteorology and MODIS patches. It outperformed XGBoost in 12 of 15 IGBP ecosystem types. No reported global NSE or RMSE value was found on Lacuna for EcoPerceiver, so we will retrain it with its published configuration on our split and report its numbers alongside ours. We will also run XGBoost, the CarbonSense reference.
The strongest normalization competitors come in two families, each given the same training data and the same hyperparameter search budget per method. The first is batch-independent normalization: layer normalization, group normalization, and Filter Response Normalization. The last kept ImageNet accuracy flat from batch size 32 to 1, while batch normalization fell from 76% to 1.5%. Group normalization is the strongest batch-free competitor in the vision literature. The second family is test-time statistics adaptation on the same batch-normalized backbone: AdaBN recomputed per target site, MemBN with its Z-score reset, and a TEMA-style moving average. For regression, the class-diversity rectification in TEMA has no analogue and is dropped, which we state explicitly. MemBN is the natural strongest test-time competitor. The file's reference number is its 12.88% error at batch size 1 on CIFAR-10-C, against 90% for plain test-time batch normalization. That figure shows it solves the micro-batch problem in vision, and it is the method most likely to win on hourly error here.
The simplest serious baseline is input-level phase-conditioned standardization per site. It z-scores each meteorological and spectral input against the site's own multi-year, phase-matched climatology and leaves the network untouched.
Two ablations isolate our ingredients. The first keeps the multi-year horizon but uses a single phase bin, which tests whether cycle alignment matters. The second keeps phase bins but restricts the horizon to one season, which tests whether length of memory matters. The full sweep over $H$ from weeks to more than ten years is the main diagnostic.
Beating the baselines means two things at once. On held-out semi-arid sites, hourly NSE must be at least as good as the best test-time competitor. The correlation and amplitude of predicted versus observed detrended annual anomalies must also be significantly better than both frozen statistics and short-memory adaptation, with significance judged by site-level bootstrap. Winning on only one of these does not count.
Why not just…?
Why not just use layer or group normalization and skip batch statistics entirely? This removes batch-size sensitivity cleanly, and it may well match our hourly accuracy. However, a batch-free layer has no statistic that can be updated at a new location without labels, so it cannot correct site-level mismatch at unlabeled semi-arid sites. The vision evidence is mixed rather than decisive. Group normalization trailed MemBN on ImageNet-C (69.38% versus 67.57% error), and Reducing Divergence in Batch Normalization found hybrids beat full replacement. Neither result transfers automatically to flux regression. Our leave-region-out comparison settles it. If group or layer normalization matches us on both hourly and anomaly metrics, the memory is not worth its complexity, and we will say so.
Why not just standardize the inputs per site against their own climatology? This is the real threat, because it is the classic climate-science move of computing anomalies relative to a long-term mean and it needs no change to the network. It differs from our method only in acting at the input rather than at every layer. It may also discard absolute information, since a dry site standardized against itself looks like a wet one. If depth-compounding mismatch matters, as Reducing Divergence in Batch Normalization suggests, per-layer memory should win. If it does not, input standardization will tie. That outcome is informative and would shift the contribution toward the analysis rather than the layer.
Why not just use MemBN or a moving-average test-time method as-is? Our prediction is that they will look best on hourly error and worst on interannual anomalies. A queue of a few hundred recent samples re-centers on a drought within days. MemBN's Z-score reset also fires on ordinary sunrise and seasonal transitions, which is exactly the cyclic-versus-secular confusion that its heuristic threshold was never designed for. The horizon sweep tests this directly. If short memories preserve annual anomaly amplitude as well as long ones, our central claim is wrong.
Why not just fine-tune on target data? The target sites that matter most have few or no flux labels, as CarbonSense documents. We will nonetheless report a fine-tuned upper bound on held-out sites that do have labels, to show how much of the gap label-free methods close. Gradient accumulation is not an alternative. It changes only how weights are updated, so each forward pass still normalizes with statistics from one or two samples, and it offers nothing at inference.
Proposed Experiments
All experiments use CarbonSense: 385 eddy covariance sites and over 27 million hourly records with 8×8 MODIS patches in 9 bands. The primary split trains on mesic and temperate sites and tests on sites whose IGBP classes are savanna, grassland, shrubland and similar water-limited types, US-Var among them. We report hourly NSE and RMSE of net ecosystem exchange. We also report the correlation, bias and amplitude ratio (predicted over observed standard deviation) of detrended annual NEE and GPP anomalies at every test site with at least five years of record. Where site records span 2015/2016, we report the predicted anomaly for that El Niño separately.
The memory for each test site is filled only from historical MODIS and meteorological inputs, never from labels or future timesteps. We check the batch-size claim by evaluating at test batch sizes of 1, 2, 4 and 64 and by training at physical batch sizes from 1 to 16. Our layer should be flat across test batch sizes and competitive with the best batch-free layer across training batch sizes.
The decisive check is the curve of annual-anomaly amplitude ratio against memory horizon $H$, drawn for our method and for MemBN at matched memory sizes. The hypothesis predicts the ratio near 1 for multi-year horizons and falling well below 1 for horizons shorter than a season, while hourly NSE stays roughly constant. The layer-wise decomposition should show short memories removing the interannual component of the mismatch, not only the site component.
A secondary sanity check upscales predictions over semi-arid grid cells for the period covered by inputs. It asks whether the share of GPP interannual variability they carry moves toward the 57% of Zhang et al. under our method and away from it under short-memory adaptation. It also asks whether the 2015/2016 land sink reduction lands within the 0.4–0.7 PgC per year inversion range reported by Bastos et al.. Because this check stacks upscaling error on top of model error, we treat it as corroboration, not proof.
References
- MemBN: Robust Test-Time Adaptation via Batch Norm with Statistics Memory
- Unraveling Batch Normalization for Realistic Test-Time Adaptation
- Robust Test-Time Adaptation in Dynamic Scenarios
- Revisiting Batch Normalization For Practical Domain Adaptation
- Improving robustness against common corruptions by covariate shift adaptation
- Batch Renormalization: Towards Reducing Minibatch Dependence in Batch-Normalized Models
- Cross-Iteration Batch Normalization
- Reducing Divergence in Batch Normalization for Domain Adaptation
- Precipitation and carbon-water coupling jointly control the interannual variability of global land gross primary production
- Satellite-observed pantropical carbon dynamics
- Impact of the 2015/2016 El Niño on the terrestrial carbon cycle constrained by bottom-up and top-down approaches
- CarbonSense: A Multimodal Dataset and Baseline for Carbon Flux Modelling
- Filter Response Normalization Layer: Eliminating Batch Dependence in the Training of Deep Neural Networks