A Mahalanobis Margin Bound on Task Confusion in Pretrained Class-Incremental Learning: From Infeasibility to Exponential Attenuation

Milad Khademi Nori, Guanghui WangNeurIPS 2026

TL;DR

Recent theory proves it is mathematically impossible for standard sequential AI learners to match a model trained on all data at once—yet modern pretrained models routinely pull off 80–90% accuracy anyway. This paper resolves that paradox: when a foundation model has already carved up feature space cleanly, the remaining "unlearnable" confusion between tasks shrinks exponentially fast. Even better, you can predict this error ceiling in a single forward pass before training a single weight.

What Problem Does This Paper Address?

Imagine teaching a classifier to recognize dogs today, and birds tomorrow, without letting it revisit the dog photos—and then testing it on both without telling it which task an image belongs to. This is class-incremental learning (class-IL).

Most researchers obsess over catastrophic forgetting (CF): learning birds overwrites what you knew about dogs. Even if you cured forgetting completely, you still hit a brick wall called task confusion (TC). If you arrange all class-pair errors into a giant matrix, sequential training only ever touches the diagonal blocks (dogs vs. other dogs; birds vs. other birds). The off-diagonal blocks—distinguishing a dog from a bird—are never optimized together.

Sequential training only optimizes the green diagonal blocks, leaving the purple off-diagonal blocks—task confusion—completely untouched.

A 2024 Infeasibility Theorem proved that because of these untouched off-diagonal blocks, no discriminative sequential learner can ever reach the optimal performance of a jointly trained model. Yet, practitioners slapping lightweight heads onto frozen Vision Transformers (like DINOv2 or CLIP) are cruising to 80–90% accuracy, jumping up from the 30–50% seen in classical setups. Theory says they hit a wall; practice says they fly right over it. Why?

Methods

Instead of treating task confusion as a binary "possible vs. impossible" verdict, the authors turn it into a quantitative geometric bound for prototype-based classifier heads—specifically Linear and Quadratic Discriminant Analysis (LDA/QDA)—sitting atop frozen pretrained backbones.

  1. The Mahalanobis Margin ($\gamma_{\min}$): In a single forward pass over the dataset (no training required), they compute the centroids and feature covariance (spread) for each task. $\gamma_{\min}$ measures the worst-case covariance-adjusted distance between any two task centroids.
  2. Relaxed Infeasibility Bound: Using Chernoff–Bhattacharyya probability bounds, they prove that the task-confusion gap for a forgetting-optimal prototype head decays exponentially with $\gamma_{\min}$—at an operational rate of $\exp(-\gamma_{\min}/8)$ when classes within a task are tightly clustered.
  3. Heavy-Tailed Clipped SGD & Excess Risk Decomposition: Real-world neural gradients are noisy and heavy-tailed (extreme outliers happen). Applying clipped SGD (truncating huge gradients) to class-IL for the first time, they split total excess error into two cleanly separated buckets: $E_{\text{CF}} + E_{\text{TC}}$. Forgetting error ($E_{\text{CF}}$) depends on optimization budget and gradient noise; confusion error ($E_{\text{TC}}$) depends on backbone separation ($\gamma_{\min}$).
  4. Representation Drift: They derive a linear upper bound on how fast fine-tuning degrades $\gamma_{\min}$, yielding a "critical horizon" $t^\star$ for when to freeze the backbone.

Datasets

The authors evaluate three pretrained ViT-B/16 backbones (ViT-IN21K, CLIP, and DINOv2) across four standard class-incremental benchmarks (no new datasets introduced):

  • Split-CIFAR-100
  • Split-ImageNet-R
  • Split-CUB-200
  • Split-OmniBenchmark

Key Insights and Ideas

  • Pretraining turns a hard wall into a vanishingly thin veil: The original Infeasibility Theorem corresponds to random initialization ($\gamma_{\min} \approx 0$). Foundation models live in the large-$\gamma_{\min}$ regime, where distinct visual concepts already sit in distant galaxies of feature space, attenuating cross-task confusion exponentially.
Figure 2: The Mahalanobis margin γmin(ϕ) controls the task-confusion ceiling exponentially: panels (a)–(c) show the same two-task geometry at three margins. Near-overlap (a, γmin ≈0.3): the Infeasibility Theorem (Theorem 2.1) binds. Moderate separation (b, γmin ≈12, ViT-B/16-IN21K): TC gap ∼22%. Clean separation (c, γmin ≈45, DINOv2): TC gap under 0.5%, recovering nearly the full joint-training performance. Annotations evaluate the operational rate exp(−γmin/8) (Corollary 3.5).
  • Forgetting and confusion don't talk to each other: Because $E_{\text{CF}}$ and $E_{\text{TC}}$ have disjoint dependencies, you get a clean diagnostic tool. If $\gamma_{\min}$ is tiny, training longer won't save you—swap your backbone. If $\gamma_{\min}$ is huge (like DINOv2) and accuracy still lags, your bottleneck is purely optimization ($E_{\text{CF}}$).
  • Folk wisdom, formalized: Practitioners have long known to freeze pretrained backbones early during continual learning. The paper's drift bound explains why: fine-tuning erodes $\gamma_{\min}$ at most linearly with your step size, eventually letting task confusion creep back in past horizon $t^\star$.

