Manuscript Offprint
arXiv:2611.04885DLER: Dual-Logit Experience Replay for Online Continual Learning
Huiwei Lin, Shanshan Feng, and Kong Aik Lee, Senior Member, IEEE
Abstract—Online continual learning aims to continuously train neural networks on a non-stationary data stream in a single pass. Rehearsal-based methods alleviate catastrophic forgetting by replaying stored samples, but the imbalance between current and previous data often leads to predictions biased toward current classes. Many approaches have been proposed to overcome the forgetting problem by correcting the bias; however, they still need to be improved in an online fashion. By decomposing the dot-product logits into an angle factor and a norm factor, our analysis reveals that the angle factor efficiently captures novel knowledge but is particularly susceptible to prediction bias, whereas the norm factor helps preserve historical knowledge. Based on these observations, we propose Dual-Logit Experience Replay (DLER), which exploits dual-logits for both model optimization and memory management. Specifically, DLER learns current samples using cosine logits and incorporates additional dot-product logits when replaying previous samples to mitigate prediction bias. To strengthen dual-logit learning under limited replay memory, an auxiliary supervised contrastive objective promotes angular compactness within each class, extending corrections learned from limited replay samples to other samples of the same class. Meanwhile, we introduce a memory update strategy that preferentially retains samples for which dot-product prediction assigns a higher probability to the correct class than cosine prediction, aligning sample selection with dual-logit training. Extensive experiments on three datasets demonstrate the effectiveness of DLER, particularly under limited memory budgets.
Index Terms—Online Continual Learning, Rehearsal-based Methods, Cosine Logits, Dot-product Logits.
I. INTRODUCTION
At present, deep neural networks [1]–[3] still lack the conventional ability of continuous learning like human beings. If the model adapts to new data through fine-tuning, it will significantly degrade the performance on old data. Such a phenomenon is named catastrophic forgetting (CF) [4]. Because solving this problem is highly significant, continual learning [5]–[7] has been proposed to train models to accumulate knowledge without forgetting. In particular, online continual learning (OCL) considers a practical setting in which models must mitigate CF while learning continuously from a potentially infinite, non-stationary data stream, with each incoming sample accessible only once.
Rehearsal-based methods have demonstrated strong performance in OCL [8]. These methods maintain a fixed-size episodic memory buffer to store previous samples and replay them while learning from current data [9]–[11]. However,
the imbalance between current data and limited previous samples can bias predictions toward new classes, degrading performance on previously learned classes. Although existing approaches mitigate forgetting by correcting this bias, three challenges remain in online settings: 1) Real-time ability. Some methods [12]–[14] require additional training steps or post-processing, hindering real-time prediction. 2) Flexibility. Some methods [15], [16] rely heavily on explicit boundaries between old and new classes, and their correction mechanisms cannot be readily extended from the predictor to the feature extractor. 3) Adjustability. Other methods [16], [17] offer limited control over the strength of bias correction, potentially restricting model generalization. Hence, can a straightforward and efficient approach address prediction bias in OCL while simultaneously meeting these three challenges?
To answer this question, we examine existing rehearsal-based methods and empirically find that the biased predictions (dot-product logits) mainly change in two parts, as shown in Figure 1(a). Inspired by [18], we express dot-product logits as , separating the norm and angle factors while retaining the additive bias term. Data imbalance leads to unbalanced competition during gradient propagation, contributing to CF and affecting both factors. Further experiments reveal that these two factors act differently during the training process. On the one hand, the angle factor suffers from substantial prediction bias but efficiently captures novel knowledge from current samples when used independently as cosine logits. On the other hand, the norm factor, which is abandoned by existing works [16], [19], is helpful in keeping historical knowledge of previous samples.
These observations suggest that it is feasible to leverage the norm factor to balance old and new knowledge and address the bias issue. Specifically, dot-product logits incorporate both norm and angular information, making them suitable for consolidating historical knowledge during replay. In contrast, cosine logits rely on angular information and facilitate the acquisition of new knowledge from current samples. Different from existing studies (Figure 1(b)) that calculate logits in the same way, we try to (Figure 1(c)) learn current samples by cosine logits and further replay previous samples by dot-product logits. As illustrated in Figure 1(d), a sample will be mistakenly classified to current class by cosine logits that satisfies . However, with the help of the norm factor, the model can correctly classify to the previous class by dot-product logits that satisfy . Empirical experiments demonstrate that this approach effectively solves the bias problem and achieves better performance.
Motivated by these observations, we propose Dual-Logit
Huiwei Lin and Kong Aik Lee are with The Hong Kong Polytechnic University, Hong Kong SAR, China (e-mail: felixlinhuiwei@gmail.com, kong-aik.lee@polyu.edu.hk).
Shanshan Feng is with Wuhan University, Wuhan 430072, China (e-mail: victor_fengss@whu.edu.cn).
Manuscript received April 19, 2021; revised August 16, 2021.
0000-0000/00$00.00 © 2021 IEEE

