Elamur Research

Loss of plasticity in deep continual learning

Paper · 2024 · Shibhansh Dohare, J. Fernando Hernandez-Garcia, Qingfeng Lan et al.

Summary

A neural network can get worse at learning even while it continues to receive examples and update its weights. Dohare and colleagues call this loss of plasticity. It concerns what a network can learn next, a separate question from whether it still remembers what it learned before. The authors demonstrate the problem by giving networks long sequences of learning opportunities and measuring how well they use them. A network that starts out learning more effectively than a simple baseline can end up learning about as well as that baseline, or worse.

The paper makes the comparison in several ways. In Continual ImageNet, the network learns successive pairs of object categories. Conventional back-propagation reaches up to 88% test accuracy on early tasks, but by the 2,000th task it has deteriorated substantially at every step size shown. In class-incremental CIFAR-100, training continues on old categories as new ones arrive. The standard residual network initially benefits from earlier training, then falls behind a network trained from scratch on the same categories. In simulated ant locomotion, an agent trained with standard proximal policy optimization learns to walk, then progressively fails to adapt when ground friction changes. Its performance can also collapse under constant friction.

The authors trace these failures alongside changes inside the networks. More hidden units stop responding, representations become less diverse, and weights tend to grow. Limiting weight growth helps in several experiments. The authors’ method, continual back-propagation, also renews a small portion of the representation during ordinary training. It selects hidden units that contribute little to current predictions, redraws their incoming weights from the original initialization distribution, and sets their outgoing weights to zero. The new features can then acquire influence through ordinary learning, while the rest of the network keeps working.

Continual back-propagation sustains learning across the supervised experiments, and the residual network using it reaches 76.13% test accuracy at the final CIFAR-100 increment. In reinforcement learning, the authors combine the method with weight regularization and a tuned optimizer. That combination continues to learn in experiments where standard training deteriorates. The results show that renewal can preserve the capacity to adapt over the runs studied. They leave open how to preserve knowledge that matters mainly for past tasks and which properties of fresh initialization account for the improvement.

Deep dive: Loss of plasticity in deep continual learning

Why deep neural networks can lose the ability to learn from new data, and how continual backpropagation helps them keep adapting. · about 35 minutes to read

The problem and its context

What a trained network can learn next

A familiar approach in machine learning divides a network’s life into training and use. During training, the network changes its weights to improve its predictions or decisions. During use, those weights are held fixed. This arrangement works when the training data prepare the network for what it will later encounter. It is less accommodating when relevant data keep arriving or the conditions under which a system operates keep changing. The authors point to changing preferences, markets and control problems as settings where the ability to keep learning would matter.

Continuing training sounds like the simplest response. The network already has useful information in its weights, and the same procedure that learned from earlier examples can also process new ones. The difficulty, as the paper describes it, is that fitting new data can change an existing network too much or too little. Starting over with the old and new data together can sidestep some of those difficulties, provided the old data are still available and the cost of retraining is affordable. That approach can become expensive when training is already a substantial operation.

The paper isolates a particular failure within this larger problem. Plasticity is the capacity to change in ways that make newly encountered information useful. A network has lost plasticity when its previous training leaves it less able to improve on incoming data. A poor initial prediction on a new task says little by itself. A switch may give familiar inputs a different meaning or require distinguishing categories the network has never seen. What matters for plasticity is how much the network can learn once it has had a chance to train on the new examples.

Catastrophic forgetting asks a different question. A learner may perform poorly on an old task after training on a new one, particularly when the old examples are absent. It could do so while learning the new task quite well. Conversely, a learner could still perform well on its previous task and struggle to learn a different one. The paper describes retention as a matter of stability and acquisition as a matter of plasticity. A system intended to learn over a long period needs both. The experiments emphasize acquisition, sometimes by keeping earlier data available and sometimes by directing evaluation towards whichever problem the learner is currently facing.

This distinction also changes what counts as a baseline. To ask whether an experienced network can still learn, it helps to compare it with a learner that starts fresh or with a simple predictor whose performance is stable across tasks. Raw performance is sometimes enough to spot a problem, provided successive tasks have comparable difficulty. In a classification problem that grows as categories are added, accuracy can naturally decline because more distinctions must be made. A freshly trained network facing the same categories gives the experiment a way to account for that increasing difficulty.

Why learning history matters

The training procedure at the center of the paper is back-propagation with a gradient-based optimizer. Back-propagation calculates how changes in the weights would affect the loss, a numerical measure of error. The optimizer uses those calculations to update the weights. Stochastic gradient descent, or SGD, estimates the direction of improvement from the example or group of examples currently being processed. Momentum can carry some of the preceding updates forward. Adam instead keeps running estimates related to the gradients and uses them to adjust update sizes.

At the beginning, the weights are sampled from an initialization distribution. The resulting hidden units respond differently to inputs, giving learning a variety of features to develop. Work on initialization discussed in the paper had examined how to preserve gradient magnitudes across layers and how to keep activations such as sigmoid from starting in a saturated region, where changes in input have little effect on output. The authors ask what becomes of those favorable initial conditions when a network has been optimized repeatedly. Every new task can begin with a set of weights that was shaped by earlier tasks.

