Task-aware Orthogonal Sparse Network for Exploring Shared Knowledge in Continual Learning

Yusong Hu, De Cheng, Dingwen Zhang, Nannan Wang, Tongliang Liu, Xinbo Gao

TL;DR

Researchers have developed the Orthogonal Sparse Network (OSN), a new approach to Continual Learning that breaks the "stability-plasticity" deadlock. By partitioning a neural network into three parts—including a novel "shared knowledge" component—OSN allows a model to reuse old parameters for new tasks without forgetting what it previously learned, significantly boosting performance in long-term learning scenarios.

The Challenge: Catastrophic Forgetting vs. Under-fitting

In the world of AI, Continual Learning (CL) is the "holy grail": the ability for a model to learn a sequence of tasks (like recognizing cats, then cars, then coins) without Catastrophic Forgetting (CF)—where learning the new task wipes out the memory of the old ones.

Current state-of-the-art "forget-free" methods often rely on the Lottery Ticket Hypothesis. They partition the network into two: a frozen sub-network for old tasks and a set of "free" parameters for new ones. While this stops forgetting, it creates a new problem: under-fitting. In long-term scenarios with dozens of tasks, the old tasks "monopolize" the network's capacity, leaving the model with too few parameters to learn anything new effectively. The authors identify that these methods ignore shared knowledge—the features that are useful for both old and new tasks.

Introducing the Orthogonal Sparse Network (OSN)

To address this capacity bottleneck, the authors propose the Task-aware Orthogonal Sparse Network (OSN), which introduces a three-way partition of the network:

  1. Frozen Parameters: Dedicated solely to preserving old knowledge.
  2. Unpruned Free Parameters: Used traditionally to learn new tasks.
  3. Shared Parameters: Parameters from the "old" sub-network that are identified as also being highly relevant to the "new" task.
Comparison of network partition strategies

To make this work, OSN employs two key technical innovations:

  • Shared Knowledge Induced Network Partition: The model uses a weight importance function based on gradients and magnitudes to identify which "frozen" parameters would be most beneficial to the new task.
  • Sharpness-aware Orthogonal Projection: To update these shared parameters without causing forgetting, OSN projects the gradients onto the orthogonal space of the old tasks' features. This ensures that updates to these weights have zero (or minimal) impact on the output of previous tasks. Furthermore, they seek "flat minima" (sharpness-aware learning), which are more robust to the slight errors inherent in approximate orthogonal projections.
Illustration of sharpness-aware orthogonal projection

Key Insights and Ideas

  • Reusing is Better Than Just Adding: Instead of just expanding the network or using leftover "free" space, OSN proves that "recycling" important parameters from old tasks is the key to maintaining model capacity over time.
  • The Power of Orthogonality: By mathematically ensuring that updates to shared weights are orthogonal to the feature space of old tasks, the model can "double-dip" into its parameters without interference.
  • Flatness Equals Stability: Seeking flat minima in the loss landscape makes the model much more resilient to the "drift" that usually happens in continual learning. It provides a buffer that allows for more aggressive knowledge sharing.

Datasets and Key Results

The authors evaluated OSN on five standard benchmarks and two "long-term" variants, including Permuted MNIST, Split CIFAR-100, and Split TinyImageNet (40 tasks).

OSN achieved state-of-the-art (SOTA) results across all tested datasets, particularly excelling in long-term learning:

  • Accuracy (ACC): On Split TinyImageNet (40 tasks), OSN achieved 76.23% ACC, outperforming the previous best method by 3.46%.
  • Forget-Free Performance: OSN maintained a Backward Transfer (BWT) of approximately 0.00% on most datasets, meaning it effectively eliminated catastrophic forgetting while still improving plasticity.
  • Network Capacity: Using a metric called CAP (which measures parameter efficiency), OSN showed significantly better capacity than other pruning methods, especially as the number of tasks increased.

Limitations and Future Work

The authors acknowledge that their current work focuses primarily on Task-Incremental Learning (TIL), where the model is told which task it is performing during inference. They suggest that future research should extend the OSN framework to Class-Incremental Learning (CIL), a more difficult setting where the model must also identify the task identity on its own. Additionally, while Huffman encoding is used to compress the binary masks, the memory overhead of storing masks for hundreds of tasks could eventually become a bottleneck for extremely long-lifespan agents.

Summary updated

BibTeX
@inproceedings{hu2024task,
  author = {Yusong Hu and De Cheng and Dingwen Zhang and Nannan Wang and Tongliang Liu and Xinbo Gao},
  title = {{Task-aware Orthogonal Sparse Network for Exploring Shared Knowledge in Continual Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=tABvuya05B},
}
Figure