Interactive note · NeurIPS 2026
A Theoretical Bridge Between Long-Tailed Recognition and Continual Learning
[arXiv, BibTeX]Theorem numbers on this page follow the NeurIPS 2026 version. The arXiv preprint is an earlier version, titled On the Relationship Between Continual Learning and Long-Tailed Recognition, and numbers some results differently until the camera-ready is posted.
Train on long-tailed data and the weights land within \(\mathcal{O}(1/\sqrt{\mathrm{IF}})\) of a model that only ever saw the Head.
So the Tail is effectively a new task. Long-tailed recognition becomes a continual learning problem.
Under the theorem's local assumptions, a standard continual-learning objective upper-bounds the balanced loss. Optimizing it lowers that bound; experiments show improved balanced performance.
Most classes are rare
Real datasets are rarely balanced. A few Head classes have plenty of examples and a long Tail of classes has very few. Benchmarks like CIFAR-100-LT build this in on purpose: class \(c\) keeps \(500 \cdot \mathrm{IF}^{-c/99}\) images, so the largest class is IF times the smallest.
The imbalance factor, IF, is the single number this page is about. Move it and watch where the data goes.
Training lands next to the Head
Below is a real model, trained in your browser. Six classes live in the plane: three Head classes with 300 points each and three Tail classes with 300/IF each. The model is softmax regression with cross-entropy and a small \(L^2\) penalty, which is the convex setting of Theorem 3.3.
We train it twice. Once on the Head alone, giving \(\theta^\star_H\). Then on the full long-tailed set, giving \(\theta^\star\). The question is how far apart they end up.
Training on a long-tailed dataset leaves the weights in a neighborhood of the Head-only solution whose radius shrinks with the imbalance:
This is what you see on the left. The long-tailed model behaves almost exactly like a model that never saw the Tail. Theorem 3.5 extends the result from the convex case to feedforward networks under the Kurdyka–Łojasiewicz condition, where \(S_H\) is the set of Head minimizers, and Theorem 3.7 extends it to any number of Head–Tail partitions.
Why the square root?
At \(\theta^\star\) the gradients balance: the Head's pull toward \(\theta^\star_H\) cancels the Tail's pull away from it. The Tail's share of the averaged loss shrinks with its sample count, so its pull is weak and \(\theta^\star\) can only move a short distance before the Head's restoring force catches up. Appendix C.1 turns this into the bound above.
Learn the Tail as a new task
If a long-tailed model is already a Head model, then learning the Tail is a second task that arrives after the first. That is a continual learning problem. Proposition 3.9 makes it exact: split the data into partitions sorted by size and treat each one as the next task in a stream.
The obvious approach is to fine-tune on the Tail. It fails in the familiar way, called catastrophic forgetting. Continual learning methods add a penalty that holds on to what was learned. In its simplest form, the parameter route of Eq. 6, the objective for stage two is
Start from the Head-only model at IF = 20 and try both. The figure uses a held-out balanced test set, 200 points per class.
Under local smoothness of \(\mathcal{L}_H\) around \(\theta^\star_H\), if \(\beta \ge \beta_{\min} = L^{\mathrm{sm}}_H / 2m_\Psi\) (or the output-distillation weight \(\alpha \ge \alpha_{\min}\)), then for every \(\theta\) in that neighborhood
The right-hand side differs from the CL objective only by a constant. So any optimizer that decreases \(\mathcal{L}_{\mathrm{CL}}\) decreases a certified upper bound on the balanced loss: inside the neighborhood, the balanced loss can never exceed it. An upper bound alone does not make the balanced loss fall at every step; in a special convex case, with the Head loss itself as the penalty, the paper shows the two objectives differ only by a constant and so share their minimizers (Appendix C.8). Off-the-shelf CL methods such as EWC, LwF, GPM, SGP, FOSTER, TPL and DualPrompt all fit the form of Eq. 6.
The threshold is local: it holds inside the neighborhood where the smoothness constant was measured. In the toy above, runs with a very small β wander far from \(\theta^\star_H\), leave that neighborhood, and the bound stops holding. The green tick on the slider marks where it starts holding on this problem. In the paper's ResNet-18 setting, standard CL methods clear \(\beta_{\min}\) by orders of magnitude (Appendix G.5).
How many stages?
A long tail can be split into more than two tasks. More partitions make each one closer to balanced: with \(N\) partitions the local imbalance is \(\mathrm{IF}^{1/N}\). But every extra task is another chance to forget. Proposition 3.10 prices both sides with a bias term and a forgetting term, where \(\eta\) is the forgetting coefficient of the CL method:
What the experiments show
Distance scales linearly with \(1/\sqrt{\mathrm{IF}}\)
logistic regression, MNIST-LT
ResNet-18, CIFAR-100-LT
The same measurement as §2, with and without weight decay. The deep, non-convex case follows the prediction of Theorem 3.5.
Head first, then Tail
CLTR (SGP) on CIFAR-100-LT at IF = 100. Reversing or shuffling the order loses 15 to 18 points, as the theory predicts.
Adapting CLIP to long-tailed data
CLIP ViT-B/32 on CIFAR-100-LT, top-1 accuracy. CLTR with DualPrompt beats full fine-tuning by 5.8, 7.1 and 5.0 points without any extra semantic supervision.
| Method | IF 100 | IF 50 | IF 10 |
|---|---|---|---|
| Zero-shot CLIP | 64.5 | 64.5 | 64.5 |
| Linear probe | 60.0 | 67.2 | 75.6 |
| Prompt learning | 60.4 | 63.1 | 66.9 |
| Naive sequential | 48.0 | 51.2 | 53.1 |
| Full fine-tuning | 73.4 | 74.8 | 81.0 |
| CLTR (DualPrompt) | 79.2 | 81.9 | 86.0 |
With a single model and no extra supervision, CLTR is competitive with the strongest single-model LTR methods across CIFAR-100-LT, CIFAR-10-LT and ImageNet-LT, and gives the best reported numbers on CIFAR-10-LT (84.7 and 87.6 at IF 100 and 50, with TPL) and ties the best on ImageNet-LT (53.9). The paper also covers long-tailed class-incremental learning and the naturally skewed Caltech256.
BibTeX
@inproceedings{molahasani2026bridge,
title = {A Theoretical Bridge Between Long-Tailed
Recognition and Continual Learning},
author = {Molahasani, Mahdiyar and Greenspan, Michael
and Etemad, Ali},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}
The models in §2 and §3 are trained live in your browser: 6-class softmax regression on 2-D data, full-batch gradient descent with momentum. The numbers in §5 are from the paper.