Earlier evidence motivated that question. The authors trace observations of declining plasticity to connectionist work in psychology, before the rise of modern deep learning. They also describe research on failures when restarting training from previously fitted weights, and work in reinforcement learning where resetting a network while retaining its replay buffer could improve performance. A replay buffer stores experience that a learner can train on again. A learner with a large buffer can recover from a reset using those records, while a learner with little stored experience has much less to build on. The paper therefore includes a reinforcement-learning algorithm that works with much smaller buffers than those emphasized in the related work it discusses.

The authors also draw on an older tradition of generating and testing features. In that approach, a learner creates candidate features, keeps the ones that help and creates replacements when others have little use. Applying the principle to a deep network raises a practical question. A hidden unit has connections that determine what it detects and other connections that determine what the rest of the network does with its output. Replacing it can disturb both. Continual back-propagation combines this form of feature generation with ordinary gradient updates and controls how strongly a replacement affects the network when it is introduced.

Long learning sequences make these questions visible. A brief continuation of training can benefit from previous experience, much as a pretrained network can benefit a downstream task through fine-tuning. The paper studies what happens when the same learner must repeatedly adapt well beyond that initial use of prior knowledge. Its experiments vary the source of change. Image categories change in the supervised tasks, the distribution of inputs drifts in a regression problem, and in reinforcement learning the environment or the agent’s behavior can alter the experience on which learning depends.

The method, step by step

Let the network learn before choosing what to replace

Continual back-propagation begins with ordinary initialization and uses the ordinary prediction and weight-update procedure throughout training. An input passes through the network, each hidden layer produces activations, and the output is used to evaluate a loss. The optimizer then changes the weights using the gradients. A separate part of the update checks whether any hidden units are due for replacement. That check uses information collected during training about how much each unit contributes to the next layer.

Consider a hidden unit whose output is often large. If the connections carrying that output to the next layer have very small weights, the unit can still have little influence on its immediate consumers. The reverse can happen when the unit rarely activates, even if its outgoing weights are substantial. The paper’s contribution utility accounts for both. It measures the magnitude of the signal sent along each outgoing connection and adds those magnitudes for the unit. Keeping a running average makes the score reflect more than the unit’s response to the current example.

A replacement has deliberately different incoming and outgoing weights. Its incoming weights are sampled afresh so that it computes a new feature of the preceding layer. Its outgoing weights start at zero, so that the new feature initially sends no signal forward through those connections. Removing the old feature can still change the prediction. Choosing a low-utility unit is intended to keep that change small. Once the new feature has been inserted, subsequent gradient updates can learn outgoing weights that bring it into use.

A new unit would be a poor candidate for immediate reassessment. Zero outgoing weights give it zero contribution at insertion, and its incoming weights have had little opportunity to become useful. The method therefore gives the unit a protected period. Only mature units can be selected. A separate replacement budget tracks how many mature units the algorithm can replace. The rate is small enough that the budget frequently accumulates across many updates before it produces an actual replacement.

A training update with continual backpropagation

The steps in order.

A training update with continual backpropagationStep 1: Predict and evaluate the loss1. Predict and evaluate the lossStep 2: Update weights using backpropagation and the optimizer2. Update weights using backpropagation and the optimizerStep 3: Advance hidden-unit ages and refresh utility scores3. Advance hidden-unit ages and refresh utility scoresStep 4: Accumulate each layer’s replacement budget4. Accumulate each layer’s replacement budgetStep 5: Select the lowest-utility eligible unit when due5. Select the lowest-utility eligible unit when dueStep 6: Resample incoming weights and zero outgoing weights6. Resample incoming weights and zero outgoing weightsStep 7: Reset the selected unit’s age and utility7. Reset the selected unit’s age and utility

How contribution and eligibility are calculated

The paper defines contribution utility for a feed-forward network as follows.

uₗ[i] ← η × uₗ[i] + (1 − η) × |hₗ,ᵢ,ₜ| × ∑ₖ₌₁ⁿₗ₊₁ |wₗ,ᵢ,ₖ,ₜ|

Here uₗ[i] is the utility of hidden unit i in layer l. The arrow means that the old value on the right is used to obtain the updated value on the left. The absolute-value bars give the magnitude of the quantity they enclose. hₗ,ᵢ,ₜ is the unit’s activation at training time t. wₗ,ᵢ,ₖ,ₜ is the weight from that unit to unit k in the following layer at the same time. The sum runs from the first consumer to nₗ₊₁, the total number of units in the following layer. The decay parameter η weights the previous utility, and 1 − η weights the current contribution. The authors set η to 0.99 in their running-average calculation.

Taking absolute values before adding the contributions matters. A signal can increase the input to one consumer and decrease the input to another. Both effects count toward utility. The formula can also be read as adding the magnitudes of the individual activation–weight products, since the same activation enters each product. The resulting score describes a unit’s immediate contribution in its layer. It does not evaluate how a change to that unit would affect the final loss, a distinction that matters when interpreting what the score calls useful.

The paper’s algorithm initializes the weights of each layer from its chosen distribution and starts the hidden-unit ages, utilities and layer replacement budgets at zero. After each gradient update, the algorithm advances the ages, updates utilities and counts the units whose age exceeds the maturity threshold.

cₗ ← cₗ + nₑₗᵢgᵢᵦₗₑ × ρ

