On the importance of cross-task features for class-incremental learning

Albin Soutif--Cormerais, Marc Masana, Joost van de Weijer, Bartłomiej Twardowski

TL;DR

This paper challenges the conventional wisdom that "catastrophic forgetting" is the primary cause of performance failure in class-incremental learning (class-IL). By isolating the role of cross-task features, the authors demonstrate that the real bottleneck is the model's inability to learn features that discriminate between classes seen in different tasks, alongside a lack of effective knowledge transfer under memory constraints.

What Problem Does This Paper Address?

In the world of continual learning, agents must learn a sequence of tasks without forgetting previous ones. There are two main flavors:

  1. Task-Incremental Learning (task-IL): The agent knows which task it is performing at test time (e.g., "Is this a digit from Task 1?").
  2. Class-Incremental Learning (class-IL): The agent has no task-ID at test time and must distinguish between all classes it has ever seen (e.g., "Is this a cat from Task 1 or a dog from Task 2?").

Class-IL is significantly harder because it requires cross-task discrimination. Most research focuses on preventing "catastrophic forgetting"—the tendency of neural networks to overwrite old knowledge. However, even when forgetting is minimized using a memory buffer (rehearsal), a massive performance gap remains compared to training on all data at once (joint training). This paper asks: Is forgetting really the main problem, or are we failing to learn the features necessary to tell tasks apart?

Methods

The authors conduct an ablation study using two replay-based baselines that differ only in their loss functions during the feature extraction phase:

  • $FT^{+CTF}_{BAL}$ (With Cross-Task Features): Uses standard cross-entropy over all classes seen so far. This explicitly encourages the model to learn features that distinguish classes across different tasks.
  • $FT^{-CTF}_{BAL}$ (Without Cross-Task Features): Uses a sum of task-specific cross-entropies. This mimics the task-IL setting, where the model only learns to distinguish classes within the same task (intra-task features).

To ensure a fair comparison and remove "task-recency bias" (the tendency to favor the most recent task), both methods include a final "balanced fine-tuning" step on a small, representative memory buffer.

Crucially, the authors introduce Cumulative Accuracy and Cumulative Forgetting metrics. Unlike standard metrics that evaluate tasks in isolation, these evaluate the model's performance on the growing set of all classes seen up to a certain point, providing a clearer picture of how task difficulty scales.

Datasets

The experiments were conducted on two standard computer vision benchmarks:

  • CIFAR-100: Split into 10 and 20 incremental tasks.
  • ImageNet-Subset (100 classes): Split into 25 incremental tasks.

Key Insights and Ideas

  • Intra-task vs. Cross-task Features: As illustrated in Figure 1, a model might learn to distinguish classes in Task 1 using color (intra-task). But if Task 2 also contains similar colors, the model needs to learn shape (cross-task) to tell them apart. Fictive scenario illustrating intra-task vs cross-task features
  • The Forgetting Myth: Using their new metrics, the authors found that cumulative forgetting is actually very low (often <1%) when using a memory buffer. The dramatic drop in average accuracy seen in class-IL is primarily due to the increasing difficulty of the task (discriminating between more classes) rather than losing old knowledge.
  • The Replay Bottleneck: Replay is surprisingly good at maintaining old features, but it struggles to help the model learn new cross-task features when the memory buffer is small.
  • Knowledge Transfer is Key: The performance gap between incremental learning and joint training isn't just about cross-task discrimination; it's also about the lack of "forward and backward transfer"—where learning one task helps improve performance on others.
Figure 1: Fictive scenario illustrating the two types of fea- tures considered. In this scenario, the color is an intra-task feature, and the shape is a cross-task feature. The intra-task features are insufficient to solve the final 4-class problem.

Key Results

  • The Feature Gap: In CIFAR-100 (10 tasks), the gap between learning cross-task features ($+CTF$) and not learning them ($-CTF$) is roughly 5-6% when using 20 exemplars per class. This gap widens as the number of tasks increases.
  • Upper Bound Discrepancy: Even with "infinite" memory (joint training), there is a ~10-15% performance gap caused solely by the absence of cross-task feature learning.
  • Memory Sensitivity: Figure 3 shows that as memory size increases, the model gets better at both task-specific accuracy and task inference. However, the benefit of explicitly learning cross-task features plateaus around 50 exemplars per class. Final average accuracy breakdown
  • Stability of Cumulative Accuracy: Figure 5 shows that while average accuracy (blue dotted line) drops, the performance on specific cumulative tasks (grey dashed lines) remains remarkably stable, proving that forgetting is not the primary culprit. Cumulative accuracies over time
Final average accuracy breakdown
Cumulative accuracies over time

Limitations and Future Work

  • Buffer Dependence: The study focuses on rehearsal-based methods. While these are currently state-of-the-art, the findings might differ for purely regularization-based or architecture-based methods.
  • Knowledge Transfer: The authors identify a lack of knowledge transfer as a major source of the performance gap but do not propose a specific mechanism to fix it.
  • Future Direction: The paper suggests that instead of just fighting forgetting, researchers should focus on improving the quality of learned representations and enabling better knowledge transfer between tasks, perhaps by leveraging unlabeled data streams or more sophisticated feature-alignment techniques.

Summary updated

BibTeX
@misc{soutifcormerais2021importance,
  author = {Albin Soutif--Cormerais and Marc Masana and Joost van de Weijer and Bartłomiej Twardowski},
  title = {{On the importance of cross-task features for class-incremental learning}},
  year = {2021},
  eprint = {2106.11930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.11930},
}
Figure