Continual Learning via Bit-Level Information Preserving

Yujun Shi, Li Yuan, Yunpeng Chen, Jiashi Feng

Abstract

Continual learning tackles the setting of learning different tasks sequentially. Despite the lots of previous solutions, most of them still suffer significant forgetting or expensive memory cost. In this work, targeted at these problems, we first study the continual learning process through the lens of information theory and observe that forgetting of a model stems from the loss of information gain on its parameters from the previous tasks when learning a new task. From this viewpoint, we then propose a novel continual learning approach called Bit-Level Information Preserving (BLIP) that preserves the information gain on model parameters through updating the parameters at the bit level, which can be conveniently implemented with parameter quantization. More specifically, BLIP first trains a neural network with weight quantization on the new incoming task and then estimates information gain on each parameter provided by the task data to determine the bits to be frozen to prevent forgetting. We conduct extensive experiments ranging from classification tasks to reinforcement learning tasks, and the results show that our method produces better or on par results comparing to previous state-of-the-arts. Indeed, BLIP achieves close to zero forgetting while only requiring constant memory overheads throughout continual learning.

Introduction

Continual Learning (CL) aims to enable AI agents to learn a sequence of tasks without suffering from catastrophic forgetting—the abrupt loss of performance on previously learned tasks. Existing approaches typically face a trade-off between performance and efficiency. Pruning-based methods, while effective, often incur memory costs that scale linearly with the number of tasks ($O(T)$). Conversely, regularization-based methods are memory-efficient ($O(1)$) but frequently struggle to prevent significant forgetting because they operate at the coarse granularity of entire parameters.

Methodology: Bit-Level Information Preserving (BLIP)

BLIP addresses these limitations by operating at the granularity of individual bits rather than whole parameters. The framework treats learning as a Bayesian inference process where information gain (IG) on model parameters is preserved to prevent forgetting.

Overview of the BLIP framework showing bit-level freezing based on Information Gain (IG).

The process involves three main stages:

  1. Weight Quantization: Weights are represented using a fixed number of bits (e.g., 20 bits), allowing parameters to be treated as binary sequences.
  2. Information Gain Estimation: Using Fisher Information and Laplace approximation, BLIP estimates the IG for each parameter after a task is completed. This IG represents the reduction in Shannon entropy (uncertainty) regarding the parameter's optimal value.
  3. Bit Freezing: Based on the IG, a specific number of most significant bits are frozen. During subsequent tasks, these bits are held constant via a specialized clipping operation, while the remaining "free bits" remain available for new learning.

Experiments and Results

BLIP was evaluated across diverse benchmarks, including image classification (MNIST, CIFAR, mini-ImageNet) and reinforcement learning (Atari).

Classification Performance

On the MNIST-5 benchmark, BLIP achieved a remarkable 99.64% accuracy with near-zero forgetting (Backward Transfer of +0.01%). In more complex scenarios like the 20-Split mini-ImageNet, BLIP outperformed state-of-the-art methods like HAT and A-GEM, achieving an average accuracy of 65.69%.

Reinforcement Learning

In a sequence of six Atari games, BLIP demonstrated superior stability compared to standard fine-tuning (FT) and Elastic Weight Consolidation (EWC).

Accumulated normalized reward across sequential Atari tasks, comparing BLIP with Fine-Tuning (FT) and Elastic Weight Consolidation (EWC).

As shown in the figure above, while FT and EWC performance degraded as new games were introduced, BLIP maintained a steadily increasing accumulated reward, indicating successful retention of skills across the task sequence.

Discussion and Conclusion

The success of BLIP lies in its fine-grained approach to parameter preservation. By freezing bits rather than entire parameters, the model maintains plasticity in its lower-significance bits while anchoring core knowledge in higher-significance bits. Crucially, BLIP achieves this with constant $O(1)$ memory overhead, as it only needs to track the number of frozen bits per parameter.

While BLIP shows significant promise, it eventually faces a "capacity wall" as the budget of free bits is exhausted over very long task sequences. Future research will focus on dynamic bit-budget management to further extend the model's longevity in lifelong learning scenarios.

Summary updated

BibTeX
@inproceedings{shi2021continual,
  author = {Yujun Shi and Li Yuan and Yunpeng Chen and Jiashi Feng},
  title = {{Continual Learning via Bit-Level Information Preserving}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=nBSLytHduU},
}
Figure