Not All Routing Drift Is Harmful: Trust-Region Projection for Class-Incremental Learning

Tae-Hwan Kim, Sung-Bae ChoNeurIPS 2026

TL;DR

When teaching AI new tasks sequentially using Mixture-of-Experts (MoE) modules, the "traffic controller" (router) gradually changes its mind about where to send familiar data—a phenomenon called routing drift that causes catastrophic forgetting. Surprisingly, small shifts in routing are mostly harmless (and sometimes helpful!), while large shifts do nearly all the damage. By borrowing the "trust-region" concept from numerical optimization, the authors build a guardrail that reins in extreme routing detours while letting mild, adaptive variations pass right through.

What Problem Does This Paper Address?

Imagine trying to learn French without forgetting your high school Spanish, and you aren't allowed to review your old Spanish flashcards. In machine learning, this is rehearsal-free Class-Incremental Learning (CIL): a model must continuously learn new classes over time without revisiting old training samples, and then classify everything it has ever seen at test time without knowing which "task" an image belongs to.

Today's go-to recipe takes a frozen pre-trained Vision Transformer (ViT) and snaps on lightweight, trainable Mixture-of-Experts (MoE) adapters. A learned "router" looks at each input image and activates a sparse subset of specialist adapters. It’s great in theory—old tasks reuse established experts, and new tasks claim fresh capacity.

In practice, there's a catch. As the router updates on new tasks, its output probabilities shift. An image of a golden retriever that used to go to Expert A might suddenly get rerouted to Expert C.

Figure 1: Routing drift in MoE-based continual learning. After learning Task t (t > 1), the same input x is redirected to a different adapter due to shifts in the router’s output distribution, disrupting consistent module reuse.

Prior fixes either freeze the router completely (killing plasticity), add new routers per task, or pull all routing decisions back toward earlier states. Nobody had actually looked under the hood at individual data points to ask: does every shift in routing actually hurt?

Methods

To protect memory without putting the model in a straitjacket, the authors propose Trust-Region Projected Routing (TRPR), plugged into every layer of a frozen ViT backbone. Instead of standard single-router MoE, TRPR splits routing into two parallel pathways fused by a learned gate:

Figure 3: Overview of TRPR. The TRP path projects the current routing distribution within a KL-bounded trust region around a class-conditional reference; the IA path provides unconstrained instance-level routing; a learned gate fuses the two.
  1. Class-Conditional Reference Bank (Novel): As the model trains, it maintains a lightweight running average (via exponential moving averages) of two things per class: a visual prototype (average patch features) and its typical routing distribution. At test time, an input finds its nearest class prototype via cosine similarity to look up how that class should generally be routed.
  2. Trust-Region Projected (TRP) Path (Novel): Borrowed from constrained optimization, this path checks the Kullback–Leibler (KL) divergence between the router's raw output and the retrieved class reference. If the drift is within a safe radius ($\varepsilon$), TRPR does nothing! If it exceeds $\varepsilon$, TRPR mathematically projects the routing distribution back onto the boundary of the safe zone via geometric-mixture interpolation (solved cleanly via bisection), before picking the top-$k$ adapters.
  3. Instance-Adaptive (IA) Path (Complementary): Because anchoring to a class average can wash out quirky, sample-specific details, a parallel, unconstrained MoE router looks at the ViT's class token to handle fine-grained per-image specialization. A lightweight MLP gate dynamically blends the TRP and IA outputs.

Standard cross-entropy training is paired with three lightweight regularizers: standard MoE load-balancing on the IA path, knowledge distillation on old-class logits, and a class-wise diversity loss so different classes don't all pile onto the exact same TRP adapters.

Datasets

TRPR is evaluated on four standard rehearsal-free CIL image benchmarks (no new datasets are introduced):

  • CIFAR-100 (split into 10 tasks)
  • ImageNet-R (tested across 5-, 10-, 20-, and extreme 50-task streams)
  • ImageNet-A (20- and 50-task streams of naturally adversarial examples)
  • VTAB (5 diverse visual tasks)

Key Insights and Ideas

Before building TRPR, the authors ran a clever oracle diagnostic on a vanilla MoE model, splitting Task-1 samples into "High-drift" and "Low-drift" cohorts and testing what happens if you artificially restore their original routing. Three "aha" moments emerged:

