Scale-Aware Covariance Cleaning for Multivariate Forecasting Under Drift

Forecasting hundreds of related series at once, such as electricity meters, freeway sensors, or solar plants, raises an old question that has not been settled: should the model use correlations between series or ignore them? Ignoring them is surprisingly hard to beat. We think a concrete statistical reason explains this. Cross-series correlations estimated from a short look-back window are mostly noise when the number of series is comparable to the number of usable time steps. That number of usable steps differs sharply between slow and fast components of the signal, and it shrinks further whenever the data drift. This note proposes a lightweight preprocessing layer built on that reasoning. It splits each input window into time scales with a wavelet transform, a filter bank that separates slow trends from fast fluctuations while keeping track of when events happen. It then estimates the cross-series covariance separately in each scale, and keeps only the correlation directions that are statistically distinguishable from noise given that scale's effective sample size. It whitens each scale with this cleaned covariance, runs any forecaster, and then undoes the whitening on the output.

In two sentences: the slow trend band of a window carries very few independent observations, because neighbouring trend values are nearly identical, so its raw cross-series covariance is dominated by spurious structure. The fast bands carry many nearly independent observations, so their covariance can be trusted more. A covariance cleaner that sets its noise threshold per scale, from that scale's own autocorrelation, and recomputes it every window as the distribution drifts, should let a forecaster use real cross-series structure without absorbing the noise. It should also predict in advance on which datasets channel mixing can help at all.

Core Claim

Random matrix theory, the study of how eigenvalues of large random matrices behave, gives a sharp rule for when a correlation direction is real. In a $p$-dimensional sample covariance estimated from $n$ independent observations, pure noise spreads the eigenvalues over a "bulk" whose upper edge is $\sigma^2(1+\sqrt{p/n})^2$. A genuine factor only produces a sample eigenvalue that escapes this bulk if it is strong enough, and even then the escaped eigenvalue overstates its true size (Hoyle et al.; Couillet).

Time series break the "$n$ independent observations" premise. Bartz et al. show that autocorrelation shrinks the effective sample size, so standard Ledoit–Wolf shrinkage applies far too little regularization. Our claim is that this effective-size loss is strongly scale-dependent, and that this is the missing ingredient in multivariate forecasting under drift. For wavelet band $j$ with $n_j$ coefficients in the estimation window and lag-$k$ autocorrelation $\rho_j(k)$, we use the standard long-run-variance approximation

$$ n_{\mathrm{eff},j} \approx \frac{n_j}{1 + 2\sum_{k=1}^{b_j}\rho_j(k)}, \qquad \lambda_{\mathrm{edge},j} = \hat\sigma_j^2\left(1+\sqrt{p/n_{\mathrm{eff},j}}\right)^2 . $$

Here $b_j$ is a band-specific truncation lag, and $\lambda_{\mathrm{edge},j}$ is the noise edge below which band-$j$ eigenvalues are treated as noise. On a 96-step window of Electricity ($p=321$), the trend band at level 3 has 12 coefficients and an effective count of a few. Its raw covariance is essentially all bulk. The finest detail band is close to white noise, so $n_{\mathrm{eff}}\approx n_j$ there.

The research file's suggestion that each wavelet level simply "doubles $p/n$" understates the problem in slow bands and overstates it in fast ones. This asymmetry is what we exploit.

Research Program

The layer, which we call scale-aware spectral whitening, has three parts.

The first part is decomposition. A $J$-level Haar wavelet transform splits each look-back window into one approximation band and $J$ detail bands. We use Haar because SWIFT shows it acts as lossless downsampling that small linear forecasters handle well.

The second part is per-band covariance cleaning. For each band we compute the cross-channel sample covariance from that band's coefficients over a band-specific history buffer. We estimate $n_{\mathrm{eff},j}$ with Bartz's bias-corrected autocorrelation terms. Eigenvalues above $\lambda_{\mathrm{edge},j}$ are kept as protected directions, and their values are corrected downward for the known upward bias of escaped spikes. All remaining eigenvalues are replaced by their mean.

