Elamur Research

Task-Free Continual Learning

Paper · 2019 · Rahaf Aljundi, Klaas Kelchtermans and Tinne Tuytelaars

Summary

A face recognizer that learns from the latest scene can get better at recognizing the people on screen and worse at recognizing people who have stopped appearing. The same problem arises when a robot improves its steering in a new corridor and loses some of its ability to navigate an earlier one. Task-Free Continual Learning asks how a neural network can keep learning under these conditions. Examples arrive in order, neighboring examples frequently resemble one another, and changes in the stream may come without warning. The learner receives feedback about its predictions, but it has no schedule telling it when one task ends and another begins. It also has room for only a small selection of earlier examples.

The authors adapt Memory Aware Synapses, a method that estimates how much a network’s output depends on each of its parameters. Subsequent training discourages large changes to parameters with high importance estimates. Earlier implementations could use a known task boundary to decide when to take these measurements. Here, the learner watches its recent prediction loss. A period of low, steady loss can trigger an importance update, and a later rise in loss lets the learner start looking for another such period. A small buffer keeps examples the network finds difficult. The learner trains on those examples alongside new arrivals and uses the buffer to estimate parameter importance. It averages those estimates across updates so that repeated consolidation does not steadily increase the strength of the penalty.

The authors test the approach on a synthetic classification problem, face recognition from television series, and camera-based steering for collision avoidance. With weak supervision on The Big Bang Theory, the continual learner finishes at the accuracy of an online baseline trained on shuffled data. On Breaking Bad, whose scenes vary more in their imaging conditions, ordinary online training fluctuates as the stream progresses, while the continual learner improves overall and experiences smaller drops. Face recognition also improves from supervision generated by the video itself, although the timing and strength of the benefit depend on how frequently different people appear together. In the longer simulated steering experiment, the authors report total accuracy of 80% with continual learning and 70% with ordinary online learning. A small experiment with a physical Turtlebot finds that collisions fall faster during continual training.

The results identify conditions under which retention helps. The learner first has to acquire something worth preserving, and a stream with strongly uneven coverage can prevent it from doing so. Protecting earlier behavior can also delay adaptation when the latest examples are especially informative. The paper’s contribution is a way to make those preservation decisions inside an ongoing training process, using signals the learner already has access to.

Deep dive: Task-Free Continual Learning

Task-Free Continual Learning explains how a neural network can learn from a changing stream of examples while retaining what it learned earlier. · about 38 minutes to read

The problem and its context

Learning when the training set keeps arriving

A familiar arrangement in machine learning is to train a predictor, check it on held-out examples, and then fix its parameters for use. That separation makes it possible to evaluate a well-defined version of the predictor. It also means that a deployed system cannot learn from new conditions unless someone reopens the training process. The paper considers the opposite arrangement. A learner can keep adjusting its parameters as examples come in, and it may have to do so while the distribution of those examples is changing.

A distribution describes which inputs and outcomes the learner is likely to encounter. In a video stream, a stretch of footage may feature a particular actor, a certain camera angle, or a recurring lighting condition. In a robot’s camera stream, the images just seen will tend to come from the same stretch of its route. The next batch, meaning the small group of examples used for an update, is shaped by where the camera has just been pointing. Successive batches therefore need not look like independent draws from a single, unchanging pool. Even if the entire recording contains a rich variety of examples, any short run of frames can offer a narrow view of that variety.

This departure from independent and identically distributed sampling, abbreviated i.i.d., matters because an update is driven by the examples available at that moment. If a batch chiefly represents one pattern, reducing its prediction error can move some parameters in a direction that increases errors elsewhere. A shared parameter may help with the current examples and also contribute to distinguishing patterns that have temporarily disappeared. When such changes substantially degrade previously acquired performance, the paper calls the effect catastrophic interference, also discussed as catastrophic forgetting. It can happen over a sequence of deliberately constructed tasks or over a stretch of ordinary streaming updates.

Keeping every earlier example would make it possible to train on a broader sample of the past. The authors motivate their setting with cases in which storage or privacy prevents keeping the full history. The resulting problem is about what to preserve under a memory constraint. A saved example gives the learner a chance to revisit a particular observation. A parameter importance estimate instead records something about how the current network produces its outputs. These are different forms of evidence about earlier learning, and each is incomplete. The paper combines them so that a small amount of retained data can inform a broader penalty on parameter changes.

What knowing the task boundary used to provide

The paper distinguishes its setting from task-based sequential learning. In that arrangement, a learner is told which task it is working on. It has access to the current task’s data, while earlier and later tasks are unavailable for ordinary training. Access to the current dataset allows its examples to be shuffled and revisited. A task boundary also gives the learner a natural point to record what it has learned. Once training on the current task has stabilized, a continual learning method can use that dataset to decide what to carry forward. The next training phase begins with an explicit signal that its objective or data has changed.

The authors recount a distinction in earlier work among incremental task, domain, and class learning. Task learning can make use of a task identifier. Domain learning involves changes in input conditions while the prediction requirement can stay fixed. Class learning must accommodate new categories. The distinction matters for the network’s output as well as for its training schedule. A task-based classifier can acquire a new output head, meaning a collection of units dedicated to a specific set of predictions, when the next task starts. A learner operating on an unmarked stream has no comparable instruction to create one. The paper chooses fixed output dimensions and makes them serve different purposes in its applications. An embedding, or learned vector representation, lets the face learner handle new identities without reserving one output unit for each person. The steering network makes the same kinds of turn predictions as the surroundings change.

