TL;DR
Class-incremental learning (CIL) with Vision Transformers typically suffers from slow, memory-heavy classifier reconstruction and representation drift. This paper introduces LR-RGDA, an analytic classifier that uses low-rank matrix factorization to achieve Bayes-optimal accuracy with linear-like efficiency, paired with HopDC, a training-free distribution compensator based on Modern Continuous Hopfield Networks that fixes representation drift using unlabeled anchor images.
What Problem Does This Paper Address?
Class-Incremental Learning (CIL) requires machine learning models to learn new classes sequentially over time without forgetting previously learned ones. A highly popular pipeline decouples this process into two stages: first, optimizing the backbone network (like a Vision Transformer), and second, reconstructing the classifier to accommodate the expanding set of classes.
However, this second stage faces an efficiency-accuracy dilemma and a distribution misalignment problem:
- The Reconstruction Bottleneck: Most current methods rely on costly iterative Stochastic Gradient Descent (SGD) to train the classifier on synthesized "pseudo-features" of old classes. This is slow, memory-intensive, and lacks convergence guarantees. While analytic alternatives like Gaussian Discriminant Analysis (GDA) avoid iterative training, their quadratic inference complexity scales poorly as the number of classes grows.
- Representation Drift: As the backbone updates to learn new tasks, the underlying feature space shifts. Consequently, the stored statistics of historical classes become misaligned with the new feature space, leading to biased decision boundaries and catastrophic forgetting.
Methods
The authors introduce two tightly integrated components to solve these bottlenecks:
1. Low-Rank Factorized RGDA (LR-RGDA)
The authors observe that class covariance matrices in pre-trained Vision Transformers (ViTs) inherently exhibit a low-rank structure. Instead of computing full-rank, class-specific covariances, LR-RGDA models the covariance as a shared global full-rank base matrix plus a class-specific low-rank perturbation.
By applying the Woodbury matrix identity, they invert this matrix analytically without the heavy computational cost. This decomposes the final discriminant function into a global linear (affine) term refined by a lightweight class-specific quadratic correction in a low-dimensional subspace. This reduces per-sample inference complexity from $\mathcal{O}(Cd^2)$ to $\mathcal{O}(d^2 + Crd)$, making it computationally comparable to a standard linear classifier.
2. Hopfield-based Distribution Compensator (HopDC)
To fix representation drift without storing old images, the authors treat drift estimation as an associative memory problem. They introduce HopDC, a training-free mechanism that leverages Modern Continuous Hopfield Networks (MCHNs) over a small set of unlabeled "anchor" images. By minimizing an attention-based energy function, HopDC maps how the anchor images shifted between backbone updates and uses those dynamics to accurately interpolate and recalibrate the historical class statistics.
Datasets
The authors evaluated their framework across two comprehensive setups:
- Within-domain benchmarks: CIFAR-100, ImageNet-R, CUB-200, and Cars-196, each evenly split into 10 disjoint tasks.
- Cross-domain benchmark: A challenging 14-task setup spanning 7 diverse datasets: CIFAR-100, ImageNet-R, Cars-196, CUB-200, Caltech-101, Oxford-Flower-102, and Food-101.
Key Insights and Ideas
- Covariances are mostly low-rank: Even though ViT features live in high-dimensional spaces (e.g., $d=768$), the class-specific variance is concentrated in a tiny subspace (often fewer than 60 principal components). Truncating the "tail" of the covariance matrix eliminates massive computational overhead without sacrificing discriminative power.
- Global regularization is vital: Unlike SGD-based classifiers that favor class-specific features, analytic classifiers perform best when heavily regularized by a global average covariance matrix.
- Drift is associative: Representation drift isn't random; features that are close together in the embedding space drift in similar directions. This allows Hopfield networks to accurately interpolate drift for old classes using nearby unlabeled anchors.
Key Results
- State-of-the-Art Accuracy: Combining LR-RGDA and HopDC consistently establishes new benchmarks. On the ViT/B-Sup21K backbone, their method achieves an average final accuracy of 85.19% across four datasets, outperforming the strong CoMA baseline by 3.0 percentage points.
- Massive Speedups: LR-RGDA completely bypasses the quadratic inference slowdown of standard Quadratic Discriminant Analysis (QDA). At low ranks (e.g., $r=16$), its inference throughput matches linear classifiers (LDA, SGD) while maintaining the accuracy of full quadratic classifiers.
- Drift Recovery: For highly plastic fine-tuning strategies (like SeqFT on MoCoV3), HopDC boosts accuracy by a staggering +15.9 percentage points (from 62.6% to 78.5%), proving that "forgetting" in these models is often just a statistical misalignment rather than actual information loss.
Limitations and Future Work
- Online CIL: LR-RGDA has not yet been validated in online class-incremental learning scenarios where data arrives in a continuous stream rather than distinct task blocks.
- Task Boundaries: HopDC currently requires defined task boundaries to trigger the distribution compensation phase; it cannot be applied directly to settings where task boundaries are undefined or blurry.
- Computational Overhead: The attention mechanism within HopDC introduces a minor computational overhead during the calibration phase, which the authors aim to optimize for broader edge deployment.
Summary updated