Per-Direction Forgetting and Truncation for Drifting, Ill-Conditioned Regression

When a learning system fits a linear model to a stream of data, it faces two problems that are usually solved separately. The first is that the inputs are often nearly redundant, so some directions in input space carry almost no energy. Inverting the data along those directions amplifies noise without bound. Numerical analysts handle this with truncated singular value decomposition (truncated SVD): they decompose the data matrix into independent directions ranked by strength and throw away the weakest ones. The second problem is that the target keeps moving. A fast-forgetting estimator tracks the moving target but absorbs noise. A slow one is precise but lags behind after every shift. Adaptive-filtering researchers handle this with a single learning rate or "forgetting factor" that is tuned or adjusted on the fly.

This note argues that these are the same decision made at different resolutions. Discarding a singular direction is the limiting case of forgetting so slowly in that direction that the estimate never moves. Equivalently, it is the case of giving that direction a learning rate of zero. If we account for error separately in each singular direction, the lag-versus-noise tradeoff gives a closed-form rule for two things at once: how fast each direction should forget, and whether it should be truncated at all. We propose to build this per-direction estimator on top of incremental truncated-SVD solvers. We will test it on drifting versions of the frozen-feature continual-learning setting where truncated SVD already beats ridge regression, and on classical tracking benchmarks with ill-conditioned inputs.

Core Claim

Consider an exponentially weighted least-squares readout operating on features whose per-sample covariance has eigenvalues $s_i$ along directions $v_i$. Measurement noise has variance $\sigma_v^2$. The true coefficient along direction $i$, $\theta_i = v_i^T w_o$, drifts with per-step variance $q_i$. A standard tracking analysis then splits the steady-state error in direction $i$, under forgetting rate $\beta_i$ (one minus the forgetting factor), into a noise term that grows with $\beta_i$ and a lag term that shrinks with it. This is the per-direction version of the lag/noise split that Mateos, Schizas and Giannakis use for scalar step sizes:

$$ \mathcal{E}_i(\beta_i) \approx \frac{\sigma_v^2\,\beta_i}{2\,s_i} + \frac{q_i}{2\,\beta_i}, \qquad \beta_i^{*} = \frac{\sqrt{q_i\,s_i}}{\sigma_v}, \qquad \mathcal{E}_i(\beta_i^{*}) = \sigma_v\sqrt{q_i/s_i}. $$

Truncating direction $i$ instead costs the energy of the coefficient we give up, roughly $\mathbb{E}[\theta_i^2]$. The rule is therefore to keep direction $i$, with forgetting rate $\beta_i^*$ clipped to a minimum $\beta_{\min}$ set by the stream length, only if $\sigma_v\sqrt{q_i/s_i} < \mathbb{E}[\theta_i^2]$. Otherwise the direction is truncated.

Three things follow, and they are what is new. First, the truncation threshold is not a fixed fraction of the spectrum. It depends on drift. Weak directions that are also drifting get removed, while weak but stationary directions can be kept once enough data has accumulated. When $q_i \to 0$, the rule reduces to the classical stationary comparison of noise $\sigma_v^2/(n s_i)$ against signal $\theta_i^2$. Second, a single scalar forgetting factor is provably mismatched in ill-conditioned streams, because the optimal rate scales as $\sqrt{s_i}$. Strong directions should forget faster than weak ones, which is the opposite of what a scalar rate tuned to keep weak modes stable delivers. Third, the quantities the rule needs can be estimated per direction from the gap between a fast and a slow coefficient estimate. This replaces the global noise-floor estimate whose failure breaks variable step-size methods.

Relation to Prior Work

The proposal reuses its numerical machinery from the truncated-SVD literature. LoRanPAC lifts frozen ViT features into roughly $10^5$ random features, which makes the feature matrix severely ill-conditioned. It shows that an incremental truncated-SVD solver keeps errors bounded over hundreds of tasks where ridge regression degrades, and reports beating RanPAC by over 25% on ImageNet-A in the one-class-at-a-time setting, at up to 1000x the speed of ridge solvers. LoRanPAC discards a fixed fraction of the spectrum and has no notion of drift or forgetting. Our method keeps its solver and replaces the fixed fraction with the drift-aware rule above.

