Естественный способ преодоления катастрофической забывчивости нейронных сетей

А.а. КуталевSovremennye 2020

Author: A. A. Kutalev

Abstract

The problem of catastrophic forgetting manifested itself in models of neural networks based on the connectionist approach, which have been actively studied since the second half of the 20th century. Numerous attempts have been made and various ways to solve this problem have been proposed, but until very recently substantial successes have not been achieved. In 2016, a significant breakthrough occurred – a group of scientists from DeepMind proposed the method of elastic weight consolidation (EWC), which allows us to successfully overcome the problem of catastrophic forgetting. Unfortunately, although we were aware about the cases of using this method in real tasks, it has not yet obtained widespread distribution. In this paper, we want to propose alternative approaches for overcoming catastrophic forgetting, based on the total absolute signal passed through the connection. These approaches demonstrate similar efficiency as EWC and, at the same time, have less computational complexity. These approaches have a simpler implementation and seem to us to be essentially closer to the processes occurring in the brain of animals to preserve previously learned skills during subsequent training. We hope that the ease of implementation of these methods will serve their wider application.

Introduction

Artificial Neural Networks (ANNs) have revolutionized machine learning, yet they struggle with a fundamental limitation known as catastrophic forgetting. When a network trained on Task A is subsequently trained on Task B, the optimization process for the new task often overwrites the weights critical for the first, leading to a rapid decline in performance on Task A. This stands in stark contrast to biological brains, which can learn a sequence of tasks throughout a lifetime without losing previously acquired skills.

In 2016, researchers at DeepMind introduced Elastic Weight Consolidation (EWC). EWC identifies "important" weights for a task using the diagonal of the Fisher Information Matrix and applies a penalty to their modification during subsequent training. While effective, EWC is computationally demanding and requires significant architectural overhead. This paper proposes a more "natural" and efficient alternative based on the total signal activity of neural connections.

Methodology

The proposed approach shifts the focus from statistical information (Fisher Matrix) to a direct measure of synaptic activity: the Total Absolute Signal.

1. Importance Metric: Total Absolute Signal

The core hypothesis is that the importance of a connection ($w_i$) can be estimated by the magnitude of the signal it carries during training. For a weight $w_i$, the importance $S_{A,i}$ is calculated as the average absolute value of the signal passing through that connection over $n$ training examples:

$$S_{A,i} = \frac{1}{n} \sum_{k=1}^{n} |x_{k,i} \cdot w_{A,i}|$$

Where $x_{k,i}$ is the input signal for the $k$-th example. This metric is significantly easier to compute than the Fisher Information Matrix, as it can be accumulated during standard forward passes with minimal overhead.

2. Weight Velocity Attenuation (WVA)

Traditional EWC modifies the loss function by adding a regularization term. In contrast, this paper proposes Weight Velocity Attenuation (WVA), which modifies the optimization step directly. The learning rate for each weight is scaled inversely to its accumulated importance:

$$w'_i = w_i - \frac{\alpha}{1 + \lambda S_i} \nabla_i$$

Here, $\alpha$ represents the global learning rate, $\nabla_i$ is the gradient, and $\lambda$ is a hyperparameter controlling the degree of "freezing." This approach effectively slows down the update "velocity" of connections that were highly active during previous tasks, preserving the learned skills.

Experimental Setup

The effectiveness of these methods was tested on the MNIST dataset using two distinct protocols:

  1. Permuted MNIST: Each task involves the same digits, but the input pixels are randomly shuffled. This tests the network's ability to handle global structural changes.
  2. Split MNIST: A class-incremental task where Task A involves digits 0-4 and Task B involves digits 5-9. This is a notoriously difficult benchmark for continual learning.

The study compared four variants:

  • EWC-F: Standard EWC using Fisher Information.
  • EWC-S: EWC using the proposed Signal-based importance.
  • WVA-F: Velocity attenuation using Fisher Information.
  • WVA-S: Velocity attenuation using Signal-based importance.

Results and Discussion

In the Permuted MNIST experiments, all four methods demonstrated nearly identical performance, successfully preventing catastrophic forgetting where standard Stochastic Gradient Descent (SGD) failed.

However, the Split MNIST results revealed a distinct advantage for signal-based metrics. Both EWC-S and WVA-S outperformed the traditional Fisher-based EWC. They showed a significantly slower rate of accuracy degradation for Task A as the network learned Task B.

Biological Parallels

The author suggests that this signal-based stabilization mirrors the biological process of myelination. In the brain, frequently active axons develop thicker myelin sheaths. While primarily known for increasing signal speed, myelination is also associated with reduced synaptic plasticity in mature circuits. The "Total Absolute Signal" serves as a computational proxy for this activity-dependent stabilization.

Conclusion

The proposed signal-based importance metric and Weight Velocity Attenuation (WVA) provide a computationally efficient, easy-to-implement, and biologically plausible solution to catastrophic forgetting. By requiring only $N$ additional parameters and avoiding complex gradient calculations, these methods offer a practical path toward more robust sequential learning in artificial neural networks.

Summary updated

BibTeX
@inproceedings{2020,
  author = {А.А. Куталев},
  title = {{Естественный способ преодоления катастрофической забывчивости нейронных сетей}},
  booktitle = {Sovremennye},
  year = {2020},
  doi = {10.25559/sitito.16.202002.331-337},
}
Figure