The Structural Bias of $\ell_2$-Regularized Cross-Entropy Heads in Class-Incremental Learning: Characterization, Limits, and a Gauge-Anchoring Fix

Milad Khademi Nori, Guanghui WangNeurIPS 2026

TL;DR

When an AI learns new categories one batch at a time using standard $\ell_2$-regularized cross-entropy, each task’s classifier head anchors to its own local center of gravity rather than a shared global origin. Paradoxically, using a stronger pretrained backbone actually makes this hidden coordinate tilt larger, skewing cross-task comparisons no matter how much data you throw at it. The authors derive the exact geometry of this bias and test a one-line evaluation-time fix—uncovering clean wins on published checkpoints alongside candidly mixed results on regenerated benchmarks.

What Problem Does This Paper Address?

Imagine mapping two islands separately, measuring every landmark relative to each island's center. Within one island, your directions are flawless. Try comparing a landmark on Island A to one on Island B, however, and your measurements collide because the two maps don't share an origin.

This is the hidden trap in Class-Incremental Learning (CIL)—training a model on sequential tasks (say, 10 dog breeds today, 10 bird species tomorrow) without revisiting old data. Today’s dominant recipe pairs a frozen pretrained backbone with a linear softmax classification head trained one task at a time.

Softmax probabilities are unchanged if you shift all weights by a constant vector (a gauge freedom). Adding standard $\ell_2$ weight decay breaks that symmetry by pinning each task's weights to its own task centroid. Joint training on all tasks at once would pin every weight to a single global centroid. Because sequential learners never see all tasks together, cross-task comparisons inherit a permanent structural offset. Even with infinite data and vanishingly small weight decay, this coordinate mismatch survives.

Methods

Assuming class features follow Gaussian distributions with shared covariance $\Sigma$, the authors derive the exact closed form of a sequentially trained head in the population limit. Every comparison between a class from task $i$ and a class from task $j$ is shifted by a single fixed vector: $\Sigma^{-1}(\bar{\mu}^{(j)} - \bar{\mu}^{(i)})$, where $\bar{\mu}^{(t)}$ is task $t$'s feature centroid.

Geometry of post-hoc de-centering: translating per-task weight clouds from local task centroids to a shared global origin.

To undo this without changing training, they propose post-hoc de-centering:

  • What stays standard: Sequential within-task cross-entropy training runs completely untouched.
  • What is new: During training, you record each task's mean feature vector $\bar{\mu}^{(t)}$ and average squared Mahalanobis norm $\bar{S}^{(t)}$. At evaluation time, a single affine shift translates each task's weights ($w_r \mapsto w_r + \Sigma^{-1}\bar{\mu}^{(t)}$) and thresholds ($b_r \mapsto b_r - \frac{1}{2}\bar{S}^{(t)}$) to a common origin. In the population limit, this reproduces the Bayes-optimal Linear Discriminant Analysis (LDA) classifier—connecting standard cross-entropy heads to classic LDA-based continual learners—and comes with a pre-training diagnostic ($\kappa$, measuring cross-class vs. inter-task separation) to check if a feature geometry is vulnerable.

Datasets

No new datasets are introduced. Experiments evaluate frozen backbones (DINOv2, CLIP, MAE, ResNet-50, ViT-B/16, and all-MiniLM-L6-v2 for text) across:

  • CIFAR-100 (10 tasks of 10 classes).
  • DomainNet (5–6 domains treated as tasks over a shared 345-class space—used as a stress test that deliberately violates the disjoint-label assumption).
  • 20 Newsgroups (text classification replication outside vision).
  • (Note: ImageNet-100 and ImageNet-1K appear in initial accepted-run tables, but those benchmark rows were withdrawn when regenerating results from the released codebase and caches.)

