A Theoretical Bridge Between Long-Tailed Recognition and Continual Learning

Mahdiyar Molahasani, Michael Greenspan, Ali EtemadNeurIPS 2026

TL;DR

When you train a neural network on heavily imbalanced, "long-tailed" data, the rare classes essentially get ignored—mathematically, the model’s weights land right next door to where they would be if you had only trained on the common classes. By proving this geometric quirk, the authors show that learning from imbalanced data can be reformulated as a sequential Continual Learning problem: learn the common classes first, then learn the rare ones without forgetting what you already know. Best of all, this means you can grab standard, off-the-shelf continual learning algorithms to solve long-tailed recognition—no custom optimizer required.

What Problem Does This Paper Address?

Nature doesn't hand out data evenly. In the real world, datasets follow a "long-tailed" distribution: a few "Head" classes have abundant examples (think pigeons and robins), while a vast majority of "Tail" classes have very few (think rare tropical birds). Yet, when we deploy a model, we usually want it to perform equally well across all classes—a challenge known as Long-Tailed Recognition (LTR).

Standard training fails here because the sheer volume of Head samples hijacks the gradients, leaving the model blind to the Tail. Researchers have tackled this with re-sampling, custom loss functions, and multi-stage training. Meanwhile, in a parallel universe of machine learning, Continual Learning (CL) researchers have spent years figuring out how to teach models sequential tasks without suffering from "catastrophic forgetting" (overwriting old knowledge with new knowledge). Despite obvious structural similarities between multi-stage LTR and sequential CL, the two fields have operated independently. This paper asks: Can we build a rigorous mathematical bridge between them and use standard CL tools to solve LTR?

Methods

Instead of inventing a brand-new optimization trick, the authors build a theoretical bridge and a practical wrapper called CLTR (Continual Learning for Long-Tailed Recognition).

Figure 1: Overview of our framework: (left) theoretical analysis of convergence under the LTR setup, showing how imbalance drives convergence toward head-class solutions; (middle) our proposed CLTR reformulating LTR as a CL problem; and (right) the conditional optimization guarantee establishing that the CL objective upper-bounds the balanced LTR loss up to an additive constant.

Here is how CLTR works:

  1. Sort and Partition: Classes are sorted from largest to smallest and sliced into $N$ disjoint subsets (tasks), moving from Head to Tail.
  2. Principled Slicing: What is new here is a mathematical criterion (Proposition 3.10) that picks the optimal number of partitions $N$ and sets boundaries so each slice has an equalized local imbalance factor ($\text{IF}^{1/N}$). Stronger CL methods that forget less can handle more slices (e.g., $N=4$), while more sensitive methods use fewer ($N=2$).
  3. Plug-and-Play Sequential Training: The model trains on the Head partition first, then steps through the Tail partitions sequentially using standard, off-the-shelf CL algorithms—like EWC, LwF, GPM, FOSTER, SGP, TPL, or DualPrompt—to learn rare classes while anchoring its Head knowledge.
Weight space trajectories showing how CLTR guides parameters to the intersection of good Head and Tail performance

Datasets

No new datasets are introduced; instead, the authors validate their theory and framework across a suite of established benchmarks:

  • Toy & Verification: MNIST-LT and CIFAR100-LT (synthetically skewed versions where class sizes decay exponentially based on an Imbalance Factor, $\text{IF}$, which is the ratio of the largest class size to the smallest).
  • Standard LTR Benchmarks: CIFAR10-LT, CIFAR100-LT, and large-scale ImageNet-LT.
  • Naturally Skewed & Extensions: Caltech256 (naturally imbalanced images), CIFAR100-LT-CIL (class-incremental learning), and 20 Newsgroups-LT (text classification, detailed in the appendix).