The earlier literature offers several ways of protecting old behavior. In the paper’s account, Elastic Weight Consolidation, introduced in Overcoming catastrophic forgetting, and Synaptic Intelligence both estimate which parameters should be protected. A parameter-specific penalty gives the learner more freedom to change some parts of the network than others. Synaptic Intelligence gathers information about importance during training, but the paper points out that it still waits for the task to end before applying the resulting protection to later training. That distinction separates computing statistics online from deciding online when those statistics should change the learning objective.

The authors discuss several other approaches whose interfaces reflect the task-based setup. Incremental Moment Matching trains versions of a predictor for different tasks and merges them at the end. Dynamically Expandable Networks use relationships between a new task and earlier ones to decide which units to reuse and where to add capacity. Learning without Forgetting and Encoder-based Lifelong Learning carry forward behavior using distillation, a training signal that encourages agreement with outputs learned earlier. In the setups the authors describe, these methods use a separate loss for previous tasks. Moving them into a stream would require deciding what should take the place of the named tasks or the events that separate them.

Episodic memory offers another route. It holds selected earlier observations so that they can influence new updates. The paper discusses Gradient Episodic Memory as a step toward streaming because it can receive examples individually. In the setup described, the learner still gets a task identifier and can treat nearby arrivals as draws from the current task’s distribution. The present paper removes those conveniences. Its buffer is shared across the stream, and its update procedure has to deal with batches that may already be biased toward whoever or whatever has just appeared.

Why output sensitivity fits the streaming setting

The paper builds directly on Memory Aware Synapses, abbreviated MAS. MAS asks how sensitive a learned function is to changes in each parameter. A change that moves the function’s output substantially on the examples under consideration gives a reason to protect the parameter. Since output sensitivity can be measured for a vector as well as for a classifier, the same idea applies to the face representation and to the steering predictions. The authors also point to the fixed size of the importance record and the low cost of differentiating the network to estimate it. Its parameter penalty has a gradient that can be calculated directly from the current parameter, its reference value, and its importance.

In the conventional schedule, MAS estimates importance when training on a task is complete, using that task’s examples. Both parts of the schedule become problematic in a stream. A learner can see that one prediction is poor, but that observation has several possible explanations. The input may be unusually hard, it may represent a shift in the stream, or the network may still be improving under the same conditions. And even when the learner reaches a sensible time to consolidate, the latest arrivals may represent only a narrow slice of its acquired behavior. The authors therefore need a timing signal, a source of examples on which to measure sensitivity, and a way of combining repeated measurements over a long run.

The work on online learning reviewed by the authors also informs the choice of examples. They describe experience replay in reinforcement learning, where saved experiences are used again for training. The paper contrasts the scale of some earlier replay stores, up to 1M experiences, with the buffer of up to 100 examples considered here. It also distinguishes drawing difficult experiences more frequently from using difficulty to decide which experiences deserve space in the store. The paper takes the latter approach. With limited room, a new observation can displace an earlier one if the learner currently finds it more difficult.

The method, step by step

What the learner sees on each update

The method starts from a continuing stream of inputs and supervisory feedback. The feedback may come from an annotator who can judge a relation between examples, or it may be generated from another observation. In the video experiments, for example, seeing different faces in the same image gives a cue for constructing a training example. In the navigation experiments, an expert signal based on a range sensor provides a target steering direction for a camera image. In each case, the learning algorithm gets a small group of examples it can train on immediately. It need not be told which named segment of the experiment produced them.

The learner maintains its current network parameters, a small store of difficult examples, and a window of recent loss measurements. Loss is a numerical measure of how poorly the network is doing on the training objective. It may measure the quality of a face representation or the quality of a steering prediction, depending on the application. The learner also keeps an importance value for each parameter and a reference copy of the parameters from the last consolidation. At the start, the buffer and loss window are empty and importance begins at zero.

How the learner trains and consolidates on a stream

The steps in order.

How the learner trains and consolidates on a streamStep 1: Receive recent examples and their training targets1. Receive recent examples and their training targetsStep 2: Train on new arrivals and buffered examples2. Train on new arrivals and buffered examplesStep 3: Record recent prediction losses3. Record recent prediction lossesStep 4: Check for a low, steady loss window4. Check for a low, steady loss windowStep 5: Estimate importance on buffered examples when eligible5. Estimate importance on buffered examples when eligibleStep 6: Average importance estimates and save reference parameters6. Average importance estimates and save reference parametersStep 7: Allow another consolidation after a loss peak7. Allow another consolidation after a loss peakStep 8: Keep the highest-loss examples in the buffer8. Keep the highest-loss examples in the buffer

The figure follows the operations in the procedure. The check for a plateau can lead to a consolidation only when the learner is eligible to perform one. Training and buffer maintenance continue on steps where the importance record stays as it is. This distinction between ordinary updates and occasional consolidation matters. The network can make progress on a new part of the stream while the information governing what to protect still comes from the preceding consolidation.

Combine the current batch with replay

At each step, the learner fits the latest examples and the hard examples kept from earlier steps. Before accounting for parameter preservation, the learning objective is the sum of the losses on those groups.

min over θ  [L(F(X; θ), Y) + L(F(Xᴮ; θ), Yᴮ)]