Fig. 1. Illustration of our work. (a) The dot-product logits can be decomposed into a norm factor and an angle factor; (b) Existing studies, which learn all samples by calculating logits in the same way; (c) Different from existing studies, the model in our work learns current samples only by the angle factor, while replays previous samples by both the angle factor and the norm factor. (d) By leveraging the norm factor, the model can correctly classify samples.
Experience Replay (DLER), which alleviates CF in OCL by exploiting the complementary properties of cosine and dot-product logits to address prediction bias. Its learning process comprises three components: 1) The learning component trains current samples using cosine logits to acquire novel knowledge through angular information. 2) The replaying component incorporates additional dot-product supervision for buffered samples, leveraging norm and angular information to consolidate historical knowledge. A weighting parameter controls the contribution of dot-product supervision, allowing adjustment of the balance between current learning and historical replay. 3) The testing component uses dot-product logits to predict over all observed classes, retaining the contribution of norm information without introducing additional modules.
To further exploit the complementary roles of dual-logits under limited replay memory, we strengthen dual-logit training and extend it to memory management. Specifically, an auxiliary supervised contrastive loss promotes angular compactness within classes and separation between classes, providing more consistent angular evidence to complement norm information in dot-product logits. This geometry can help corrections learned through dot-product supervision generalize from limited replay samples to unseen samples of the same historical class. Moreover, we align memory selection with dual-logit training by scoring samples using the latest model according to the positive probability advantage of dot-product prediction over cosine prediction for the correct class. Within a fixed memory budget, class quotas regulate allocation, while score-based replacement preferentially retains samples exhibiting this advantage. This helps memory better support dual-logit complementarity when few samples can be retained per class. Together, these extensions exploit dual logits in model optimization and memory management, while retain-
ing direct inference (Real-time ability), applicability to the feature extractor (Flexibility), and controllable bias correction (Adjustability).
The main contributions are summarized as follows:
- We theoretically analyze the characteristics of dot-product logits and cosine logits, discovering that their coupling is beneficial. To the best of our knowledge, this work is the first to combine these two logits for the OCL.
- We propose DLER, a rehearsal-based framework that learns current samples using cosine logits and incorporates additional dot-product supervision when replaying previous samples.
- We further enhance dual-logit learning through an auxiliary supervised contrastive loss that promotes feature compactness and a memory update strategy that exploits the predictive complementarity of both logits.
- We conduct extensive experiments on Split CIFAR100, Split MiniImageNet, and Split TinyImageNet to evaluate the effectiveness of DLER. The code is publicly available at https://github.com/FelixHuiweiLin/UER.
This work extends our conference version presented in [20] in three aspects: (i) We introduce an auxiliary supervised contrastive objective to promote angular compactness and class separation, helping dual-logit corrections generalize beyond limited replay samples. (ii) We extend dual-logits to memory management through advantage-based scoring and replacement under balanced class quotas, prioritizing samples with a positive dot-product probability advantage for the correct class. (iii) We replace Split CIFAR10 with the more challenging Split TinyImageNet and conduct additional ablation studies and analyses to examine the effectiveness and mechanisms of the proposed components.
A. Continual Learning
Continual learning, also referred to as lifelong or incremental learning, enables models to acquire knowledge from sequentially arriving data while preserving previously learned knowledge. Its central goal is to balance adaptation to new data with resistance to catastrophic forgetting. Existing approaches can be categorized into three groups. 1) Architecture-based methods [21] mitigate CF through dynamic or static network designs. Dynamic networks progressively expand their capacity as learning proceeds, whereas static networks retain a fixed architecture and selectively allocate parameters. 2) Regularization-based methods [22] introduce additional constraints into the training objective to preserve historical knowledge, typically by penalizing changes to important parameters or applying knowledge distillation. 3) Rehearsal-based methods [23], [24] retain a subset of historical samples or generate synthetic samples, which are revisited alongside new data to alleviate forgetting.
Our proposed DLER belongs to the rehearsal-based category and focuses on the online setting. It exploits the complementary properties of dot-product and cosine logits for model optimization and memory management.
B. Online Continual Learning
Experience Replay (ER) [25] serves as the foundation for many OCL methods, which can be broadly divided into sample management and model update strategies. Sample management strategies focus on selecting informative incoming samples for storage [26], [27] or identifying valuable samples in the memory buffer for replay [28], [29]. More recently, GRASP [30] improves rehearsal efficiency by initially prioritizing prototypical samples and progressively shifting toward more difficult ones, thereby reducing the number of model updates needed for continual learning.
Model update strategies refine the training objectives or optimization procedures for learning from incoming and buffered samples [14], [20], [31]–[34]. SS-IL [15] and ER-ACE [16] apply distinct cross-entropy objectives to these two groups of samples to alleviate prediction bias. PCR [11] examines their interaction through gradient propagation, whereas LODE [33] separates the loss functions associated with new and old classes. More recent work explores alternative optimization formulations for rehearsal-based OCL. GEC [35] formulates ER as an -constraint optimization problem and adapts the update direction based on an allowable tolerance for memory loss. LOR [36] mitigates conflicts between incoming and replay gradients by examining lookahead model states and optimizing a smooth worst objective across their trade-offs.
Building on UER [20], DLER extends the use of dual logits from model optimization to memory management. It introduces a supervised contrastive objective to explicitly encourage intra-class compactness and inter-class separation. Furthermore, its memory update strategy jointly uses the probability distributions produced by dot-product and cosine logits to score candidate samples and prioritize their retention.
III. PRELIMINARY
OCL divides a data stream into a sequence of mini learning batches as , where contains the samples and corresponding labels . All learned classes are denoted as up to step . The neural network is made up of a feature extractor and a predictor , where is non-negative by Relu, , and . Since the output of predictor is dot-product logits, the categorical prediction of sample is , and is the probability that a sample belongs to class :
During training, the model receives the current mini-batch , with each sample appearing only once in the data stream. Without replaying, the training objective is
where is the cross-entropy loss function.
ER [25], as a classic rehearsal-based method, allocates a memory buffer to store part of previous samples, and selects them as to replay with current samples. Thus, the objective function can be changed to
LUCIR [19] improves replay-based learning by introducing a cosine-normalized classifier. The resulting class probability distribution is denoted by , and the corresponding classification objective is
where
is a scale parameter and is usually set to 10.
IV. DUAL-LOGIT EXPERIENCE REPLAY
Inspired by the preceding analyses in Appendix VII, we propose Dual-Logit Experience Replay (DLER), which exploits cosine and dot-product logits for model optimization and memory management in OCL. Algorithm 1 summarizes this procedure, whose three components are described below.
A. Online Continual Training
- Dual-logits training: DLER uses the cosine and dot-product predictions defined in Eqs. (5) and (1) to construct complementary objectives. For each sample, we use an original view and an augmented view , where denotes random data augmentation. For compactness, the loss averaged over two views is written as
The learning component supervises current samples through cosine logits, exploiting angular information to acquire novel knowledge. Its objective is
The replaying component incorporates additional dot-product supervision to consolidate historical knowledge by
where controls the relative contribution of dot-product supervision. The objective of dual-logits training is
- Dual-logits enhancement: To enhance the dual-logits mechanism, we introduce a supervised contrastive loss [14] over the joint current and replay samples. Specifically, and are concatenated together with their labels, and both original and augmented views are processed by the shared feature extractor. Let index all resulting views, and let denote the feature of view . For each anchor , the comparison set is , and the positive set is . The loss is
where is the contrastive temperature.
Why use the dual-logits enhancement? Dual-logit training uses dot-product supervision during replay to help correct predictions biased toward current classes. However, the class weight norms are shared across samples, and their corrective effect depends on each sample's angular relationships with the class weights. If same-class features are widely dispersed, a correction that benefits a replay sample may not benefit other samples of that class. Encouraging angular compactness can make these shared corrections more consistent across samples.
Consider a previous class and a competing class . For a feature , define their dot-product margin as
A positive margin means that dot-product prediction favors class over class , even when their cosine similarities have the opposite ordering. To examine how this margin transfers between samples within the same class, let be the feature of a replay sample and the feature of another sample from class that is not included in the current replay mini-batch. Both features are evaluated under the same model. For nonzero features, define the normalized margin
Algorithm 1 Dual-Logit Experience Replay
Input: Stream , memory capacity , replay size , learning rate , and parameters
Output: Network parameters and memory buffer
1: Initialize , and class counts
2: for do
3:
4: Uniformly sample up to examples without replacement from to obtain
5: Construct original and augmented views of current and replay samples
6: Compute using Eq. (7)
7: if then
8: Compute using Eq. (8)
9: Compute joint using Eq. (10)
10:
11: else
12:
13: end if
14:
15: Update and using Algorithm 2
16: end for
17: Predict test labels using Eq. (17)
Their margin difference can be expressed as
Applying the Cauchy–Schwarz inequality [37] gives
Equation (14) shows that, with the remaining quantities fixed, greater same-class cosine similarity reduces the angular discrepancy term. If the replay sample has a positive margin exceeding the two discrepancy terms, the other sample also has a positive margin against class . The bias-dependent term vanishes when and becomes small when the feature norms are similar, while correct classification requires a positive margin against every competing class. These observations suggest that within-class angular compactness can support dual-logit correction by allowing previous samples with similar directions to benefit more consistently from the same norm factor. The supervised contrastive objective encourages this geometry using current and replay samples, potentially extending corrections learned from limited replay data to more samples of the same class.
Algorithm 2 Dual-Logit Memory Update
Input: Updated model , memory , mini-batch , observed classes , capacity
Output: Updated memory
1: Compute using Eq. (18)
2: Score samples in and using Eq. (20)
3: for each do
4: Retain the top samples in by score
5: end for
6: for each sequentially do
7: if then
8: continue
9: end if
10: if then
11:
12: else
13: Select using Eq. (21)
14: if then
15: Replace with using Eq. (22)
16: end if
17: end if
18: end for
- The overall objective: Based on the dual-logits training and its enhancement, the overall objective of online continual training is thus denoted as
where controls the auxiliary loss. When memory is empty, only is used. The model is updated by
where and is the learning rate.
B. Online Continual Testing
During testing, DLER uses the dot-product prediction defined in Eq. (1) to incorporate both angular and norm factors. For each test sample , the predicted label is
which is restricted to the classes observed up to step .
C. Memory buffer Management
-
Random memory retrieval: The memory buffer stores at most original samples, regardless of the length of the data stream. Before each model update, up to historical samples are retrieved uniformly without replacement to form .
-
Dual-logits memory update: After optimization, DLER updates the memory buffer using dual-logits. The update consists of balanced memory allocation, dual-logits scoring, and score-guided replacement, as summarized in Algorithm 2.
Balanced Memory Allocation. Let denote the number of observed classes and the capacity after equal allocation. The quota for class is
where denotes the position of class among the observed classes sorted by label index. The quotas sum to . When newly observed classes reduce an existing class quota, we retain its highest-scoring samples up to the updated quota.
Dual-Logit Scoring. The scoring criterion follows from the complementary roles of cosine and dot-product logits in replay. Cosine predictions rely on angular information and may remain biased toward current classes. Dot-product predictions additionally incorporate norm information, which can increase the probability assigned to the correct previous class. We therefore prioritize samples that exhibit this positive probability advantage, aiming to preserve examples that support the correction mechanism of dual-logit training. For a labeled sample , the probability advantage is
where and both probabilities correspond to the true class . We directly use this advantage as the score
Since both probabilities lie in , the score belongs to .
Score-Guided Replacement. After optimization, we rescore the original samples in and using the updated model. For a sample , no insertion is performed if . If , the sample is inserted directly. Otherwise, we select a sample stored in the memory buffer with the lowest score from the same class by
(\boldsymbol{x}^-,y)\in\underset{(\boldsymbol{x}^',y)\in\mathcal{M}_y}{\arg\min}s(\boldsymbol{x}^',y), \tag{21}with ties resolved uniformly at random. Replacement occurs only when the incoming sample has a higher score, as , and
Otherwise, remains unchanged. This procedure uses the same predictive advantage to guide both quota reduction and sample replacement. Rescoring requires additional forward passes during training, which can be processed in mini-batches, but introduces no additional inference modules or test-time computation. As summarized in Algorithm 1, memory retrieval precedes model optimization, and memory updates follow it.
Why use the dual-logits memory update? Dual-logit training incorporates additional dot-product supervision during replay, but reservoir sampling does not consider which samples benefit from this prediction mechanism. When only a few samples can be retained per class, we prioritize those for which dot-product prediction assigns a higher probability to the correct class than cosine prediction. Retaining such samples provides opportunities to exploit norm information during replay, potentially reducing the reliance on angular adjustments to preserve historical predictions. This may help limit interference with the angular learning of current samples through cosine supervision. Scoring with the latest model identifies this predictive advantage under competition among the currently observed classes, aligning limited replay memory with the dual-logit training mechanism.
TABLE I FINAL AVERAGE ACCURACY (%). BEST AND SECOND-BEST AVAILABLE RESULTS AMONG CONTINUAL LEARNING METHODS, EXCLUDING UER, ARE BOLDFACED AND UNDERLINED, RESPECTIVELY.
| Method | Split CIFAR100 | Split MiniImageNet | Split TinyImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 100 | 200 | 500 | 1000 | 200 | 500 | 1000 | 2000 | 400 | 1000 | 2000 | 4000 | |
| IID | 17.3 ± 0.8 | 18.2 ± 1.1 | 17.3 ± 1.7 | |||||||||
| IID++ [16] | 23.5 ± 0.8 | 20.7 ± 1.0 | 19.1 ± 1.3 | |||||||||
| Fine-tune | 5.9 ± 0.2 | 4.3 ± 0.2 | 4.3 ± 0.2 | |||||||||
| ER [25] | 9.0 ± 0.4 | 11.0 ± 0.8 | 14.5 ± 0.8 | 17.6 ± 0.9 | 8.8 ± 0.4 | 11.2 ± 0.6 | 13.4 ± 0.9 | 16.5 ± 0.9 | 5.2 ± 0.6 | 7.6 ± 0.5 | 10.1 ± 0.9 | 12.7 ± 1.1 |
| GSS [26] | 8.5 ± 0.8 | 10.4 ± 0.6 | 14.6 ± 1.3 | 16.9 ± 1.4 | 8.5 ± 0.7 | 10.3 ± 1.5 | 13.9 ± 1.0 | 14.6 ± 1.1 | 5.1 ± 0.6 | 7.0 ± 0.5 | 10.1 ± 0.5 | 11.7 ± 0.6 |
| MIR [28] | 8.9 ± 0.5 | 10.6 ± 0.7 | 14.8 ± 0.7 | 18.1 ± 0.7 | 8.8 ± 0.6 | 11.9 ± 0.6 | 14.8 ± 1.1 | 17.2 ± 0.8 | 4.9 ± 0.4 | 7.3 ± 0.7 | 9.2 ± 1.3 | 11.3 ± 1.2 |
| ASER [29] | 7.5 ± 0.8 | 8.8 ± 0.6 | 13.0 ± 0.9 | 16.1 ± 1.1 | 7.0 ± 0.5 | 10.5 ± 1.1 | 13.8 ± 0.9 | 16.1 ± 1.1 | 4.9 ± 0.3 | 6.9 ± 0.7 | 8.8 ± 0.9 | 12.3 ± 0.8 |
| GMED [27] | 8.2 ± 1.9 | 10.8 ± 2.6 | 15.0 ± 0.9 | 18.8 ± 0.7 | 9.3 ± 0.7 | 11.9 ± 1.2 | 15.3 ± 1.3 | 18.0 ± 0.8 | 5.8 ± 0.4 | 8.2 ± 0.8 | 9.9 ± 2.5 | 9.9 ± 4.6 |
| A-GEM [38] | 5.4 ± 0.4 | 5.3 ± 0.5 | 5.4 ± 0.6 | 5.6 ± 0.5 | 4.9 ± 0.7 | 5.0 ± 1.0 | 4.7 ± 1.1 | 5.0 ± 2.3 | 2.5 ± 0.2 | 2.6 ± 0.2 | 2.5 ± 0.2 | 2.6 ± 0.1 |
| LUCIR [19] | 11.1 ± 0.4 | 13.4 ± 0.9 | 14.5 ± 0.4 | 17.4 ± 0.8 | 10.0 ± 0.8 | 12.4 ± 0.6 | 14.7 ± 0.9 | 16.9 ± 1.1 | 6.1 ± 0.4 | 6.7 ± 0.4 | 8.3 ± 0.6 | 9.8 ± 0.6 |
| ER-WA [13] | 10.9 ± 0.5 | 14.6 ± 0.9 | 18.3 ± 0.7 | 21.7 ± 1.2 | 11.0 ± 0.8 | 15.1 ± 0.7 | 17.1 ± 0.9 | 18.9 ± 1.4 | 7.9 ± 0.6 | 11.5 ± 0.7 | 14.3 ± 0.9 | 16.4 ± 1.0 |
| DER++ [39] | 10.5 ± 0.9 | 11.6 ± 0.7 | 15.5 ± 1.0 | 17.2 ± 1.1 | 9.0 ± 0.7 | 11.9 ± 1.0 | 14.8 ± 0.7 | 16.1 ± 1.3 | 5.1 ± 0.5 | 7.0 ± 0.9 | 9.3 ± 0.7 | 10.8 ± 1.0 |
| SS-IL [15] | 13.0 ± 0.6 | 16.1 ± 1.0 | 19.5 ± 0.6 | 21.9 ± 1.1 | 14.9 ± 0.8 | 18.0 ± 0.7 | 19.7 ± 0.9 | 21.7 ± 1.0 | 11.2 ± 0.8 | 14.1 ± 0.5 | 17.1 ± 0.8 | 19.6 ± 0.6 |
| SCR [14] | 7.3 ± 0.6 | 8.6 ± 0.4 | 13.3 ± 0.6 | 16.2 ± 1.3 | 7.7 ± 0.6 | 12.1 ± 0.7 | 14.7 ± 1.9 | 16.8 ± 0.6 | 5.2 ± 0.2 | 7.3 ± 0.2 | 8.7 ± 0.4 | 10.2 ± 0.3 |
| ER-ACE [16] | 12.1 ± 0.7 | 15.7 ± 0.7 | 19.7 ± 0.8 | 23.1 ± 0.8 | 14.6 ± 0.8 | 18.1 ± 0.5 | 20.3 ± 1.3 | 24.8 ± 1.1 | 9.3 ± 0.4 | 12.2 ± 0.6 | 14.6 ± 0.8 | 17.9 ± 0.7 |
| ER-DVC [31] | 10.6 ± 0.5 | 12.9 ± 0.7 | 16.8 ± 0.8 | 19.7 ± 0.7 | 10.1 ± 0.6 | 13.9 ± 0.6 | 15.4 ± 0.7 | 17.2 ± 0.8 | 6.6 ± 0.6 | 9.4 ± 0.6 | 11.4 ± 0.8 | 14.1 ± 1.0 |
| OBC [17] | 9.5 ± 0.6 | 13.3 ± 0.9 | 18.7 ± 0.9 | 22.1 ± 0.6 | 9.2 ± 0.3 | 14.4 ± 0.9 | 16.4 ± 1.4 | 19.5 ± 1.5 | 7.3 ± 0.4 | 11.0 ± 0.7 | 13.2 ± 0.6 | 16.2 ± 1.0 |
| LOR [36] | 9.5 ± 0.5 | 11.6 ± 0.7 | 15.8 ± 0.9 | 19.2 ± 0.8 | 9.5 ± 1.0 | 11.2 ± 0.6 | 15.2 ± 2.2 | 19.1 ± 1.8 | 5.5 ± 0.4 | 8.6 ± 0.3 | 11.9 ± 0.9 | 13.9 ± 1.0 |
| UER [20] | 12.5 ± 0.6 | 15.4 ± 0.7 | 20.9 ± 0.8 | 24.6 ± 0.8 | 12.8 ± 0.9 | 18.4 ± 0.8 | 21.9 ± 1.3 | 25.1 ± 1.1 | 9.7 ± 0.4 | 13.4 ± 0.5 | 16.2 ± 0.7 | 18.9 ± 0.8 |
| DLER | 14.4 ± 0.5 | 18.7 ± 0.5 | 23.6 ± 0.8 | 25.1 ± 1.2 | 15.0 ± 0.9 | 20.2 ± 1.3 | 23.1 ± 1.0 | 25.6 ± 0.7 | 11.9 ± 0.3 | 15.8 ± 0.5 | 18.5 ± 0.5 | 20.3 ± 0.6 |
V. EXPERIMENTS
A. Experiment Setup
-
Datasets: We conduct extensive experiments on three publicly available datasets. Split CIFAR100 [40] and Split MiniImageNet [41] are made up of 10 learning stages, and each stage has 10 classes.Split TinyImageNet [42] consists of 20 learning stages, and each stage contains 10 classes.
-
Evaluation Metrics: We first define as the accuracy evaluated on the held-out test samples of the th task after the network has learned the first tasks. Similar to [29], we can further acquire the average accuracy rate
at the th task. The final accuracy rate for tasks is .
- Implementation Details: The basic setting of the backbone model is the same as the existing work [35], [36]. In detail, we take the Reduced ResNet18 (the number of filters is 20) as the feature extractor on all datasets. All of the networks are randomly initialized rather than pre-trained. During training, the network is trained with the SGD optimizer, and the learning rate is set to 0.1. Meanwhile, we select and on a validation set that is obtained by sampling 10% of the training set. As for testing, we select 256 as the batch size. For all datasets, the class indexes are shuffled before division. The model receives 10 current samples from the data stream and 10 previous samples from the memory buffer at a time. We also combine multiple data augmentation techniques to generate augmented views of the training samples.
B. Overall Performance
We evaluate DLER against state-of-the-art baselines. Table I reports the final average accuracy as the mean the half-width of the 95% confidence interval over 10 runs, using distinct, randomly generated class orders for each dataset.
DLER achieves the highest mean accuracy across all 12 experimental settings. On Split CIFAR100, DLER outperforms the strongest competing baseline in each setting by 1.4%, 2.6%, 3.9%, and 2.0% with buffer sizes of 100, 200, 500, and 1000, respectively. On Split MiniImageNet, the corresponding improvements are 0.1%, 2.1%, 2.8%, and 0.8% with buffer sizes of 200, 500, 1000, and 2000. On Split TinyImageNet, DLER consistently outperforms SS-IL by 0.7%, 1.7%, 1.4%, and 0.7% with buffer sizes of 400, 1000, 2000, and 4000, respectively. These results demonstrate the effectiveness of DLER across different datasets and memory capacities, including settings with limited memory.
Compared with UER, DLER improves mean accuracy in every evaluated setting, with gains ranging from 0.5% to 3.3%. Notably, the gains on Split TinyImageNet remain above one percentage point across all four memory capacities, demonstrating the benefits of the extensions under a longer learning sequence with more classes. These results support the combined effectiveness of enhancing dual-logit training through improved feature compactness and memory management.
Figure 2 reports accuracy after each learning stage. Although DLER does not achieve the highest accuracy initially, it leads the compared methods from stage 6 onward on Split CIFAR100 and from stage 5 onward on Split MiniImageNet and Split TinyImageNet. These gains suggest an improved balance between acquiring novel knowledge and retaining historical knowledge as more classes share the fixed memory.

(a) Split CIFAR100

(b) Split MiniImageNet

(c) Split TinyImageNet
Fig. 2. Average accuracy rate on observed learning stages on three datasets when the memory buffer size is 1000.
TABLE II ABLATION STUDY ON SPLIT TINYIMAGENET WITH DIFFERENT MEMORY BUFFER SIZES.
| Method | Components | Buffer size | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Dual-logits | α | SC | BM | Advantage | 400 | 1000 | 2000 | 4000 | |
| ER | 5.2 ± 0.6 | 7.6 ± 0.5 | 10.1 ± 0.9 | 12.7 ± 1.1 | |||||
| Dual-logit training (Fixed) | ✓ | 8.0 ± 0.6 | 10.9 ± 0.7 | 14.2 ± 0.8 | 16.1 ± 0.8 | ||||
| Dual-logit training | ✓ | ✓ | 9.7 ± 0.4 | 13.4 ± 0.5 | 16.2 ± 0.7 | 18.9 ± 0.8 | |||
| Dual-logit training + SC | ✓ | ✓ | ✓ | 10.0 ± 0.5 | 13.9 ± 0.3 | 17.2 ± 0.5 | 19.6 ± 0.7 | ||
| Dual-logit training + SC + CB | ✓ | ✓ | ✓ | ✓ | 10.2 ± 0.5 | 14.5 ± 0.3 | 17.4 ± 0.8 | 19.7 ± 0.5 | |
| DLER | ✓ | ✓ | ✓ | ✓ | ✓ | 11.9 ± 0.3 | 15.8 ± 0.5 | 18.5 ± 0.5 | 20.3 ± 0.6 |

(a) Previous Classes

(b) Current Classes

(c) Average of Previous and Current Classes
Fig. 3. Average accuracy rate of previous classes, current classes, and their average on Split MiniImageNet with a 1000 memory buffer size.
C. Ablation Study
Table II presents an ablation study on Split TinyImageNet with buffer sizes of 400, 1000, 2000, and 4000. Starting from ER, we progressively introduce dual-logit training, controllable α, supervised contrastive loss (SC), balanced memory (BM), and advantage-based sample selection. Dual-logit training combines cosine supervision for current samples with additional dot-product supervision during replay, whose relative contribution is controlled by α. SC promotes feature compactness, BM balances memory allocation, and advantage-based selection favors samples with a positive dot-product probability advantage for the correct class. Each successive configuration improves mean final accuracy across all four capacities, with DLER achieving the best results.
- Dual-Logit Training: Dual-logit training incorporates norm information through dot-product supervision to balance current learning and historical retention. Figure 3 compares accuracy on current classes, previous classes, and their equally weighted average on Split MiniImageNet. Dual-logit training, represented by UER, maintains competitive accuracy on both groups and a higher equally weighted average than these baselines throughout learning. This balance is controlled by α, which adjusts the relative contributions of dot-product and cosine supervision during replay.
Meanwhile, dual-logit training offers flexibility in where the mechanism is applied. To examine this property, we add a linear layer to the feature extractor and apply the mechanism to this layer, the predictor, or both. Table III reports the

(a) Split CIFAR100

(b) Split MiniImageNet

(c) Split TinyImageNet
Fig. 4. Improvement of existing methods with dual-logits training on three datasets while the buffer size is 1000.

Fig. 5. The performance of dual-logits training on Split CIFAR100 (buffer size=1000) with different values of .
TABLE III
FINAL ACCURACY (%) ON SPLIT CIFAR100 WITH A BUFFER OF 1,000 SAMPLES AFTER ADDING A LINEAR LAYER TO THE FEATURE EXTRACTOR.
| Method Setting | All Classes | Current Classes | Previous Classes |
|---|---|---|---|
| ER | 50.5 | 11.7 | |
| ER-ACE | 17.3 | 19.1 | |
| OBC | 17.5 | 18.4 | |
| Dual-logit training (feature) | 30.6 | 17.2 | |
| Dual-logit training (predictor) | 34.7 | 18.0 | |
| Dual-logit training (both) | 31.8 | 18.8 |
final accuracy on all classes, current classes, and previous classes. Applying the mechanism to either layer improves overall accuracy over ER, while applying it to both achieves the highest overall accuracy. Compared with the predictor, using both layers improves the performance of previous classes while maintaining competitive performance of current classes.
Additionally, dual-logits training can be used with existing methods. Figure 4 compares six ER-based baselines with and without dual-logit training on the three datasets. The blue curves represent the original baselines, while the red curves show their performance after integration. All six baselines achieve higher final accuracy, with improvements throughout most of the learning process. These results suggest that incorporating norm information during replay can complement existing methods for mitigating prediction bias.
- Controllable : To examine how influences this balance, we conduct experiments on Split CIFAR100 with different values of in Figure 5. The accuracy on current classes generally decreases as increases, whereas the accu-

Fig. 6. Conditional coverage and previous-class accuracy of dual-logits training and its enhancement with SC on Split TinyImageNet.
racy on previous classes initially improves and then declines. Consequently, the overall accuracy first increases but saturates or decreases when becomes too large. Consistently, Table II shows that allowing to be adjusted improves performance over fixing across all four memory capacities. These results support the importance of balancing the two objectives and demonstrate the adjustability of our proposed method.
- Supervised contrastive objective: SC is proposed to enhance the dual-logits training mechanism. To investigate how SC enhances dual-logit training, Figure 7 compares training with and without SC on Split TinyImageNet using identical memory contents and test sample pairings. We measure conditional coverage and previous-class accuracy. Conditional coverage is the proportion of test samples from a previous class correctly distinguished from a given current class, conditioned on a stored reference from the same previous class being correctly distinguished from that current class. It measures whether separation achieved by stored samples extends to unseen samples of the same class. Previous-class accuracy
TABLE IV
COMPARISON OF THE HIGHEST- AND LOWEST-SCORING TRAINING SAMPLES WITHIN THE 96 SELECTED CLASSES ON SPLIT TINYIMAGENET.
| Metric | High-score | Low-score |
|---|---|---|
| Spatial JS divergence | 0.2256 | 0.0463 |
| Feature norm | 15.7856 | 12.8475 |
| Ground-truth cosine probability | 0.1173 | 0.0260 |
| Gradient norm (all) | 7.3114 | 52.7980 |
| Gradient norm (backbone) | 7.0487 | 51.4370 |
| Gradient conflict rate | 41.5% | 44.6% |
evaluates previous-class test samples over all observed classes.
SC generally improves both metrics, with more consistent gains under larger buffers and improvements at every evaluated stage for the largest buffer. With the smallest buffer, gains fluctuate, and final performance is slightly lower despite higher stage averages. These trends suggest that SC helps replay supervision generalize beyond stored samples. By promoting within-class angular compactness and between-class separation, SC provides more consistent angular representations for both logits, potentially extending corrections learned through dot-product supervision to other samples of the same class.
-
Balanced Memory component: Reservoir sampling approximately preserves the class distribution of the data stream, yielding balanced memory in expectation for a balanced stream. However, score-based selection may favor certain classes, motivating BM to regulate memory allocation. To separate its contribution from advantage-based selection, Table II includes dual-logit training with SC and BM as an intermediate configuration. Compared with SC and reservoir sampling, adding BM yields modest gains across all four memory capacities, suggesting that class balance alone does not explain the full improvement of DLER.
-
The Advantage component: Building on BM, the advantage component prioritizes samples for which dot-product prediction assigns a higher probability to the correct class than cosine prediction. As shown in Table II, this component further improves mean accuracy across all memory capacities, with larger gains under smaller buffers. To investigate the characteristics associated with this score, we analyze the final DLER model trained on Split TinyImageNet with a buffer size of 400. We focus on the 96 classes for which DLER achieves higher accuracy than the configuration using dual-logit training with SC and CB. Within each class, we select the highest- and lowest-scoring samples using the final model and compare their spatial responses, feature statistics, and gradients. The results in Table IV characterize these selected classes.
We compare high- and low-score samples from three perspectives. 1) Spatial responses. Class activation maps (CAMs) are extracted from layer4 using the ground-truth dot-product and cosine logits and normalized by their spatial sums. High-score samples exhibit larger spatial Jensen-Shannon (JS) divergence, indicating more distinct responses between the two logits, as illustrated in Figure 8. 2) Feature characteristics. High-score samples have larger feature norms and higher ground-truth cosine probabilities, suggesting that their dot-product advantage coexists with stronger feature magnitudes and useful angular evidence rather than simply weak cosine
TABLE V
THEORETICAL COMPARISON OF TRAINING COMPUTATION, MODEL PARAMETERS, AND INFERENCE COMPUTATION.
| Method | Training per update | Model parameters | Inference per sample |
|---|---|---|---|
| ER | |||
| ER-ACE | |||
| SS-IL | |||
| UER | |||
| DLER |
predictions. 3) Gradient behavior. Under combined cosine and dot-product supervision, high-score samples exhibit substantially smaller overall and backbone gradient norms and a slightly lower gradient conflict rate, measured as the proportion of sample pairs with negative gradient cosine similarity. This indicates milder updates and less conflict among evaluated pairs. Overall, advantage-based selection identifies samples with stronger feature magnitudes, greater cosine support, and additional dot-product probability advantages, potentially supporting more effective replay under limited memory.
D. Complexity Analysis
Table V compares computational and parameter storage requirements. Here, , and denote the combined training batch size, memory capacity, and feature dimension; and denote per-sample training and prediction costs. and are the standard and teacher model parameter counts, and is the memory selection cost. ER, ER-ACE, and UER share the same asymptotic training complexity, while SS-IL requires additional teacher predictions and storage. DLER retains UER's architecture without additional parameters.
DLER adds contrastive computation, memory scoring, and sample selection. Scoring scales linearly with the fixed buffer capacity and can be batched without retaining backpropagation graphs. All methods require replay storage, where is the storage per sample; DLER adds scores and metadata for observed classes. These additional operations occur only during training. DLER thus improves replay selection while preserving the model size and inference cost of ER and UER, supporting its Real-time ability through direct prediction without additional inference modules or post-processing.
VI. CONCLUSION
In this paper, we propose DLER to alleviate catastrophic forgetting in OCL by addressing prediction bias. DLER learns current samples using cosine logits and incorporates additional dot-product supervision during replay. To further strengthen the dual-logit mechanism, an auxiliary supervised contrastive objective promotes angular compactness, supporting the generalization of corrections beyond limited replay samples. We also extend dual-logits to memory management through advantage-based scoring, aligning sample retention with the dual-logit training. Extensive experiments on three datasets demonstrate the effectiveness of DLER, particularly under limited replay memory.
REFERENCES
[1] L. Nie, L. Qu, D. Meng, M. Zhang, Q. Tian, and A. D. Bimbo, "Search-oriented micro-video captioning," in Proceedings of the 30th ACM International Conference on Multimedia, 2022, pp. 3234–3243. 1
[2] L. Nie, W. Wang, R. Hong, M. Wang, and Q. Tian, “Multimodal dialog system: Generating responses via adaptive decoders,” in Proceedings of the 27th ACM International Conference on Multimedia, 2019, pp. 1098–1106. 1
[3] L. Nie, X. Wang, J. Zhang, X. He, H. Zhang, R. Hong, and Q. Tian, “Enhancing micro-video understanding by harnessing external sounds,” in Proceedings of the 25th ACM international conference on Multimedia, 2017, pp. 1192–1200. 1
[4] M. Delange, R. Aljundi, M. Masana, S. Parisot, X. Jia, A. Leonardis, G. Slabaugh, and T. Tuytelears, “A continual learning survey: Defying forgetting in classification tasks,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021. 1
[5] B. Liu and S. Mazumder, “Lifelong and continual learning dialogue systems: learning during conversation,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 17, 2021, pp. 15058–15063. 1
[6] B. Liu, S. Mazumder, E. Robertson, and S. Grigsby, “Ai autonomy: Self-initiation, adaptation and continual learning,” arXiv preprint arXiv:2203.08994, 2022. 1
[7] B. Liu and C. Mei, “Lifelong knowledge learning in rule-based dialogue systems,” arXiv preprint arXiv:2011.09811, 2020. 1
[8] H. Lin, S. Feng, X. Li, W. Li, and Y. Ye, “Anchor assisted experience replay for online class-incremental learning,” IEEE Transactions on Circuits and Systems for Video Technology, 2022. 1
[9] H. Yin, P. Li et al., “Mitigating forgetting in online continual learning with neuron calibration,” Advances in Neural Information Processing Systems, vol. 34, 2021. 1
[10] Z. Mai, R. Li, J. Jeong, D. Quispe, H. Kim, and S. Sanner, “Online continual learning in image classification: An empirical survey,” Neurocomputing, vol. 469, pp. 28–51, 2022. 1
[11] H. Lin, B. Zhang, S. Feng, X. Li, and Y. Ye, “Per: Proxy-based contrastive replay for online class-incremental continual learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023, pp. 24246–24255. 1, 3
[12] Y. Wu, Y. Chen, L. Wang, Y. Ye, Z. Liu, Y. Guo, and Y. Fu, “Large scale incremental learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019, pp. 374–382. 1
[13] B. Zhao, X. Xiao, G. Gan, B. Zhang, and S.-T. Xia, “Maintaining discrimination and fairness in class incremental learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 13208–13217. 1, 6
[14] Z. Mai, R. Li, H. Kim, and S. Sanner, “Supervised contrastive replay: Revisiting the nearest class mean classifier in online class-incremental continual learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021, pp. 3589–3599. 1, 3, 4, 6
[15] H. Ahn, J. Kwak, S. Lim, H. Bang, H. Kim, and T. Moon, “Ss-il: Separated softmax for incremental learning,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021, pp. 844–853. 1, 3, 6
[16] L. Caccia, R. Aljundi, N. Asadi, T. Tuytelears, J. Pineau, and E. Belilovsky, “New insights on reducing abrupt representation change in online continual learning,” in International Conference on Learning Representations, 2021. 1, 3, 6
[17] A. Chrysakis and M.-F. Moens, “Online bias correction for task-free continual learning,” in The Eleventh International Conference on Learning Representations. 1, 6
[18] W. Liu, Z. Liu, Z. Yu, B. Dai, R. Lin, Y. Wang, J. M. Rehg, and L. Song, “Decoupled networks,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018, pp. 2771–2779. 1, 11
[19] S. Hou, X. Pan, C. C. Loy, Z. Wang, and D. Lin, “Learning a unified classifier incrementally via rebalancing,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019, pp. 831–839. 1, 3, 6, 11
[20] H. Lin, S. Feng, B. Zhang, H. Qiao, X. Li, and Y. Ye, “Uer: A heuristic bias addressing approach for online continual learning,” in Proceedings of the 31st ACM International Conference on Multimedia, 2023, pp. 96–104, 2, 3, 6
[21] C. Savadikar, M. Dai, and T. Wu, “CHEEM: Continual learning by reuse, new, adapt and skip—a hierarchical exploration-exploitation approach,”
in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026, pp. 25066–25076. 3
[22] X. Liu and X. Chang, “Elastic weight consolidation done right for continual learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026, pp. 3930–3940. 3
[23] J. Deng, Q. Wu, P. Ju, S. Lin, Y. Liang, and N. Shroff, “Unlocking the power of rehearsal in continual learning: A theoretical perspective,” in Proceedings of the 42nd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 267, 2025, pp. 13277–13326. 3
[24] B. Cui, G. Hu, and S. Yu, “Deepcollaboration: Collaborative generative and discriminative models for class incremental learning,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 2, 2021, pp. 1175–1183. 3
[25] D. Rolnick, A. Ahuja, J. Schwarz, T. Lillicrap, and G. Wayne, “Experience replay for continual learning,” Advances in Neural Information Processing Systems, vol. 32, 2019. 3, 6
[26] R. Aljundi, M. Lin, B. Goujaud, and Y. Bengio, “Gradient based sample selection for online continual learning,” Advances in neural information processing systems, vol. 32, 2019. 3, 6
[27] X. Jin, A. Sadhu, J. Du, and X. Ren, “Gradient-based editing of memory examples for online task-free continual learning,” Advances in Neural Information Processing Systems, vol. 34, 2021. 3, 6
[28] R. Aljundi, E. Belilovsky, T. Tuytelears, L. Charlin, M. Caccia, M. Lin, and L. Page-Caccia, “Online continual learning with maximal interfered retrieval,” Advances in Neural Information Processing Systems, vol. 32, pp. 11849–11860, 2019. 3, 6
[29] D. Shim, Z. Mai, J. Jeong, S. Sanner, H. Kim, and J. Jang, “Online class-incremental continual learning with adversarial shapley value,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 11, 2021, pp. 9630–9638. 3, 6
[30] M. Y. Harun, J. Gallardo, J. Chen, and C. Kanan, “GRASP: A rehearsal policy for efficient online continual learning,” in Proceedings of the 3rd Conference on Lifelong Learning Agents, ser. Proceedings of Machine Learning Research, vol. 274, 2025, pp. 1032–1052. 3
[31] Y. Gu, X. Yang, K. Wei, and C. Deng, “Not just selection, but exploration: Online class-incremental continual learning via dual view consistency,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022, pp. 7442–7451. 3, 6
[32] Q. Wang, R. Wang, Y. Wu, X. Jia, and D. Meng, “Cba: Improving online continual learning via continual bias adaptor,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023, pp. 19082–19092. 3
[33] Y.-S. Liang and W.-J. Li, “Loss decoupling for task-agnostic continual learning,” in Thirty-seventh Conference on Neural Information Processing Systems, 2023. 3
[34] Y. Guo, B. Liu, and D. Zhao, “Online continual learning through mutual information maximization,” in International Conference on Machine Learning. PMLR, 2022, pp. 8109–8126. 3
[35] S. Lai, C. Ma, F. Zhu, Z. Zhao, X. Lin, G. Meng, and Q. Zhang, “Gradient-guided epsilon constraint method for online continual learning,” in Advances in Neural Information Processing Systems, vol. 38, 2025. 3, 6
[36] S. Lai, Z. Zhao, F. Zhu, J. Cheng, X. Lin, Q. Zhang, and G. Meng, “Beyond myopic alignment: Lookahead optimization for online class-incremental learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026, pp. 18053–18062. 3, 6
[37] J. M. Steele, The Cauchy-Schwarz master class: an introduction to the art of mathematical inequalities. Cambridge University Press, 2004. 4
[38] A. Chaudhry, M. Ranzato, M. Rohrbach, and M. Elhoseiny, “Efficient lifelong learning with a-gem,” in International Conference on Learning Representations, 2018. 6
[39] P. Buzzega, M. Boschini, A. Porrello, D. Abati, and S. Calderara, “Dark experience for general continual learning: a strong, simple baseline,” Advances in neural information processing systems, vol. 33, pp. 15920–15930, 2020. 6
[40] A. Krizhevsky, G. Hinton et al., “Learning multiple layers of features from tiny images,” 2009. 6
[41] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, pp. 3630–3638, 2016. 6
[42] Y. Le and X. Yang, “Tiny imagenet visual recognition challenge,” CS 231N, vol. 7, no. 7, p. 3, 2015. 6
VII. APPENDIX
A. Analysis of Catastrophic Forgetting
There is a competition between samples of each class in the process of gradient propagation. By the chain rule, the gradient of the predictor for a training sample of class can be expressed as
and
With a positive learning rate and a non-negative feature vector , the gradient updates increase the parameters associated with the ground-truth class : and . Conversely, they decrease the parameters associated with other classes: and , for . These updates move toward the direction of and increase . Thus, it increases the logits score of the -th dimension as well as decreases the logits scores of other dimensions. And the process is the same when using cosine logits by
where
The prediction bias is a phenomenon of CF, mainly caused by the unbalanced competition of gradient propagation. Generally, the number of samples belonging to previous classes in the fixed buffer will decrease as the learning process continues. The number of samples belonging to current classes remains unchanged. If the model incrementally learns by Equation (3) or Equation (4), the associated parameters of current classes receive more positive changes, while the others obtain more negative changes. This means the gradients of previous classes lose their competitiveness. Besides, the logits of current classes tend to be larger than the previous ones. Hence, the model is more likely to classify most samples to the classes of current samples, reducing the performance of previous classes.
B. Analysis of Biased Predictor
Imbalanced gradient mainly affects the predictor through the angle and norm factors. The norm factor accounts for intra-class variation, and the angle factor accounts for inter-class variation [18]. To study their changes in OCL, we conduct experiments on CIFAR100 with two incremental stages and 50 classes per stage. We set two general ways to calculate logits in the experiment: dot-product logits (both factors) and cosine logits (only angle factor). In Table VI, we take different ways to calculate logits and record their performance.
Experiment results show that the characteristics of these two factors differ from each other. On the one hand, the bias issue mainly occurs in the angle factor, which efficiently
learns novel knowledge. Comparing index 1 and 2, replacing dot-product logits with cosine logits in the testing phase leads to worse final accuracy, particularly for previous classes. Meanwhile, the method in index 3 performs better for current classes but worse for previous classes compared to the one in index 1. On the other hand, the norm factor, which has been abandoned in existing studies [19], benefits previous classes. As seen in indices 3 and 4, switching from cosine to dot-product logits during testing improves overall accuracy, with a substantial gain on previous classes.
With this observation, the two factors can be utilized in different occasions. The angle factor is effective in adapting novel knowledge with inter-class variation. Consequently, cosine logits that depend on the angle factor are suitable for learning current samples. And dot-product logits can be used for replaying previous samples since they can leverage the norm factor to enhance historical knowledge with intra-class variation. Motivated by these findings, we propose a method that learns current samples by cosine logits, replays previous samples, and predicts testing samples by dot-product logits.
C. Analysis of Motivation
In addition to the results in Table VI, we present more detailed results for ER (blue), LUCIR (yellow) and our method (orange) in Figure 7. We calculate the difference between the parameters of the predictor before and after learning the current classes, taking it as the accumulated changes in parameters as shown in Figure 7 (a). Meanwhile, we report the average norm value of the weight vector for all classes in Figure 7 (b). Moreover, we calculate the average categorical probability of all testing samples by the latest model, illustrated in Figure 7 (c). Further analysis and experimental results verify the feasibility of our proposed method.
Firstly, learning current samples using cosine logits can save the novel knowledge into the angle factor. In indices 7 and 8, the performance on previous classes is almost zero when testing with cosine logits. The reason behind this is that the angular similarity is almost the determining factor for gradients in Equation (26). For one thing, all vectors in Equation (26) are normalized, and this greatly enhances the influence of the angular similarity. For another thing, the change of is constrained by , as large can decrease gradients so much that the weights pass is not able to update effectively. Moreover, the dot-product logits is associated with a value range , while the value range of cosine logits is . This causes the cosine logits to produce smaller changes for previous classes and larger changes for current classes (as seen in the blue and orange parts in Figure 7 (a)). It also raises the norm factor of previous classes and reduces the norm factor of current classes (as observed in the blue and orange parts in Figure 7 (b)), which helps learn novel knowledge by the angle factor.
Secondly, replaying previous samples with dot-product logits can enhance historical knowledge through the norm factor. Comparing index 7 and 8, using dot-product logits in the testing process results in the best performance for previous classes, even surpassing the performance of current classes.
TABLE VI
COMPARISON OF LOGIT CONFIGURATIONS FOR TRAINING AND INFERENCE ON SPLIT CIFAR100 WITH A MEMORY BUFFER OF 5,000 SAMPLES. , , AND DENOTE THE FINAL ACCURACIES (%) ON ALL, PREVIOUS, AND CURRENT CLASSES, RESPECTIVELY. DENOTES THE MEAN CLASS-WEIGHT VECTOR NORM; AND DENOTE THE MEAN AND STANDARD DEVIATION OF WEIGHT ENTRIES; AND DENOTES THE MEAN BIAS. SUBSCRIPTS AND INDICATE PREVIOUS AND CURRENT CLASSES. DOT AND COS DENOTE DOT-PRODUCT AND COSINE LOGITS, RESPECTIVELY.
| Configuration | Logit configuration | Accuracy (%) | Weight norm | Weight statistics | Bias | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Learning | Replaying | Testing | ||||||||||
| 1 (ER) | Dot | Dot | Dot | 27.3 | 17.7 | 36.9 | 2.08 | 1.86 | -0.22 | 0.22 | ||
| 2 | Dot | Dot | Cos | 24.1 | 12.7 | 35.6 | 2.08 | 1.86 | -0.22 | 0.22 | ||
| 3 (LUCIR) | Cos | Cos | Cos | 26.9 | 14.9 | 38.9 | 2.00 | 1.64 | -0.00 | 0.00 | ||
| 4 | Cos | Cos | Dot | 28.2 | 28.8 | 27.6 | 2.00 | 1.64 | -0.00 | 0.00 | ||
| 5 | Dot | Cos | Dot | 19.6 | 0.0 | 39.1 | 1.37 | 2.09 | -1.03 | 1.03 | ||
| 6 | Dot | Cos | Cos | 27.3 | 25.3 | 29.4 | 1.37 | 2.09 | -1.03 | 1.03 | ||
| 7 | Cos | Dot | Cos | 21.3 | 0.5 | 42.2 | 2.52 | 1.51 | 0.20 | -0.20 | ||
| 8 (UER) | Cos | Dot | Dot | 29.5 | 30.9 | 28.1 | 2.52 | 1.51 | 0.20 | -0.20 | ||