Key Insights and Ideas

  • The $1/\sqrt{\text{IF}}$ Neighborhood Law: Why does standard training fail on the Tail? The authors prove that in both convex models and nonconvex ReLU deep networks, training on the full imbalanced dataset drives weights into an $\mathcal{O}(1/\sqrt{\text{IF}})$ neighborhood of the Head-only solution. As imbalance grows, the full training run mathematically collapses toward acting as if the Tail wasn't even there.
  • CL is a Surrogate Upper Bound for Balanced Loss: Sequential training isn't just a heuristic hack. Using a unified Bregman-divergence view of CL, the authors prove (Theorem 3.12) that if CL regularization is strong enough, the CL objective upper-bounds the ideal balanced LTR loss (up to a small constant based on residual Head loss). Driving down the CL loss certificates a low balanced loss.
  • Full-Strength Tail Gradients: In a standard balanced loss, Head and Tail losses are weighted equally ($\frac{1}{2}\mathcal{L}_H + \frac{1}{2}\mathcal{L}_T$). In CLTR's sequential stages, the model optimizes the full Tail loss ($\mathcal{L}_T$) while regularizers guard the Head—giving rare classes extra learning emphasis without wrecking prior features.

Key Results

  • Theory Meets Reality: When plotting weight distances between full-dataset and Head-only models against $1/\sqrt{\text{IF}}$, linear regressions hit $R^2 \ge 0.97$ on MNIST-LT (logistic regression) and $R^2 \ge 0.98$ on CIFAR-100 (ResNet-18), nailing the theoretical scaling prediction.
  • Strong Benchmark Accuracy: Pairing CLTR with strong CL methods matches or beats specialized LTR baselines. On CIFAR10-LT, CLTR (TPL) hits 84.7% ($\text{IF}=100$) and 87.6% ($\text{IF}=50$), taking top spots. On ImageNet-LT, CLTR (TPL) ties for best at 53.9% Top-1 accuracy. On CIFAR100-LT ($\text{IF}=50$), CLTR (SGP) achieves a best-in-table 58.0%.
  • Foundation Model Adaptation: Adapting a pretrained CLIP ViT-B/32 backbone on CIFAR100-LT via CLTR (DualPrompt) reaches 79.2%, 81.9%, and 84.0% accuracy across $\text{IF}=100, 50, 10$—beating full fine-tuning by 5.8, 7.1, and 3.0 percentage points, and rivaling specialized methods that rely on external semantic text supervision.

Limitations and Future Work

  • Partitioning Simplifications: The parameter-distance proofs rely on grouping classes into discrete partitions; deriving closed-form bounds for fully continuous class-size distributions remains an open math problem.
  • Sufficient, Not Necessary, Bounds: The authors prove sufficient regularization thresholds to guarantee the balanced-loss upper bound, leaving the exact characterization of the optimal stability–plasticity trade-off for future work.
  • Broader Tasks & Dynamic CL: Aside from preliminary text experiments, testing is focused on image classification (leaving object detection, segmentation, and regression open). Finally, because CLTR uses static partitions and off-the-shelf CL methods, the authors suggest building an adaptive, LTR-aware CL algorithm that estimates forgetting on the fly and dynamically adjusts partition boundaries during training.

Summary updated

Abstract

We theoretically and empirically establish a previously unexplored connection between Long-Tailed Recognition (LTR) and Continual Learning (CL). Specifically, we show that training on a long-tailed dataset with imbalance factor $\mathrm{IF}$ drives model parameters into an $\mathcal{O}(1/\sqrt{\mathrm{IF}})$ neighborhood of the dominant-class solution, under both uniform and exponentially decaying cardinality distributions. Building on this result, we establish an objective-level reformulation of LTR as a sequential learning problem and prove that the CL objective upper-bounds the balanced LTR loss up to a constant determined by the residual Head loss. Motivated by this connection, we introduce Continual Learning for Long-Tailed Recognition (CLTR), a principled framework that leverages standard off-the-shelf CL methods to sequentially learn Head and Tail classes while mitigating catastrophic forgetting. Extensive experiments on CIFAR100-LT, CIFAR10-LT, ImageNet-LT, and Caltech256 validate our theoretical predictions and demonstrate strong performance across diverse LTR benchmarks. In the foundation-model regime, CLTR with DualPrompt on a CLIP backbone outperforms standard adaptation baselines and is competitive with specialized methods using external semantic supervision. Our work bridges LTR and CL both theoretically and empirically, providing a principled approach for addressing long-tailed learning using standard CL strategies.
BibTeX
@inproceedings{molahasani2026theoretical,
  author = {Mahdiyar Molahasani and Michael Greenspan and Ali Etemad},
  title = {{A Theoretical Bridge Between Long-Tailed Recognition and Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wERJT1NgQB},
}
Figure