This is the subspace-protecting idea of AOC-shrinkage, which leaves dominant directions untouched and shrinks only the rest. We change two things. The number of protected directions is set per band by an autocorrelation-aware threshold rather than estimated once on a static snapshot. And the protected subspace is recomputed every window, so it tracks drift in which channels move together.

The third part is reversible whitening. Each band is centered and whitened with the cleaned covariance, the bands are passed to an arbitrary backbone, and the backbone's band-wise outputs are re-coloured and inverted back to the time domain. This mirrors the normalize-then-denormalize structure of RevIN, which handles mean and scale shift per channel. Our layer extends that structure to cross-channel, per-scale second-order structure.

Two ideas from the file determine how the history buffer behaves. Slow bands need longer history to reach a usable $n_{\mathrm{eff}}$, but longer history trades away adaptivity to drift. We therefore let each band's buffer length be the shortest one for which $n_{\mathrm{eff},j}$ reaches a fixed multiple of $p$, capped by an exponential forgetting factor in the spirit of the EMA-plus-shrinkage scheme in the cross-validation study of financial covariances. Where the cap binds, the band simply gets more shrinkage. Over-stationarization, the failure documented by Non-stationary Transformers in which normalization erases information the model needs, is a real risk here. We guard against it by passing the protected eigenvalues and the per-band $n_{\mathrm{eff},j}$ to the backbone as side inputs, in the same way that work re-injects $\mu$ and $\sigma$.

Cost is a batched symmetric eigendecomposition per band per window. This is acceptable up to Traffic's 862 channels. For larger $p$ we will use randomized top-$r$ eigensolvers, since only the protected directions need explicit computation.

Beyond the forecasting layer, the same per-band edge test is a measurement tool. Counting how many eigenvalues escape the bulk in each band, window by window, gives a dataset-level map of where real cross-channel structure lives and how quickly it drifts. That map yields a falsifiable prediction about the long-running dispute between PatchTST, which processes each channel separately and wins on many benchmarks, and CSformer, which mixes channels with unregularized attention and wins on others. Channel mixing should help only on datasets and scales where the map shows persistent escaped eigenvalues.

Baselines

The naive reference point is the backbone with RevIN alone, which applies per-channel mean and variance normalization with no cross-channel modelling. RevIN is the default in most of the cited benchmarks. The file reports ETTh2 horizon-960 MSE of 0.471 with N-BEATS plus RevIN, against 6.408 without it (RevIN). Beating it means lower MSE at matched backbone and training budget.

The strongest point-forecasting normalization competitor is Frequency Adaptive Normalization (FAN). FAN removes the top-$K$ Fourier components per channel and forecasts their drift. It reports 7.76% to 37.90% average MSE improvement over backbones without it across eight benchmarks, and it outperforms RevIN, SAN and Dish-TS. FAN is strongest against our layer because it already handles evolving seasonality, which is the other main form of non-stationarity. We will run FAN and our layer on identical backbones, splits, look-back lengths and hyperparameter search budgets. We will also run FAN stacked under our layer, since the two address different moments of the data. Beating FAN means a consistent MSE reduction on the high-$p$ datasets (Electricity, Traffic, Solar) without loss on ETT and Weather.

For probabilistic forecasting the closest existing work is CW-Gen. CW-Gen predicts a future mean and covariance with a neural estimator, whitens the target, and lets a diffusion or flow model learn the residual. It reports winning 80–90% of test cases on CRPS and QICE against six generative baselines across ETTh1/2, ILI, Weather and Solar. Our test swaps only its covariance estimator for our per-band cleaned one and leaves everything else unchanged. Beating it means better CRPS and better cross-variable correlation capture on Solar and Weather at equal training compute.

For channel mixing, the strongest competitor is CSformer, for which no reported number found on Lacuna for exact per-horizon MSE. We will reproduce CSformer and compare it to PatchTST plus our layer.

Two ablations isolate the key ingredient. The first applies the same cleaning to the raw single-scale covariance using Bartz's autocorrelation correction. This tests whether scale separation matters or whether autocorrelation-aware shrinkage alone suffices. The second applies per-band cleaning but with i.i.d. $n_{\mathrm{eff},j}=n_j$, which tests whether the autocorrelation correction matters.

