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

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

TL;DR

This paper investigates the role of "cross-task features" in class-incremental learning (class-IL), a scenario where models learn new classes sequentially without access to old data. They find that while learning these features is beneficial, it's not the primary driver of performance improvements, suggesting that knowledge transfer and better feature quality are more crucial.

What Problem Does This Paper Address?

Class-incremental learning (class-IL) is a challenging machine learning paradigm where a model must learn a sequence of new classes over time without being able to revisit data from previously learned tasks. This is a realistic constraint in many applications where data storage is limited or privacy is a concern. The core difficulty lies not only in avoiding "catastrophic forgetting" (losing knowledge of old classes) but also in distinguishing between classes from different tasks, a problem known as "cross-task discrimination." Existing methods often rely on memory buffers to store a subset of old data for rehearsal. This paper delves deeper into why these methods work, specifically by dissecting the importance of learning features that can discriminate between classes from different tasks (cross-task features) versus features that only discriminate within the same task (intra-task features).

Methods

The authors propose two baseline class-IL methods that differ in their objective for the feature extractor:

  • FTBAL+CTF: This baseline explicitly encourages the learning of both intra-task and cross-task discriminative features using a standard cross-entropy loss over all seen classes.
  • FTBAL-CTF: This baseline is designed to learn only intra-task discriminative features by using a sum of cross-entropy losses for each task individually.

By comparing these two, the researchers can isolate the impact of learning cross-task features. They also introduce a new metric for "cumulative forgetting" to better assess performance in class-IL, arguing that traditional task-IL forgetting metrics are not suitable. Their experimental setup involves a two-step training procedure: initial training on the current task and then a balanced fine-tuning step using the memory buffer.

Datasets

  • CIFAR-100: A standard dataset with 100 classes, used with 10 and 20 task splits.
  • ImageNet-Subset: A subset of ImageNet containing 100 classes, used with 25 task splits.

The authors use a common practice of setting aside 10% of the training data for validation and employ a memory buffer of 20 exemplars per class for rehearsal.

Key Insights and Ideas

  • Cross-task features are helpful, but not the whole story: While learning cross-task features (FTBAL+CTF) consistently outperforms the baseline that only learns intra-task features (FTBAL-CTF), the performance gap between these two is significantly smaller than the gap between the limited-memory methods and their respective upper bounds (trained with all data). This suggests that other factors are more dominant.
  • Forgetting isn't the main culprit: The authors propose a new "cumulative forgetting" metric and show that it's very low, even with limited memory. This contradicts the common assumption that catastrophic forgetting is the primary reason for performance degradation in class-IL.
  • Knowledge transfer is key: The paper hints that improvements in knowledge transfer between tasks, and the overall quality of learned features, play a more significant role in closing the performance gap than explicitly learning cross-task features.
  • Task-IL metrics are insufficient for class-IL: The authors highlight the inadequacy of traditional task-IL forgetting metrics for class-IL and advocate for their proposed cumulative accuracy and forgetting measures.

Key Results

  • On CIFAR-100 with 10 tasks and 20 exemplars per class, FTBAL+CTF achieved an average accuracy of 34.8%, while FTBAL-CTF achieved 27.4%. However, the upper bound (trained with all data) reached 56.6%.
  • For 20 tasks on CIFAR-100 with 20 exemplars per class, FTBAL+CTF achieved 26.8% accuracy, compared to 20.1% for FTBAL-CTF. The upper bound was 51.8%.
  • The performance gap between FTBAL+CTF and its upper bound was around 10% for 10 tasks and 15% for 20 tasks, indicating that even with cross-task features, there's still a substantial gap to overcome.
  • The proposed cumulative forgetting measure was significantly lower than classic forgetting measures, suggesting that forgetting is not the main cause of performance drop.

Limitations and Future Work

  • Limited memory impact: The paper acknowledges that while learning cross-task features is beneficial, its impact is more pronounced with larger memory sizes. The benefits diminish with very small memory buffers.
  • Future directions: The authors suggest exploring the task-IL setting with memory constraints similar to class-IL to better understand knowledge transfer. They also propose investigating methods that learn from unlabeled data streams concurrently with tasks, which could facilitate knowledge transfer between data streams and tasks.

Summary updated

BibTeX
@misc{soutif2021importance,
  author = {Albin Soutif 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