Abstract
Continual learning aims to train neural networks on a sequence of tasks without forgetting previous knowledge. Elastic Weight Consolidation (EWC) is a popular approach that uses a diagonal approximation of the Fisher Information Matrix (FIM) to protect important weights. However, the diagonal assumption is often poor in practice. This paper introduces Rotated EWC (R-EWC), which applies a reparameterization to the network layers to align the parameter space such that the FIM becomes approximately diagonal, significantly improving the efficacy of EWC.
Introduction: The Bottleneck of Diagonal EWC
In lifelong learning, a neural network learns a sequence of tasks sequentially. The primary challenge is catastrophic forgetting, where learning Task B overwrites the knowledge required for Task A. Elastic Weight Consolidation (EWC) addresses this by identifying "critical" weights for old tasks using the Fisher Information Matrix (FIM) and penalizing changes to them.
However, for computational feasibility, EWC typically assumes the FIM is diagonal. In practice, weights are highly correlated, and the FIM is far from diagonal. This mismatch causes EWC to protect the "wrong" directions in parameter space, leading to sub-optimal performance.
Methods: Reparameterization via Rotation
The authors propose Rotated EWC (R-EWC) to bridge the gap between the diagonal approximation and the true FIM. Instead of modifying the EWC algorithm, they change the network's internal representation.
The Rotation Mechanism
R-EWC inserts fixed rotation layers (linear layers or $1 \times 1$ convolutions) into the network. These rotations are chosen specifically to diagonalize the FIM. Since computing the full FIM is intractable, the authors use a factorized approach:
- SVD on Correlations: They perform Singular Value Decomposition (SVD) on the input correlations and backpropagated gradient correlations for each layer.
- Preserving Functionality: These rotations are designed so the network's output remains identical. They simply "re-align" internal features so gradients become concentrated along diagonal axes.
- Integration: Standard EWC is then applied in this new, "diagonal-friendly" parameter space.
Key Insights: Effectiveness of Diagonalization
The core insight is that the diagonal of the FIM in standard networks captures only a small fraction of the matrix's "energy" (around 40%). After the proposed rotation, this value jumps to over 74%, making the diagonal approximation mathematically sound.
By rotating the features (activations and gradients) using SVD-derived matrices, the method achieves layer-wise efficiency, making it computationally feasible for deep networks.
Experimental Results
R-EWC was evaluated on several benchmarks, including Disjoint MNIST, CIFAR-100, CUB-200 Birds, and Stanford-40 Actions.
- Performance Gains: On MNIST, R-EWC achieved 93.1% average accuracy across two tasks, vs 89.3% for standard EWC. On CIFAR-100, it outperformed Learning Without Forgetting (LwF) by approximately 5%.
- Knowledge Retention: The most significant result is the preservation of early tasks. On Stanford-40, after four tasks, Task 1 accuracy was 12.0% with R-EWC, whereas standard EWC crashed to 0.0%.
Conclusion and Limitations
R-EWC provides a powerful enhancement to EWC by making its underlying assumptions more realistic. However, it does introduce some computational overhead due to SVD calculations and extra fixed layers. Furthermore, while it excels in CNNs and fully connected layers, its applicability to modern architectures like Transformers remains an open question for future research.
Summary updated