Here cₗ is the accumulated replacement budget for hidden layer l, nₑₗᵢgᵢᵦₗₑ counts the units in that layer whose age is greater than m, and m is the maturity threshold measured in updates. The replacement rate ρ determines how much budget each eligible unit generates on a step. The arrow again denotes an update that uses the preceding value on its right.

When the budget exceeds 1, the algorithm selects the least useful eligible unit and subtracts 1 from the budget. It draws that unit’s incoming weights from the appropriate initialization distribution, sets its outgoing weights to zero and clears its age and utility. Each hidden layer has its own budget. A wider layer can accrue it more quickly at the same replacement rate when more units are eligible. The calculation does not require the system to identify a task change. It runs while weight optimization continues, including within a task.

On CIFAR-100, the authors illustrate what the small rate means using the last hidden layer, which has 512 units. At the selected replacement rate of 10⁻⁵, their example gives approximately 0.00512 replacements per update, or about one every 200 updates. This is the scale of renewal in one layer, with the budget based on eligible units. In a mini-batch setting, where the optimizer processes a group of examples at once, the paper also considers estimating current utility by averaging contributions over the batch. This avoids keeping an additional running history of utility. The authors evaluate that alternative in reinforcement learning.

How the image experiments structure training

Continual ImageNet divides the 1,000 categories into a sequence of tasks, each defined by a pair of categories. A task might ask the network to tell apart two kinds of object, and the next task can present a different pair. Each category contains 700 images, of which 600 are allocated to training and 100 to testing. Each task therefore uses the paper’s reported 1,200 training images and 200 test images. The experiments use images downsampled to 32 × 32 to make the long sequences computationally feasible.

All the algorithms in the main Continual ImageNet comparison use a network with three convolutional layers paired with max pooling, then three fully connected layers. Convolution detects local patterns, and pooling summarizes nearby responses. The final layer has two output units, one per class in the current pair. The network trains for 250 epochs per task, with an epoch corresponding to a pass through the training data. It processes mini-batches of 100 images and uses SGD with momentum 0.9 to optimize cross-entropy, which penalizes low predicted probability for the correct class.

The convolutional network receives its initial weights before the first task. At each task boundary, the incoming weights of the output units are reset to zero. This supplies a fresh classifier for the new label pair while keeping the hidden representation produced by previous training. For a linear classifier consisting of the output layer alone, the same reset renews the whole network. That detail explains why the linear baseline is a stable comparison across the task sequence and why its interpretation differs from that of the continuing deep network.

Class-incremental CIFAR-100 uses a different progression. The categories arrive five at a time, and each stage trains on all categories that have arrived so far. A network that has already trained on five categories next trains on both those categories and the new ones. The output layer gains five new units at each arrival, with weights and biases initialized in the same manner as the rest of the architecture. The paper uses an 18-layer residual network, whose skip connections allow activations to pass across layers. The standard training system already incorporates batch normalization, data augmentation, weight decay and a learning-rate schedule.

Each CIFAR-100 category has 600 images. The split assigns 450 to training, 50 to validation and 100 to testing. Pixel values are rescaled by division by 255, then centered and rescaled for each color channel. Training images can additionally undergo a horizontal flip with probability 0.5, a random crop after padding by 4 pixels on each side, and a rotation between 0 and 15°. The validation and test images receive the rescaling and centering but are kept free of these random training transformations.

The network trains for 200 epochs at each CIFAR-100 increment. The schedule starts again with each addition of classes. The learning rate is 0.1 for the first 60 epochs and 0.02 for the next 60 epochs. It then uses 0.004 for 40 epochs and 0.0008 for the last 40 epochs. During an increment the authors keep the weights with the best validation accuracy, so that the next increment begins from those weights. SGD uses momentum 0.9 and mini-batches of 90. The reference network trained from scratch at each stage faces the same classification problem on the categories then available. Its performance gives a reference for judging the effect of carrying weights forward.

The supplementary Online Permuted MNIST experiment uses digit images of size 28 × 28. Each task applies the same new pixel permutation to all 60,000 images, preserving the digit labels. This changes where the information appears in the input, without changing which digit each example depicts. The network sees each image in random order during a single pass through the task. It receives no task-boundary signal. A fully connected network with three hidden layers makes a prediction and then updates on each example, without mini-batches. The basic performance measure is the percentage of correct predictions while the network progresses through the task.

How the regression and locomotion problems change

Slowly-Changing Regression separates changes in the input distribution from changes in the desired answer for a given input. The authors generate targets with a fixed network. The learner receives a binary input vector with some positions that change slowly, some that are sampled anew for each example, and a constant position.

m + 1

This is the input length in the regression setup. Here m counts the nonconstant positions, and 1 accounts for the constant bias input. This use of m is separate from the maturity threshold in continual back-propagation. Of the nonconstant positions, f are slow-changing and m − f are sampled afresh. After every T examples, one of the slow positions is chosen uniformly and flipped. T therefore controls the pace of changes in the input distribution.

The fixed target network has 100 hidden units with linear threshold activations. The learner has five hidden units. The target network draws its weights from +1 and −1. A target hidden unit outputs one when its weighted input exceeds the threshold and zero otherwise.

θᵢ = (m + 1) × β − Sᵢ

