TaE: Task-aware Expandable Representation for Long Tail Class Incremental Learning

Linjie Li, Six Liu, Zhenyu Wu, Ji YangarXiv 2024 · DOI

In real-world applications, data rarely arrives in perfectly balanced batches. Most machine learning models are developed under the assumption of uniform class distribution, but in practice, data is often "long-tailed," where a few "head" classes have abundant samples while many "tail" classes have very few. This challenge is compounded in Class-Incremental Learning (CIL), where a model must learn new categories over time without forgetting previous ones.

The paper "TaE: Task-aware Expandable Representation for Long Tail Class Incremental Learning" addresses this dual challenge of catastrophic forgetting and data imbalance with a novel framework designed for efficiency and robustness.

The Challenge of Long-Tailed Incremental Learning

Long-Tailed Class-Incremental Learning (LT-CIL) faces two primary obstacles:

  1. Catastrophic Forgetting: Updating a model with new tasks often overwrites the weights necessary for recognizing previous tasks.
  2. Long-Tail Bias: Imbalanced datasets cause models to favor "head" classes, leading to poor performance on "tail" classes.

While dynamic network solutions attempt to mitigate forgetting by adding new parameters for each task, they often face a trade-off: expanding the entire network leads to a massive memory footprint, while expanding too little limits the model's ability to learn complex tail distributions.

The TaE Framework

The authors propose the Task-aware Expandable (TaE) framework, which selectively expands only the most relevant parameters for new tasks. This approach maintains high plasticity for new learning while preserving old knowledge through freezing.

The TaE architecture overview, illustrating the selective parameter expansion and the Centroid-Enhanced (CEd) loss mechanism.

Selective Parameter Expansion

Instead of a uniform expansion, TaE identifies "sensitive" parameters. Before training a new task, the model performs forward passes to calculate gradients. It then identifies the top-p% (e.g., 5% or 10%) of parameters with the largest gradient magnitudes. Only these sensitive parameters are updated and expanded, while the rest of the backbone is frozen to prevent forgetting.

Centroid-Enhanced (CEd) Method

To prevent head classes from dominating the feature space, the authors introduced a Feature Isolation Strategy. The model maintains a bank of learnable centroids for every class. A specialized Min-Max Loss ($L_{max-min}$) forces features to cluster tightly around their respective class centroids while pushing different class centroids apart. This ensures that even data-starved tail classes have a protected territory in the representation space.

Experimental Results

The model was evaluated on CIFAR100-LT and ImageNet100-LT using a "shuffled" protocol, where the order of head and tail classes is randomized across tasks to better simulate real-world unpredictability.

Comparison of Average Accuracy vs. Trainable Parameters. TaE variants achieve higher accuracy with significantly fewer parameters than competing methods like FOSTER and DER.

TaE demonstrated superior performance across multiple benchmarks:

  • Efficiency: On ImageNet100-LT, expanding just 5% of parameters allowed TaE to outperform MEMO by 2.12% in average accuracy.
  • Accuracy: On CIFAR-100, TaE achieved an average accuracy 3.69% higher than previous state-of-the-art methods.
  • Robustness: The framework remained effective even at extreme imbalance ratios, significantly outperforming traditional methods like EWC and LwF.

Conclusion

TaE provides a compelling solution for continuous learning in imbalanced environments. By using gradient sensitivity as a guide for parameter expansion and geometric centroids to protect tail class representations, it achieves a state-of-the-art balance between model plasticity and memory efficiency. Future work may explore how these "centroid banks" scale to datasets with thousands of classes and further optimize the pre-training overhead required for sensitivity selection.

Summary updated

BibTeX
@misc{li2024tae,
  author = {Linjie Li and Six Liu and Zhenyu Wu and Ji Yang},
  title = {{TaE: Task-aware Expandable Representation for Long Tail Class Incremental Learning}},
  year = {2024},
  eprint = {2402.05797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05797},
}
Figure