The update mechanics come from Projection techniques to update the truncated SVD of evolving matrices, which updates a rank-$k$ SVD as columns arrive using Rayleigh-Ritz projection. Its Option II adds a resolvent-based augmentation that approximates the discarded tail. That work assumes fixed rank, append-only data and no forgetting. We add exponential down-weighting by rescaling singular values before each append. We also let the rank vary, and we use its Option II to re-admit directions the rule had previously cut. Its noted accuracy decay under repeated truncation is a real constraint on our design, so we include periodic exact refreshes.

Adcock et al. motivate the threshold-as-tradeoff view: in Fourier extensions the truncation level explicitly trades resolution against noise sensitivity. Selecting the rank of truncated SVD by maximum approximation capacity addresses threshold choice in static problems. Neither treats a moving target.

On the adaptive side, Combinations of Adaptive Filters mixes a fast and a slow full-rank filter and reports a near-systematic 3 dB excess mean-square error gain on random-walk tracking. The same work documents that variable step-size schemes misread an unknown noise floor as lag and diverge. We borrow its fast/slow idea but apply it inside each singular direction, so the mixing weight becomes a per-mode forgetting rate with truncation as an option. Hsieh and Shanechi calibrate the learning rate analytically from random-walk variance, and Doubly Adaptive Social Learning uses a constant step size to escape stubbornness, accepting an error floor. Both use scalar, unconditioned rates, and our analysis predicts both are suboptimal when the spectrum spans orders of magnitude.

ViDA is the closest deep-learning analogue. It hard-codes a rank-1 "stable" adapter branch and a rank-128 "plastic" branch and gates between them with Monte Carlo dropout. We replace this two-level rank split with a continuous, per-direction choice derived from data. The comparison is not like-for-like, though: ViDA adapts without labels. We therefore do not claim to compete with it on test-time adaptation numbers.

Research Program

We will build the estimator as a streaming linear readout on fixed features, either lifted pre-trained features as in LoRanPAC or raw regressors in signal-processing testbeds. The readout maintains three objects. The first is an exponentially down-weighted incremental truncated SVD of the feature stream, with a rank cap $k_{\max}$. The second is a pair of coefficient estimates per retained direction, one at a fast forgetting rate and one at a slow rate. The third is a pool of recently cut directions held in the resolvent augmentation so they can be re-admitted.

From the fast/slow pair we estimate $q_i$ and $\sigma_v^2$ jointly. Under the per-mode model, the expected squared gap between the two estimates is a known linear combination of $q_i/s_i$-type and $\sigma_v^2/s_i$-type terms with known coefficients. Pooling this gap across modes, alongside the residual of the slow model, gives an identifiable system for the shared noise variance and the per-mode drifts. This is the step most likely to fail, and we will check it directly against ground truth in synthetic streams.

The analysis has two parts. We will prove the per-mode decomposition and the keep/cut rule under a stable eigenbasis with random-walk drift on coefficients. We will then characterize how the rule degrades when the eigenbasis itself rotates, which happens when the input distribution shifts and not just the target. The second regime is where we expect the method to be weakest, so we will build streams that isolate it.

Baselines

The naive reference is LoRanPAC's solver unchanged: incremental truncated SVD with a fixed truncation fraction and no forgetting. It is run on the same lifted features with the same random-feature dimension. This shows what happens when a solver built for task blocks meets continuous drift. On the ImageNet-A one-class-at-a-time protocol, the file only records LoRanPAC's relative margin over RanPAC (over 25%), not an absolute accuracy; no reported result found on Lacuna for LoRanPAC's absolute ImageNet-A accuracy, so we will reproduce it ourselves. Matching LoRanPAC on its own non-drifting protocol, and beating it on drifting ones, is the minimum bar.

The strongest classical competitor is exponentially weighted ridge least squares, i.e. recursive least squares with a forgetting factor and a Tikhonov penalty. It is the textbook answer to both problems at once. It gets the same features and the same per-step compute budget, and both its ridge strength and its forgetting factor are tuned by grid search on a held-out prefix of each stream. We give the same tuning budget to our method's only free parameters, the rank cap and the fast/slow rate pair.

