Entropy-based Stability-Plasticity for Lifelong Learning

Vladimir Araujo, Julio Hurtado, Alvaro Soto, Marie-Francine MoensWorkshops @ CVPR 2022

Abstract

The ability to continuously learn remains elusive for deep learning models. Unlike humans, models cannot accumulate knowledge in their weights when learning new tasks, mainly due to an excess of plasticity and the low incentive to reuse weights when training a new task. To address the stability-plasticity dilemma in neural networks, we propose a novel method called Entropy-based Stability-Plasticity (ESP). Our approach can decide dynamically how much each model layer should be modified via a plasticity factor. We incorporate branch layers and an entropy-based criterion into the model to find such factor. Our experiments in the domains of natural language and vision show the effectiveness of our approach in leveraging prior knowledge by reducing interference. Also, in some cases, it is possible to freeze layers during training leading to speed up in training.

Introduction

Artificial neural networks face a fundamental challenge known as the stability-plasticity dilemma. To acquire new skills, a model must be "plastic" enough to modify its weights; however, to retain previously learned information, it must remain "stable." In standard deep learning, training on a sequence of tasks typically results in catastrophic forgetting, where the optimization for a new task overwrites the weights essential for previous ones.

While humans naturally reuse general knowledge—such as basic linguistic structures—when learning specialized new domains, AI models often lack the mechanism to distinguish between general-purpose features and task-specific ones. We introduce Entropy-based Stability-Plasticity (ESP), a framework that allows models to self-regulate their learning process by dynamically determining which layers require modification and which should remain frozen.

Methodology

ESP introduces a modular approach to training by attaching small "side-branch" layers to the primary blocks of a backbone architecture (e.g., a Transformer or ResNet). The training process for each new task is divided into three distinct phases:

  1. Branch Training: The main backbone model is frozen. Only the lightweight side branches are trained on a subset of the new task's data to predict the relevant classes.
  2. Entropy Calculation: The model evaluates the Entropy of the predictions made by each branch.
  3. Low Entropy indicates high confidence, suggesting the preceding backbone layers already possess sufficient knowledge to represent the data. This results in a low Plasticity Factor (PF).
  4. High Entropy indicates low confidence, suggesting the layers need to adapt to the new data, resulting in a high PF.
  5. Gradient Scaling: During the subsequent backbone training phase, the gradients for each layer are scaled by their respective PF. If the PF reaches zero, the layer is effectively frozen, preserving its existing weights.

This mechanism allows the model to automatically identify and preserve "general knowledge" layers (typically the lower layers) while focusing adaptation on "task-specific" layers (typically the upper layers).

Experimental Setup

The effectiveness of ESP was evaluated across two distinct domains:

  • Natural Language Processing (NLP): A BERT-base model was trained on five sequential text classification datasets: Yelp (sentiment), AGNews (news), Amazon (reviews), DBPedia (articles), and Yahoo (Q&A).
  • Computer Vision: A ResNet-18 model was tested on the CIFAR10 dataset, partitioned into five sequential tasks.

ESP was compared against standard lifelong learning baselines, including Replay, Online Elastic Weight Consolidation (O-EWC), and Synaptic Intelligence (SI).

Results and Discussion

Performance and Accuracy

In the NLP domain, ESP consistently outperformed established regularization methods like SI and O-EWC. The model achieved an average accuracy improvement of 0.34 to 0.44 percentage points over the strongest baselines. In computer vision, while the gains were more modest—likely due to the shallower architecture of ResNet-18 compared to BERT—ESP remained highly competitive with state-of-the-art methods.

Computational Efficiency

A significant advantage of ESP is its training efficiency. Because the model dynamically freezes layers with low plasticity requirements, it reduces the overall computational load. In experimental trials, ESP completed training in approximately 123 minutes, compared to 164–167 minutes for traditional regularization methods. This represents a significant speed-up, as the backbone "spine" was only active for roughly 111 minutes of the total training time.

Layer-wise Plasticity

The experiments confirmed that ESP successfully identifies the hierarchy of features in deep models. In BERT, the initial layers often exhibited near-zero plasticity, confirming they capture universal linguistic features that do not need to be updated for new classification tasks. Unlike static methods that assume lower layers should always be stable, ESP’s data-driven approach allows it to adapt its freezing strategy based on the specific requirements of the task at hand.

Conclusion and Future Work

Entropy-based Stability-Plasticity (ESP) provides a robust solution to the stability-plasticity dilemma by using uncertainty as a proxy for learning necessity. By scaling gradients based on entropy, ESP reduces catastrophic forgetting while simultaneously improving training speed through layer freezing.

Future research will focus on scaling ESP to even larger architectures, such as Vision Transformers (ViTs), and exploring "utterly online" scenarios where the model must learn without the benefit of a stored replay buffer. These advancements could lead to more autonomous and efficient AI systems capable of learning throughout their operational lifetimes.

Summary updated

BibTeX
@inproceedings{araujo2022entropy,
  author = {Vladimir Araujo and Julio Hurtado and Alvaro Soto and Marie-Francine Moens},
  title = {{Entropy-based Stability-Plasticity for Lifelong Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
  url = {https://openreview.net/forum?id=WeGj8SFrrvu},
}
Figure