IL2M: Class Incremental Learning With Dual Memory
Paper · 2019 · Eden Belouadah and Adrian Popescu
Summary
An image classifier that learns new categories in stages must still recognize the categories it learned earlier. That becomes difficult when the training images for a new category are all available, but only a small collection of images can be kept for each earlier category. As more categories share the same storage budget, each earlier category has less evidence available during an update. The classifier can then give a recent category the highest score even when the image belongs to an earlier one. IL2M addresses this problem by retaining images for training and recording how confidently the classifier recognized each category when its full training set was available.
At each stage, the authors update the network using all the incoming training images and the retained images from earlier categories. They use the ordinary classification objective in a process called fine-tuning. A separate statistical memory keeps each category’s average score at the time it was introduced, together with an overall confidence statistic for each stage. When the classifier’s first choice for a test image is a new category, IL2M revises the scores of the earlier categories before choosing a label. For each earlier category, it compares the original average with the average measured on the images still available. It also adjusts for differences in overall confidence between the stage that introduced the category and the current stage.
The authors test IL2M on ILSVRC object recognition, VGGFace2 face recognition and Google Landmarks landmark recognition. It leads the incremental methods in most configurations with retained images. On ILSVRC with 10 stages and 5000 retained images, its average top-1 accuracy across the incremental stages is 44.1%, compared with 32.2% for ordinary fine-tuning and 47.0% for DeeSIL, a method that reuses a fixed feature extractor. At the same number of stages and a budget of 20,000 images, IL2M leads the incremental comparison at 56.4%. Training on the complete ILSVRC dataset in a single run still reaches 73.0%. The component study identifies the historical class averages as the main source of the improvement from score correction.
The paper also tests an assumption about how to train the network. Earlier methods often used distillation, which encourages an updated network to preserve the previous network’s responses. In the authors’ main comparisons with retained images, dropping this objective improves the nearest-exemplar version of the classifier. With no retained images, distillation helps relative to ordinary fine-tuning, and IL2M’s score correction cannot operate. The results tie the usefulness of each technique to the information available about earlier categories.
Deep dive: IL2M: Class Incremental Learning With Dual Memory
IL2M uses stored images and class statistics to reduce forgetting when an image classifier learns new categories in stages. · about 35 minutes to read
The problem and its context
What changes when categories arrive in batches
In class-incremental learning, labeled training examples arrive in groups of categories. The system learns an initial group and then receives another group whose categories it must add to its repertoire. A batch is the group that arrives together. A state is the point in the learning sequence at which the system must recognize every category introduced so far. The distinction matters for evaluation. The training batch tells the system which categories have just arrived, while a test image can belong to any category in the current state.
If the system can keep the entire training collection, it can use earlier and incoming examples together whenever it updates. The paper studies a setting in which that choice is constrained by storage, computation and the time available for an update. The authors point to mobile applications and robotics as settings where visual recognition may need to expand without relying on extensive infrastructure. A fixed budget of retained images gives the experiment a concrete version of the storage constraint. It lets earlier categories appear in training again without requiring their full datasets.
The available evidence changes even if the storage budget stays constant. Each incoming category has its training set available at the moment it arrives. Later, a category is represented by a selection from that set. As the number of earlier categories grows, more categories must share the same memory. An update therefore combines extensive evidence for recent categories with a much thinner record of the others. The imbalance affects how well the network continues to represent earlier images and how the classification layer ranks their labels against recent ones.
The general problem is known as catastrophic forgetting. In this setting, it shows up as a loss of recognition ability on categories after the network has been updated on later batches. An image from an earlier category might be confused with another earlier category, or it might be assigned to one that has just arrived. Both outcomes count as errors. They offer different clues about what is going wrong. A score adjustment that helps earlier categories compete with recent ones has a direct target in the latter kind of error. Earlier categories also need enough useful visual information to be distinguished from one another.
The authors view the problem as a choice about what to preserve. A system can reserve parts of its network for previously learned tasks. It can keep some of the data and update shared features. It can also keep the original features fixed and learn additional classifiers on top of them. These strategies put different demands on the resources that are still available when the next batch arrives. The paper’s related work is organized around those choices.
Preserving network capacity for earlier tasks
One family of approaches lets the network adapt its capacity as it learns. Growing a Brain can widen layers or increase depth. Deep Adaptation Networks add parameters for a new task, with approximately 13% supplementary parameters per task as described in the paper. That added capacity has a different implication for an isolated update than for a long succession of tasks. Each new task can carry a continuing storage obligation.
Other methods preserve earlier capabilities by organizing how different parts of a system interact. Progressive networks keep earlier networks accessible through lateral connections when learning later tasks. An expert-gating approach learns a group of specialists and uses a learned gate to select among them. These systems preserve task-specific resources that can be used again when needed. Their respective mechanisms are described in Progressive Neural Networks and Expert Gate.
The paper also discusses shared networks with smaller, specialized additions. One approach attaches modular adapters to common parameters and finds a role for adaptation in both shallow and deep layers. PackNet frees capacity for later tasks by pruning redundant parameters associated with earlier ones. The authors note limits on how many tasks it can absorb with acceptable recognition performance, as well as a cost when inference must cover the trained tasks. Piggyback uses task-specific masks on a shared network. Its base network is reused, and the masks accumulate with the tasks. For IL2M, the design question is whether a single updated network can remain useful across the class sequence with a bounded image collection and a compact record of past scores.
Updating a shared network with a small image collection
In a second family, an update starts from the preceding network and trains on current data plus retained images. The retained images are called exemplars. They give the learning procedure labeled examples from earlier categories after most of the earlier training data have been set aside. The authors treat the resulting training set as an imbalanced one, with the representation of a category depending strongly on when it arrived.
A common training objective in this family combines classification with distillation. The classification objective rewards agreement with the labels attached to available examples. The distillation objective favors agreement with responses from the previous network for categories it already knew. Learning without Forgetting brought this idea to incremental learning and could operate without storing old training images. In the setting studied by IL2M, systems such as iCaRL combine distillation with exemplar storage. The broader idea behind transferring earlier responses is described in Distilling the Knowledge in a Neural Network.
The final classifier is another place where earlier work intervenes. In iCaRL, the network produces features, which are numerical representations of the images. For each category, the classifier uses the mean feature representation of its exemplars. It assigns a test image according to which category mean is nearest. This gives each category a representative point even when the training evidence available during the update differs greatly between categories. The paper describes a prior analysis that identified the exemplar memory as an especially important part of iCaRL and tried dynamic threshold adjustment as another classification strategy.
End-to-end incremental learning keeps the network involved through the classification step. It uses distillation organized around incremental stages and adds a balanced fine-tuning step for classification. Balancing addresses the unequal amount of data for earlier and recent categories. The paper also describes work that tries to generate images of earlier categories. In the comparison it recounts, generated images offer a slight benefit when combined with real ones, and their quality limits how effectively they can replace the real exemplars.
These approaches make two choices that can be examined separately. One is what objective should update the visual features. The other is what decision rule should turn an image’s representation into a label. IL2M’s experiments preserve this distinction by comparing versions with the same ordinary fine-tuning procedure and different classification rules, as well as versions that differ in their use of distillation.
Keeping visual features fixed
A third family trains the visual feature extractor at the outset and uses it throughout the class sequence. DeeSIL trains separate shallow classifiers for individual categories on these fixed features. Each classifier can be trained when its category first arrives and all of its positive training examples are still available. The stored classifier can then recognize that category later, using features whose meaning stays consistent because the extractor is frozen.
The paper also discusses a system with separate networks for short- and long-term memory and a decision mechanism that chooses between them for each input. Its long-term storage grows because it retains detailed class statistics. This architecture is described in FearNet.
The initial batch has an especially important role in fixed-feature methods. If it contains few categories, or if later categories look quite different from the ones used to train the extractor, the paper argues that the features may transfer poorly. Updating the extractor leaves room to learn visual distinctions that become relevant later. It also means that a category’s original feature representation and the current one come from different versions of the network. IL2M takes from fixed-feature approaches the idea that a category’s first appearance is a valuable opportunity. It uses that opportunity to record a scalar about classification scores and continues to update the features with each batch.
The method, step by step
What the two memories preserve
Consider the illustration in the paper. The initial state recognizes 2 categories, and later states recognize 4 and 6. The budget in the illustration is K = 4 exemplar images. While training on a new group, the network has the group’s own training images and an allowance of 4 images for the earlier categories together. When another group arrives, the categories learned in the preceding state also need places in the same allowance. The illustration makes the difference between the two kinds of memory visible. The images must share a fixed budget. The statistical record keeps a compact entry for each class introduced.
The image memory affects what the network can learn during an update. Its examples come with labels, so the ordinary training objective can still reward correct recognition of earlier categories. IL2M selects exemplars at random. The authors choose this simpler procedure after noting that a prior study found a marginal effect from herding, a more selective way to construct an exemplar set. The accounting in their formulation assumes that earlier categories are represented as evenly as the budget allows.
The statistical memory affects how the output is read. When a category first arrives, the network has access to all of its training examples. After learning that category, the system records the average of the scores that the network assigns to the correct class for those examples. The same operation produces an average for the entire incoming group, pooling the correct-class scores on its training data. The first average describes a particular category. The second describes the score scale of that stage as seen through its new training images.
At a later stage, the original images are largely gone, but the original averages remain. The system can also measure the latest network’s average score for an old category by running its remaining exemplars through the updated network and reading the score for their true category. Those two measurements describe the category at different points in the sequence. IL2M uses their ratio to adjust the category’s current score on a test image. A second ratio puts the historical category measurement in the context of overall score levels at these different stages.
How IL2M learns a batch and classifies an image
The steps in order.
The training sequence and its notation
The paper represents a training collection as a group of labeled datasets, one for each category. It writes the set of the categories already learned before an update as follows.
Xᴾ = {X₁, X₂, …, Xₚ}
Here Xᴾ is the collection covering the P categories already introduced. X₁, X₂ and Xₚ are the example sets for the first, second and last categories in that collection. The ellipsis marks the intervening sets. The superscript on Xᴾ indicates how many categories the collection covers. A particular category’s dataset can be written this way.
Xᵢ = {xᵢ¹, xᵢ², …, xᵢⁿⁱ}
Xᵢ is the set for category i, and xᵢ with a superscript is an individual labeled example in that set. The superscripts run from the first example to nᵢ, the number of examples for category i. The ellipsis stands for the rest of that category’s examples.
The paper describes the network as a feature extractor followed by a classifier. A compact way to express the extractor’s role is the mapping in the paper.
F : Xᵢ → ℝᵈ
F is the feature extractor, Xᵢ supplies an image for category i, and ℝᵈ is the space of real-valued vectors with d components. The arrow says that the extractor maps an input image to a vector in that space. The paper then describes the classifier with the following shorthand.
C : ℝᵈ → P
C is the classifier, ℝᵈ is the feature space and d is the feature dimension. P here denotes the size of the available label set. The notation indicates that the vector is classified among the P categories. In the network, the classification layer produces a score for each category, and the largest score supplies the ordinary prediction.
In the transition from Mₚ to Mₙ, M denotes the trained network, and the subscripts indicate the number of classes it recognizes before and after the update. The batch and the state have different sizes.
N − P
N is the total number of known categories after the update, P is the corresponding total before it, and their difference is the number of categories arriving in the batch. The entire set of N categories is in scope for prediction after the update. The procedure has Z states in total, including the initial state, when there are only newly introduced categories.
The authors keep the network architecture fixed in the sense that the learning scheme reuses its shared representation. The prediction layer has to cover the expanding label set. There is no allocation of a new feature extractor to each batch. The update begins with the preceding network and trains on the full incoming batch together with the exemplars already in memory. In the idealized balanced allocation, the paper uses the following expression for the old images available per category before the update.
K / P
K is the image capacity of the exemplar memory and P is the number of earlier categories sharing it. The quotient describes the allocation under the equal-share assumption. For the following update, once all categories from the current state have become earlier ones, the accounting is as follows.
K / N
K remains the image capacity, and N is the larger set of categories that now share it. The paper uses these expressions to explain the progressive loss of evidence per category. They give the budgeting principle, rather than an implementation rule for distributing a remainder when the division is uneven.
Updating the network with classification loss
The paper writes the usual combined objective of earlier fine-tuning methods as follows.
L = L꜀ + Lᵈ
L is the total training loss, L꜀ denotes the classification term and Lᵈ denotes the distillation term. The plus sign indicates that both contribute to training in the combined approach. The classification term is cross-entropy, an objective that favors the labeled category over the alternatives. The distillation term encourages the current network to reproduce aspects of the earlier network’s responses for past categories.
IL2M trains with the classification term alone. The incoming images and exemplars are both supervised by their recorded labels. New-category images teach visual distinctions that were outside the earlier label set. The exemplars keep earlier categories present in the same training operation. This is the ordinary fine-tuning baseline, FT, in the experiments. At this point in the procedure, FT and IL2M have the same way of updating the network. IL2M acts on the resulting prediction scores.
This separation is important for interpreting the experiment. A classification-only update can modify both the representation and the scores in response to the new mixture of images. The statistical memory supplies a historical comparison after that update. The network does not have to reproduce a historical average while it trains. The historical information enters the final decision through arithmetic on the output for a particular test image.
Measuring confidence when an old category was new
The score used for correction is the raw output of the classification layer. The paper uses the score before softmax, the operation that would convert the outputs into normalized probabilities. The correct-class score on a training image is obtained by taking the output at its known label. It is available whether or not the network’s highest-scoring label agrees with that label. A category’s average therefore summarizes the raw scores at the relevant output across its training images. It measures something different from the fraction of those images correctly classified.
The first value saved for a category is its average when it is learned with its full training set. If a category arrives in a later batch, its historical average comes from that later batch’s state. There is no single historical state shared by all categories. The corresponding current average is recomputed using the exemplar images and the network just trained for the current state. This average follows the network as it changes. The historical one stays associated with the moment the category first entered the system.
The report on ILSVRC helps explain why the second, stage-wide statistic is needed. The authors compare scores for incoming categories across the sequence and find that the level can fluctuate between consecutive states. For example, with K = 10,000, the incoming-class mean is higher at state 8 than at state 7. A class that first appeared in a generally high-scoring state can therefore bring a high historical average into the comparison for reasons beyond its own training set. The stage-wide average gives the correction a way to account for that difference.
The statistical memory, denoted by S, stores one floating-point value per category for the historical class average and one per state for overall confidence. The current class averages can be evaluated from the exemplars after the current network has been trained. The full historical image sets are unnecessary for those later calculations because their role in the correction is represented by the saved averages. The number of historical scalars increases as categories and states are added, while the image budget remains fixed.
The score correction and when it applies
The following is the paper’s piecewise correction for an earlier class. In this equation, the letters used for the historical and current states have a different role from their use in the preceding description of the class totals.
pᵣ(Cᵢ) = {
p(Cᵢ) × [μₚ(Cᵢ) / μₙ(Cᵢ)] × [μ(Mₙ) / μ(Mₚ)] if pred = new
p(Cᵢ) otherwise
}
Cᵢ is an earlier category indexed by i. p(Cᵢ) is its raw classifier score for the test image in the current state, and pᵣ(Cᵢ) is the score after the rule is applied. The subscript r identifies the rectified, or corrected, score. In this formula, P is the state that first introduced the particular category Cᵢ and N is the current state. The symbol μ indicates an average. μₚ(Cᵢ) averages the scores at the correct class output over the full training set for Cᵢ in its original state. μₙ(Cᵢ) averages the corresponding scores under the current network over its retained exemplars. Mₚ and Mₙ are the networks from the introduction state and the current state. μ(Mₚ) and μ(Mₙ) average the correct-class scores over the incoming training images in those respective states. The slashes denote division and the multiplication signs combine the raw score with the two ratios.
pred is the category with the highest raw score, before any correction. The condition pred = new means that this category arrived in the current batch. In that case, the first branch is applied to each earlier category. The new categories keep their raw scores. The alternative branch keeps the earlier scores as they are when the initial winner already belongs to an earlier batch. The final winner is selected from the resulting scores over the entire current label set.
The first ratio compares a class with its own history. The authors expect it to tend to boost earlier classes because the network originally learned them from more data than the current update has available for them. An earlier class whose current exemplar scores are much weaker than its original scores receives a different adjustment from a class whose means are closer. The ratio uses averages from training images to change a score on an individual test image. Its purpose is to compensate for a systematic difference in scores across categories that varies with their place in the sequence.
The second ratio compares the overall confidence of the networks in the two states. Its numerator comes from the current state and its denominator from the state that introduced the earlier class. The direction helps transfer the old average to the current score scale. The factor is the same for categories introduced together, since they share that historical state. Earlier categories introduced in different batches can receive distinct factors. This part of the rule uses pooled evidence from the new training data in each state, while the first ratio uses evidence specific to the class.
The condition on pred targets a recognizable situation at inference time. The system knows which labels are recent and can check the age of the leading label directly. It does not know the true label of the test image. If a recent class leads, that lead may be justified, or it may reflect the imbalance seen during training. The correction allows earlier classes to compete in this case and the recent class can still win. If an earlier class leads, the method accepts the ordinary ranking. This also prevents the correction from rearranging earlier labels on images for which an earlier label already comes out ahead.
The authors describe the added arithmetic as small relative to evaluating the network itself. They give an example with 1000 past classes in which correction entails 1000 divisions and 2000 multiplications. The stage confidence ratio can be calculated after training and reused in the multiplications. The arithmetic estimate concerns the score operation. Building its inputs still requires the score measurements on incoming training images and on the exemplars under the updated network.
Experiments and results
Datasets and schedules
The authors study object, face and landmark recognition. Each evaluation covers 1,000 classes. The object dataset is ILSVRC, with 1,231,167 training images and 50,000 evaluation images. The authors use the training and evaluation sets adopted by earlier incremental-learning work, so that differences in the protocol are easier to track across those studies. The underlying dataset is described in the ImageNet Large Scale Visual Recognition Challenge.
For VGGFace2 and Google Landmarks, the authors retain the 1,000 classes with the largest image collections in each dataset. The VGGFace2 evaluation uses 491,746 training images and 50,000 evaluation images. The Landmarks evaluation uses 374,367 training images and 20,000 evaluation images. The paper describes these datasets as lacking standard splits for this incremental setting. The authors randomly select the evaluation images with a balanced distribution across classes. These results consequently characterize the selected classes and the specified splits.
The experiments vary two aspects of the schedule. In the memory comparison, Z = 10 states and the authors use K = 20,000, 10,000, 5000 or 0 exemplar images. In the schedule comparison, K = 5000 and the authors use Z = 5, 10 or 20 states. The 10-state configuration with 5000 exemplars belongs to both comparisons. K refers to the shared image capacity, so a larger K supplies more evidence for earlier categories without changing the class schedule in the memory comparison. Z counts the initial state along with the later ones. At fixed K, changing Z alters the progression through which the system acquires the label set.
The network architecture is ResNet-18, using the standard PyTorch version. The authors choose it because the incremental methods they compare against had also used that architecture. The choice provides a shared basis for examining what happens when the training loss or the classifier is changed. The design of the network is described in Deep Residual Learning for Image Recognition.
What the baselines test
FT trains on the complete incoming batch and retained images from earlier categories, starting from the preceding state and using the standard classification loss. The ordinary classification layer supplies its predictions. Comparing IL2M with FT shows how much the inference rule changes the result after this training procedure. IL2M adds the statistical memory and correction to that same training approach.
iCaRL learns features by combining classification and distillation losses, then predicts the class whose exemplar mean is closest. FT NEM keeps this kind of classifier and trains the features with the classification loss alone. That pairing tests the contribution of distillation with the nearest-exemplar decision rule held in common. The contrast between FT NEM and FT addresses a separate question. Both use ordinary fine-tuning, and the former computes the label from distances to class representatives while the latter takes it from the network output.
FT BAL starts with the ordinary, imbalanced fine-tuning procedure and performs a subsequent balanced fine-tuning step for classification. This is the corresponding variant of end-to-end incremental learning with distillation removed. The authors start the balanced step at the learning rate reached by the preceding imbalanced step. The paper reports a comparison with the original end-to-end method for ILSVRC but does not evaluate the original across the complete set of configurations. The implementation available to the authors depended on MathConvNet and Matlab.
DeeSIL trains its feature extractor initially and freezes it. The authors implement it without external training data. When a class arrives, its individual classifier uses all images for that class as positives. Images from other classes in the same incoming batch and exemplars from preceding batches provide negatives. The authors use grid search on the first batch to choose the regularization parameter and keep it fixed thereafter. This baseline tests how far a system can go by preserving classifiers learned at the moment each category had its full set of examples, while the features themselves remain fixed.
Full is the reference trained in a single run with the complete data for all classes. It provides a measure of what the authors’ non-incremental procedure achieves when the training set has all categories available together. It also gives a way to gauge the size of the remaining problem even when an incremental method beats its peers. Its data access is different, so the paper reports it as an upper reference for the experimental setting.
How the scores are counted
Top-1 accuracy gives credit when the highest-scoring predicted label matches the ground-truth label on an evaluation image. Each image in this study has a single ground-truth label. The paper treats top-1 accuracy as its primary measure and includes top-5 results in the supplementary material for comparison with earlier work. Top-5 accuracy gives credit when the correct label appears among the five highest-ranked choices.
For the incremental methods, the headline number is the average top-1 accuracy over the incremental states, with the initial training state excluded. The initial state gives those methods a setting in which every category is new and its complete training set is available. Excluding it focuses the comparison on stages where learning new categories and preserving old ones have to happen together. An average then reflects performance over the learning sequence. Performance at its endpoint is a different quantity, and the paper examines individual states in a separate figure.
Results as the exemplar budget changes
On ILSVRC with Z = 10 and K = 20,000, IL2M has the highest average top-1 accuracy among the incremental methods. FT NEM is the closest of the compared classification variants. Ordinary FT already performs substantially better than iCaRL in this setting, and the gain from adding the score correction comes on top of that training baseline. At the same time, the best incremental score still leaves a substantial gap to Full.
ILSVRC average top-1 accuracy with 10 states and 20,000 exemplars
IL2M leads the incremental comparison, with the nearest-exemplar fine-tuning variant next.
The numbers
| System or setting | accuracy % |
|---|---|
| iCaRL | 35.1 |
| DeeSIL | 47.3 |
| FT | 51.1 |
| FT NEM | 54.9 |
| FT BAL | 52.1 |
| IL2M (this paper) | 56.4 |
With K = 10,000 and Z = 10 on ILSVRC, IL2M reaches 50.8% average top-1 accuracy. FT NEM reaches 49.1%, DeeSIL 47.2% and ordinary FT 42.3%. With K = 5000 at the same number of states, the leading incremental result belongs to DeeSIL at 47.0%. IL2M scores 44.1% and FT NEM scores 42.8%, while FT reaches 32.2%. The smaller memory is a setting in which the correction helps more relative to its own ordinary fine-tuning baseline, even though a fixed-feature method has the better absolute result. The authors report gains for IL2M over FT on ILSVRC of 5.3 top-1 accuracy points at K = 20,000 and 11.9 at K = 5000, in both cases with Z = 10.
For face recognition at Z = 10, IL2M leads the incremental comparison across the tested positive image budgets. With K = 20,000, its average top-1 accuracy on VGGFace2 is 92.0%, with FT BAL at 91.5% and FT at 91.1%. At K = 10,000, the score for IL2M is 89.7% and FT reaches 87.6%. At K = 5000, the nearest-exemplar variant is the strongest alternative to IL2M in the reported comparison. The spread at this memory size illustrates how changing the classification method can affect results after the same basic fine-tuning procedure.
VGGFace2 average top-1 accuracy with 10 states and 5000 exemplars
IL2M leads the comparison, and nearest-exemplar classification gives the strongest result among the other fine-tuning versions.
The numbers
| System or setting | accuracy % |
|---|---|
| iCaRL | 64.4 |
| DeeSIL | 80.9 |
| FT | 82.0 |
| FT NEM | 84.2 |
| FT BAL | 82.1 |
| IL2M (this paper) | 86.5 |
Landmarks provides a case where the nearest-exemplar decision rule can weaken ordinary fine-tuning. With Z = 10 and K = 20,000, FT NEM reaches 91.1% average top-1 accuracy, while ordinary FT and FT BAL each reach 93.2%. IL2M records 93.4%. At K = 10,000, FT reaches 90.1%, FT NEM reaches 88.5% and IL2M reaches 90.8%. At K = 5000, IL2M has 86.9%, compared with 85.7% for FT BAL and 84.7% for FT. The exact ranking of the alternatives depends on the task and the budget, while the correction is beneficial relative to FT throughout these three Landmarks comparisons.
Full reaches 73.0% on ILSVRC, 97.0% on VGGFace2 and 97.1% on Landmarks, all on top-1 accuracy. The paper singles out ILSVRC as the hardest of the evaluated tasks. It reports a gap of 16.6 top-1 accuracy points between Full and IL2M on that dataset with Z = 10 and K = 20,000. The incremental method improvements are therefore meaningful within the limited-memory setting while leaving room for substantial progress towards performance with full data.
Results as the number of states changes
With the exemplar budget fixed at K = 5000, the results for 5 and 20 states help identify where the ranking is stable. On VGGFace2, IL2M has average top-1 accuracy of 90.1% at Z = 5 and 85.7% at Z = 20. It leads the former comparison and ties FT NEM in the latter. On Landmarks it leads both, reaching 88.5% at Z = 5 and 85.0% at Z = 20. At Z = 5, DeeSIL is close on this dataset at 88.3%.
The ILSVRC comparisons show two ways the ranking can change. At Z = 5, DeeSIL leads with 50.9% average top-1 accuracy, and IL2M reaches 44.9%. At Z = 20, FT NEM leads with 46.2%, while IL2M has 42.0%, FT BAL has 41.6% and DeeSIL falls to 28.4%. The fixed-feature baseline’s sensitivity to the initial representation matters when interpreting such schedule results. A different partition into states changes the conditions under which that representation is originally learned, alongside the changes it introduces to subsequent updates and the use of memory.
The per-state figure reports all three tasks with K = 10,000 and Z = 10. In that comparison, IL2M leads at most of the incremental states. For ILSVRC it is ahead of DeeSIL and FT NEM earlier in the sequence and has similar accuracy to them at states 7 to 9. On VGGFace2 and Landmarks, the separation between iCaRL and the ordinary fine-tuning variants becomes especially visible in the later states. The curves qualify the average results by showing where rankings separate and where they converge. An advantage over the whole schedule can coexist with very similar late-stage accuracy.
What happens with no exemplars
At K = 0 and Z = 10, all the variants built on ordinary FT produce the same reported result within each dataset. Earlier category averages in IL2M require exemplars to measure their current value. Nearest-exemplar classification and the balanced classification step likewise rely on retained images. Without those images the corrective variants have no opportunity to apply their decision procedures.
On ILSVRC in this setting, iCaRL’s memory-free version reaches 20.8% average top-1 accuracy, ordinary FT reaches 18.3% and DeeSIL reaches 46.5%. The corresponding no-memory results for VGGFace2 are 26.1% for iCaRL, 20.8% for FT and 80.0% for DeeSIL. On Landmarks the reported values are 27.0%, 21.0% and 81.2%, respectively. Here the memory-free iCaRL version corresponds to a multiclass adaptation of Learning without Forgetting, which can use earlier network responses without retaining images. The comparison illustrates the role that distillation can play when those responses are the available way to carry earlier behavior into a network update.
DeeSIL still has the classifiers it learned when each category was introduced. The authors use that detail to explain why their fixed-feature comparison differs from an earlier one in which past-class classifiers were trained using only the exemplars available in the current state. A fixed feature extractor allows a classifier to remain usable after the original training images are discarded. The authors make their implementation and dataset details available in the class-incremental-learning repository.
What the ablations show
Measuring the score imbalance directly
Before testing the individual parts of the correction, the authors ask whether fine-tuning under limited memory produces the score pattern the method is meant to address. For ILSVRC with Z = 10, they take training images, read the network’s score at each image’s true class, and average those scores for earlier and new categories. They perform this comparison for several memory capacities. The statistic measures what happens at the correct output for the training images, so it can expose a separation in scores even before asking how many predictions cross from one group of labels to the other.
The average gap between new and old correct-class scores over the incremental states is 2.42 with K = 20,000, 4.02 with K = 10,000 and 6.45 with K = 5000. These are raw score gaps, not accuracy points. With K = 10,000, the corresponding gap at state 1 is 2.26, at state 5 it is 4.16 and at state 9 it is 4.67. The budget comparison associates less storage with a wider separation. The state comparison shows how that separation tends to grow as the budget is shared among more categories within a particular sequence.
This evidence explains the choice to revisit a prediction when a new category leads. If a network systematically gives lower correct-class scores to earlier categories on the images available to it, competition with recent categories can be uneven. The measurement also shows why IL2M keeps two kinds of averages. Recent-class scores can vary between states even though incoming categories have their complete sets of images in each state. A class average records what happened on that category, while a stage average captures part of the background variation in the scores.
Isolating the class average, the stage average and the condition
The formal ablation holds the dataset and number of states fixed. It uses ILSVRC with Z = 10 and compares the corrections at K = 20,000, K = 10,000 and K = 5000. Ordinary FT supplies the common baseline. Each variant then changes how the final scores are produced. The study tests the class-specific ratio alone, the stage confidence ratio alone, both ratios together, and both ratios with the full method’s condition on the initial prediction. The variants that precede the full rule allow the authors to evaluate the effect of the condition separately from that of multiplying by the ratios.
The class average is the strongest individual component. At K = 20,000, using the class ratio alone changes average top-1 accuracy from 51.13% for FT to 53.45%. At K = 10,000, the class-ratio version reaches 47.64% against 42.29% for FT. The corresponding results at K = 5000 are 42.20% for the class ratio and 32.23% for FT. These are the figures at the precision used in the ablation. The larger effect at the smaller budget fits the paper’s account of the underlying imbalance. The current exemplar score carries useful information about how far the category has moved from the score level recorded when its complete training set was available.
The stage confidence term is weaker in isolation. At K = 20,000 it reaches 51.94% average top-1 accuracy and at K = 10,000 it reaches 43.63%. At K = 5000, it reaches 31.74%, below the corresponding FT result of 32.23%. That last comparison is important for understanding the method. A common adjustment based on the introduction stage can account for variation across networks, but it has little information about which categories within a stage are especially weakened. Its usefulness depends on what other information is available to the rule.
Combining the two ratios yields 55.15% at K = 20,000, 49.57% at K = 10,000 and 42.51% at K = 5000. All three results are for average top-1 accuracy on ILSVRC with Z = 10. Each is above the class-ratio-only result for the corresponding memory size, including the setting where the stage term in isolation lowers accuracy. The comparisons show a role for the stage term in harmonizing the correction once a category has its own adjustment. Evaluating it by itself would miss that interaction.
Adding the condition on the initial winner improves the combined rule at each budget. The complete method reaches 56.37% at K = 20,000, 50.82% at K = 10,000 and 44.05% at K = 5000. These comparisons establish the net contribution of applying the correction selectively in this ablation. The measured improvement can include both the benefit of allowing earlier classes to challenge a recent winner and the benefit of leaving an existing earlier winner undisturbed. The ablation measures overall accuracy, so it does not assign separate sizes to those effects.
What the classification comparisons isolate
FT, FT NEM, FT BAL and IL2M share the same classification-only fine-tuning as their starting point. The differences among them reveal how much can change at the classifier, even after the main training objective is settled. A distance to the mean of exemplars uses the examples through their feature vectors. A balanced training pass changes how the classification step is fitted. IL2M uses the old and current averages to change the scores produced by the ordinary classification layer. Each strategy draws on the available images in a different way.
The results for Landmarks show why correcting imbalance through a classifier is an empirical question. Replacing the usual output rule with nearest-exemplar means can lower accuracy even when those means give classes a more even form of representation. The paper associates the weaker results of balanced fine-tuning as memory gets smaller with the amount of data that has to be dropped to obtain a balanced set. Score correction retains the initial training procedure on the imbalanced mixture and acts at inference. The comparisons support the performance of that procedure in most settings studied, with the ILSVRC result at Z = 20 showing a case where nearest-exemplar classification is stronger.
What removing distillation changes
The iCaRL comparison addresses whether earlier network responses help when the system already retains labeled images. With Z = 10, FT NEM improves on iCaRL on all three datasets at K = 20,000, K = 10,000 and K = 5000. These versions share the nearest-exemplar classification approach, so the comparison puts the focus on the training objective used for the features. The authors point out that a previous comparison associated lower performance with ordinary fine-tuning even though the distillation-based method had exemplars and the ordinary fine-tuning baseline did not. Giving the fine-tuning baseline retained images is central to the conclusion here.
The end-to-end comparison provides additional evidence with narrower coverage. For ILSVRC at K = 20,000, the authors report top-5 accuracy of 69.4% for the original end-to-end method and 77.52% for FT BAL. The original result comes from the earlier study, and the paper does not give a full matched set of runs for that method. The comparison is consistent with the result obtained from removing distillation in the nearest-exemplar setting. The most direct and broadly repeated loss comparison within the paper remains the one between iCaRL and FT NEM.
The authors also look inside the errors on ILSVRC at K = 10,000 and Z = 10. They compare ordinary FT with the fine-tuning backbone that uses distillation in iCaRL, called hybrid1. This comparison uses the networks’ classification outputs. It distinguishes correct predictions from mistakes and groups each mistake by whether the true label and the predicted label are past or new. An old image assigned to the wrong old category indicates a different failure from an old image assigned to a recent category. Applying this distinction to both networks gives a closer view of what changed with the loss.
The first incremental row shows 600 past-to-past mistakes for hybrid1 and 194 for FT. The counts for past images classified as new are 3325 for hybrid1 and 2185 for FT in that row. In the last reported row, hybrid1 makes 14,156 past-to-past mistakes and FT makes 5514. The past-to-new counts in that row are 29,253 for hybrid1 and 30,740 for FT. Those latter counts illustrate why the authors stress the difference in errors among earlier categories when explaining the advantage of ordinary FT. A bias towards recent categories is present under both training procedures. Its direction in the comparison of the two procedures can vary by state.
The authors suggest an explanation for the deterioration in distinctions among earlier classes. Distillation typically takes its targets from a strong network trained with abundant, balanced data. In an incremental sequence, the preceding network has itself been trained with disproportionately few images for many of the classes it knows. Its outputs can already reflect the weaknesses that the next update is supposed to alleviate. Preserving those outputs can perpetuate mistakes. The error analysis describes the pattern that motivates this interpretation. It does not isolate the quality of the distillation targets as a cause in a separate intervention. The no-exemplar comparison also gives the proposal a clear boundary. When the training update lacks earlier images altogether, the previous responses provide a useful source of information.
Limitations
Limits acknowledged by the authors
The authors identify the remaining accuracy gap from training with all data as a central limit. ILSVRC illustrates its size even when IL2M leads the incremental methods and has the study’s largest exemplar budget. The correction helps earlier labels compete, but the incremental network still learns from a restricted set of earlier visual examples. Its task involves preserving recognition while continuing to build features, which the favorable results for the classifier do not resolve by themselves.
IL2M is designed for class-incremental learning with memory. The statistics it retains from a category’s introduction have a specific use in relation to the current exemplar mean. Without examples on which to measure the earlier category under the updated network, the rule lacks an input. This is an important distinction between a small image memory and a memory containing only statistical records. The experiments directly evaluate the former as part of IL2M. Fixed features provide the strongest comparison in the reported no-exemplar setting, and distillation helps when compared with ordinary fine-tuning there.
The authors also limit the scope of their evaluation to class increments within each of the recognition settings they study. They propose testing a scheme of this kind in multitask incremental learning, where the incoming content can be more varied. Other directions they identify are improving ordinary fine-tuning with methods for imbalanced learning and curriculum learning, and exploring alternative score corrections. These directions describe questions that remain open after the reported class-incremental experiment.
Limits of the comparisons and measurements
The test conditions give the results a defined scope. The image budgets and state counts are varied along two sets of configurations, with one kept fixed in each set. The evidence is consequently strongest for those tested combinations. In particular, a favorable result at a particular memory size does not establish a universal minimum number of exemplars per category. The effective evidence available to each earlier category depends on how many categories share the budget and on the quality of the images still in it.
The component ablation is narrower than the main benchmark. It measures the contributions of class means, stage means and selective application on ILSVRC at Z = 10. The main comparisons establish that the full correction also improves ordinary FT on VGGFace2 and Landmarks at the tested positive budgets. They do not measure whether the component contributions have the same relative sizes on those datasets. For example, the isolated stage-confidence term has mixed results in the ILSVRC ablation, so its usefulness in a different setting cannot be inferred simply from the strong results of the full method.
The evidence for dropping distillation also has different levels of coverage. The iCaRL comparison spans the datasets and positive memory sizes in the main 10-state setting and uses a corresponding nearest-exemplar variant. The end-to-end comparison draws on one reported ILSVRC result in top-5 accuracy. That makes it informative about the particular comparison while leaving the performance of the original end-to-end method under other schedules and budgets open. More generally, the results concern the tested loss formulations and training procedures. They do not settle how another distillation objective would interact with labeled exemplars.
Average top-1 accuracy measures how often the system gets the highest-ranked label right. It does not measure whether the resulting raw scores are calibrated as probabilities. The analysis of training scores and categories of errors explains where the ranking problem comes from, and the per-state figure helps show how performance changes over the sequence. These measurements leave open how reliably the rule helps on specific earlier categories, or whether it has sharply different effects for categories introduced at different times. The headline numbers also do not quantify variation across repeated choices of exemplars or across different orders of the categories.
The class averages compare scores measured on different amounts of data and by different versions of the network. The stage average is a practical correction for this difference in scale. The ablation shows that it can improve the combined rule in the tested setting, with weaker results when it is used alone. The comparison is empirical. The paper offers no general guarantee that ratios of raw score means will make scores comparable under other training procedures or score distributions, and the method description does not specify how it would handle a zero denominator. Its demonstrated benefit is improved classification in the reported experiments.
The cost claims also have a specific scope. Each category and state adds a small floating-point record, and the inference rule adds arithmetic described by the authors. Those facts support the claim of low supplementary storage and computation relative to the network. They do not amount to a measurement of total update time or of device-level performance in an application. The sequential training procedure still updates the network for each batch, and computing the statistics requires access to the relevant training images or exemplars while producing their scores. The paper establishes a compact decision rule within a constrained training setup, with the end-to-end costs of application deployment left open.
What came after
DyTox: Transformers for Continual Learning with DYnamic TOken eXpansion (2022) cites IL2M and identifies dynamic token expansion as its approach to continual learning. The titles and methods identify different places to intervene. IL2M updates a shared image classifier, preserves historical averages and changes how scores compete at prediction time. DyTox names a change to the tokens used by its architecture as learning proceeds.
The citation establishes that IL2M was part of the research DyTox drew into its discussion. The specific role of IL2M’s two memories and score correction in DyTox is unspecified, so the documented connection goes as far as the citation and the shared continual-learning problem.
Cite
Cite as Eden Belouadah and Adrian Popescu. 2019. IL2M: Class Incremental Learning With Dual Memory. IEEE/CVF International Conference on Computer Vision (ICCV).
@inproceedings{belouadah2019il2m,
title = {{IL2M: Class Incremental Learning With Dual Memory}},
author = {Eden Belouadah and Adrian Popescu},
booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
year = {2019},
doi = {10.1109/iccv.2019.00067},
url = {https://doi.org/10.1109/iccv.2019.00067}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/belouadah-2019-il2m-class-incremental-learning-dual/