Here θᵢ is the threshold of target hidden unit i, m + 1 is the input length including the bias position, and β is a threshold parameter in [0, 1]. Sᵢ counts the negative incoming weights of that unit. The narrower learner has to track a useful approximation as the input distribution shifts. To measure the error, square the difference between what the learner predicts and the target output. The authors vary the learner’s activation function while keeping the input–target streams shared across settings.

The paper describes initialization of the regression learner with a uniform Kaiming distribution. Its interval is symmetric about zero, with endpoints −b and b.

b = gain × √(3 ÷ num_inputs)

Here b is the positive bound of the interval, gain is a scale determined by the activation function, and num_inputs is the number of inputs to the initialized unit. The square root adjusts the scale according to that input count. The aim is to begin with signal magnitudes that can be sustained across layers. For the activation comparison, each learner then uses back-propagation to update the weights it received at initialization.

In simulated locomotion, the learner has to choose actions as well as learn from the outcomes. The main environment, Ant-v3, gives the agent control over the torques of eight joints. The reward encourages forward movement and includes a per-step term of 1. It penalizes large actions and large external contact forces. An episode starts from a standard state and can last up to 1,000 timesteps, with earlier termination possible. The reported performance measure is the total reward accumulated in an episode.

The policy, which chooses actions, and the value function, which estimates future reward, use separate networks. Each has two hidden layers of 256 units. Both are trained under proximal policy optimization, or PPO, with Adam for the weight updates. In the changing-friction experiment, the coefficient is sampled log-uniformly from [0.02, 2.00], using a logarithm with base 10. Once 2 million timesteps have passed since the previous change, the next change occurs at the first episode boundary. A separate experiment holds friction constant. These versions distinguish an imposed change in the environment from a setting where the policy itself can still change which experiences the agent encounters.

The paper reports that the datasets and simulation environments are publicly available. The authors also release the implementation in the loss-of-plasticity code repository.

How the paper measures diversity inside a network

The authors supplement task performance with diagnostics of the weights and hidden units. Average weight magnitude means the sum of the absolute weight values divided by the number of weights. Dormancy measures how rarely units respond. The criterion depends on the experiment. In Online Permuted MNIST, a rectified linear unit, or ReLU, is counted as dead if it outputs zero throughout a random sample of 2,000 images drawn at the start of the task. In the CIFAR-100 figure the dormancy measure counts units active less than 1% of the time.

For a representation, the authors examine how strongly different directions in an activation matrix contribute. A singular value describes the strength of one such direction. When only a few singular values are substantial, many unit outputs may vary together or carry little distinct information. The paper uses effective rank for the permuted-digit study and a threshold-based measure it calls stable rank for the CIFAR-100 and stationary ant figures. These measurements summarize the representation that the sampled inputs elicit.

For effective rank, the paper first normalizes the singular values.

pₖ = σₖ ÷ ‖σ‖₁

Here σₖ is singular value k of the representation matrix Φ. The vector σ collects the singular values, and ‖σ‖₁ is its ℓ₁ norm, which here is their sum because singular values are non-negative. pₖ is the resulting proportion assigned to direction k.

H(p₁, p₂, …, pᵩ) = −∑ₖ₌₁ᵠ pₖ × log(pₖ)

Here H is the entropy of the normalized values, log is the natural logarithm, and the sum combines the contributions of all indices k from 1 through q. The paper writes q as the maximum of the two dimensions of Φ. Zero entries have zero contribution to the entropy. The notation pᵩ denotes the last entry in the list of normalized singular values.

erank(Φ) = exp(H(p₁, p₂, …, pᵩ))

Here erank(Φ) is the effective rank of the representation matrix, and exp is the exponential function. H and the p values are the entropy and normalized singular values defined above. The result is a continuous quantity that can range from one to the ordinary rank of the matrix. Concentrating almost all the magnitude in a few directions brings the effective rank down, even when additional directions are still present.

The stable-rank calculation used for CIFAR-100 starts by sorting the singular values from largest to smallest.

min { k : (∑ⱼ₌₁ᵏ σⱼ) ÷ (∑ᵢ₌₁ᵠ σᵢ) > 0.99 }

The operator min takes the smallest index k satisfying the condition after the colon. The numerator sums the largest k singular values, with j indexing those values. The denominator sums all the singular values, with i indexing the full list through q. The threshold 0.99 specifies the share that the leading singular values must exceed. The paper displays the CIFAR-100 diagnostic on a scale from 0 to 100 and measures it on the layer immediately before the output. Effective rank and stable rank therefore describe spectral concentration in different ways, and their numerical values should be interpreted on their respective scales.

Experiments and results

Continual ImageNet exposes a long decline

The paper measures classification accuracy on the held-out images for each current category pair. In the conventional back-propagation comparison, the displayed step sizes are 0.01, 0.001 and 0.0001. Different runs vary the category sequence and other randomness. The same sequences are reused across algorithms and settings so that differences in the chosen pairs do not systematically favor one method. The figure averages results over 30 runs and uses shaded regions for ±1 standard error around the mean.

The strongest early performance reaches up to 88% test accuracy. Some step sizes do well almost immediately and then deteriorate. Others improve before starting to decline. By the 2,000th task, every displayed step size shows substantial loss of plasticity, and the deep network learns about as well as the linear reference or worse for some settings. The linear result averages across thousands of tasks. Because that classifier starts fresh at each task, the estimate provides a reference for the ability to learn the current pair without the benefit or cost of a long history of hidden-layer training.