The strongest tracking competitor is the affine combination of a fast and a slow filter from Arenas-García et al., whose reported figure is the roughly 3 dB EMSE gain over single filters on random-walk tracking. To make this fair, we also run a strengthened version: an affine combination of two LoRanPAC-style truncated solvers, one at a low rank with fast forgetting and one at a high rank with slow forgetting. This is the closest thing to our method that a reviewer could assemble from existing parts.

We also include a hindsight oracle: a single fixed truncation threshold and a single forgetting factor, both chosen on the test stream. Beating the strengthened combination is the result that matters. Beating the oracle on drifting streams is what would show that per-direction, time-varying decisions buy something no fixed setting can.

Two ablations isolate the key ingredient. One uses the same estimator but a single global threshold and a single scalar forgetting rate, adapted over time. The other uses per-direction forgetting with truncation disabled, so weak modes only forget slowly. If either ablation matches the full method, the corresponding half of the claim is unsupported.

Why not just…?

Why not just use recursive least squares with a forgetting factor and a ridge penalty? It is cheap, standard and handles drift. Our analysis says it fails in a specific way. A ridge penalty damps weak directions but never removes them, and LoRanPAC found that under severe lifting-induced ill-conditioning this leakage accumulates where truncation does not (LoRanPAC). The single forgetting factor is also forced to a compromise between the rate strong modes want and the rate weak modes want. This is testable, not settled. On streams with a well-conditioned spectrum we expect tuned ridge least squares to tie us, and we will report the condition-number range where the gap opens.

Why not just adapt a scalar forgetting factor or step size online? Variable step-size methods are known to mistake a rising noise floor for tracking lag and to inflate the step size into divergence (Arenas-García et al.). Even when tuned perfectly, a scalar rate cannot follow the $\sqrt{s_i}$ scaling the per-mode optimum requires. Our global-adaptive ablation is exactly this alternative given our better noise estimator. If it matches the full method, per-direction resolution is not worth its cost and we will say so.

Why not just combine a fast low-rank solver with a slow high-rank solver? This is the real threat. It already captures much of our intuition, and it needs no new estimator. Its limitation is that it chooses one mixing weight for all directions. When drift is concentrated in a few modes, which is the case in the red-car stream where only directions encoding the new subclass move, it must either over-forget everything or under-react everywhere. We run it as a first-class baseline under the same budget. If it matches us on streams with localized drift, the per-mode rule adds nothing and the contribution reduces to the analysis.

Proposed Experiments

The first testbed is synthetic random-walk system identification (Arenas-García et al.) with colored, ill-conditioned regressors and a controlled condition number. Drift is either spread evenly or concentrated in chosen singular directions, and the noise variance follows a known schedule. Here we measure EMSE and mean-square deviation against ground truth. We also check whether the estimated $q_i$ and $\sigma_v^2$ match the true values, including after noise-floor jumps that break variable step-size baselines.

The second testbed is LoRanPAC's frozen-ViT, random-feature setting on ImageNet-R and ImageNet-A. We use its original class- and domain-incremental protocols to confirm no loss in the stationary regime. We then add a drifting variant in which class-conditional feature distributions are gradually interpolated between domains rather than switched in blocks. The metrics are running accuracy, accuracy recovered after each shift, and time to recover.

The third testbed is the CIFAR-10 red-car drift stream from Doubly Adaptive Social Learning, run as a single learner with labels. The file reports no numbers for it; no reported result found on Lacuna for red-car accuracy. We measure the duration of the transient misclassification phase and post-recovery accuracy on unchanged classes. As a supervised streaming stress test with abrupt and recurring shifts, we also run CIFAR-10-C corruption sequences with labels revealed after each prediction. These results are reported separately from unsupervised test-time adaptation numbers, which use a different protocol.

The decisive checks are four. Our method should beat the strengthened fast/slow combination of truncated solvers on streams with localized drift. It should match tuned ridge least squares when the spectrum is well-conditioned and pull ahead as the condition number grows. The per-direction ablation should beat the global-adaptive ablation. And measured per-mode errors in the synthetic streams should follow the predicted $\sigma_v\sqrt{q_i/s_i}$ scaling. If the hindsight-tuned fixed setting matches the full method on drifting streams, the central claim is false.