Here θ is the collection of trainable parameters, and F is the prediction function with those parameters. X contains the recent inputs and Y contains their targets. The superscript ᴮ identifies examples from the buffer B, so Xᴮ contains buffered inputs and Yᴮ their corresponding targets. L compares predictions with targets using the loss for the application. The semicolon in F separates the inputs from the parameter argument. The instruction to minimize over θ means that training adjusts the network parameters to reduce the combined loss. The algorithm implements this through stochastic gradient descent, or SGD, which takes gradient steps using the examples currently available.

Replay lets an older difficult example contribute a gradient at the same time as a newer observation. Consider a run of face tracks that gives the learner several similar comparisons in succession. A triplet held over from an earlier scene can still ask the representation to preserve a distinction that is absent from those comparisons. The resulting update depends on both sources of evidence. Which earlier scenes contribute is determined by the contents of the buffer at that step.

In the pseudocode, the learner receives K recent samples and takes N gradient steps for the arrivals. K counts the new examples and N counts the optimization steps made using them together with the buffer. Several gradient steps can be useful when data are arriving in groups and the learner is given time to improve on a group before moving on. For monitoring, the loss window receives an update on the first inner step. This keeps successive passes on a single group from supplying all the observations used to judge whether learning has settled.

Use output changes to measure parameter importance

A neural network can have many parameters, and it is rarely obvious from their raw values which ones matter to a specific prediction. MAS estimates their importance by considering a small hypothetical change. The network is evaluated conceptually at its present parameters and at a nearby set of parameters. The paper uses a first-order approximation to express the difference between those outputs.

F(xₖ; θ + δ) − F(xₖ; θ) ≈ ∑ᵢ gᵢ(xₖ) δᵢ

F is the learned function and xₖ is input example k. The index k identifies an example, and θ denotes the full parameter vector. The vector δ is a small perturbation to that vector, with δᵢ denoting the change in parameter i. The index i runs over parameters in the sum. The term gᵢ(xₖ) gives the local sensitivity of the output to that parameter on input xₖ. The approximation sign indicates that the expression keeps the first-order effects of the perturbation.

gᵢ(xₖ) = ∂F(xₖ; θ)/∂θᵢ

In this expression, gᵢ(xₖ) is the derivative of F on input xₖ with respect to the parameter θᵢ. The symbol ∂ denotes a partial derivative, which varies the specified parameter while holding the others fixed. The output can be a vector, in which case the sensitivity describes how its components respond. A derivative measured at one input can be large even if the parameter makes little difference at another input. MAS therefore takes magnitudes and averages them across the examples chosen for the importance calculation.

Ωᵢ = (1/N) ∑ₖ₌₁ᴺ ‖gᵢ(xₖ)‖

Ωᵢ is the estimated importance of parameter i. Here N counts the examples used to estimate importance, and k runs from the first through the last of those examples. The paper also uses N in its algorithm for the number of inner gradient steps, a separate quantity determined by context. The double bars take the norm, or magnitude, of the sensitivity gᵢ(xₖ) on example xₖ. The factor 1/N turns the sum into an average. Using a magnitude lets changes in different directions contribute to the estimate without cancelling one another. The calculation uses inputs to probe the function’s sensitivity. Its interpretation differs from asking how much a parameter helps reduce the supervised prediction loss.

The conventional MAS objective gives a precise meaning to protection. As the learner fits a new task, it pays a quadratic cost for moving a parameter away from its reference value. The cost depends on the importance estimated for that coordinate.

L(θ) = Lₙ(θ) + (λ/2) ∑ᵢ Ωᵢ (θᵢ − θᵢ*)²

L(θ) is the objective to be minimized, and Lₙ(θ) is the training loss for the new task, denoted by n. The sum is over parameter indices i. Ωᵢ is the importance associated with parameter i, θᵢ is its current value, and θᵢ* is its value when importance was estimated. The star marks a stored reference. The square applies to the displacement from that reference, and λ sets the overall strength of the penalty. The factor 1/2 is the convention used in the paper’s quadratic. A larger importance value makes a given displacement more costly. A large enough improvement in prediction loss can still justify a displacement, so protection is a preference expressed in the objective.

Recognize a useful moment to consolidate

The new protocol uses the recent history of loss as a signal for when to refresh importance. Loss can fall as the learner becomes better at its recent examples. A low, steady interval is a plausible opportunity to record which parameters support the behavior it has just learned. A rise can occur later when harder inputs arrive. The stream can contain gradual transitions, abrupt transitions, and fluctuations within the same setting. The trigger operates on the learner’s observed error history across all of those cases.

The window supplies two pieces of information. Its mean gives the typical loss level over the recent observations. Its spread captures how much the observations differ. A low mean on its own can hide a mix of easy samples and occasional large errors. Low variability by itself could indicate that the learner is consistently doing poorly. The plateau condition requires both statistics to be below their respective thresholds.

¬P ∧ μ(W) < δμ ∧ σ(W) < δσ

W is the window of recent loss observations. The functions μ and σ denote its mean and its measure of spread. The paper describes the plateau test in terms of mean and variance and writes the spread statistic as σ in the algorithm. The threshold δμ applies to the mean and δσ to the spread. Their δ notation identifies thresholds here, separately from the parameter perturbation used above. P is a flag indicating that a plateau has already been accepted. The symbol ¬ reverses that flag, and ∧ requires all the stated conditions to hold. The less-than signs give the direction of the threshold comparisons.

When the learner accepts a plateau, it computes an importance estimate on the current hard buffer, saves the current parameter values as the reference for subsequent training, and records the plateau’s loss statistics. It clears the loss window and marks the plateau as accepted. As more observations arrive, continued low loss alone will leave that flag in place. A subsequent rise in the window mean makes the learner eligible to look for a new plateau.