(a) The accumulate changes of parameters.

(b) The average norm value of all classes.

(c) The categorical probability of testing samples.
Fig. 7. The analysis results of different ways during the learning process on Split CIFAR100 when the memory buffer size is 5000.
Different from cosine logits, the gradient in Equation (24) depends on both two factors. In the meantime, the gradient in Equation (24) is only associated with previous samples in the buffer. Since the angle factor is easily influenced by an unbalanced gradient, this process tends to pay more attention to the norm factor. As a result, replaying by dot-product logits not only decreases the changes for previous classes but also increases the changes for current classes (as seen in the yellow and orange parts in Figure 7 (a)). In the meantime, it raises the norm factor of previous classes as well as reduces the norm factor of current classes (indicated by the yellow and orange parts in Figure 7 (a)). It causes that is larger than , and is smaller than . Although the angle factor suffers from , it can be leveraged by , as we described in Figure 1 (d).
As shown in Table VI, our proposed method achieves the best performance among all combinations of different logits. Based on the combination of different logits, our method quickly learns novel knowledge and effectively retains historical knowledge. As shown in Figure 7 (c), the posterior probability distribution of our method is relatively balanced, whereas those of ER and LUCIR tend to favor the current classes. Therefore, our motivation for learning current samples by cosine logits while replaying previous samples by dot-product logits is reasonable and practicable.
| Highest score Original | Highest score Dot-product CAM | Highest score Cosine CAM | Lowest score Original | Lowest score Dot-product CAM | Lowest score Cosine CAM | |
|---|---|---|---|---|---|---|
| cougar Class 33 |  | |||||
| brown bear Class 35 | ||||||
| Arabian camel Class 53 | ||||||
| convertible Class 94 | ||||||
| lifeboat Class 115 | ||||||
| police van Class 133 | ||||||
| rocking chair Class 142 | ||||||
| trolleybus Class 166 |
Fig. 8. Examples of high-score and low-score samples and their class activation maps obtained using dot-product and cosine logits.