Skip to content

DLER: Dual-Logit Replay to Curb Class Bias in Online Continual Learning

THE ARGUMENT

Bias correction should not live only in the loss: writing the division of labour between dot-product and cosine scores into both the training objective and the buffer policy is what actually holds new-class bias down under a small memory budget.

On this page

A team has 3 image-stream benchmarks and a fixed-size replay buffer, but it still must decide whether bias toward new classes deserves its own metric or is just noise around overall accuracy. Most people assume the buffer already handles forgetting, so bias is a rounding error. The setup is simple: a model sees each item once, in order, then throws it away, and a small store of old items is mixed back in during training. That mixing is exactly where the skew appears, and it decides whether the model is usable when the store holds only a handful of items per old class.

Replay fixes forgetting, not the push toward new classes

Rehearsal is the floor of this family: keep a fixed-size buffer of previously seen samples, then mix them into the loss whenever a new batch arrives [1]. The trouble is proportion. The current batch is full, while each old class contributes only a few stored items, so gradients drift toward the new classes. The model does not forget old classes so much as learn to avoid predicting them, because the new-class weights simply score higher.

The usual advice is to treat this as a classifier-head nuisance and patch it with a temperature, a post-hoc step, or separate losses for new and old classes. The paper groups the online costs of that habit into 3 challenges. Real-time ability: some methods need extra training steps or post-processing, so predictions are not immediate. Flexibility: some methods lean on an explicit boundary between old and new classes, and the correction stays in the predictor instead of reaching the feature extractor. Adjustability: the strength of the correction cannot be tuned continuously.

None of this is theoretical fussiness. A data stream will not wait, a deployed architecture will not be rebuilt for a post-processing step, and the severity of the skew changes as the stream moves on. The paper therefore asks whether one plain and efficient mechanism can meet all 3 constraints at once.

One score, two halves: angle carries new knowledge, norm carries old knowledge

Everything starts from a single decomposition: the dot-product score w·h + b can be written as ||w||·||h||·cos(w,h) + b. A class score therefore hides 2 factors. The angle factor measures how close two directions are; the norm factor measures how long the vectors are. The first reads direction only, the second reads magnitude.

The empirical observation is asymmetric. The angle factor picks up new knowledge quickly yet is especially vulnerable to prediction bias, while the norm factor is often discarded outright by cosine classifiers, even though it helps preserve historical knowledge. That yields a concrete picture: an old-class sample h_p loses to a new class c under cosine scores, but once the norm is multiplied back in, the dot-product score for the old class wins again. Figure 1(d) of the paper is exactly this inequality.

Where it is usedFactor involvedJob inside DLERCost
Training on current samplesAngle (cosine)Absorb new-class knowledge quicklyAngular evidence can hand old samples to new classes
Training on replay samplesAngle + norm (dot product), weight αLift old-class scores back with the normA large α suppresses new knowledge
InferenceDot product over all seen classesKeep the norm contribution, no post-processingThe norm is itself affected by imbalance

The question is not which score is better. The 2 factors do different jobs, and once that is clear the training loss and the buffer policy both have somewhere to sit.

How DLER trains: cosine on current samples, dot product added on replay

DLER writes the division of labour into the loss through 3 components.

  • Learning component: the current batch is trained with cosine scores only, objective L_c, so angular information absorbs new knowledge.
  • Replaying component: stored samples use both, L_p = α·ℓ_dot + (1−α)·ℓ_cos, with α between 0 and 1 setting how much dot-product supervision contributes.
  • Testing component: no extra module, predictions are made with dot-product scores over all seen classes, keeping the norm contribution.

The total objective is L_dual = L_c + L_p, and α is the adjustability knob: larger values push bias correction harder, smaller values approach plain cosine training. Each sample also passes through 2 views, the original and a random augmentation, and the loss is averaged over them, as in Eq. (6). The scale parameter γ of the cosine classifier is set to 10, following common practice.

One more piece: a supervised contrastive loss L_sc over the combined current and replay samples pulls same-class features together in angle and pushes different classes apart. The reason is practical. Class-weight norms are shared across samples, so if features of one class are spread out, a correction learned from a single replay sample never reaches its classmates; angular compactness lets a few stored items spread the correction.

What the buffer keeps: samples the dot product likes more than the cosine

Memory management is one of the main differences from the conference version. Each candidate sample is scored by the latest model twice: the probability the dot product assigns to the correct class, and the probability the cosine assigns to it. The gap is the advantage. Under a fixed budget, class quotas allocate slots first, then score-based replacement prefers samples with a positive advantage, meaning the dot product favours their correct class more than the cosine does.

This mirrors the training objective. Training leans on the dot product to restore old knowledge, so the buffer keeps the samples where the dot product actually has something to restore. The paper calls it aligning sample selection with dual-logit training [1].

Evidence on three datasets, and what each component contributes

Experiments run on 3 class-split image streams, listed below. Compared with the conference version, the journal version replaces Split CIFAR10 with the harder Split TinyImageNet and adds ablations and analyses.

DatasetRole in the paper
Split CIFAR100One of the main benchmarks, a class-split image stream
Split MiniImageNetOne of the main benchmarks, more classes and higher resolution
Split TinyImageNetAdded in the journal version, replaces Split CIFAR10, harder

The ablation list covers dual-logit training itself, the value of α, the supervised contrastive objective, the balanced memory component, and the advantage component. The stated direction is effectiveness on all 3 datasets, particularly under limited memory budgets [1].

One caveat: the excerpt provided here does not report per-dataset accuracy numbers. So no percentages are repeated in this piece. If you are using this for a selection decision, check the original tables at each memory-budget level rather than a second-hand summary.

When this method does not apply

The boundaries deserve naming. First, the experiments cover 3 class-split image streams with clear task boundaries and a bounded class count. If the old classes themselves drift, so that the same class looks different over time, the premise of preserving historical knowledge weakens, and the norm factor may be preserving an outdated direction.

Second, advantage scoring assumes a systematic gap between dot-product and cosine rankings for the correct class. If the two produce nearly the same ranking, the score is close to noise and memory updates degrade toward near-random retention; that is my inference from the mechanism, not an experimental result in the paper. Third, α and buffer size must be tuned together: the reported benefit sits in the limited-memory regime, and with a generous buffer the marginal value of dual logits shrinks. Fourth, the setting is single-pass with no revisiting, so offline multi-epoch training is out of scope.

References

  1. DLER: Dual-Logit Experience Replay for Online Continual Learning

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…