Standard training is compared with three alternatives—continual back-propagation, L2 regularization, and Shrink and Perturb. L2 regularization uses a penalty that favors smaller weights. Shrink and Perturb combines weight shrinkage with random Gaussian changes to the weights. The authors select representative configurations by searching for the highest mean classification accuracy over 5,000 tasks. L2 regularization allows accuracy to keep improving over at least 5,000 tasks. Shrink and Perturb also performs well, and continual back-propagation has the strongest result in the main comparison.

Accuracy at the end of a task and the speed of reaching it reveal different effects of earlier learning. By the final task in the long comparison, the eventual accuracy under continual back-propagation is only slightly higher than the reference for a freshly initialized network. The authors also examine progress within that task. Continual back-propagation reaches the best accuracy in ten epochs, while a fully reinitialized network takes about 125 epochs. The chart preserves the approximate status of the fresh network’s reported value.

Training epochs to reach best accuracy on the 5,000th Continual ImageNet task

The continuing network reaches its best accuracy much sooner than the fully reinitialized network.

Training epochs to reach best accuracy on the 5,000th Continual ImageNet taskFully reinitialized network (approximate): 125Fully reinitialized network(approximate)125Continual backpropagation (this paper): 10Continual backpropagation (this paper)10
The numbers
System or settingtraining epochs
Fully reinitialized network (approximate)125
Continual backpropagation (this paper)10

This comparison matters because it gives the continuing network a chance to demonstrate a benefit beyond maintaining its eventual accuracy. The hidden layers carry experience forward, while the output weights are reset for the current pair. Earlier training can therefore be useful even when the final accuracy after a long training budget is close to what a fresh network can reach. The paper reports this as an observation on the 5,000th task, and the main plotted ImageNet comparison remains a comparison of test accuracy after training on each task.

CIFAR-100 measures the benefit and cost of carrying weights forward

The CIFAR-100 experiments report accuracy on the held-out test images for every category available at the current stage. A network trained from scratch on the same subset provides the reference for the main accuracy comparison. This brings both networks to the same test and allows the paper to ask whether a network with an earlier learning history performs better or worse than a fresh one. An initially positive gap indicates that earlier training helps under the experiment’s protocol.

The standard residual system benefits from incremental training through 40 classes. After 40 classes, the comparison turns against the continuing system. When all 100 classes are available, the paper reports that the test accuracy of the incrementally trained base system is 5% lower than that of the network trained from scratch. In other words, the ordinary loss in accuracy from distinguishing more categories cannot account for the full result. The fresh network faces that same larger set of categories.

Shrink and Perturb reduces the disadvantage of carrying the weights forward. With continual back-propagation, the paper finds no such disadvantage in the relative accuracy comparison. Continual back-propagation reaches 76.13% test accuracy at the final increment covering all 100 classes. Its hidden layers also maintain a high stable rank and very few dormant units. The baseline’s dormant fraction increases, and its stable rank falls more markedly. Shrink and Perturb slows the deterioration of these internal measures compared with the base system.

The main CIFAR-100 figure reports means over 30 runs, with ±1 standard error. The extended absolute-accuracy comparison reports means over 15 runs for each line. These presentations answer complementary questions. Absolute accuracy describes performance on the classification problem the network currently faces. Relative accuracy shows whether maintaining the same network over successive stages helps on that problem. The authors also report no correlation between the stage when a category first appeared and its per-category accuracy for the algorithms they tested. The observed performance gap in this setup cannot be read as a simple age gradient in which older categories are classified less accurately.

Locomotion tests recovery after change and collapse during continued learning

In the changing-friction Ant-v3 experiment, the paper compares standard PPO, PPO with tuned Adam, tuned PPO with L2 regularization, and tuned PPO with continual back-propagation and L2 regularization. Performance is episode reward. The curves are averaged over 100 runs, and the shaded intervals are 95% bootstrapped confidence intervals. The recurring reductions in reward at friction changes mark a natural point from which to observe how well each agent learns to walk under the new conditions.

Standard PPO starts well during the first 2 million timesteps, before the first change in friction. Its performance then worsens. Tuning Adam improves the comparison, but after the first two changes the tuned agent still shows a substantial deterioration over successive changes. Under L2 regularization and under the combination with continual back-propagation, reward largely recovers as the agent adapts after friction changes. The authors judge the combined method to show little or no loss of plasticity in this setting.

The constant-friction experiment continues for 50 million timesteps. Standard PPO improves for about 3 million steps and then collapses. By 20 million steps the paper describes the ant as failing each episode and unable to relearn effective forward movement. Under L2 regularization, weight growth is constrained and the degradation is milder. The stronger regularization that prevents deterioration can also hold the agent at a behavior that has room to improve. With continual back-propagation and lighter L2 regularization, the agent continues to improve throughout the experiment. This figure averages over 30 runs and again reports 95% bootstrapped confidence intervals.

The stationary experiment offers a particularly direct view of the network diagnostics as reward changes. The conventional PPO networks accumulate dormant units, lose stable rank and show sustained growth in average weight magnitude. The combined method keeps few units dormant, maintains high stable rank and holds average weight magnitude almost constant. Older behavior can be lost when the scores decline, and the persistent failure to recover gives the paper its evidence of a separate difficulty with learning again.