μ(Lwin) > μold + σold

Lwin denotes the current window of loss observations. The term μ(Lwin) is its mean, μold is the mean saved at the preceding plateau, and σold is the standard deviation saved for the peak comparison. The greater-than sign indicates that the current mean must exceed their sum. The paper describes this cutoff as corresponding to 85% of a normal distribution estimated from the earlier plateau window. The operational rule is the comparison with the previous mean plus its spread. A detected peak reopens the plateau search. The actual refresh still waits for a new window that satisfies the low-loss and low-variability conditions.

The delay gives the learner an opportunity to fit newly arriving patterns before choosing what to consolidate. Suppose a run of difficult examples lifts the window mean, followed by a decline as the network learns to handle them. The first event qualifies the learner to search again. The second supplies observations that can meet the plateau thresholds. An isolated difficult arrival might influence the window without producing this whole sequence. Conversely, if loss remains elevated or variable for a long stretch, the learner may keep training without another importance update.

Retain difficult examples and combine importance records

Task-based MAS can measure output sensitivity over the completed task’s dataset. In the streaming procedure, using only the latest group would make the importance estimate sensitive to local repetition and imbalance. The authors use the buffer instead. It already contains examples kept from more than one update, provided those examples have continued to merit space. The authors’ rationale is that this collection can better represent useful earlier behavior than the particular few observations that happen to arrive just before a consolidation.

The buffer is updated by considering the existing contents and new arrivals and keeping the cases with the highest current loss up to its capacity. Difficulty is therefore relative to the network’s predictions. If an example becomes easy after further training, another example can take its place. Earlier examples can persist when they continue to pose a useful challenge. The paper’s algorithm places the buffer refresh after the loss tests and the potential importance update. An example can participate in training as a fresh arrival before it ever qualifies to contribute to a later importance estimate as a buffered example.

The loss used to rank an example and the sensitivity measured on that example answer separate questions. A high loss makes the example eligible for retention. Once retained, the derivatives of the output reveal which parameters matter to how the network processes it. A parameter can receive an appreciable importance value even when the example by itself gives little indication of the direction in which that parameter should move. The subsequent penalty preserves the parameter’s value, while prediction losses continue to give direction to further learning.

The authors also change how importance estimates are carried forward. Traditional MAS can add the importance from each completed task to previous importance values. In an indefinite stream, repeated additions can make the values so large that the gradients of the penalty become unstable. The online procedure uses a cumulative moving average. Each accepted consolidation contributes an estimate, and all accepted estimates have equal weight in the current average. That makes the number of consolidation events relevant to how much the latest estimate can alter the record. It also keeps importance values on the scale of an average rather than a running sum.

The importance record and the reference parameters are updated in different ways. The record averages evidence about which coordinates have mattered. The reference parameter values come from the most recent accepted consolidation. Thus a parameter can remain highly protected because it mattered at earlier consolidations, while the particular value from which movement is penalized advances with the learner. The objective after the adaptation to streaming combines replay with this penalty.

min over θ  [L(F(X; θ), Y) + L(F(Xᴮ; θ), Yᴮ) + (λ/2) ∑ᵢ Ωᵢ (θᵢ − θᵢ*)²]

The first loss L compares the outputs of F on recent inputs X with targets Y. Its second occurrence compares outputs on buffered inputs Xᴮ with the buffer targets Yᴮ. The trainable parameters are θ, with θᵢ denoting the coordinate indexed by i. Ωᵢ is that coordinate’s accumulated importance estimate, and θᵢ* is its reference value from the last importance update. The sum runs over parameters, λ controls the strength of the MAS term, and the squared displacement is scaled by the factor λ/2. All three terms contribute to each optimization step after importance is available. The per-parameter penalty gradient can be added directly to the prediction-loss gradient.

Turn observations into training signals

For faces, the authors use an AlexNet architecture with convolutional layers initialized from ImageNet training and randomly initialized fully connected layers. The output is a vector of size 100. The representation is trained with triplet margin loss. A triplet contains an anchor face, another face of the same identity, and a face of a different identity. The objective encourages the anchor to be closer to the matching face than to the different face by a margin. Face tracks, which group detections of a face over consecutive frames, supply same-identity examples. Weak supervision provides a judgment about the identities of consecutive tracks. Self-supervision uses tracks that appear in the same image as evidence of different identities. The representation can accommodate a new person by learning distances among faces within the same output space.

The face buffer holds 100 triplets, and the loss window has length 5. The optimizer uses a learning rate of 10⁻⁴. The procedure makes 2-3 gradient steps per update under weak supervision and 10-15 under self-supervision. The supplementary hyper-parameter table gives 100 for the regularization weight, 0.3 for the mean loss threshold, and 0.1 for the variance threshold. The authors set the face hyper-parameters using the first episode of The Big Bang Theory. These are settings for a specific representation, objective, and data stream, so the loss thresholds have meaning on that training setup’s scale.

For collision avoidance, the input is a 128x128 RGB frame and the output predicts among three discrete steering directions. The small network has 2 convolutional layers and 2 fully connected layers with rectified linear activations. Training minimizes cross-entropy, a loss that penalizes assigning low probability to the target steering action. In the simulated corridor run, the camera learner starts from random parameters. A laser range finder gives an expert heuristic the information it needs to choose a direction, and the camera learner receives that direction as its target. Testing the camera-based predictor uses the image as input. This arrangement is an instance of behavior cloning, since success on the prediction objective means agreeing with the expert’s action.