Key Results

  • Backbone Geometry Ranking: Across all four datasets, $\widehat{\gamma}_{\min}$ consistently ranks DINOv2 ($[39.1, 51.8]$) $>$ CLIP ($[18.9, 31.4]$) $>$ ViT-IN21K ($[5.2, 12.1]$), matching real-world benchmark accuracy rankings.
  • In-Scope Verification (LDA): On all 12 backbone-dataset pairs, direct LDA evaluation yields a task-confusion gap below $10^{-10}$ (numerical solver precision), hitting the theoretical feasibility limit.
  • Out-of-Scope Softmax Extension: On standard softmax cross-entropy heads, $\log(\text{TC gap})$ still shrinks as $\widehat{\gamma}_{\min}$ grows, but about ten times slower than the idealized rate: a pooled slope of $-0.012$ (95% CI $[-0.019, -0.004]$) vs. $-0.125$ ($-1/8$). Why? Real tasks violate the tight within-task spread condition (measured spread ratios of $2.1\text{–}4.7$ vs. the required $\le 0.5$).
  • Disjoint Convergence: On Split-CIFAR-100 at $K = 32,000$ steps, $E_{\text{CF}}$ for ViT-IN21K ($0.045$) and DINOv2 ($0.043$) land within 5% of each other despite a $5\times$ difference in $\widehat{\gamma}_{\min}$.
  • Diagnostic-Guided Training: Setting clipped-SGD schedules directly from measured noise/curvature constants (with no method-specific hyperparameter tuning) reaches 82.1% on Split-ImageNet-R—right on the heels of heavily tuned state-of-the-art methods like MOS (82.7%), and edging out top baselines by $0.2\text{–}0.4$ percentage points on three benchmarks.

Limitations and Future Work

  • Narrow Formal Scope: Theorem 3.4 formally binds LDA/QDA heads under Gaussian feature assumptions and tight within-task class spread. Nearest-class-mean (NCM) and standard softmax cross-entropy heads sit outside this formal guarantee, and real datasets violate the spread condition.
  • Loose Numerical Bounds & Simple Proxies: $E_{\text{TC}}$ is several orders of magnitude looser than empirical residuals (offering directional rather than exact numerical predictions). Moreover, in nested regressions, $\widehat{\gamma}_{\min}$ ($R^2 = 0.88$) adds no statistically significant predictive power ($\Delta R^2 = 0.001, p = 0.857$) above simple linear-probe accuracy ($R^2 = 0.85$).
  • Open Questions: Extending the proofs from Gaussian to general sub-Gaussian feature distributions, relaxing local Lipschitz assumptions on self-attention for drift bounds, and finding step schedules that recover the theoretical $-1/2$ strongly convex convergence slope remain open avenues for future work.

Summary updated

Abstract

Class-incremental learning (class-IL) faces a structural obstacle: discriminative sequential training optimises only the diagonal blocks of a pairwise loss matrix, leaving the inter-task blocks, task confusion (TC), unminimised. A recent Infeasibility Theorem proves that no discriminative class-IL learner can attain the joint-training optimum even when catastrophic forgetting (CF) is perfectly addressed. We show that pretraining \emph{exponentially attenuates} this obstacle. In the negligible-spread regime, the TC gap of any CF-optimal prototype-based learner on a pretrained backbone is bounded by $\exp(-\gamma_{\min}/8)$. Here $\gamma_{\min}$ is the worst-case Mahalanobis margin between task centroids, a scalar computable in one forward pass. The bound yields a diagnostic decomposition of class-IL excess risk into $E_{\mathrm{CF}} + E_{\mathrm{TC}}$ with disjoint dependencies on optimisation budget and backbone quality. Within the formal scope, direct LDA verification on 12 (backbone, dataset) configurations spanning ViT-IN21K, DINOv2 and CLIP yields a TC gap below $10^{-10}$, attaining the feasibility limit. Outside it, on softmax cross-entropy heads at their regularised minimisers, the pooled slope of $\log$ TC gap against $\widehat\gamma_{\min}$ is $-0.012$ (95\% CI $[-0.019, -0.004]$) against the operational $-1/8$; the within-task spread condition (S$'$) does not hold on these configurations (measured spread ratios 2.1 to 4.7 against the required $1/2$), so the bound is reported with its measured exponent. The convergence exponent is reported as measured under a fully specified protocol, every number regenerated from the released caches. A training schedule derived from $\gamma_{\min}$ and from heavy-tail indices estimated from gradient noise is competitive with strong pretrained class-IL baselines on four standard benchmarks.
BibTeX
@inproceedings{nori2026mahalanobis,
  author = {Milad Khademi Nori and Guanghui Wang},
  title = {{A Mahalanobis Margin Bound on Task Confusion in Pretrained Class-Incremental Learning: From Infeasibility to Exponential Attenuation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Yljy4oNHZD},
}
Figure