[Paper Review] Stabilizing Elastic Weight Consolidation method in practical ML tasks and using weight importances for neural network pruning
This paper stabilizes the Elastic Weight Consolidation (EWC) method for continual learning in deep neural networks, particularly addressing gradient explosion and gradient clipping issues in convolutional and self-attention networks. It proposes a stabilized EWC variant that outperforms the original in training stability while maintaining comparable continual learning performance, and finds that weight magnitude or total absolute signal is superior to EWC-based importance for neural network pruning.
This paper is devoted to the features of the practical application of the Elastic Weight Consolidation (EWC) method for continual learning of neural networks on several training sets. We will more rigorously compare the well-known methodologies for calculating the importance of weights used in the EWC method. These are the Memory Aware Synapses (MAS), Synaptic Intelligence (SI) methodologies and the calculation of the importance of weights based on the Fisher information matrix from the original paper on EWC. We will consider these methodologies as applied to deep neural networks with fully connected and convolutional layers, find the optimal hyperparameters for each of the methodologies, and compare the results of continual neural network learning using these hyperparameters. Next, we will point out the problems that arise when applying the EWC method to deep neural networks with convolutional layers and self-attention layers, such as the "gradient explosion" and the loss of meaningful information in the gradient when using the constraint of its norm (gradient clipping). Then, we will propose a stabilization approach for the EWC method that helps to solve these problems, evaluate it in comparison with the original methodology and show that the proposed stabilization approach performs on the task of maintaining skills during continual learning no worse than the original EWC, but does not have its disadvantages. In conclusion, we present an interesting fact about the use of various types of weight importance in the problem of neural network pruning.
Motivation & Objective
- To stabilize the Elastic Weight Consolidation (EWC) method for practical continual learning in deep networks with convolutional and self-attention layers.
- To rigorously compare and select optimal hyperparameters for EWC using MAS, SI, and Fisher information-based weight importance methods.
- To identify and resolve training instabilities such as gradient explosion and loss of gradient signal under norm constraints in EWC.
- To evaluate the utility of EWC-derived weight importances for neural network unstructured pruning.
- To determine the most effective weight importance metric for pruning in fully connected and convolutional networks.
Proposed method
- Proposes a stabilized EWC method that mitigates gradient explosion and improves gradient signal retention during backpropagation in convolutional and self-attention networks.
- Employs a grid search over the EWC hyperparameter λ to find the optimal value for each weight importance method (MAS, SI, Fisher) on specific architectures and datasets.
- Calculates weight importance using three methods: Memory Aware Synapses (MAS), Synaptic Intelligence (SI), and Fisher information matrix from the original EWC paper.
- Applies the stabilized EWC method during sequential training on MNIST permutations and MNIST/Fashion-MNIST with 90-degree rotations, using Adam optimizer with fixed hyperparameters.
- Performs unstructured pruning by zeroing weights based on magnitude and EWC-derived importance scores, evaluating accuracy degradation over pruning ratios.
- Uses 20 independent runs per experiment to compute mean accuracy and 95% confidence intervals for robust evaluation.
Experimental results
Research questions
- RQ1What is the optimal value of the EWC hyperparameter λ for different weight importance methods (MAS, SI, Fisher) in continual learning on fully connected and convolutional networks?
- RQ2How do gradient explosion and gradient clipping affect the training stability of EWC in convolutional and self-attention networks?
- RQ3Does the proposed stabilization method preserve EWC’s ability to mitigate catastrophic forgetting while improving training stability?
- RQ4Which weight importance metric yields the best performance in unstructured neural network pruning: magnitude, MAS, SI, or Fisher information?
- RQ5How does the performance of EWC-based pruning compare to magnitude-based pruning in terms of accuracy degradation under increasing sparsity?
Key findings
- The Memory Aware Synapses (MAS) method for weight importance consistently outperforms both SI and Fisher information-based importance in continual learning, achieving the highest average accuracy across all tested architectures.
- The optimal λ value for each importance method was found empirically via grid search, with MAS showing the most robust performance across different network types.
- The proposed stabilization method for EWC maintains or exceeds the original EWC’s performance in continual learning while resolving gradient explosion and gradient signal degradation issues.
- In unstructured pruning, weight magnitude and total absolute signal-based pruning significantly outperform pruning based on MAS, SI, or Fisher information importance, with minimal accuracy degradation.
- Pruning based on MAS, SI, or Fisher importance showed poor performance, likely because these metrics reflect local importance around the current weight value, which becomes invalid when weights are zeroed.
- The stabilized EWC method is particularly promising for fine-tuning large language models with self-attention mechanisms, such as transformers, due to improved training stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.