The supplementary settings give a learning rate of 0.01 and regularization weight of 0.5 for the simulated corridor and physical Turtlebot configurations. Their hard-buffer capacities are 40 and 30 respectively. These are the stores of difficult samples. In the physical experiment, the paper also describes a separate recent frame buffer that keeps the 40 latest labeled frames. The recent store determines which observations are available as current training data, while the hard buffer can retain challenging cases across updates.

Experiments and results

A synthetic stream with a known decision boundary

The synthetic experiment makes the retention question easy to locate. The learner classifies points in 4D according to whether they fall inside or outside the unit sphere. Training proceeds through two quadrants in sequence. The experimenters know which quadrant supplies the current points, so they can test performance on the earlier region after the learner has trained on the later one. The method can operate without receiving the quadrant transition as a consolidation instruction.

The authors compare ordinary online training without the hard buffer, online training with the buffer, and the full continual learner. Their figure depicts predictions close to the decision boundary in quadrant one following training in quadrant two. It also reports accuracy on the first quadrant and overall test accuracy across both quadrants. Those views answer slightly different questions. The first concentrates on the part of the problem most exposed to forgetting. The overall score also reflects how well the learner has fit the later data.

The hard buffer improves overall test accuracy, and the full procedure also protects first-quadrant performance. This experiment establishes the basic distinction that the later applications examine under messier conditions. A method can improve its overall classification by doing better on the region it has just seen. Examining the earlier region separately shows whether that improvement was accompanied by preservation of the original decision boundary.

Recognizing actors from chronological face tracks

The face experiments use tracks drawn from an actor-labeling dataset. The material includes 6 episodes of The Big Bang Theory and 4 episodes of Breaking Bad. The study also uses one episode of Mad Men, since a labeling issue prevents the authors from using the others. The Breaking Bad material is divided into 22 chunks, and the Mad Men episode into 5. The chronological order of the tracks is preserved for streaming training. A new segment can bring changes in who appears, lighting, or what faces are visible, even though the task of comparing faces stays the same.

In the weakly supervised setup, the authors hold out every tenth track from The Big Bang Theory and every fifth track from Breaking Bad. They report 339 tracks for The Big Bang Theory and 3941 for Breaking Bad. The remaining tracks supply training examples. The held-out tracks let the authors evaluate across a fixed collection while observing the system at different points in the stream. Mad Men is reserved for the self-supervised comparison because only one usable episode is available.

For the weakly supervised update, the learner can train when the tracks under consideration come from different people. The experiment takes one face every 5 frames and uses random sampling when the pair of tracks contains more than 100 faces. Each update can therefore expose the learner to multiple images associated with a particular identity comparison. The chronologically next usable pair is determined by the video. In a scene dominated by the same small set of people, successive pairs may provide similar identity evidence.

Evaluation uses 5 reference templates per actor. The test procedure computes Euclidean distance between a test face and the reference faces in the learned representation, then assigns the identity of the nearest template. Euclidean distance is ordinary straight-line distance in that vector space. Actor recognition accuracy measures how often that assigned identity matches the track label. The test uses labels even when the training procedure gets its identity evidence from temporal or visual cues. Evaluating the representation this way keeps the training procedure’s use of labels distinct from the accuracy calculation.

The Initial baseline evaluates the network before training on any episodes. The Online baseline follows the chronological training setup, including the hard buffer in the main comparison, and omits MAS regularization. Online Joint Training also omits MAS but draws from tracks shuffled across episodes. Shuffling reduces the short-run clustering of similar examples and gives the learner access to an ordering that a live viewer could not supply. Offline Joint Training revisits the complete shuffled training set over multiple epochs. The authors use it as an upper reference for their experiments. These comparisons separate the effect of training at all, the effect of adding parameter protection to the stream, the consequence of changing the order, and the benefit of repeated access to the whole training set.

Weak supervision under different rates of change

On The Big Bang Theory, the paper reports that the Online baseline initially gains 20% in test accuracy relative to the initial predictor. The figure evaluates held-out test data from across the series after each episode. The gain shows that an ordinary chronological learner can quickly extract useful face information. As training proceeds, its aggregate test accuracy stops increasing and begins to decline after the third episode. The authors attribute this pattern provisionally to interference from later episodes. The online learner is still taking training steps when its performance on the fixed test collection falls.

The continual learner keeps improving and finishes the 6 episodes at the accuracy of Online Joint Training. This comparison is meaningful because the joint baseline has the advantage of a shuffled training order and the continual learner sees tracks in their original sequence. Offline Joint Training achieves the top result. The paper describes its test accuracy as 8% higher than that of the continual learner. These are the authors’ reported comparisons on the held-out face test data. The result places streaming consolidation near the shuffled online reference on this series while leaving a measurable advantage for repeated exposure to the whole dataset.

Breaking Bad presents a more difficult recognition stream in the authors’ account. Outdoor shots and varied lighting bring substantial visual differences within episodes and across them. The researchers report accuracy on the full held-out collection after chunks 1, 5, 9, 13, 17 and 21. After initial progress, the Online baseline struggles to build on what it has learned, and its accuracy moves up and down considerably. The authors suggest that the relation between the latest scenes and the rest of the series helps explain these fluctuations. A batch can be useful for a particular scene while inducing changes that are poorly suited to other scenes included in the test set.

