TL;DR
Most class-incremental learning (CIL) models assume all categories are forgotten at the same rate, but this paper reveals that forgetting is actually heterogeneous. The authors propose the Heterogeneous Forgetting Compensation (HFC) model, which uses a novel attention block and two plug-and-play losses to balance learning and retention across "easy-to-forget" and "hard-to-forget" classes, significantly outperforming state-of-the-art methods.
What Problem Does This Paper Address?
Class-Incremental Learning (CIL) is the challenge of teaching a machine learning model new classes over time without it "catastrophically forgetting" what it previously learned. Imagine an autonomous vehicle that learns to recognize new types of delivery robots; it shouldn't suddenly forget what a pedestrian or a stop sign looks like.
The authors identify a major flaw in current CIL research: the assumption that all old classes suffer from forgetting equally. In reality, forgetting is heterogeneous. Some classes are "hard-to-forget" because they have very distinct, consistent features (like a stop sign). Others are "easy-to-forget" because they have high intra-class variety in appearance and modality (like different types of cars or people in various poses).
Existing models treat all classes with a "one-size-fits-all" compensation strategy. This leads to imbalanced gradient updates, where the model might over-compensate for stable classes while neglecting those that are slipping away, ultimately degrading overall performance.
Methods
The HFC model tackles forgetting heterogeneity from two angles: Representation and Gradients.
1. Representation: Task-Semantic Aggregation (TSA) Block
Standard Vision Transformers (ViTs) often struggle to learn intrinsic, task-shared representations that persist across incremental steps. The authors introduce the TSA block. It aggregates local category information within a task to learn global representations that are shared across all tasks. By focusing on these robust, shared features, the model creates a more stable "memory" that is less susceptible to the noise of new incoming data.
2. Gradients: Two Plug-and-Play Losses
To address the imbalanced updates during training, the authors developed two novel losses that can be added to almost any existing distillation-based CIL method:
- Gradient-Balanced Forgetting Compensation (GFC) Loss: This loss calculates a "task-adaptive gradient mean" to measure how quickly different classes are being forgotten. It then reweights the classification loss, essentially "turning up the volume" on the training signal for classes that are being forgotten faster.
- Gradient-Balanced Relation Distillation (GRD) Loss: Instead of just trying to remember individual images, this loss focuses on the relationships between classes (e.g., a bus is more like a truck than a flower). It uses class-wise prototypes to maintain these semantic relationships across tasks, again using gradient balancing to ensure no single class dominates the distillation process.
Datasets
The model was evaluated on three standard benchmarks for incremental learning:
- CIFAR-100: A dataset of 100 classes with 600 images per class.
- ImageNet-100: A subset of the massive ImageNet dataset containing 100 classes.
- ImageNet-1000: The full-scale ImageNet benchmark with 1,000 classes, used to test the model's scalability.
The authors tested these under various settings, including different numbers of incremental tasks (5, 10, 20, 25, and 50 tasks) and different "base class" starting points (0% or 50% of classes known initially).
Key Insights and Ideas
- Forgetting is not a monolith: The core "aha" moment is quantifying that different classes have different "forgetting paces." By measuring the variance in gradient updates (Forgetting Heterogeneity or FH), the authors proved that reducing this variance directly correlates with higher accuracy.
- Leveling the Playing Field: By reweighting losses based on gradient magnitudes, the model ensures that "easy-to-forget" classes aren't drowned out by "hard-to-forget" ones during backpropagation.
- Prototypes over Samples: Using class-wise prototypes for relation distillation is more robust than using individual noisy samples, especially when memory for old data is strictly limited.
- Plug-and-Play Versatility: Perhaps the most practical insight is that the GFC and GRD losses aren't tied to the HFC architecture. They significantly boosted the performance of older SOTA models like iCaRL and DyTox when simply "plugged in."
Key Results
The HFC model consistently outperformed existing methods across all datasets:
- Accuracy Boost: HFC showed improvements ranging from 0.7% to 16.6% over baseline CIL methods (like iCaRL, BiC, and FOSTER) depending on the task configuration.
- Reduced Heterogeneity: In ablation studies, HFC reduced the Forgetting Heterogeneity (FH) metric from 128.9 (baseline) to 103.6, confirming that the model successfully balanced the learning process.
- Stability: As shown in the task-wise comparisons, HFC maintains a higher accuracy "slope" as more tasks are added compared to other methods, which tend to drop off more sharply.
Limitations and Future Work
While HFC is highly effective, the authors note that the current method for measuring forgetting heterogeneity might be sensitive to noise. If the initial predictions on an "easy-to-forget" class are very noisy, the gradient-based weights might become skewed.
The authors plan to explore ways to address this "noisy forgetting heterogeneity" in future work. Additionally, while the TSA block is efficient, the computational overhead of calculating per-class gradient means in every mini-batch is a factor to consider for extremely large-scale deployments.
Summary updated