Why not just…?

Why not just keep channels independent, as PatchTST does? This is the most serious threat. Treating each channel separately avoids the noise problem entirely, and on low-dimensional or weakly coupled data it may be the right answer. Our position is not that mixing always helps. It is that the per-band edge test predicts where it helps. CSformer's gains over PatchTST and CW-Gen's gains from cross-variable whitening both suggest real structure exists on some datasets. The decisive experiment is PatchTST plus our layer against plain PatchTST, stratified by the number of escaped eigenvalues. If PatchTST plus our layer gives no gain even where the map shows persistent structure, the proposal fails.

Why not just apply Ledoit–Wolf or Bartz shrinkage to the raw covariance? Single-scale shrinkage picks one intensity for a matrix that mixes a nearly sample-free trend component with a nearly white fast component. AOC-shrinkage documents a related failure on static data, the "vanishing shrinkage paradox": dominant eigenvalues drive the Ledoit–Wolf intensity toward zero and leave the tail uncleaned. That paper reports portfolio risk 5.41 against 6.27 for standard shrinkage on 1200 US stocks. Still, a single-scale Bartz estimator could plausibly capture most of the benefit. That is exactly what the first ablation measures, on both synthetic and real data, and we will report it even if it ties.

Why not just learn the covariance, or a per-band shrinkage weight, end to end? CW-Gen's neural covariance estimator has only a positive-definiteness penalty and nothing that separates bulk from signal. A learned global per-band shrinkage scalar is a cheaper and stronger alternative, and we will include it. Our argument for analytic per-window intensities is specific to drift. A learned scalar is fixed after training, whereas the analytic threshold moves with each window's autocorrelation and dispersion. Cross-validating intensities online is costly, and El Karoui shows resampling distorts high-dimensional spectra. If the learned scalar matches us on shifted test windows, the per-window analytic part is unnecessary, and we would report the simpler method.

Why not just use Fourier bands, as FAN does? Fourier bands have global support, so a localized shock smears across the whole window (Yi et al. survey). A swap experiment replacing Haar with an equal number of FFT bands will show whether localization matters for covariance cleaning specifically. We expect the difference to appear mainly on Traffic incident windows and Solar cloud transients.

Proposed Experiments

We begin with a synthetic check where ground truth is known. We generate $p\in\{50,200,800\}$ channels from a factor model whose loadings differ by scale: a slow trend factor, a mid-frequency factor, and white idiosyncratic noise. Loadings rotate at a controlled drift rate. We measure Stein loss of the whitening matrix and the accuracy of the detected factor count against ground truth, for all estimators in the Baselines section. The per-band edge with $n_{\mathrm{eff},j}$ should recover the true per-scale factor count, while the i.i.d. edge should over-count in slow bands.

On real data we use ETTh1/2 and ETTm1/2 (7 channels), Weather (21), Solar (137), Electricity (321) and Traffic (862), with chronological splits and horizons 96 to 720. The low-dimensional ETT sets act as a control: the theory predicts our gain should vanish there, and a gain on ETT would point to some other mechanism. Backbones are DLinear-style linear models, SWIFT, PatchTST and CSformer. Probabilistic runs use CW-Gen on ETTh1/2, Weather and Solar, and ILI only as a drift stress test given its few channels. Metrics are MSE and MAE for point forecasts and CRPS and QICE for probabilistic ones.

To test the distribution-shift claim directly, we stratify test windows by how far their cross-channel covariance has moved from the training period. We measure that distance with the random-matrix-corrected estimator of Tiomoko et al., because the plug-in distance is itself biased in high dimension. Our layer's advantage over the learned-scalar and single-scale baselines should grow with that distance.

Two results would decide whether the idea holds. First, across datasets and bands, the improvement from mixing should correlate with the count of persistently escaped eigenvalues from the measurement map. A null correlation would falsify the central mechanism. Second, the single-scale Bartz ablation must lose to per-band cleaning on Electricity and Traffic. If it ties, scale separation adds nothing, and the honest contribution narrows to a drift-adaptive shrinkage layer applied to the raw covariance.