Figure 2: Old-class accuracy of Task-1 instances grouped by routing-drift magnitude (High: solid, Low: dashed), averaged over three random task orderings.
  • Forgetting is asymmetrically concentrated in high drift: High-drift samples suffer steep accuracy drops, whereas low-drift samples barely degrade. Isolating router perturbations confirmed that large drift directly drives forgetting.
  • Small drift isn't a bug—it can be a feature: Clamping low-drift samples back to their exact original routing yielded almost zero benefit. On CIFAR-100, letting them drift slightly actually improved accuracy, meaning mild routing shifts help the network adapt. Uniformly penalizing all drift (like standard KL regularization does) throws away free plasticity.
  • Class averages are a cheap, near-oracle anchor: Storing every training image's original routing violates rehearsal-free rules and eats memory (50,000 vectors for CIFAR-100). Restoring routing using just one mean vector per class (100 vectors) recovered nearly as much accuracy as an exact per-image oracle.

Key Results

Tested on a frozen ViT-B/16 against nine PEFT-based CIL baselines (including L2P, CODA-P, InfLoRA, EASE, ADAM, and SEMA), TRPR sweeps the board across every dataset and task length:

  • Consistent Accuracy & Stability Gains: TRPR beats all baselines by up to 3.06% in average and final accuracy while cutting forgetting by up to 2.48%. For example, on VTAB, final accuracy jumps from 87.40% (SEMA) to 90.46%, and CIFAR-100 average accuracy reaches 93.38% (with just 4.11% forgetting).
  • Long-Horizon Resilience: In a grueling 50-task setup (only 4 classes per increment), TRPR hits 71.34% final accuracy on ImageNet-R (beating runner-up SEMA by 4.31%) and 52.34% on ImageNet-A (+3.16% over SEMA).
  • Beating Alternative Stabilizers: Swapping trust-region projection for EMA routers, frozen routers, StableMoE distillation, or soft KL penalties drops final accuracy by 1.7%–4.5% on ImageNet-R, proving that selective, continuous correction is the secret sauce.

Limitations and Future Work

The authors candidly note two main boundaries to their work:

  • Only the router has guardrails: While TRPR stabilizes routing decisions, the expert adapters themselves, the gating MLPs, and the linear classifier head still shift across tasks and contribute to forgetting. Extending selective trust-region constraints to those parameters is a natural next step.
  • Single-prototype class anchors: Representing an entire class with one EMA centroid and one routing vector can struggle to capture rich intra-class variety (e.g., vastly different dog breeds or camera angles) and may drift over very long streams, pointing toward richer multi-prototype anchoring in future work.

Summary updated

Abstract

Class-incremental learning (CIL) with pre-trained models has increasingly adopted Mixture-of-Experts (MoE) adapters, which freeze the backbone and selectively route inputs to sparse adapter subsets, achieving competitive performance through efficient parameter reuse. As new tasks are learned sequentially, however, the router's output distribution gradually shifts away from earlier states, undermining consistent adapter reuse and accelerating forgetting. Through a controlled instance-level analysis, we show that this effect is highly asymmetric, where instances with large routing drift account for most of the performance degradation, while those with small drift remain largely stable. This finding suggests that only excessive drift requires correction, while small drift need not be suppressed. Motivated by this, we propose Trust-Region Projected Routing (TRPR), which adapts the trust-region principle from constrained optimization to routing stabilization. It constrains each input's routing distribution within a KL-bounded trust region around a class-level anchor, correcting only excessive deviations while leaving small drift intact. To complement class-level anchoring with per-sample adaptability, TRPR additionally introduces an Instance-Adaptive (IA) path for fine-grained per-sample specialization, fused with the projected path via a learned gate. Extensive experiments on four CIL benchmarks show that TRPR consistently outperforms nine representative PEFT-based baselines, with accuracy gains of up to 3.06% in average and final accuracy and forgetting reduced by as much as 2.48%. Code is available at https://github.com/Tae-Hwanii/TRPR.
BibTeX
@inproceedings{kim2026not,
  author = {Tae-Hwan Kim and Sung-Bae Cho},
  title = {{Not All Routing Drift Is Harmful: Trust-Region Projection for Class-Incremental Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WklS219u5L},
}
Figure