AdaPrior: Bayesian-Inspired Adaptive Prior Correction for Long-Tailed Continual Learning

S Divakar Bhat, Amit Popat More, Mudit Soni, Bhuvan AggarwalCVPR 2026

TL;DR

AdaPrior tackles Long-Tail Class Incremental Learning (LTCIL) by framing it as a problem of dynamic prior misalignment. By tracking and correcting the model's drifting internal priors online using an exponential moving average, it unifies training-time loss adjustment and inference-time post-hoc correction into a simple, single-stage framework that achieves state-of-the-art performance without complex multi-stage retraining.

What Problem Does This Paper Address?

Real-world data streams are rarely neatly balanced or static. In Long-Tail Class Incremental Learning (LTCIL), machine learning models face two massive hurdles simultaneously: catastrophic forgetting (forgetting old tasks as new ones arrive) and severe class imbalance (head classes dominating tail classes).

Existing approaches usually tackle these problems in isolation or rely on cumbersome multi-stage training pipelines (like fine-tuning the model on a balanced subset after main training). The authors identify a hidden failure mode in these scenarios: prior drift. As a model learns sequentially, its internal predictions increasingly favor recently seen classes, regardless of the actual data distribution. This "model-induced prior" skews the model's decision-making away from the optimal baseline. Static, count-based adjustments fail here because the bias is dynamic and driven by the training process itself.

Figure 1. [Left] Prior drift in LTCIL. Marginal class probabilities for old classes (1–90) on ImageNet-subset-LT show that both classical (LUCIR+CE) and recent methods (GVAlign [21]) develop a strong bias toward new-task classes as training progresses. AdaPrior Loss substantially reduces this drift (blue), and the remaining residual bias is removed by the lightweight AdaPrior post-hoc correction (dashed- green), together forming Full AdaPrior. [Center] AdaPrior concept. Conventional LTCIL implicitly inherits a drifting model-induced prior, producing increasingly biased posteriors. AdaPrior explicitly tracks this prior using EMA and applies adaptive Bayesian alignment, maintaining stable predictions across tasks. [Right] Effect of AdaPrior post-hoc. The post-hoc correction raises the score of the ground- truth class while suppressing incorrect logits, yielding more calibrated and balanced predictions.

Methods

The authors introduce AdaPrior, a single-stage Bayesian framework that dynamically estimates and corrects this model-induced prior both during and after training. It consists of two main components:

  1. AdaPrior Loss (Training-time): Instead of using static class counts to adjust the loss function, AdaPrior incorporates an online estimate of the model's evolving prior directly into a modified cross-entropy loss. This prevents the gradients from being dominated by majority or recently seen classes.
  2. AdaPrior Post-hoc (Inference-time): A lightweight logit adjustment applied during inference that refines predictions by shifting scores back toward a balanced target distribution, tempering the correction based on how stable the estimated prior is.

Together, these form Full AdaPrior. The core mechanism driving this is an Exponential Moving Average (EMA) that tracks the model's predictions across batches online, requiring virtually zero extra computational or memory overhead.

Figure 2. Block diagram showing the overall flow of the proposed AdaPrior approach. The Full AdaPrior approach (Left) where we first use AdaPrior loss to train a debiased model and further remove residual bias using AdaPrior post-hoc. Training-time AdaPrior Loss (Bottom Right) debiases optimization, while the lightweight post-hoc correction (Top-Right) refines predictions during inference.

Datasets

The framework was evaluated across several challenging long-tailed continual learning benchmarks:

  • CIFAR100-LT: A standard benchmark with an imbalance factor (IF) of 100.
  • ImageNet-subset-LT: A 100-class subset of ImageNet with IF=100.
  • Food-101-LT: Used for supplementary validation.
  • iNaturalist18-subset: A new, harsher benchmark introduced by the authors. They sampled 100 classes from the naturally imbalanced iNaturalist18 dataset, retaining an extreme imbalance factor of approximately 435 to better mimic real-world deployment.

Key Insights and Ideas

  • Model-Induced vs. Dataset Priors: The dominant source of bias in continual learning isn't just the raw class counts in the training set, but the model-induced prior created by sequential optimization and replay imbalance.
  • Dynamic over Static: Traditional logit adjustment methods assume static data distributions. AdaPrior proves that temporally adaptive Bayesian alignment is necessary—and theoretically sound—when distributions drift.
  • Single-Stage Efficiency: Unlike popular two-stage methods that require an extra balanced fine-tuning phase, AdaPrior achieves better results in a single stage, operating purely at the logit-prior interface. This makes it entirely backbone-agnostic.

Key Results

AdaPrior consistently outperformed both classical continual learning baselines and recent state-of-the-art LTCIL methods across all datasets and task configurations (e.g., 5-task and 10-task splits).

  • Accuracy Gains: On the highly challenging, naturally imbalanced iNaturalist18-subset, Full AdaPrior achieved an incremental accuracy of 74.41% (Ordered, 5 Tasks), significantly outperforming the recent two-stage method GVAlign (72.42%).
  • Robustness to Extreme Scarcity: As the number of exemplars stored in the memory buffer was reduced (down to just 5 per class), competing methods degraded sharply, while AdaPrior maintained stable performance.
  • Improved Calibration: AdaPrior systematically lowered both Expected Calibration Error (ECE) and Negative Log-Likelihood (NLL), meaning the model's confidence scores became much more reliable and less overconfident on majority classes.
Figure 4. Performance of our approach compared to other baseline approaches with (a,b) different imbalance factor on CIFAR100 for 10 task and 5 task settings respectively, with different number of exemplars per class for the (b) 5-tasks and (c) 10-tasks setting of ImageNet- subset-LT dataset. All of these depict the superiority of the AdaPrior irrespective of the number of exemplars used or extent of imbalance.

Limitations and Future Work

The theoretical analysis and practical implementation of AdaPrior rely on the assumption of approximately stable conditionals—meaning the underlying features and characteristics of a class don't radically shift context across tasks, even if its frequency does.

For future directions, because AdaPrior modifies only the probabilistic head of the network and remains agnostic to the feature extractor, the authors note that it is conceptually applicable beyond standard CNNs. A promising next step is extending this adaptive prior correction framework to transformer-based architectures and multimodal models.

Summary updated

BibTeX
@inproceedings{bhat2026adaprior,
  author = {S Divakar Bhat and Amit Popat More and Mudit Soni and Bhuvan Aggarwal},
  title = {{AdaPrior: Bayesian-Inspired Adaptive Prior Correction for Long-Tailed Continual Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=vXTalXiYXr},
}
Figure