The continual learner also loses accuracy at times on Breaking Bad, but the declines are smaller and the longer trajectory improves. The paper reports up to a 100% improvement in test accuracy over the Online baseline. That figure describes the reported improvement over the baseline during the comparison. The continual learner surpasses the shuffled Online Joint baseline and approaches Offline Joint Training in the authors’ results. The authors note that the offline system reaches the comparable range only after ten revisits to the training data. This makes the comparison informative about how the learner uses the sequential examples it has already seen. It also shows why the shuffled result is best understood as an experimental reference. It represents a different exposure order and training procedure, whose final score can vary with the series.

Self-supervision from who appears together

The video itself can supply part of the supervision when two different faces are visible in the same image. Their tracks then provide a negative identity comparison, while faces within a track can provide the matching examples. The supply of such comparisons depends on the composition of scenes. Breaking Bad is excluded from this setup because much of the footage centers on one actor. The authors use The Big Bang Theory and Mad Men to examine whether face learning still progresses when eligibility for training is determined by the footage.

Track length matters under self-supervision. The original tracks average 8 faces on The Big Bang Theory and 22 faces on Mad Men. The authors use distances from an ImageNet-pretrained AlexNet representation to merge adjacent tracks when their heuristic indicates the same actor. This preprocessing extends useful tracks for generating training comparisons. The chronology remains important because both the available identities and the number of usable co-occurrences change as the learner moves through the recording.

In The Big Bang Theory, the first and sixth episodes contain substantial numbers of the relevant tracks with two people in one image. Recognition is evaluated on faces across the episodes after the learner finishes each episode. The Online baseline improves slightly as more material arrives. The continual learner pulls ahead in the last episode, when a larger supply of usable tracks gives both procedures more opportunity to update. The timing is important to interpreting the result. A weak separation through much of the earlier sequence occurs in a setting where the source of supervision itself is sparse.

In Mad Men, the evaluation follows the 5 chunks of the available episode. The continual learner improves its recognition accuracy as it proceeds through the chunks, showing that it can build a useful representation from this kind of stream within a single episode. The self-supervised figures evaluate recognition across the material described for each series. The weakly supervised figures use the held-out track procedure. The two sets of curves support comparisons within their respective conditions, with different sources of training comparisons and different evaluation collections.

Camera-based steering across changing corridors

The simulated navigation experiment uses a Hector Quadrotor in Gazebo. The expert looks at laser range readings and steers towards the direction with the greatest measured depth. The camera learner is trained on that expert’s demonstrations in a sequence of corridors called A, B, C and D. They differ in surface appearance, obstacles, and turns. The camera images change with the environment, while the target remains the expert’s choice among the available steering actions. A backward pass occurs every 10 steps. The authors train three networks with different seeds for each condition and plot the resulting variation.

The evaluation tests steering agreement over the complete route as training progresses. It reports accuracy for individual corridors as well as combined accuracy. The figures include an initial predictor, the ordinary chronological learner, an online joint learner exposed to the data in shuffled order, and an offline reference. Markers on the learning curves show where the data stream moves to a new corridor. Those markers help a reader interpret a trajectory in the figures. The importance update procedure itself bases its decisions on observed loss.

Both streaming learners become more accurate on the corridor in which they are training. The ordinary online learner loses some accuracy on A, B and C while it goes through later environments. The authors call attention to the behavior around B and D, and they report a rise in cross-entropy during D across the compared learners. That rise is evidence that the new stream is difficult for the available predictors. Reading the per-corridor and combined curves together separates learning the latest corridor from preserving agreement with expert actions in earlier ones.

The supplementary simulation extends the route to 10 corridors, around 20 minutes of flight or 10.000 frames. A corridor can contain many more examples of one steering action than of another. The authors introduce Weighted Accuracy for this analysis, averaging accuracy over actions so that a high score requires more than reliably predicting the most common action. They also compare hard buffers with and without an action-balancing constraint. The headline total accuracy reported for the longer simulation is shown below. The per-corridor breakdown and the buffer comparison explain which parts of the sequence contribute to that outcome.

Total steering accuracy in the longer simulated corridor sequence

Continual learning reaches higher total accuracy than ordinary online training.

Total steering accuracy in the longer simulated corridor sequenceOnline baseline: 70Online baseline70Online Continual (this paper): 80Online Continual (this paper)80
The numbers
System or settingaccuracy %
Online baseline70
Online Continual (this paper)80

Learning while the physical robot is in control

In the physical experiment, a Turtlebot drives in a small laboratory arena around a large yellow obstacle. Its steering network undergoes on-policy pretraining in a comparable simulation without using continual learning. On-policy means that the learner’s own actions determine which states it encounters during training. The physical robot then continues training with a laser-based expert supplying supervisory actions. What the learner chooses to do affects the images it will see next and which mistakes it has a chance to learn from.

The supplementary description says a gradient step is taken every 10 frames. When the range sensor detects a collision, training pauses and the robot is turned so that the nearest obstacle is behind it. The authors train each condition three times and report about 20 minutes, or 300 gradient steps, to convergence. The main figure plots collisions per training step over time with error bars. The supplementary comparison gives the ratio of all collisions to the gradient step count. A straight-driving baseline records 0.6 collisions per gradient step in that comparison.

Collisions fall faster during training with continual learning. The supplementary results also show benefits from balancing the steering actions in the hard buffer. The time at which a useful experience occurs can vary substantially between runs, which the authors use to explain the wider variation in this experiment. The physical result gives the paper a case in which an advantage appears within one arena, even though there is no scheduled sequence of new environments. The distribution faced by the network still depends on the robot’s behavior. Learning to escape a recurring mistake can make that example of the mistake less likely to appear again soon.