Key Insights and Ideas

  • The Stronger-Backbone Paradox: We expect better feature extractors to separate tasks cleanly, increasing the inter-task Mahalanobis margin $\gamma_{ij}$. Yet the structural bias scales as $\sqrt{\gamma_{ij}}$—meaning the exact margin improvement a stronger backbone provides also enlarges the weight-space offset!
  • Geometry Decides Your Fate: Whether a larger bias hurts accuracy depends on alignment. If class differences align poorly with inter-task directions (such as an outlier class inflating a task's norm), cross-task error stays flat at $\approx 0.24$ or shoots toward $100\%$, regardless of margin. When cross-class distances outpace inter-task distances by a factor $\kappa > 1$, confusion decays exponentially.
  • A Slower Finite-Sample Speed Limit: Because the $\ell_2$ regularization bias is first-order around a shifted origin, empirical sequential heads converge at a sluggish $O(n_t^{-1/4})$ rate in sample size $n_t$. Removing the structural offset restores the crisp $O(n_t^{-1/2})$ parametric rate.

Key Results

Notably, the paper transparently reports discrepancies between earlier accepted numbers and those regenerated by the released code, withdrawing unreproduced claims to a provenance ledger and reporting exact regenerated outcomes:

  • Published CIL Checkpoints (Split-CIFAR-100, ViT-B/16): Applying post-hoc de-centering to released checkpoints of pure within-task cross-entropy prompt methods boosts accuracy by +5.9 to +6.3 points (L2P: $74.5\% \to 80.8\%$; DualPrompt: $76.2\% \to 82.5\%$; CODA-Prompt: $78.3\% \to 84.2\%$), with smaller gains on methods that already mitigate head bias (SLCA: +3.3, RanPAC: +2.0).
  • Out-of-Vision Replication: On 20 Newsgroups, de-centering yields a +7.30 point gain.
  • Regenerated Benchmarks (Mixed Outcomes): On DomainNet, unscaled de-centering beats the within-task baseline (DINOv2: $50.6\% \to 53.1\%$ vs. $68.3\%$ joint; CLIP: $53.8\% \to 62.9\%$ vs. $71.5\%$ joint). Adjusting for finite weight-decay shrinkage ($c_t \in [0.06, 0.08]$) recovers 93% of the joint-training gap on DINOv2 ($67.0\%$), though it over-corrects on CLIP and ViT. Conversely, on regenerated CIFAR-100 runs, unscaled de-centering drops below the uncorrected baseline ($61.4\%$–$62.5\%$ on DINOv2; $46.2\%$–$48.2\%$ on CLIP).

Limitations and Future Work

  • Gaussian & Shared-Covariance Assumptions: Exact bias cancellation assumes class features share an identical covariance $\Sigma$. Strong heteroskedasticity (varying class shapes) reduces the closed form to a first-order approximation, and severe cross-task aliasing ($\hat{\kappa} < 1$, affecting 3–8% of pairs in standard CE heads) breaks uniform confusion bounds.
  • Sensitivity to Head Scale ($c_t$): Real-world finite training leaves heads shrunk by a factor $c_t < 1$. Applying the unscaled theoretical offset can severely over-correct logits, making scale-matching backbone-dependent in practice.
  • Deployment Guidance: Because empirical gains vary across backbones and optimizers, the authors advise practitioners to run their pre-training feature diagnostics on their own backbones and re-estimate task statistics under distribution shifts.

Summary updated

Abstract

Class-incremental learners that train an ell_2-regularized softmax head separately on each task inherit a structural cross-task bias that no data or tuning removes. Assuming Gaussian features with shared covariance, we characterize the bias in closed form. Each task's head anchors at its centroid, so all cross-task decisions shift by one fixed offset, identical for all class pairs. The offset survives vanishing weight decay and is invariant to sample size and task order. That invariance makes the diagnosis falsifiable, and the correction is applied as one line at evaluation time. The margin a stronger backbone provides is the same quantity that enlarges the offset. We construct geometries where cross-task error stays bounded away from zero at any margin, and geometries where it tends to one. Under a testable separation condition, confusion decays exponentially. Post-hoc de-centering adds the offset to each task's weights and one scalar to its thresholds, matching the Bayes-optimal cross-task discriminator in the population limit. The same operation underlies LDA-style heads (SLDA, FeCAM, NCM). We identify it as the per-task affine correction that eliminates the structural bias, supported by an empirical diagnostic on five published methods and a finite-sample analysis. On the benchmarks the released protocol regenerates, the correction's effect is mixed and is reported as measured: the ordering WT < FIX < J holds on the two DomainNet configurations (DINOv2 50.6 < 53.1 < 68.3; CLIP 53.8 < 62.9 < 71.5), with the scale-matched correction recovering the gap on one of the three DomainNet backbones (DINOv2, 93%) and over-correcting on the other two, while on CIFAR-100 the unscaled correction lands 24 to 40 points below the accepted values and below the within-task baseline. The accepted recovery range of 82-94% of the joint-sequential gap (mean 90.5%) is not reproduced under the released protocol and is withdrawn; the benchmark rows the released code cannot regenerate are withdrawn to the provenance ledger, and every remaining empirical number is regenerated from the released caches.
BibTeX
@inproceedings{nori2026structural,
  author = {Milad Khademi Nori and Guanghui Wang},
  title = {{The Structural Bias of $\textbackslash\{\}ell\_2$-Regularized Cross-Entropy Heads in Class-Incremental Learning: Characterization, Limits, and a Gauge-Anchoring Fix}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xULFTd3ead},
}

Loading related content...

Figure