Towards Robust Evaluations of Continual Learning
Paper · 2018 · Sebastian Farquhar and Yarin Gal
Summary
A classifier can learn a new category and lose the ability to recognize an old one, even though the old category has stayed the same. That matters when training data arrive in stages and earlier collections cannot readily be used again. A hospital might adapt a diagnostic system to a new patient population without being able to bring the first hospital’s records along. A rover might adjust to loose soil and later return to terrain it has crossed before. Towards Robust Evaluations of Continual Learning asks whether standard experiments measure the ability to keep learning under these conditions. The authors find that several widely used tests make forgetting harder to see.
The paper proposes five conditions for evaluation and benchmarks. Inputs from successive tasks should resemble one another enough to cause confusion. The learner should use a shared set of outputs and should make predictions without being told which task supplied the example. Access to earlier training data should be restricted, and the sequence should extend beyond two tasks. These conditions expose differences between methods that protect previously learned weights, which the authors call prior-focused, and methods that bring evidence about earlier tasks into the new training step. The latter are called likelihood-focused. They can use a small collection of retained examples or generate substitutes for past data.
On Split MNIST, where pairs of handwritten digits arrive in succession, Variational Continual Learning (VCL) and Elastic Weight Consolidation (EWC) mostly retain only the latest task when they rely on parameter protection and must predict across all digit classes. A small set of retained examples helps VCL. Variational Generative Replay (VGR) performs much better across the sequence. Split FashionMNIST gives a similar ordering. With separate output heads or correct task identities supplied at test time, the approaches look much closer. Permuted MNIST also favors parameter protection because its randomly rearranged images elicit unusually uncertain predictions at a task change. The first two split tasks barely distinguish VCL with retained examples from VGR, while repeated access to the full tasks still leaves the prior-focused methods struggling in the experiment that allows it.
The authors also examine how learning systems handle two practical constraints. On FashionMNIST, VGR’s uncertainty spikes when a new task begins, providing a possible signal for detecting a boundary from incoming data. On Timed Split MNIST, VGR reaches good shared-head accuracy at a higher training cost, while the tested VCL configurations fail to reach comparable accuracy on that prediction task. The paper’s conclusion is that changes to benchmark design can reveal a failure even with simple images. Increasing the difficulty of the images leaves that failure hidden if the experiment continues to supply the information that makes it easy to avoid.
Deep dive: Towards Robust Evaluations of Continual Learning
Towards Robust Evaluations of Continual Learning shows how benchmark design can hide forgetting and which tests expose it under sequential training. · about 33 minutes to read
The problem and its context
Learning when the training collection changes
In ordinary supervised machine learning, a learner can fit its parameters using inputs paired with their correct labels. If the whole training collection is available, examples of different classes can contribute throughout training. Continual learning changes that access pattern. The learner receives a collection for one task, trains on it, and moves on to a different collection. The earlier examples may disappear just as the later ones begin to influence the parameters. A prediction system trained in this way must ultimately serve inputs from across its learning history.
The immediate risk is that an update that helps with the current data also changes decisions on data the learner can no longer inspect. In a digit experiment, an image that once received the correct label can start receiving a newly learned label. The failure can be severe enough that accuracy on the latest task accounts for nearly all the learner’s apparent success. The paper uses the established term catastrophic forgetting for the deterioration that can occur when a neural network learns tasks in sequence. The order of data access matters because it determines when the learner last received direct evidence about each kind of input.
The motivating examples place different restrictions on that access. A medical system might first learn from one patient group and then be adapted at a hospital with another group. Limits on moving the first group’s records create a data-access constraint. An advertising system might receive enough new data to make keeping the entire stream impractical. For a wind turbine, changing seasonal conditions affect the predictions needed for a safety decision, such as whether strong winds make shutting the turbine down appropriate. In each example, the value of making timely updates depends partly on what useful behavior survives them.
The rover illustrates how the restrictions can occur together. Leaving a patch of ground also means losing the immediate opportunity to learn from it. A new kind of soil can yield sensor readings that overlap with those experienced before. The controls must still operate the same motors, and a prediction or action may be needed before an external source can reliably name the terrain. The example motivates an experiment organized around resemblance, information at prediction time, and access to past experience. The paper presents the rover as an illustration of those design choices.
How earlier methods carried learning forward
Earlier work had found that neural networks could retain more across updates when training penalized movement in parameters that mattered for past tasks. The benefit of this strategy is that a learner can carry a summary of the earlier training in its parameter state and associated estimates. When it next encounters new examples, the optimization procedure has a reason to preserve some of the old settings, even though those examples supply no direct information about earlier decisions.
The paper groups Elastic Weight Consolidation, Synaptic Intelligence (SI), and Variational Continual Learning under a prior-focused interpretation. EWC measures how sensitive the completed task is to changes in individual weights. SI accumulates information about parameter contributions as learning proceeds. VCL gives the interpretation its clearest form: the distribution over weights inferred on one task serves as the starting distribution for inference on the next. All three carry information in a form that constrains subsequent learning about the parameters. Their estimates differ in how they express what should be preserved.
An alternative is to give the learner examples of earlier behavior while it learns something new. A retained subset gives direct evidence from the old task. A generator supplies synthetic examples, so the learner can encounter inputs representative of old classes after the original collection has been removed. The authors describe this as likelihood-focused because earlier tasks contribute to the part of the objective that measures fit to observations. The families can be combined. VCL with a coreset, a small chosen sample of real examples, uses both a historical parameter constraint and a limited amount of earlier data.
The paper also reviews approaches that allocate or reuse parts of an architecture as tasks arrive. Progressive Neural Networks condition learning on outputs from stored networks for earlier tasks. PathNet uses evolutionary selection to find useful parts of a larger network for individual tasks. Some related approaches share a component for extracting features and add task-specific components above it. The paper notes that maintaining a growing number of weights or networks can carry increasingly large storage and computational costs. Its experiments concentrate on the question of what a parameter constraint preserves and what earlier examples add.
What common benchmarks were designed to measure
Permuted MNIST began as a way to investigate how learned features behave when the input coordinates are rearranged. For each new task, the experiment chooses a pixel permutation and then uses it consistently on every image in that task. The labels still refer to the digits. Each task therefore has a pattern a network can learn, even though an image in the new arrangement has little visual resemblance to one in the previous arrangement. The experiment later became widely used to evaluate continual learning. The authors ask whether the kind of transition it creates is representative of the transitions for which the methods were intended.
Split MNIST starts from a different premise. The images use the same pixel layout and the tasks consist of disjoint sets of digit classes. The common version, introduced in work on SI, uses a separate output head for each task. A head is the collection of outputs through which a network makes a particular prediction. If the evaluator selects the head for the earliest task, the network only has to choose among the digits in that task, even if it has since learned about all the other digits. Some earlier implementations made the same restriction during training, activating only the outputs assigned to the current task.
Two-task transfer experiments ask what happens when a learner trained on one collection receives a second. An example in the paper is training on MNIST and then on SVHN, with the order also considered in reverse. This design can isolate the effect of an update and help characterize fast adaptation. It leaves the accumulation of many updates outside the test. That distinction matters for a method that summarizes previous training through local estimates. A parameter setting reached after several changes can lie much farther from the setting at which an estimate was formed.
The paper situates its contribution alongside earlier work on specialized benchmarks and richer metrics. Object recognition and control environments can each motivate carefully designed tests. Measurements of transfer and the course of learning can describe more than an endpoint accuracy. Work such as Progress & Compress had already raised questions about long sequences and the availability of task information. Farquhar and Gal address the assumptions that determine which decisions the learner actually faces before any of those metrics are calculated. A change in the data source or scoring rule can leave those assumptions intact.
The method, step by step
Specify the training sequence and the prediction
The method is a set of experiments built around a common question. After each stage of training, what can the learner still do on inputs drawn from the tasks it has encountered? To answer it, the authors define when data become available, how long they remain available, and which labels are eligible when a prediction is made. They then run learning methods that preserve different kinds of historical information. Changes to the setup reveal which part of the prediction problem each method can handle.
Comparing continual learning under different evaluation conditions
The steps in order.
The ordinary supervised setup begins with a collection of labeled examples.
𝒟 ≡ {(x⁽ⁱ⁾, y⁽ⁱ⁾)}
Here 𝒟 denotes the full training collection, and ≡ defines it as the set inside the braces. The index i identifies an example. Its input is x⁽ⁱ⁾, and its observed label is y⁽ⁱ⁾. The usual independent and identically distributed sampling assumption means that the examples are treated as independent draws from a common distribution.
The prediction rule is expressed as a conditional probability.
p(y* | w, x*)
The symbol p denotes a probability distribution over labels. The vertical bar indicates that the probability is conditional on the parameter vector w and the new input x*. The quantity y* is a possible label for that input. The stars distinguish the example whose label is to be predicted from the indexed training examples.
In the sequential setup, the training collection is divided into disjoint groups.
𝒟ₜ ≡ {(xₜ⁽ⁱ⁾, yₜ⁽ⁱ⁾)}
The symbol 𝒟ₜ denotes the collection for task t, with ≡ again marking a definition and the braces enclosing the set. The input xₜ⁽ⁱ⁾ and the label yₜ⁽ⁱ⁾ belong to example i in that task. The paper assumes common independent sampling within a task and allows the distribution to change across tasks. It calls the full number of tasks T. The state after task t includes the effects of training from the first task through t, even when the underlying datasets are gone.
This distinction separates a task boundary during training from a task identity attached to a test example. When the experiment advances to the next digit pair, the learning procedure can be told that the training collection has changed. A prediction made later can still be required to use the image alone. In particular, the order of training gives the evaluator a way to measure accuracy on tasks already encountered without granting the classifier a hint about which one produced the input.
Turn the motivating constraints into an experiment
The resemblance requirement concerns how an earlier classifier responds to later inputs. Two datasets can have different class labels and still contain images that are visually close. In the kind of transition the authors want to test, the learner will sometimes assign a confident old label to a new example early in training. A handwritten seven may be close enough to a one to trigger that behavior. Correcting such a mistake tests whether the learner can revise a decision for a new class and preserve useful decisions about an old one.
The shared-head requirement deals with the outputs used in making that decision. With a common vector of class scores, the network has to assign a higher score to the correct class than to competing classes from throughout the sequence. With separate heads, the score for a seven in one head and the score for a one in another need never be compared. The paper treats the use of separate output vectors as a consequential feature of an experiment that should be disclosed prominently.
The test-time requirement applies even when all classes share an output vector. The evaluator can use knowledge of the correct task to filter the scores before choosing a label. The authors test exactly this possibility by leaving shared-head training in place and masking the outputs outside the correct task with zeros at evaluation. A masked result answers whether the learner can choose among candidates once someone gives it the right task. The unmasked result answers whether the learner can make the full prediction from the input.
The access requirement constrains what the learner can use after moving on. A complete earlier training set cannot be assumed to be available whenever it would help. Some applications permit selected examples or other summaries, and the experiments distinguish those choices from unrestricted access. That distinction is important when comparing a method that takes only an old parameter distribution into a new training stage with one that takes a few old examples or a generator. Each receives a different kind of support from the past.
Finally, the sequence is long enough to observe learning beyond the first transition. Split MNIST has five tasks. It begins with digits (0, 1), proceeds to (2, 3), and continues in pairs. The full shared-head experiment combines resemblance, a common prediction space, no task identity at inference, and restricted historical access over that sequence. As the experiments relax individual conditions, the resulting comparisons show which demands affect measured performance. The authors also recognize applications in which a particular condition can appropriately be relaxed, such as when a simulator makes old tasks accessible again.
Make the historical constraint explicit
The paper describes several prior-focused objectives through a common schematic expression. For each new task, the learner increases fit to the current observations while paying a cost for moving away from a parameter state associated with earlier learning.
ℒₜ = ∑ᵢ log(p(yₜ⁽ⁱ⁾ | wₜ, xₜ⁽ⁱ⁾)) − (c/2)(wₜ − wₜ₋₁)ᵀ Σₜ₋₁⁻¹(wₜ − wₜ₋₁)
The objective ℒₜ is written in a form to maximize for task t. The sum ∑ᵢ runs over that task’s examples, indexed by i. The logarithm, log, is applied to the probability p of the observed label yₜ⁽ⁱ⁾ conditioned on the current parameter vector wₜ and the input xₜ⁽ⁱ⁾. The minus sign before the second term makes the parameter displacement a penalty. The coefficient c controls its strength, with the factor of 2 part of the quadratic convention. The term wₜ₋₁ is the previous task’s parameter vector. The superscript ᵀ transposes the difference vector, and Σₜ₋₁⁻¹ is the inverse of the prior covariance matrix Σₜ₋₁ for the preceding state.
The covariance expresses how strongly different changes are discouraged. A direction of high prior certainty can receive a stiff penalty, while a direction the learner regards as uncertain can allow more movement. The approximation is consequential because the learner uses it in place of testing candidate weights against all earlier examples. If movements that change earlier decisions receive too little resistance, good fit to the latest task can come at the expense of the old ones. If the penalty resists a movement that the learner needs for new classes, it can instead hinder adaptation.
VCL maintains a tractable approximation to a distribution over weights, drawing on Bayesian neural-network methods such as those discussed in Weight Uncertainty in Neural Networks. Variational inference fits the approximating distribution using observations and a prior. After a task, the resulting distribution is the approximate posterior. For the next task, VCL uses it as the prior and penalizes departure through the Kullback–Leibler divergence, which measures the discrepancy between the current distribution and that prior. The quadratic expression summarizes the common preservation logic. The underlying estimates and objectives differ between implementations.
EWC represents historical importance with an estimate derived from the sensitivity of the likelihood near the completed task’s weights.
Fₜ ∝ [∑ (∇ω log p(yₜ⁽ⁿ⁾ | ω, xₜ⁽ⁿ⁾))²] evaluated at ω = ωₜ, summing n from 1 to Nₜ
Here Fₜ is the approximate Fisher information for task t, and ∝ means proportional to the quantity on the right. The sum is over examples indexed by n, from 1 to Nₜ, where Nₜ is the number of observations in the expression. The gradient operator ∇ω differentiates with respect to the weight vector ω. Inside the gradient, log is the logarithm of the probability p assigned to label yₜ⁽ⁿ⁾ given those weights and input xₜ⁽ⁿ⁾. The square acts on the individual gradient components in the diagonal estimate. The equality ω = ωₜ specifies the weights reached at the end of the task as the evaluation point.
Large entries in this estimate correspond to parameters for which the likelihood is sensitive near the fitted state. EWC uses that information to weight a quadratic regularizer in future training. The appendix describes the original formulation with separate regularization contributions for past datasets and uses a particular EWC variant in the experiments. SI also associates importance with parameters, collecting evidence throughout the training trajectory. These methods motivate the same evaluation question because all depend on a compressed account of which parameter changes would disturb earlier learning.
Vary what survives after each task
The comparisons using VCL change the mechanism that can carry earlier learning into a new task. Pure VCL passes the approximate posterior forward and retains no coreset. The hybrid version also sets aside selected examples from each training collection. In the main split comparison, the authors describe a coreset of 40 datapoints per task chosen with the k-center procedure used in the earlier VCL work. That procedure selects examples to give coverage within a small retained collection. At the end of training on a task, the coreset is used for an additional training stage before evaluation.
The coreset-only variant keeps this use of real examples while returning to the initial prior for each task. It still trains with the current task’s data. Here, “coreset-only” identifies the component that supplies information from earlier tasks. This matters for comparison with the earlier VCL paper, where the authors describe a similarly named variant that learned from the small retained collections alone. In Farquhar and Gal’s experiment, the comparison between the hybrid and their coreset-only variant tests the added contribution of the updated prior under a shared data-retention procedure.
VGR approximates past likelihoods with synthetic data. At the end of a task, a generative adversarial network, or GAN, learns to produce examples from the classes the learner has just seen. A GAN learns through a contest between a generator that produces examples and a discriminator that tries to distinguish generated from real examples. For a subsequent task, samples from the stored generators are mixed with the current labeled observations. The classifier thus gets a new opportunity to fit inputs representing old classes and current classes together. The total training material and the work required to prepare it grow with replay.
The paper uses VGR as a more capable replay comparison than the small coreset and EWC as a second prior-focused comparison alongside VCL. For VGR and the VCL variants, the classifier is a Bayesian neural network fitted by variational inference. EWC uses an ordinary neural network with weight regularization. The closer architectural match between VCL and VGR helps when comparing their handling of past information. The EWC run tests whether a similar failure appears in another widely discussed procedure for protecting weights.
Set up the digit and clothing comparisons
For the Bayesian classifiers on Split MNIST, the authors use two hidden layers, with 256 units in each. They train for 120 epochs, where an epoch is a pass through the training material. The standard VCL setup uses batches as large as the training set. The examples chosen for coresets are withheld from the main training step, and the shared-head coreset step uses the concatenated retained examples for 120 epochs. In multi-headed VCL, the final layer has five heads, and training with the retained examples proceeds one head at a time.
In the Split MNIST replay configuration, VGR uses 6000 generated digits per class. The convolutional GAN trains for 50 epochs on each class. The generator starts with a fully connected layer, then uses convolution after upsampling. The classifier’s batch size is capped at 30,000. Replaying a large collection in this way gives the classifier extensive exposure to earlier classes and creates more work than the current-task-only likelihood used in pure VCL. For Split FashionMNIST, the paper identifies the DCGAN-tensorflow implementation as the basis for its replay generator.
In Split MNIST, EWC also has two hidden layers of 256 units. Training runs for 20 epochs per task with stochastic gradient descent at a learning rate of 10⁻², and the Fisher estimate is computed from 200 samples at each task’s end. The regularization coefficient is 10. The authors report that their choice of coefficient had little effect on performance in this setup. They use the same EWC configuration for the multi-headed comparison. On Split FashionMNIST the Bayesian network has four hidden layers of 200 units, while EWC has four hidden layers of 256 units. The larger networks accompany the greater variety of examples within the clothing classes.
The standard Permuted MNIST setup starts with ordinary MNIST and continues through task 10, with each later task using its own pixel permutation. The Bayesian classifier has two hidden layers of 100 units. For the VCL runs, ordinary task training uses 100 epochs and batches of 256, while the coreset procedure sets aside 200 digits from each permutation and trains the full head on retained examples for 100 epochs. For the permutation replay runs, the researchers instead train a GAN for 200 epochs on each MNIST digit and draw a fresh set of 6000 digits per class for every task. The classifier trains for 120 epochs. Its batch size scales with the number of tasks seen to keep the number of batches constant.
Measure what happens at and between task boundaries
To investigate the effect of resemblance, the paper looks at the prediction made just before and during adaptation to new digits. Its proposed explanation uses the derivative of the classification loss with respect to an output score.
∂ℒ/∂oₖ = pₖ − yₖ
In this expression ℒ is the classification loss in the convention where learning reduces it. The partial derivative ∂ℒ/∂oₖ measures how it changes with the output score oₖ for class k. The probability for that class is pₖ. The entry yₖ is the corresponding element of the one-hot target vector, whose active entry marks the correct class. The right-hand side is therefore the discrepancy between the predicted probability and the target entry. This form uses a loss to minimize, whereas the earlier schematic objective was written to maximize.
The discrepancy is large when the learner gives high probability to a wrong class or very little to the right one. In the final layer, the authors study the impact of these errors, since that layer allows them to compare the gradient due to fitting new data with the one due to the historical penalty. They also measure the entropy of the predicted probabilities. Entropy summarizes how dispersed the probabilities are over the classes. A confident prediction has low entropy, while a prediction spread relatively evenly over the classes has high entropy. The paper uses that measurement to compare unfamiliar-looking permuted inputs with visually related new digits.
For detection of task changes, the authors measure mutual information between predictions and the posterior over weights. In this context the measure reflects how much predictions depend on which plausible weights are used. If plausible settings give similar predictions, the contribution from this source of uncertainty is small. Greater disagreement leads to higher uncertainty according to the measure. The authors follow it on incoming training data and propose comparing its value before an epoch with a running average. An increase past a threshold would signal a boundary, prompting generator training on a cache from the previous epoch. Alternatively, the generator can train alongside the classifier.
Experiments and results
A shared head reveals what survived training
The classification experiments track test accuracy as a learner works through the sequence. Following earlier tasks as training advances distinguishes a loss of retained performance from an inability to learn the new task. The Split MNIST runs for the Bayesian methods are averaged over 10 runs with a fresh coreset selection each time where applicable. The paper puts the standard errors at roughly one tenth of a percent and leaves them out of the main figures. The Permuted MNIST figures also report averages over 10 runs, with a different permutation in each run.
In shared-head Split MNIST, pure VCL learns to classify the latest pair of digits and loses the useful accuracy it had on prior tasks. EWC shows the same pattern. The full decision at test time is important to that result. An earlier example still has its original correct label, but the learner can now choose any of the recently learned classes instead. Protecting the parameters has done little to preserve the relative scores across the full output vector in these runs. Both methods remain able to learn the current task, so a test restricted to current examples would give a very different account of their learning.
VCL with a coreset preserves more accuracy. The comparison with the original-prior variant suggests that this improvement is attributable to the selected examples used before testing. VGR is the only tested method the authors describe as nearly perfect on the main shared-head digit experiment. Its synthetic examples give the classifier practice on earlier classes as it learns the current ones. The contrast with the two methods that depend on a parameter constraint is visible on the ordinary handwritten digits, where the visual recognition problem is relatively simple.
Split FashionMNIST gives the same broad ordering with more diverse input examples within each class. The observed deterioration for VCL relative to VGR is especially relevant because the methods use the same classifier architecture on that dataset. The authors interpret the pattern as suggesting that their approximation to the prior struggles more with the increased complexity of the data than their replay generator does. This is a comparison of the tested implementations, including their training procedures and their different ways of preserving information.
Different prediction rules give different rankings
Multi-headed Split MNIST allows the correct set of outputs to be selected for an example. Under that rule the tested approaches all look successful. On multi-headed Split FashionMNIST the methods again perform similarly, with the pure VCL variant slightly weaker in the authors’ account. The hard part removed by the output restriction is comparison with classes assigned to other heads. Greater diversity among clothing images can make the remaining discrimination harder while leaving that comparison outside the test.
With knowledge of the task supplied only at test time, the paper also finds successful performance across the methods on Split MNIST. In this case the weights were trained under the shared-head arrangement. The evaluator changes the decision at the final stage by excluding classes that belong to the wrong task. In FashionMNIST the test remains harder, but the results again lack a clean distinction between prior-focused and likelihood-focused approaches. This means that the effect of the output restriction can be observed even when the training objective initially allows competition across classes.
Permuted MNIST gives good results for VCL with or without a coreset. VGR has a marginal advantage in the paper’s account, while the coreset-only variant does worse. Earlier findings on this benchmark included VCL outperforming EWC and SI, which the authors cite as context for the baseline. SI’s performance is discussed through the earlier work. The new experiments use EWC as their additional direct test of a prior-focused method. The permutation results establish that the updated prior can be effective under one kind of task change, alongside the shared-head split results showing its weakness under another.
Time changes the practical comparison
The timed experiment plots final average test accuracy across all the Split MNIST tasks against elapsed wall-clock training time. An ideal configuration would combine high accuracy with short training. The plotted points represent multiple settings of each method, so each point is a possible choice about how much work to spend. For VCL the authors vary training and coreset fitting between 1 and 120 epochs. For VGR they vary classifier training between 1 and 120 epochs and generator training between 10 and 50 epochs, with 2000, 4000, or 6000 generated images per class.
The experiments use an NVIDIA Tesla K80. The VGR time includes the work of training the generators even though generator training could be parallelized. The paper reports approximately 7 minutes for the single-headed VCL configuration with a coreset. A fuller VGR run, in which the size of each generated set matches the real training data, takes approximately 18 minutes for the classifier and 34 minutes for the generators. A shorter VGR run takes 2 minutes for classification training and 8 for the generators. The shorter run still performs better than VCL in the comparison the authors describe.
Final average test accuracy for VGR configurations on shared-head Split MNIST
The fuller training configuration retains higher average accuracy across the completed task sequence.
The numbers
| System or setting | accuracy % |
|---|---|
| Shorter VGR training | 90% |
| Fully trained VGR (this paper) | 96% |
The shorter run uses less generated data, 20 epochs of classifier training, and reduced generator training. The chart compares the resulting final accuracy across all tasks. These accuracy values belong to the specified configurations, and the stage times identify where each spends computation. The larger sweep shows that the tested VCL configurations remain weak on unrestricted predictions, while the VGR configurations capable of good accuracy require considerably more time than VCL.
The authors also run the timed comparison with separate heads. This makes a different operating point attainable for VCL. With head-specific training and coresets, it reaches good accuracy and can do so faster than VGR. Thus the choice of prediction problem affects the comparison of training cost at a given level of performance. In the shared-head experiment, time spent training a VCL configuration does little to repair the errors revealed by unrestricted prediction. Under multi-headed scoring, the cheaper configuration can solve the discrimination it is asked to perform.
Uncertainty separates familiar tasks from new ones
The FashionMNIST experiment follows VGR’s mutual information on batches from the task currently being learned. Uncertainty rises sharply at the start of each new task. As training on that task proceeds, uncertainty is lower. The rises coincide with the task boundaries in the experiment, supplying the observable signal that the authors’ proposed threshold rule would use. This extends the evaluation beyond what the learner predicts after training. It asks whether the learner’s state provides enough information to tell when incoming examples call for a different stage of training.
A second uncertainty experiment assesses familiarity after each completed task on Split MNIST. The authors present examples from tasks already encountered and from tasks the learner has yet to see. They vary the uncertainty threshold for classifying the examples as unseen. Each threshold trades off detecting unfamiliar tasks against wrongly treating previously encountered ones as unfamiliar. Plotting those outcomes gives a receiver operating characteristic, or ROC, curve. Its area, abbreviated AUC, summarizes how cleanly the uncertainty measurement separates the two groups over the threshold range.
Uncertainty-based detection of unseen tasks on Split MNIST
VGR separates previously encountered tasks from unseen tasks more cleanly than VCL.
The numbers
| System or setting | ROC AUC |
|---|---|
| VCL | 0.76 |
| VGR (this paper) | 1 |
VGR’s uncertainty in this diagnostic is low on previously seen tasks and high on unseen ones. VCL can also express high uncertainty about tasks it has yet to learn, but the uncertainty rises on some tasks it learned earlier. The paper describes a state trained on the fourth task as nearly as uncertain about the second task as about the unseen fifth. A detector using that signal could mistake deterioration on older tasks for the arrival of unfamiliar material. The AUC measures this separation of familiarity categories. The classification plots measure the distinct outcome of assigning the correct digit label.
What the ablations show
The value of a coreset depends on the rest of the experiment
The VCL variants offer the closest comparison of preservation mechanisms. Taking the coreset away from the hybrid leaves the updated prior in place, so the remaining behavior shows what that prior can support by itself. Resetting the prior and retaining the coreset asks what the small sample can support without that form of parameter protection. On shared-head Split MNIST, the gains follow access to the coreset. Pure VCL’s results show that an updated prior alone is insufficient in this configuration. The hybrid’s results therefore give weak grounds for attributing its retention to the prior.
The permutation comparison clarifies the scope of that finding. Under pixel permutation, pure VCL remains strong and the coreset-only method performs less well. Thus the contribution isolated by the experiments changes with the relationship between tasks. When each new task is constructed by rearranging the input coordinates, the parameter summary can retain useful behavior. When new inputs resemble old ones and labels compete in the same head, the retained examples provide a kind of evidence the prior is failing to preserve. Strong performance for the hybrid is easier to interpret once both components have been examined under both conditions.
Access to the right outputs is enough to recover some answers
The multi-head comparison changes the classification problem during training as well as at evaluation. A task-specific training step can concentrate on its own outputs, and the test selects those outputs for each example. The resulting accuracy therefore mixes any benefit of separate training with the effect of the restricted decision. One symptom of forgetting can remain invisible throughout. An old class can retain its lead over its original partner while dropping below a newly learned class that lies outside its head.
The experiment supplying task knowledge at test time is a more targeted control. It uses the shared-head training procedure and removes competing outputs only for the test decision. Suppose an image of a one has a higher score for seven, and the score for one still exceeds the score for zero. The shared-head decision is wrong. Using the correct task to select only the earliest pair recovers the answer. This is precisely the kind of retained within-task ordering that can produce strong task-aware accuracy alongside weak full predictions. Because the masking happens after training, a gain under this condition can arise without altering any weights.
Permuting pixels changes the gradients seen by the learner
To investigate why the permutation benchmark is favorable to prior-focused learning, the appendix sets up a diagnostic transition from Task A to Task B. In the split condition the first task contains the first five digits and the second contains the last five. In the permutation condition the first task uses the regular digit data and the second uses rearranged images. These are purpose-built transitions for comparing confidence and gradients. The split diagnostic has a different class grouping from the main five-task benchmark.
The first quantity measured is how much entropy the Task B predictions have early in training. The permuted inputs give substantially more dispersed class probabilities. The figure caption describes the entropy difference between the settings as 2 orders of magnitude. The result supports the proposed explanation that a classifier confronted with rearranged coordinates tends to spread its probability across the labels. For the new digits in the split condition, the classifier can recognize enough familiar features to favor an old class strongly. Its confidence in that old class supplies a large correction when training presents the actual label.
The gradient measurement starts by training VCL on Task A for 120 epochs with batches of 256. It then observes 15 batches of 16 digits each from Task B. The authors calculate the average absolute gradient for the final weight layer and compare the contributions from the likelihood and the prior. They repeat the measurement over 100 training runs in each condition, resetting the weights between runs and drawing new permutations where applicable. The plotted shading describes the standard deviation of the average gradient for a batch.
The early likelihood gradients are larger in the split condition. The likelihood gradient relative to the prior gradient is also higher there. The prior acts according to the current weights and the parameter distribution carried forward. A confident error on a new input directly changes the likelihood gradient, while the old distribution contains no direct evidence from that input. The observed balance therefore gives the prior more relative influence in the permutation case. This is the paper’s proposed mechanism for why a parameter approximation can look effective during permutation and fail when new and old inputs resemble each other.
The authors then directly test a remedy suggested by the size of the gradients. They multiply the prior contribution to VCL’s objective by factors of 1, 10, 100, and 1000 in single-headed Split MNIST. They also try increasing its weight only at the beginning of a task. The interventions produce no substantial improvement in the reported experiments. The authors infer that the direction of the constraint may also be inaccurate: a larger penalty based on the same summary can resist movement more strongly while still allowing changes that impair old decisions. The experiment narrows the diagnosis beyond a simple shortage of regularization strength.
Repetition and sequence length test different claims
The repeated-training experiment goes through the full Split MNIST sequence 5 times. At the end of a cycle the learner goes back to the first task, with coresets carried along when applicable. The authors reduce training at each task from 120 epochs to 10 for these runs. Under this cycling schedule, the shared-head experiment still separates the prior-focused and likelihood-focused approaches. The comparison therefore gives a specific exception to the idea that every departure from the proposed conditions will make the two families look similar.
Repeated access nevertheless changes what the experiment represents. A learner in a setting that cannot retrieve the original data cannot rely on the schedule used in these runs. The relevance of that schedule to an application and its ability to reveal forgetting are distinct properties. In this case the schedule departs from the access restriction while preserving enough of the original problem to expose the weaknesses of the tested prior-focused methods.
The sequence-length comparison is made within the ordinary shared-head experiment. Looking only at the first two tasks gives little basis for distinguishing VCL with a coreset from VGR. The scores separate as the rest of the sequence is learned. An early evaluation can therefore give credit for a genuine ability to survive an initial change while missing a difficulty that emerges with more classes and updates. The paper uses the example of local importance estimates in EWC to explain why this can happen in principle. A summary built near one setting of the weights may give increasingly poor guidance as subsequent tasks move the weights farther away. The observed divergence establishes the sensitivity to sequence length for the tested methods, while the argument about local estimates explains why length is worth controlling more generally.
Limitations
Limits identified by the authors
The paper presents the core conditions as a basis for making claims about continual learning, with room for experiments designed around more specific needs. An application with reliable task labels may reasonably study fast adaptation with those labels available during prediction. A simulator can make it feasible to revisit previous tasks. These choices give results about the problem as defined by those permissions. The authors ask researchers to state such departures because readers otherwise may take a result about a restricted decision or a repeatable stream as evidence for a more general capability.
The authors identify several ways the core experiment can be made more demanding. Tasks can overlap in their classes, change continuously, or arrive without clear training boundaries. Sequences can extend much farther, and compute or storage can impose fixed limits. A privacy-motivated application can also require explicit accounting of differential privacy between tasks. The shared-head experiments use disjoint class groups and discrete training stages. Their results support a diagnostic for forgetting under those conditions, with the more demanding variations left as further tests.
The comparison with EWC comes with an architectural qualification. VGR and the variants of VCL use Bayesian neural networks and variational inference, while EWC uses a conventional network. Agreement between the VCL and EWC failures makes an explanation confined to VCL less likely. It leaves room for differences in optimization, architecture, or parameter estimates to matter in particular comparisons. In FashionMNIST, the authors deliberately limit hyper-parameter optimization. Exploratory increases in coreset size and network size give some improvement, according to the paper, with the main ranking reported for the selected configurations.
The authors also qualify the proposed explanation for the permutation effect. Final-layer gradients are particularly accessible to the analysis, and earlier-layer behavior is more involved. Furthermore, their argument concerns a restrictive approximation to the prior. A prior that adequately represented the earlier learning could respond appropriately to the changes required by new inputs. The measured gradients and the penalty experiment give evidence about practical approximations in these settings. The paper leaves open how a more expressive or accurate approximation would behave.
Limits of the evidence in these experiments
The applications in the introduction supply constraints, while the experimental observations come from classification of digits and clothing. The benchmarks provide an existence case for misleading evaluations: an apparent success can disappear when plausible prediction-time restrictions are enforced. Extending that result to the relative performance of specific methods on a hospital stream, turbine controller, or rover would require evidence from those settings. The extended uncertainty test similarly covers distinct transitions between known groups of images. Continuous drift and overlapping classes could give different uncertainty patterns, and the paper’s demonstration leaves their detection open.
The task-familiarity AUC and the observation of spikes also answer different questions. Testing on groups of seen and unseen digits shows how predictions rank along an uncertainty scale after completed stages of learning. The spike analysis follows a learner during an ordered FashionMNIST sequence. A live system that acts on a spike must still choose a threshold and decide what data to use to prepare for replay. The proposed cache and the alternative of training a generator concurrently each add a resource requirement. Their behavior under ambiguous changes remains beyond the demonstrated runs.
Restricted access to old datasets also permits meaningful differences in what each method retains. A coreset holds real examples. A replay procedure keeps generators trained on historical data. A prior-focused method holds a summary associated with past weights. The experiments compare these choices under limited access to the full earlier collections. They provide no matched memory budget or formal privacy guarantee for the retained objects. The paper notes the possibility of sampling generated data on demand, which can reduce the need to keep generated training sets in memory. A complete resource comparison would also account for the generators themselves as the sequence grows.
Finally, the timing data describe the tested settings and hardware. The authors explicitly charge generator training to the replay procedure and note that this work could run in parallel. They expect the costs of replay to become more difficult as the input space grows more complex or the sequence becomes very long, while the costs of prior-focused approaches can increase substantially with network size. The digit timings make the cost of the reported accuracy concrete. The relative costs at other scales depend on how the learner and its historical representation grow.
What came after
The two later citing works listed here take up selecting and retrieving data in online continual learning. That focus relates to a question the paper exposes through the contrast between VCL with a coreset and generative replay. Once training can draw on only a restricted representation of the past, results depend on what that representation contains and how it is used during updates. The 2018 paper makes this visible by changing whether earlier examples are available at all, and by comparing a small real collection with a source of generated examples.
The title Gradient based sample selection for online continual learning identifies gradients as the basis for choosing samples. This is a point of contact with the 2018 experiments, where the retained examples are chosen by a k-center procedure and have a measurable effect on the hybrid learner. The later work’s stated subject is the selection decision itself. Its citation and title leave open which of the five evaluation conditions it adopted and whether its selection procedure was compared with the specific coreset used by Farquhar and Gal. Gradient based sample selection for online continual learning
The title Online Continual Learning with Maximally Interfered Retrieval places the emphasis on retrieving material in response to interference during learning. This connects to the finding that the effect of training on new data depends on what earlier evidence is brought back into the objective. Retrieval concerns which material to use for an update once there is a source of historical data to draw on. The citation and title identify that research direction, while the details of its retrieval rule, benchmark settings, and measured effects remain unspecified here. Online Continual Learning with Maximally Interfered Retrieval
Selection and retrieval address different decisions within the broader problem of using historical evidence. The benchmarks in Towards Robust Evaluations of Continual Learning show why those decisions must be judged under a specified prediction rule and over a sequence long enough to expose forgetting. A selected sample may suffice to maintain the distinction within an old task. Whether it also keeps old classes competitive against new ones is a further empirical claim, and it requires an evaluation in which those classes can actually compete.
Institutions
Fields, topics and concepts
Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works
Topics 1Research subjects and languages the work is about.Evaluation & benchmarks · 1,394 works
Cite
Cite as Sebastian Farquhar and Yarin Gal. 2018. Towards Robust Evaluations of Continual Learning. arXiv:1805.09733.
@misc{farquhar2018robust,
title = {{Towards Robust Evaluations of Continual Learning}},
author = {Sebastian Farquhar and Yarin Gal},
year = {2018},
doi = {10.48550/arxiv.1805.09733},
eprint = {1805.09733},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1805.09733}
}References
- Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight Uncertainty in Neural Networks. Proceedings of the 32nd International Conference on Machine Learning, 37:0 1613–1622, 2015. our card
- Yaroslav Bulatov. notMNIST dataset, 2011. URL http://yaroslavvb.com/upload/notMNIST/. OpenAlex ↗ · Scholar ↗
- Arslan Chaudhry, Puneet K. Dokania, Thalaiyasingam Ajanthan, and Philip H. S. Torr. Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigence. Proceedings of the European Conference on Computer Vision, 11215:0 556–572, 2018. OpenAlex ↗ · Scholar ↗
- Arslan Chaudhry, Marc'Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient Lifelong Learning with A-GEM. International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
- Natalia Diaz-Rodriguez, Vincenzo Lomonaco, David Filliat, and Davide Maltoni. Don't forget, there is more than forgetting: new metrics for Continual Learning. Continual Learning Workshop at NeurIPS, October 2018. OpenAlex ↗ · Scholar ↗
- Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition. Proceedings of the 31st International Conference on Machine Learning, 31:0 647–655, 2014. our card
- Sebastian Farquhar and Yarin Gal. Differentially Private Continual Learning. Privacy in Machine Learning and AI workshop at ICML, 2018a. OpenAlex ↗ · Scholar ↗
- Sebastian Farquhar and Yarin Gal. A Unifying Bayesian View of Continual Learning. Bayesian Deep Learning Workshop at NeurIPS, page 6, 2018b. OpenAlex ↗ · Scholar ↗
- Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A. Rusu, Alexander Pritzel, and Daan Wierstra. PathNet: Evolution Channels Gradient Descent in Super Neural Networks. arXiv, 2017. our card
- Yarin Gal. Uncertainty in Deep Learning. PhD Thesis, 2016. OpenAlex ↗ · Scholar ↗
- Ian J. Goodfellow, Mehdi Mirza, Da Xiao, Aaron Courville, and Yoshua Bengio. An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networks. arXiv, 2013a. OpenAlex ↗ · Scholar ↗
- Ian J. Goodfellow, Mehdi Mirza, Da Xiao, Aaron Courville, and Yoshua Bengio. An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networks. arXiv, 2013b. arXiv: 1312.6211 Citation Key: Goodfellow2013. OpenAlex ↗ · Scholar ↗
- Alex Graves. Practical Variational Inference for Neural Networks. Neural Information Processing Systems, 2011. OpenAlex ↗ · Scholar ↗
- Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming Catastrophic Forgetting via Model Adaptation. International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
- Ferenc Huszar. Note on the quadratic penalties in elastic weight consolidation. PNAS, 1150 (11):0 E2496–E2497, 2018. OpenAlex ↗ · Scholar ↗
- Heechul Jung, Jeongwoo Ju, Minju Jung, and Junmo Kim. Less-forgetting Learning in Deep Neural Networks. arXiv, 2016. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma, Tim Salimans, and Max Welling. Variational Dropout and the Local Reparameterization Trick. Advances In Neural Information Processing Systems, pages 2575–2583, 2015. our card
- James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 1140 (13):0 3521–3526, March 2017. our card
- Alex Krizhevsky. Learning Multiple Layers of Features from Tiny Images. Technical report, 2009. OpenAlex ↗ · Scholar ↗
- Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. IEEE, 860 (11):0 2278–2324, 1998. OpenAlex ↗ · Scholar ↗
- Sang-woo Lee, Jin-hwa Kim, Jaehyun Jun, Jung-woo Ha, and Byoung-tak Zhang. Overcoming Catastrophic Forgetting by Incremental Moment Matching. Advances in Neural Information Processing Systems, 2017. our card
- Zhizhong Li and Derek Hoiem. Learning without Forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. OpenAlex ↗ · Scholar ↗
- Vincenzo Lomonaco and Davide Maltoni. Core50: a new dataset and benchmark for continuous object recognition. arxiv, 2017. OpenAlex ↗ · Scholar ↗
- David Lopez-paz and Marc'Aurelio Aurelio Ranzato. Gradient Episodic Memory for Continual Learning. Proceedings of the 31st Conference on Neural Information Processing Systems, 31, 2017. OpenAlex ↗ · Scholar ↗
- David J. C. MacKay. A Practical Bayesian Framework for Backpropagation Networks. Neural Computation, 40 (3):0 448–472, 1992. OpenAlex ↗ · Scholar ↗
- Radford M. Neal. Bayesian learning for neural networks. PhD thesis, University of Toronto, 1995. OpenAlex ↗ · Scholar ↗
- Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading Digits in Natural Images with Unsupervised Feature Learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011. OpenAlex ↗ · Scholar ↗
- Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational Continual Learning. International Conference on Learning Representations, 2018. OpenAlex ↗ · Scholar ↗
- B. Pfulb and A. Gepperth. A comprehensive, application-oriented study of catastrophic forgetting in DNNs. International Conference on Learning Representations, September 2018. OpenAlex ↗ · Scholar ↗
- Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. CNN features off-the-shelf: An astounding baseline for recognition. IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, pages 512–519, 2014. OpenAlex ↗ · Scholar ↗
- Hippolyt Ritter, Aleksandar Botev, and David Barber. Online Structured Laplace Approximations For Overcoming Catastrophic Forgetting. arXiv, 2018. OpenAlex ↗ · Scholar ↗
- Anthony Robins. Catastrophic Forgetting, Rehearsal and Pseudorehearsal. Connection Science, 70 (2):0 123–146, 1995. ISSN 13600494. OpenAlex ↗ · Scholar ↗
- Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive Neural Networks. arXiv, 2016. OpenAlex ↗ · Scholar ↗
- Jonathan Schwarz, Daniel Altman, Andrew Dudzik, Oriol Vinyals, Yee Whye Teh, and Razvan Pascanu. Towards a natural benchmark for continual learning. Continual Learning Workshop at NeurIPS, page 13, 2018a. OpenAlex ↗ · Scholar ↗
- Jonathan Schwarz, Jelena Luketina, Wojciech M. Czarnecki, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & Compress: A scalable framework for continual learning. arXiv, 2018b. our card
- Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual Learning with Deep Generative Replay. Advances In Neural Information Processing Systems, pages 2994–3003, 2017. OpenAlex ↗ · Scholar ↗
- Rupesh Kumar Srivastava, Jonathan Masci, Sohrob Kazerounian, Faustino Gomez, and Jürgen Schmidhuber. Compete to Compute. Advances in Neural Information Processing Systems, pages 2310–2318, 2013. OpenAlex ↗ · Scholar ↗
- Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv:1708.07747 [cs, stat], August 2017. OpenAlex ↗ · Scholar ↗
- Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? Advances In Neural Information Processing Systems, pages 3320–3328, 2014. our card
- Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual Learning Through Synaptic Intelligence. Proceedings of the 34th International Conference on Machine Learning, pages 3987–3995, 2017. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/farquhar-2018-towards-robust-evaluations-continual-learning/