TL;DR
UER (Unbias Experience Replay) is a simple yet powerful approach to Online Continual Learning that mitigates catastrophic forgetting by decomposing prediction scores into "angle" and "norm" factors. By using the angle factor to learn new classes and the norm factor to anchor old ones, UER achieves state-of-the-art accuracy across major benchmarks with minimal computational overhead.
What Problem Does This Paper Address?
In Online Continual Learning (OCL), a model must learn from a non-stationary stream of data, seeing each sample only once. The primary enemy here is Catastrophic Forgetting (CF): as the model learns new tasks, it abruptly forgets how to perform previous ones.
The most effective defense is "rehearsal," where a small buffer of old samples is replayed alongside new data. However, this creates a massive data imbalance. Because the model sees many more "new" samples than "old" replayed ones, it develops a prediction bias. The model's internal weights for new classes grow much faster than for old ones, leading it to mistakenly classify almost everything as a "current" class.
Existing solutions often require complex post-processing or additional training steps that aren't suitable for real-time applications. The authors of UER ask: Is there a more straightforward way to balance this competition?
Methods
The authors' core contribution lies in rethinking the standard dot-product logit ($w_i \cdot h + b_i$), which is the score a model assigns to a class. They decompose this score into two parts:
- The Angle Factor (Cosine Logit): Represents the similarity in direction between the feature and the class weight.
- The Norm Factor: Represents the magnitude (length) of the class weight vector.
The UER Strategy: * Learning (New Data): The model trains on current samples using only the angle factor (cosine logits). This allows the model to quickly learn the "shape" of new classes without letting their weight magnitudes explode and overwhelm the old classes. * Replaying (Old Data): When replaying samples from the memory buffer, the model uses the full dot-product logit. This leverages the norm factor to "boost" the scores of historical classes, effectively correcting the bias. * Testing: At inference time, the model uses the full dot-product logit to ensure a balanced, unbiased prediction across all learned classes.
This heuristic is implemented as a loss function that combines a cosine-based cross-entropy loss for new data with a weighted combination of dot-product and cosine losses for replayed data.
Datasets
The researchers evaluated UER on three standard "Split" benchmarks, where a dataset is broken into sequential stages of new classes:
- Split CIFAR-10: 5 stages, 2 classes per stage.
- Split CIFAR-100: 10 stages, 10 classes per stage.
- Split MiniImageNet: 10 stages, 10 classes per stage.
They tested these across various memory buffer sizes (from 100 to 5000 samples) to see how the method scales with limited memory.
Key Insights and Ideas
- The Norm is a Memory Anchor: While some previous methods (like LUCIR) abandoned the norm factor to focus on cosine similarity, UER finds that the norm factor is actually vital for "remembering." It acts as a counterweight to the gradient dominance of new classes.
- Gradient Competition: The paper provides a theoretical analysis showing that using cosine logits for new data produces smaller parameter changes for old classes and larger changes for current ones compared to standard dot-products. This helps "save" room in the weight space for new knowledge without overwriting the old.
- Simplicity is Scalable: Because UER only modifies the loss calculation and the final layer's logic, it has a computational complexity of $1.0$ (relative to standard Experience Replay). It doesn't require the $1.5x$ or $2x$ overhead seen in more complex bias-correction methods like OBC.
Key Results
UER consistently outperformed a wide array of state-of-the-art baselines (including ER-ACE, DER++, and LUCIR):
- Superior Accuracy: On Split CIFAR-100 with a 5000-sample buffer, UER achieved 29.6% accuracy, outperforming the strong ER-ACE baseline by 2.6%.
- Plug-and-Play Improvement: The authors showed that UER's logic could be integrated into other existing OCL methods (like MIR or ASER), significantly boosting their performance (as seen in the red lines of Figure 4 in the paper).
- Flexibility: The method isn't just for the final classification layer; the authors demonstrated it could be applied to the feature extractor itself, further stabilizing the model.
Limitations and Future Work
- Small Buffer Sensitivity: On the simplest dataset (CIFAR-10) with very small buffers, UER's advantage was less pronounced. The authors note that when the number of samples is very small, the norm factor doesn't have enough data to learn a stable representation.
- Hyperparameter Tuning: UER introduces a trade-off parameter ($\alpha$) to balance the dot-product and cosine losses during replay. While the paper suggests $\alpha=0.5$ is generally best, an automated way to adjust this scale during training could be a promising future direction.
- Task Boundaries: While UER works well in "class-incremental" settings, its performance in "domain-incremental" settings (where class labels stay the same but the data distribution shifts) remains an open question.
Summary updated