Abstract
We introduce Continual Learning via Neural Pruning (CLNP), a new method aimed at lifelong learning in fixed capacity models based on neuronal model sparsification. In this method, subsequent tasks are trained using the inactive neurons and filters of the sparsified network and cause zero deterioration to the performance of previous tasks. In order to deal with the possible compromise between model sparsity and performance, we formalize and incorporate the concept of graceful forgetting: the idea that it is preferable to suffer a small amount of forgetting in a controlled manner if it helps regain network capacity and prevents uncontrolled loss of performance during the training of future tasks. CLNP also provides simple continual learning diagnostic tools in terms of the number of free neurons left for the training of future tasks as well as the number of neurons that are being reused. In particular, we see in experiments that CLNP verifies and automatically takes advantage of the fact that the features of earlier layers are more transferable. We show empirically that CLNP leads to significantly improved results over current weight elasticity based methods.
Introduction
The "holy grail" of artificial general intelligence is the ability to learn tasks sequentially without forgetting what was learned before—a challenge known as catastrophic forgetting. Current solutions generally fall into two camps: dynamic architectures, which add new modules for every task but grow indefinitely, and weight elasticity methods like Elastic Weight Consolidation (EWC), which constrain important weights but still suffer from performance degradation.
Continual Learning via Neural Pruning (CLNP) is a novel approach that leverages the inherent over-parametrization of neural networks. By pruning a network after learning a task and using only the "inactive" neurons for subsequent tasks, CLNP achieves a mathematical guarantee of zero catastrophic forgetting on previous tasks while maintaining a fixed model capacity.
Methods
The core of CLNP is a clever partitioning of the network’s neurons and weights. The process follows four primary steps for each task:
- Sparsification: The network is trained using $L^1$ regularization to encourage many neurons to remain inactive.
- Identification: After training, the model identifies "active" neurons ($N^{act}$) based on an average activation threshold ($\theta$).
- Weight Partitioning: Weights are categorized into three groups: Active Weights ($W^{act}$) which are frozen to preserve the current task; Free Weights ($W^{free}$) which connect to inactive nodes and are available for the next task; and Interference Weights ($W^{int}$) which connect inactive nodes to active nodes and are set to zero to prevent corruption of active pathways.
- Graceful Forgetting: A key conceptual contribution where the model intentionally sacrifices a tiny, controlled amount of accuracy (e.g., 0.1%) during pruning if it frees up significantly more neurons for future tasks.
Experiments and Results
The authors evaluated CLNP on standard benchmarks including Permuted MNIST (10 tasks) and Split CIFAR-10/100.
Key Insights
- Zero Forgetting by Construction: Because interference weights are zeroed and active weights are frozen, the mathematical output for a previous task remains identical after training new tasks.
- Automatic Feature Re-use: The model naturally discovers that early-layer features (like edges) are highly transferable. The number of new neurons needed in the first layer drops significantly after the first few tasks, while final layers grow linearly.
- Diagnostic Utility: CLNP provides a clear "fuel gauge" for the model, allowing researchers to see exactly how many neurons remain in each layer.
Performance
On Permuted MNIST, CLNP achieved 98.42% average accuracy across 10 tasks, significantly outperforming EWC (97.0%) and Synaptic Intelligence (97.2%). On CIFAR-10/100, CLNP outperformed weight elasticity methods even with narrow architectures. When combined with a fine-tuning step (CLNP + FT), the performance drop from pruning was almost entirely eliminated.
Limitations and Future Work
CLNP faces a hard capacity limit; once all neurons are active, the model cannot learn new tasks without violating the zero-forgetting guarantee. The method is also sensitive to architecture, performing best on over-parametrized, wide networks. Future work may involve more sophisticated, iterative pruning techniques to further improve the number of tasks a single network can accommodate.
Summary updated