The supplementary stationary experiments extend the comparison to Hopper-v3 and Walker-v3. The authors run their broader stationary reinforcement-learning experiments for up to 100 million steps, compared with the 3 million steps they describe as typical for these experiments in the literature. Standard PPO again suffers deterioration. L2 regularization alone is less reliable across the environments than the combination with continual back-propagation. The combined method avoids the reported performance degradation in the tested environments.

Further supervised tests examine wider ranges of conditions

On Online Permuted MNIST, online accuracy can rise early in the sequence before declining. This measure includes predictions made as the learner is still adjusting to the current permutation. It reflects how effectively the network makes use of each pass through incoming data. Experiments with the reference width of 2,000 units per layer follow sequences of up to 800 tasks. The figures presenting the step-size, network-width and change-rate studies report means over 30 runs with ±1 standard error.

Continual back-propagation gives the best level of online classification performance in the comparison of methods and shows no decline across the tasks reported. Shrink and Perturb almost entirely removes the decline under a favorable setting. L2 regularization reduces the deterioration while leaving more visible plasticity loss. These results complement the image experiments that use held-out test sets. The permuted-digit task measures success during a single pass through changing inputs, with no reset of the output head at task boundaries.

The learners each process 3 million examples in the authors’ Slowly-Changing Regression experiment. For each activation and step size, there are 100 independent runs using matched input–target sequences across the settings. The plotted squared error averages predictions in bins of 40,000 examples. With conventional back-propagation, the error rises after the initial period of good performance for every activation and step size tested. With ReLU and tanh, some curves rise to the level of the linear baseline. ELU shows a milder deterioration while still showing a noticeable increase in error. This experiment extends the finding to a changing input distribution without the abrupt switch that defines an ImageNet or permuted-digit task.

What the ablations show

Width, change frequency and activation affect the course of the decline

The authors use the cheaper supervised experiments to vary factors that would be more expensive to sweep on Continual ImageNet. For Online Permuted MNIST they compare the 2,000-unit hidden layers of the main setup with widths of 100, 1,000 and 10,000 units per layer. The width comparison lasts 150 tasks because the widest network is more expensive to train. Narrower networks lose plasticity more severely, but the largest also shows a decline within the experiment. The comparison makes limited width an incomplete explanation for the observed failure.

A second control changes how frequently the pixel arrangement is replaced. The authors keep the hidden layers at 2,000 units and switch the permutation after 10,000, 100,000 or 1 million examples. Each condition sees 48 million examples in total, sampled with replacement within a task. This keeps the total example count fixed while allowing the number of switches and the amount of practice between them to vary. Performance falls across tasks even when the changes occur least frequently. The phenomenon therefore persists in this experiment when the learner has a much longer interval to adjust before the next change.

Slowly-Changing Regression probes whether the choice of activation accounts for the loss. The authors compare sigmoid, tanh, ELU and leaky ReLU, as well as ReLU and Swish. All face the same fixed target function and the same matched streams across settings. Some activations sustain performance better than others, so the form of the nonlinearity matters. Every activation tested still shows rising squared error after the initial period, which gives the authors evidence that the problem extends beyond units with the particular behavior of ordinary ReLU.

Three signs of deterioration track different properties

The permuted-digit experiment follows the percentage of inactive units, average weight magnitude and effective rank as training proceeds. At a back-propagation step size of 0.01, the study finds that up to 25% of units are dead after 800 tasks. A ReLU unit that consistently outputs zero receives no gradient through its activation that could update its incoming weights. The authors argue that in the setting with inputs rescaled between 0 and 1, a dead first-layer unit stays dead. Losing those units reduces the portion of the architecture available for learning. At deeper layers the inputs themselves are learned, so the paper’s first-layer explanation has a particular scope.

Weight magnitude supplies a different diagnostic. The mean absolute weight grows as online classification accuracy falls. The authors suggest a connection with the curvature of the loss. The Hessian describes how gradients change locally, and poorly scaled curvature can make it difficult for a gradient method to make efficient progress in different directions. Growing weights can contribute to that problem. The reported measurement is the weight magnitude itself. The proposed curvature mechanism explains how growth could slow learning, while the experiment does not directly isolate that mechanism.

The remaining diagnostic is falling effective rank. Before training on any given permuted task, the authors use 2,000 randomly sampled examples to estimate it. A low effective rank can be compatible with good performance on the task that produced the representation. A compact set of features may answer that task well. The concern is what that representation offers at the beginning of a different task. If a few directions account for most variation, fewer distinct features are immediately available for learning a new prediction rule. The repeated passage from one fitted task to another makes this a plausible explanation for part of the continued decline.

The measures can also disagree. Shrink and Perturb does well at maintaining online accuracy in the MNIST comparison while having a lower effective rank than ordinary back-propagation. Dropout shows internal measurements resembling those of back-propagation but can lose more accuracy. These comparisons limit how much can be inferred from any single diagnostic. Taken together, the measures describe how the state of the network changes during extended training, and the method comparison tests whether interventions that alter that state can improve learning.

Weight control helps, and the form of randomness matters

