Provable and Efficient Continual Representation Learning

Yingcong Li, Mingchen Li, M. Salman Asif, Samet Oymak · OpenReview

Abstract

In continual learning (CL), the goal is to design models that can learn a sequence of tasks without catastrophic forgetting. While there is a rich set of techniques for CL, relatively little understanding exists on how representations built by previous tasks benefit new tasks. This work establishes theoretical guarantees for Continual Representation Learning (CRL), showing that initial tasks with large sample sizes and high "representation diversity" significantly boost performance. We also propose Efficient Sparse PackNet (ESPN), which employs joint channel and weight pruning to ensure inference efficiency while retaining representation learning benefits.

Introduction

The primary challenge in continual learning is catastrophic forgetting, where learning a new task overwrites weights essential for previous ones. Architecture-based methods, such as PackNet, mitigate this by isolating tasks into specific subnetworks. However, two critical gaps remain: a theoretical understanding of how frozen features from old tasks assist new ones, and the computational bloat often associated with these "supernetworks." This work bridges these gaps by providing a rigorous theoretical framework for CRL and introducing a compute-efficient algorithm, ESPN.

Theoretical Insights: The Power of Diversity

A core contribution of this research is the formalization of how previously learned representations benefit future tasks. By modeling new tasks as a combination of a frozen feature map ($\phi_{frz}$) and a small set of new trainable weights ($\phi_{new}$), the authors proved that the "statistical cost" of learning is shared across tasks.

Impact of initial task diversity and sample size on continual learning performance.

As shown in the figure above, the order of tasks is crucial. Learning a highly diverse task with a large sample size (like ImageNet-1k) early in the sequence builds a "rich" feature set. This universal toolbox minimizes "representational mismatch" for subsequent tasks, allowing them to be learned with significantly fewer samples. This "Curriculum Flip" suggests that starting with the most representative and diverse tasks—rather than the easiest ones—provides the strongest foundation for continual learning.

The ESPN Algorithm

To translate these theoretical findings into a practical, high-performance system, the authors developed Efficient Sparse PackNet (ESPN). ESPN improves upon standard parameter isolation methods through several key innovations:

  1. Joint Channel & Weight Pruning: Standard pruning often targets individual weights, which doesn't necessarily translate to hardware speedups. ESPN prunes entire channels (neurons), directly reducing the number of Floating Point Operations (FLOPs) required for inference.
  2. FLOP-aware Pruning: A novel regularization technique penalizes channels based on their actual computational cost, which varies depending on the layer's position in the network.
  3. Task-specific BatchNorm: By maintaining separate Batch Normalization layers for each task, the model can more effectively re-purpose frozen weights for new objectives.
Channel pruning mechanism in ESPN for task-specific subnetwork isolation.

Experimental Results

The researchers evaluated ESPN across various benchmarks, including SplitCIFAR100 and a sequence of diverse image tasks (CUBS, Stanford Cars, Flowers, WikiArt, and Sketch).

  • Efficiency and Accuracy: ESPN-0.2, which utilizes only 20% of the original model's compute, achieved 89.1% accuracy on SplitCIFAR100. This outperformed standard PackNet and other baselines like CPG and RMN while being significantly faster.
  • Compute Reduction: The method successfully slashed inference FLOPs by up to 80% with negligible impact on accuracy.
  • Representation Transfer: On the RotatedMNIST benchmark, where tasks are semantically related, ESPN maintained high accuracy across 36 tasks, demonstrating successful leverage of learned representations. Conversely, on PermutedMNIST (where tasks are unrelated), accuracy dropped, proving the algorithm successfully exploits semantic structures.

Conclusion

This work provides a significant step toward data- and compute-efficient continual learning. By proving the importance of task diversity and sample size in building robust representations, it offers a theoretical basis for task ordering. Furthermore, the ESPN algorithm demonstrates that "zero-forgetting" can be achieved without sacrificing inference speed. Future research will explore adaptive schemes for task ordering and extending these joint pruning strategies to Transformer architectures.

Summary updated

Abstract

In continual learning (CL), the goal is to design models that can learn a sequence of tasks without catastrophic forgetting. While there is a rich set of techniques for CL, relatively little understanding exists on how representations built by previous tasks benefit new tasks that are added to the network. To address this, we study the problem of continual representation learning (CRL) where we learn an evolving representation as new tasks arrive. Focusing on zero-forgetting methods where tasks are embedded in subnetworks (e.g., PackNet), we first provide experiments demonstrating CRL can significantly boost sample efficiency when learning new tasks. To explain this, we establish theoretical guarantees for CRL by providing sample complexity and generalization error bounds for new tasks by formalizing the statistical benefits of previously-learned representations. Our analysis and experiments also highlight the importance of the order in which we learn the tasks. Specifically, we show that CL benefits if the initial tasks have large sample size and high "representation diversity". Diversity ensures that adding new tasks incurs small representation mismatch and can be learned with few samples while training only few additional nonzero weights. Finally, we ask whether one can ensure each task subnetwork to be efficient during inference time while retaining the benefits of representation learning. To this end, we propose an inference-efficient variation of PackNet called Efficient Sparse PackNet (ESPN) which employs joint channel & weight pruning. ESPN embeds tasks in channel-sparse subnets requiring up to 80% less FLOPs to compute while approximately retaining accuracy and is very competitive with a variety of baselines. In summary, this work takes a step towards data and compute-efficient CL with a representation learning perspective. GitHub page: https://github.com/ucr-optml/CtRL

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CUBSESPN (ImageNet pretrain)Test accuracy57.77split: test · pretraining=ImageNet
Source quote
L620: CUBS │ 49.64 │ 49.64 │ 57.77
Stanford Cars · Standford CarsESPN (ImageNet pretrain)Test accuracy84.26split: test · pretraining=ImageNet
Source quote
L621: Standford Cars │ 79.58 │ 80.86 │ 84.26
FlowersESPN (ImageNet pretrain)Test accuracy88.11split: test · pretraining=ImageNet
Source quote
L622: Flowers │ 66.06 │ 85.28 │ 88.11
WikiArtESPN (ImageNet pretrain)Test accuracy67.69split: test · pretraining=ImageNet
Source quote
L623: Wikiart │ 65.74 │ 65.76 │ 67.69
SketchESPN (ImageNet pretrain)Test accuracy75.80split: test · pretraining=ImageNet
Source quote
L624: Sketch │ 73.52 │ 74.25 │ 75.80
BibTeX
@misc{li2022provable,
  author = {Yingcong Li and Mingchen Li and M. Salman Asif and Samet Oymak},
  title = {{Provable and Efficient Continual Representation Learning}},
  year = {2022},
  eprint = {2203.02026},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02026},
}
Figure