What the ablations show

Replay matters even before adding parameter protection

The face ablation on The Big Bang Theory compares both ordinary online learning and the continual procedure with and without the hard buffer. The evaluation follows the held-out test data after each episode. Giving the ordinary learner a hard buffer improves recognition, which shows that replay contributes even when the optimization objective contains no MAS penalty. The harder earlier cases can affect new gradient steps. This is an immediate training benefit in a stream that may otherwise supply several batches of similar comparisons in succession.

Removing the buffer also weakens the continual procedure. Here the ablation removes more than the opportunity to train again on difficult examples. The buffer is also the collection on which the full method measures output sensitivity. The result therefore supports the usefulness of the buffer in the complete procedure, with both roles operating together. The reported comparison does not isolate how much of the improvement comes from a better supervised update and how much comes from estimating importance on a more useful sample. It also compares the chosen hard buffer primarily with its absence. This leaves open how much of the advantage would survive under other selection rules at the same capacity.

The synthetic comparison offers a complementary view. There the gain from replay is visible in joint test accuracy across the two quadrants, and the benefit from the full system is apparent in performance on the earlier quadrant after the later training. The design is particularly helpful when interpreting a single aggregate number. The earlier-region metric tells the reader where preservation is happening and whether it coincides with the gains from replay.

Equal weighting is steadier on the face stream

The second face ablation changes how newly estimated importance is combined with what the learner has accumulated. The full procedure uses a cumulative average, in which importance from each consolidation gets the same weight. The alternative gives new estimates more influence using the following update.

Ωₜ = (Ωₜ₋₁ + Ω*)/2

Ωₜ is the vector of accumulated importance values after consolidation event t. Ωₜ₋₁ is the vector available from the preceding consolidation, and Ω* in this formula denotes the latest estimated importance vector. Each vector contains an entry for every parameter. The denominator 2 makes the previous aggregate and the latest estimate contribute equally at this event. When the rule is applied again, the older estimates are carried forward inside an aggregate whose contribution is reduced at each subsequent update.

On the held-out Big Bang Theory test, the decaying rule produces more fluctuation across episodes. The authors connect that behavior to the stronger influence of recent estimates. A recently accepted plateau may come from a part of the stream whose useful behaviors cover only a small part of the test set. When its estimate gets substantial weight, it can redistribute protection around whichever inputs were important locally. The cumulative average gives the individual update less leverage as the record grows.

That comparison addresses which accumulation schedule was steadier under the experiment’s settings. A permanent shift in conditions raises a different question. In such a case, allowing obsolete importance to fade could give the learner more freedom to fit the new stream. The authors discuss decay as a reasonable choice when preserving irrelevant behavior becomes costly, especially if a more permissive plateau criterion triggers frequent updates. The face ablation shows the tradeoff under a stream in which performance on earlier and later material still counts at evaluation.

Character frequency exposes a source of forgetting

For Breaking Bad, the authors break out recognition accuracy for Skyler and Walter, the two most frequent characters considered in the plot. They show test accuracy after individual chunks, and the size of a marker indicates how frequently the character appeared in that chunk. A missing marker denotes an absence. This plot lets the reader compare the fluctuations in a character’s test performance with the amount of current training exposure to that character.

The ordinary online learner’s recognition usually drops when a character appears infrequently in a chunk. The continual learner is more stable in that situation. The observation helps connect the aggregate accuracy curves to a feature of the stream itself. As an actor disappears from the recent training comparisons, the updates can still change the representation that distinguishes that actor. The analysis is observational. Character frequency changes alongside scene conditions and the identities included in the training comparisons. Its value is in locating the periods where the exposure and recognition trajectories move together.

Action balance helps the learner acquire behavior worth preserving

The longer corridor experiment varies the composition of the hard buffer. With the normalization constraint, the buffer is required to represent the steering actions equally. This counteracts local dominance by one action. It also changes eligibility for retention. An example of an already well-represented action can compete for less space than it would in a buffer filled solely according to loss.

Action balancing improves both plain online and continual learning in the authors’ results. Without it, the learners fail to acquire useful behavior in some corridors, including 1 and 4. An importance penalty cannot preserve a response the network failed to learn. In corridors where the learner acquires useful behavior, the paper reports that continual learning can preserve an advantage of 15 to 20% accuracy over the Online baseline in the per-corridor evaluation. With action balance, the continual learner acquires useful behavior in every corridor and finishes ahead of the baseline in all but the last corridors. That final qualification matters because earlier parts of the route give forgetting more time to accumulate.

The authors also examine accuracy throughout training. Some intervals show gains from action balance in corridors whose demonstrations are especially uneven. Other intervals show that the normalized buffer can delay improvement on new data by limiting the space for examples of the actions currently arriving. There are also moments when ordinary online learning regains accuracy on an earlier corridor during training on a later one. A new corridor can teach behavior that transfers back to the old corridor. Looking only at the endpoint would make that recovery hard to distinguish from having preserved the behavior throughout. The time series reveal retention, temporary degradation, and relearning as different trajectories through the same evaluation.

Limitations

Limits identified by the authors