The comparison among existing techniques on Online Permuted MNIST uses the same architecture and a step size of 0.003, the best-performing step size for conventional back-propagation in the corresponding experiment. L2 regularization keeps average weight magnitude from continually increasing and reduces plasticity loss. Dead units still accumulate and effective rank still falls. The regularization strength changes both the peak in accuracy and the course of the later decline. L2’s effectiveness on Continual ImageNet and its partial success here show that the effect depends on the learning problem and the setting.

Adding Gaussian noise in Shrink and Perturb gives an inactive unit a chance to become active again while the shrinkage constrains weight growth. This reduces the fraction of dead units and, at suitable settings, nearly removes the adverse accuracy trend on Online Permuted MNIST. The scale of the noise matters. The paper reports little benefit when noise is too weak and more severe deterioration when it is too strong. In changing-friction Ant-v3, the authors find no marked improvement from Shrink and Perturb over L2 regularization. Its supervised result supplies evidence for the value of continuing variation, with a different outcome in the locomotion experiment.

Dropout applies a different kind of randomness. It temporarily sets hidden activations to zero during training. In the authors’ comparison, higher Dropout probabilities are associated with faster and sharper deterioration. A probability of 0.03 comes close to conventional back-propagation in performance and is the best of the settings tested. The figure displays 0.1 as the more representative setting for practice. A perturbation to current activations has a different effect from creating a fresh feature whose weights the optimizer can subsequently develop.

Online normalization initially improves test conditions for learning on permuted images in the sense that it yields higher online classification accuracy, fewer dead units and higher effective rank than back-propagation early in training. Compared with the baseline on later tasks, it is less accurate, has more dead units, and has a lower effective rank. Its settings alter when performance peaks and, to some extent, how quickly it gets there. An evaluation that ends near its early peak would miss the later reversal. The experiment evaluates the online variant of normalization because the permuted-digit procedure presents a single example at a time.

Adam at its standard moment settings shows severe deterioration in the same supervised comparison. The fraction of dead units rises early and levels off around 60%, and effective rank falls sharply early in training. Average weight magnitude resembles that of conventional back-propagation. In Slowly-Changing Regression, the paper also finds that Adam typically loses more plasticity than SGD across the activation comparisons it runs. The results motivate asking which characteristics of the optimizer matter, especially in the PPO tests.

Renewal, optimizer tuning and output resets

The authors compare the default Adam settings for PPO with settings in which both moving averages decay at the same rate. The default decay factors are 0.9 for the first moment and 0.999 for the second. When a sudden large gradient arrives, the numerator used in the update can respond more quickly than the denominator if these estimates adapt at different rates. The tuned setting uses 0.99 for both decay factors. Across bins of 1 million timesteps, the authors track the largest total change in the policy network’s weights during an update cycle. The tuned version produces substantially smaller extremes and more stable performance. Its reward still deteriorates after repeated friction changes, so the optimizer adjustment addresses only part of the failure in that experiment.

The continual back-propagation results provide a further comparison with an intervention that renews features selectively. In Online Permuted MNIST, the method remains stable over a wide range of replacement rates. It keeps average weight magnitude low, nearly eliminates dead units and sustains a higher effective rank than conventional back-propagation or Shrink and Perturb. On CIFAR-100, the selected threshold and replacement rate are 1,000 updates and 10⁻⁵. The paper also evaluates resetting the whole output layer at each class increment as a separate baseline. That control changes the classifier at a known boundary. The continual method additionally renews hidden features during training, which can address deterioration in the representation itself.

The reinforcement-learning comparisons use tuned Adam for all variants except standard PPO. With L2 regularization alone, avoiding a long-run decline requires relatively strong weight decay, 10⁻³ in the settings the authors report. Smaller values permit substantial deterioration and larger values keep performance low. The combined method uses weight decay of 10⁻⁴, a replacement rate of 10⁻⁴ and a maturity threshold of 10⁴. Within the combinations tested, the authors find sensitivity to the replacement rate. They report less sensitivity to the maturity threshold or weight decay in this combined setting. These observations distinguish the broader range of successful settings in the permuted-digit experiment from the tuning demands of PPO.

An extended Ant-v3 comparison changes how utility is tracked. Using the instantaneous contribution averaged over the mini-batch performs similarly to using a running estimate. This supports a cheaper way of estimating utility in that particular test. A separate comparison looks at ReDo, another selective reinitialization method. ReDo uses a different utility measure and replacement procedure, governed by a threshold and a reinitialization period. The best setting in the authors’ sweep uses a threshold of 0.1 and a period of 10². With tuned Adam and the same 10⁻⁴ weight decay used for continual back-propagation in the comparison, ReDo improves on standard PPO but still deteriorates. The authors describe this comparison as preliminary.

Limitations

Limits identified by the authors

Continual back-propagation ranks units by their contribution to current data. A unit that was valuable for earlier experiences can score poorly once those experiences are absent. The method offers no mechanism for recognizing that such a feature may be worth retaining for the future. The authors suggest that a longer-term measure of utility could address this issue, while treating the simultaneous preservation of stability and plasticity as an open problem. In the stationary PPO example, they explicitly attribute the observed failure to a combination of forgetting the effective policy and losing the ability to learn an effective policy again.

