arXiv:2611.04885cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04885

DLER: Dual-Logit Experience Replay for Online Continual Learning

Huiwei Lin, Shanshan Feng, Kong Aik Lee

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 wh+b=∥w∥∥h∥cos⁡(w,h)+bwh + b = \|w\|\|h\| \cos(w, h) + b, 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 hph_p will be mistakenly classified to current class cc by cosine logits that satisfies cos⁡(wc,hp)>cos⁡(wp,hp)\cos(w_c, h_p) > \cos(w_p, h_p). However, with the help of the norm factor, the model can correctly classify hph_p to the previous class pp by dot-product logits that satisfy ∥hp∥∥wc∥cos⁡(wc,hp)+bc<∥hp∥∥wp∥cos⁡(wp,hp)+bp\|h_p\|\|w_c\| \cos(w_c, h_p) + b_c < \|h_p\|\|w_p\| \cos(w_p, h_p) + b_p. 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

Figure

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.

References (42)