The authors identify a practical tension in setting the plateau thresholds. If both thresholds are too strict, the loss window may rarely qualify and MAS will have little opportunity to affect training. If the thresholds are too permissive, the learner may protect behavior learned from short-lived or uninformative conditions. Frequent updates of that kind can leave irrelevant information in the cumulative record and slow later learning. In their experiments, the authors find that a relatively high mean threshold can work when the variability threshold is low. They identify automated threshold selection as future work. The thresholds used in the experiments remain choices matched to the task and its loss.

A second condition is that the underlying stream has to be trainable. An imbalance in observations or targets can prevent ordinary training from learning the behavior that the regularizer is meant to preserve. The action-normalization experiment gives a concrete instance. Equal representation of actions in the hard buffer enables learning in corridors where the unconstrained procedure struggles. This result limits what can be inferred from a poor continually trained predictor. Weak performance can arise during acquisition, before parameter preservation has a chance to help.

The authors also say that regularization can initially slow adaptation. When new data are much more informative or representative than what came before, the earlier reference can pull against a beneficial change. Ordinary online training has more freedom to respond quickly in that situation. The usefulness of increased stability depends on the timescale over which the stream changes and on how valuable older behavior remains. The authors see their strongest benefit where substantial shifts make the ordinary learner unstable. They expect less separation as the stream comes closer to i.i.d. sampling.

The experiments keep the architecture and output dimensions fixed. The paper discusses growing an output head when new class labels appear, or representing new categories through an embedding, as possible directions for further study. The demonstrated face procedure shows how a fixed embedding can support additional identities in the data. The steering procedure keeps its action vocabulary throughout. The authors also call for longer self-supervised learning runs on television footage. The theoretical setup allows an indefinite stream, while the reported experiments have finite durations and known evaluation collections.

Limits visible in the experimental design

A loss plateau is indirect evidence. It tells the learner that recent training loss is low and steady according to the configured thresholds. It does not identify which parts of the stream have become well understood, and it gives no ground-truth label for a distribution change. A predictable run may satisfy the thresholds while omitting important cases. A difficult stretch may delay consolidation even after the learner has acquired useful partial behavior. The plotted loss and the improved retention support this timing rule as part of the tested procedure. The comparisons leave open how it would fare against a periodic refresh, a different rule based on loss, or a schedule supplied with known transitions while holding replay and importance estimation fixed.

The same caution applies to the contents of the buffer. High loss can flag an example whose successful treatment would improve the predictor. It can also flag a noisy target, an ambiguous observation, or a case outside what the network can fit. A buffer chosen in this way samples its history according to current difficulty, so its contents need not represent the frequencies or breadth of all previous conditions. In steering, imposing action balance visibly changes results. That comparison shows how much the effective training distribution can depend on a design decision about what the buffer retains.

The television stream uses existing face detections and tracks from a dataset. This makes controlled comparisons possible, while leaving open how a deployed detector and tracker would affect the available supervision. Errors in tracking could alter which faces are treated as matching, and the supply of comparisons from co-occurrence is shaped by how the footage is shot. The experiments themselves illustrate the latter issue by excluding Breaking Bad from self-supervision and finding the clearest separation late in The Big Bang Theory. The evidence therefore pertains to recognition from the available tracked faces under the described supervision, with different series supporting different training setups.

For navigation, steering accuracy in simulation measures agreement with the expert’s action. Agreement gives a useful measure of behavior cloning, including on corridors that have already passed out of the training stream. Physical collisions are measured directly in the Turtlebot experiment, under a small arena setup with simulation pretraining, laser-based supervision, and a recovery procedure after collision. Those conditions define the scope of the physical result. The evidence supports faster learning in that setup, while long-term operation across a broad range of physical environments remains untested.

Finally, fixed evaluation on earlier parts of a sequence gives retention a clear meaning. Every earlier corridor still matters when total accuracy is measured, and actors who appear infrequently can still contribute to the test set. In a deployment where preferences or conditions permanently change, the value of acquiring the latest behavior relative to preserving earlier behavior could change as well. The cumulative average protects a history of useful parameters under the paper’s evaluation. Establishing when that history should expire would require evidence from a stream designed around such changes.

What came after

Online Continual Learning with Maximally Interfered Retrieval takes up a closely related decision about how to use earlier examples during online learning. Task-Free Continual Learning uses high current loss to determine which examples stay in memory. Maximally Interfered Retrieval directs attention to the examples most threatened by interference from an update. The distinction is between an example the learner already finds hard and one whose prediction is especially vulnerable to the learning it is about to do. The latter can be an informative reason to retrieve an example even when the predictor handled it well just beforehand. That moves the intervention to the choice of what to revisit for a particular update.

The Curse of Recursion cites the paper in connection with forgetting in a different training sequence. Its subject is what happens when generated data feed back into later training. In Task-Free Continual Learning, the changing observations come from such sources as a sequence of scenes or the path a robot takes through its surroundings. In recursive training on generated data, earlier outputs help determine the evidence available to the next round of learning. The connection is the dependence of future learning on what the current training data continue to represent. The recursion work extends that question to streams whose contents are shaped by earlier generations of the system itself.

Cite

Cite as Rahaf Aljundi, Klaas Kelchtermans and Tinne Tuytelaars. 2019. Task-Free Continual Learning. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/cvpr.2019.01151 · arXiv 1812.03596

@inproceedings{aljundi2019task,
  title = {{Task-Free Continual Learning}},
  author = {Rahaf Aljundi, Klaas Kelchtermans and Tinne Tuytelaars},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2019},
  doi = {10.1109/cvpr.2019.01151},
  eprint = {1812.03596},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr.2019.01151}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/aljundi-2019-task-free-continual-learning/