The benchmarks emphasize different parts of continual learning. Earlier ImageNet tasks rarely recur, so the experiment tells little about whether their distinctions are retained. Pixel permutations make successive MNIST tasks largely independent, which provides a useful test of learning from fresh data while limiting how much specific knowledge from one arrangement can speed learning in the next. CIFAR-100 offers more opportunity for transfer, and access to old categories helps focus its comparison on plasticity. The results consequently address the ability to keep acquiring information more directly than the broader goals of retention, transfer and learning efficiency.

The authors describe the contribution score as a heuristic. It estimates the magnitude of a hidden unit’s immediate outputs to other units. The importance of a unit for the function of the whole network can depend on downstream computations that the score ignores. The paper suggests that propagating utility backward from the loss, or adapting measures of connection utility from pruning, could lead to different selection rules. It also notes the relationship with dynamic sparse training, which replaces connections and must decide which ones to create. That relationship motivates further comparisons while leaving the full choice of replacement rule open.

The authors also identify an unresolved distinction between difficulty optimizing new objectives and difficulty generalizing after continued training. Their experiments focus largely on the former. Some earlier work discussed in the paper observed networks that could still optimize on training examples yet performed worse on unseen examples. The authors leave open whether the same mechanism explains these forms of deterioration. Their own evidence associates several properties of initialization with plasticity, while leaving uncertain which particular properties are responsible.

Reinforcement learning has additional sources of uncertainty that the authors emphasize. An agent’s behavior changes the data collected for its next update. An agent that learns less well may also collect less informative experience, making these effects hard to disentangle. Even a stationary simulator does not supply a fixed training distribution as the learner’s policy changes. The authors also note that conclusions in this setting generally require more runs and are less definitive than controlled comparisons on fixed supervised datasets. Their preferred PPO variant combines renewal with L2 regularization because continual back-propagation without that regularization was highly sensitive to settings.

In Continual ImageNet, the authors acknowledge that the procedure grants access to task boundaries. Resetting the output head is convenient for independent binary tasks and supplies a consistent comparison for a linear classifier. It also takes care of part of the adaptation problem. The experiment therefore cannot establish how the same convolutional learner would handle unsignaled changes of this kind. Online Permuted MNIST supplies a separate test without a boundary signal, using different images, a different architecture and a different measure of performance.

What follows from the design of the comparisons

The observed duration of successful training bounds the claim about sustaining plasticity. The proposed procedure keeps generating fresh features as long as it runs, and the experiments show no comparable long-run degradation under favorable settings during their reported windows. That evidence does not establish a guarantee for every data stream or training duration. The partial success of L2 alone, the parameter sensitivity of noise injection and the difference between the supervised and PPO settings all make the circumstances part of the result.

The numbers also describe different kinds of comparison. The late CIFAR-100 gap is a test-accuracy comparison with a freshly trained reference. The permuted-digit measure is online performance, so it includes the learner’s early predictions under each new arrangement. The ant curves report episode reward and combine the quality of current behavior with changes in what the agent experiences. Each metric captures an aspect of adapting after extended training. Pooling them as a single quantity would hide the role of the experimental design.

The strongest interventions also change several aspects of training together. Selective replacement restores diversity, removes weak features and introduces small weights. The PPO result combines that intervention with tuned Adam and slight L2 regularization. Smaller weights, lower dormancy and greater representational diversity are therefore credible contributors, but the experiments do not estimate the independent contribution of each property to the final reward or accuracy. The Dropout and Shrink and Perturb comparisons show why the diagnostic measures should be read alongside performance, since the measures and the outcome can move differently.

The classification experiments establish the phenomenon in the architectures, data regimes and training procedures tested. They do not measure its size in much larger networks or in applications that only update their weights for a small number of new tasks. The authors argue that systematic testing at much larger scale would be costly, and the early CIFAR-100 advantage indicates why a brief continuation of training can yield a different conclusion from a long sequence. Similarly, the reported speed advantage on the 5,000th Continual ImageNet task establishes that prior training can help in that comparison. It leaves the general rate of transfer across other tasks unresolved.

What came after

The paper documents a related development in ReDo, which builds on continual back-propagation’s practice of renewing selected hidden units. ReDo changes how the learner identifies units to renew and how the replacement is carried out. The paper includes the preliminary Ant-v3 comparison as part of its own evidence, so it belongs to the research already under way when the authors presented their results.

The authors also discuss contemporary work on how curvature relates to plasticity, how the causes of the decline can be separated, and how regenerative regularization might maintain the ability to learn. They frame these studies as related approaches to an open problem. The paper does not document subsequent studies building on its published results.

Cite

Cite as Shibhansh Dohare, J. Fernando Hernandez-Garcia, Qingfeng Lan, Parash Rahman, Ashique Rupam Mahmood and Richard S. Sutton. 2024. Loss of plasticity in deep continual learning. Nature.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1038/s41586-024-07711-7

@inproceedings{dohare2024loss,
  title = {{Loss of plasticity in deep continual learning}},
  author = {Shibhansh Dohare, J. Fernando Hernandez-Garcia, Qingfeng Lan, Parash Rahman, Ashique Rupam Mahmood and Richard S. Sutton},
  booktitle = {Nature},
  year = {2024},
  doi = {10.1038/s41586-024-07711-7},
  url = {https://doi.org/10.1038/s41586-024-07711-7}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dohare-2024-loss-plasticity-deep-continual-learning/