Grafy News
Try Grafy free

ContLoRA Matches Stored-Feature Learning Without Keeping Data

Researchers at Elastic built ContLoRA, which routes LoRA adapters using class statistics instead of stored examples, matching accuracy within 0.07 points.

Illustration for the news story: ContLoRA Matches Stored-Feature Learning Without Keeping DataSource: Grafy Research Lab

A continual-learning method called ContLoRA can match the accuracy of systems that store past training features while keeping no images or per-example vectors, according to a paper posted to arXiv by Alireza Heidari, Thomas Veasey and Mariano Tepper of Elastic. The result matters because retaining examples is a common way to preserve old capabilities, but that memory grows as the data stream lengthens.

The routing problem ContLoRA targets

Class-incremental learning asks a model to keep learning new classes without losing earlier ones, and without being told which task a query belongs to at inference, the authors write. Parameter-efficient methods adapt a frozen vision transformer through prompts, adapters or low-rank (LoRA) updates. The paper's starting observation is that freezing an older adapter only stops its weights from changing; it does not guarantee the whole system will later pick and combine the right adapters. As more adapters accumulate, choosing among them and finding the one whose representation space fits the query becomes difficult. Retaining past features can rebalance the classifier, but storing all of them inflates memory as the stream grows. That tension frames the paper's two questions: whether compact statistics can replace retained examples throughout the system, and how adapter selection, composition and classifier alignment affect accuracy.

How class statistics replace stored examples

ContLoRA's answer is to use class statistics as memory in three places, the authors explain. In a frozen representation, class means together with a covariance shared across tasks define task densities, and those densities select the top-kk LoRA adapters for a query. During training, a linear head is optimized with cross-entropy, then rebalanced after each stage using Gaussian samples drawn from the stored class statistics and carried into the next stage. For prediction, a separate ridge head is solved after each stage from accumulated moments of adapted features across all classes seen so far. The authors state these moments exactly recover the class-balanced ridge solution for the fixed training features. Figure 1 shows this default pipeline: current-task data train the new adapter and global head, while Gaussian samples rebalance only the head that carries forward. Throughout, the system keeps neither past images nor per-example feature vectors.

What the benchmarks showed

The headline numbers come from two of the benchmarks. According to the paper, ContLoRA reaches 88.55% accuracy on 20-task CIFAR-100 and 86.99% on CUB-200, trained without retaining images or feature vectors. The more controlled comparison is a matched study on CIFAR-100, ImageNet-R and CUB-200, where independently trained systems share the same architecture, task orders and evaluation setup, differing only in whether training-head alignment uses stored features or Gaussian samples from class statistics. Across those three benchmarks, the authors report the final mean accuracy differs by at most 0.07 percentage points. Figure 2 shows the CIFAR-100 accuracy grid at T=20T = 20 tasks, where the summed-adapter controls that rebalance on stored features still lose more early-task accuracy than the replay-free ContLoRA.

Figure 2: Accuracy Ri,j on task j (columns) after stage i (rows), CIFAR-100, T=20, mean over the five class orders of Tab. 2, common color scale. The summed-adapter contr…
Figure 2. Accuracy Ri,j on task j (columns) after stage i (rows), CIFAR-100, T=20, mean over the five class orders of Tab. 2, common color scale. The summed-adapter controls re-balance their head on stored features and still lose more early-task accuracy than the replay-free ContLoRA. Figure 2 of “The Geometry Is the Memory: Task-Density Routing for Continual LoRA” by Alireza Heidari, Thomas Veasey, Mariano Tepper (arXiv.org), CC BY 4.0.

What the ablations and novelty tests revealed

Two findings complicate a simple "more memory is better" reading. First, the ablations show that improved task coverage need not improve classification, and that adapter composition matters as well, so better routing alone does not guarantee a better composed classifier. Second, on held-out classes, competitor-centered likelihood scores improve novelty AUROC over raw likelihood without changing the routing ranks; the correction subtracts the mean log-likelihood of the other stored task densities, reusing the router's existing models rather than fitting a separate background. The authors also provide a stage-wise bound relating task-identification error to density overlap and model fit, and a variance identity describing when subtracting the mean competitor log-likelihood reduces score variance for a fixed task.

Where the method still struggles

The authors are explicit about scope. The matched study tests replacing retained features within one adapter architecture, not superiority over raw-image replay methods, and the replay-free label permits statistic-generated features while retaining no past images or per-example vectors. The clearest limitation they name is task ambiguity: on ImageNet-R at T=10T = 10 tasks, routing errors spread across all tasks rather than staying near the diagonal that CIFAR-100 shows. They frame statistical memory as a supported alternative to example retention in the evaluated settings, not a universal replacement, and note that the study assumes known training boundaries and learns no composition router.

Exploring the paper in Grafy

For readers who want to work through the method rather than the summary, Grafy Reader can read, search and question the arXiv PDF directly, and Grafy Chat can set the paper's claims beside related work it cites, such as RanPAC, FeCAM and SLCA. Reader's cited-reading view, described in the reading-room guide, is a practical way to check exactly which passages support each reported number before relying on it.

Frequently asked questions

Does ContLoRA store past images or feature vectors?

No. According to the paper, ContLoRA is trained without retaining images or per-example feature vectors. It keeps compact class statistics, namely class means and a covariance shared across tasks, and uses accumulated feature moments to solve its prediction head, which the authors say exactly recover the class-balanced ridge solution for the fixed training features.

What accuracy did ContLoRA reach on CIFAR-100 and CUB-200?

The paper reports 88.55% accuracy on 20-task CIFAR-100 and 86.99% on CUB-200, both trained without retaining images or feature vectors. In a separate matched study across CIFAR-100, ImageNet-R and CUB-200, its final mean accuracy differed from an independently trained stored-feature counterpart by at most 0.07 percentage points.

What limitation do the authors highlight for ContLoRA?

The authors highlight task ambiguity. They report that on ImageNet-R at 10 tasks, routing errors spread across all tasks rather than staying near the diagonal seen on CIFAR-100. They also note that better task coverage need not improve classification, because adapter composition affects the result, and they frame statistical memory as supported in the evaluated settings.

Source: https://arxiv.org/abs/2611.33487


Source: Grafy Research Lab — The Geometry Is the Memory: Task-Density Routing for Continual LoRA