Class-Incremental Learning via LoRA-based Elastic Ensemble of Experts

Ruilong Yu, Fei Ye, Zhiyuan Ren, Qihe Liu, Adrian G. Bors, Rongyao Hu, shijie zhouNeurIPS 2026

TL;DR

Teaching a vision model new classes sequentially usually forces an ugly choice: spawn a new adapter for every task (bloating your model) or force tasks to share parameters (causing catastrophic forgetting). This paper introduces the Elastic Ensemble of Experts ($\mathbf{E}^3$), which treats lightweight LoRA adapters like "elastic containers" that dynamically adjust how many tasks they hold based on how crowded their internal feature space gets. By cleverly carving up parameters inside each adapter and steering updates away from old memories, $\mathbf{E}^3$ achieves state-of-the-art accuracy on long task streams using a fraction of the modules.

What Problem Does This Paper Address?

Imagine deploying a pre-trained Vision Transformer (ViT) in the real world where new object categories appear over time. You want the model to learn new classes without forgetting old ones, without storing historical training images (rehearsal-free, for privacy and memory reasons), and without knowing which task an image belongs to at test time. This is Class-Incremental Learning (CIL).

Recently, researchers have turned to Low-Rank Adaptation (LoRA)—injecting tiny trainable matrices into a frozen backbone—to tackle CIL. However, current LoRA-based methods hit a wall over long sequences of tasks:

  1. One-adapter-per-task creates linear parameter growth, violating strict memory budgets.
  2. Naive parameter sharing causes new gradient updates to overwrite features crucial for older tasks.
  3. Principled importance metrics (like Fisher information) tell you which weights to protect, but require expensive extra backward passes and massive memory storage.

The core question is: How do we dynamically pack an open-ended stream of tasks into a minimal number of LoRA modules without rehearsal or expensive sensitivity calculations?

Methods

Instead of rigid rules, $\mathbf{E}^3$ adapts on the fly using three synergistic mechanisms built atop a frozen ViT backbone:

Overview of the E3 framework showing dynamic capacity scheduling, parameter partitioning, and dual-level interference mitigation.
  • Dynamic Expert Capacity Scheduling (Macro-level): Each LoRA module is treated as an "expert" with a target task capacity. The first expert handles 1 task. If an expert finishes its quota without getting "crowded," the next expert gets a bigger capacity ($C_{k+1} = C_k + 1$). How do we know if an expert is crowded (saturated)? The authors measure subspace overlap: if a new task strongly activates the principal feature directions of older tasks inside that expert, saturation is triggered. The expert is immediately frozen, and the next expert is given a more conservative, reduced capacity ($C_{k+1} = \max(C_k - 1, 1)$).
  • Group-Aware Parameter Partitioning, or GAPP (Micro-level): When multiple tasks share one LoRA expert, they shouldn't step on each other's toes. For a few probing epochs, a new task trains all unallocated parameters in the expert. Then, $\mathbf{E}^3$ divides the LoRA weights into four structural groups (shallow/deep layers $\times$ up/down projections) and claims the parameters with the largest magnitudes for the current task, freezing them forever afterward. Each task gets an equal, disjoint slice of the expert with zero extra backward passes.
  • Dual-Level Interference Mitigation: Even with isolated LoRA weights, forgetting happens if the shared classification head drifts or if new LoRA weights push features into old territory. Without saving raw data, $\mathbf{E}^3$ saves compact empirical second-moment (covariance) matrices of task features. It uses these matrices in two ways:
  • Prediction level: A cosine-normalized classifier is paired with a hierarchical regularization loss (tracking fine-grained moments for the active expert and compressed summaries for old experts) to stop new class weights from aligning with historical feature directions.
  • Representation level: Gradients for the active LoRA expert are projected orthogonally away from past feature subspaces.

At inference time, a test image passes through all created experts, and the prediction with the lowest entropy (highest confidence) wins.

Datasets

The authors evaluate $\mathbf{E}^3$ on five standard continual learning benchmarks (no new datasets are introduced):

  • ImageNet-R (split into 5, 10, and 20 sequential tasks) — tests out-of-distribution generalization across renditions (art, cartoons, sketches).
  • ImageNet-A (10 tasks) — natural adversarial examples that emphasize distribution shift and robustness.
  • DomainNet (5 tasks) — evaluates Domain-Incremental Learning across distinct visual styles.
  • CIFAR100 (10 tasks) & CUB200 (10 tasks) — standard object and fine-grained bird recognition benchmarks.

Key Insights and Ideas

  • Weight magnitude is a remarkably good "free lunch": You don't need costly Fisher information matrices to partition LoRA weights. Simply letting a task warm up and grabbing the highest-magnitude weights within structural groups (GAPP) performs nearly identically to Fisher-based masking, saving ~1.5 GB of memory per expert and extra compute hours.
  • Asymmetric subspace intrusion reveals saturation: To detect when an expert is full, $\mathbf{E}^3$ compares how much newer tasks activate older subspaces versus the reverse. When new tasks start intruding heavily on old principal directions, capacity fallback kicks in—automatically specializing experts for confusable tasks while packing orthogonal tasks together.
  • Cosine normalization tames frozen classifiers: Freezing old classifier weights usually causes miscalibration because new weights grow different norms. Switching from a linear to a cosine classifier cleanly decouples magnitude from direction, sharpening probability distributions for historical classes.
Figure 2: A comparison of predicted probability distributions on Task 7 between the linear and cosine classifiers, after training on all 10 tasks of ImageNet-A. When each task is completed, the classifier weights (and bias, if any) corresponding to that task are frozen permanently.

Key Results

Across ViT-B/16 experiments, $\mathbf{E}^3$ shines brightest when task sequences get long or challenging:

  • Long-Horizon Gains: On ImageNet-R (20 tasks), $\mathbf{E}^3$ hits 82.76% final average accuracy (Acc), beating the strongest LoRA baseline (LoRA-P&M) by +6.39%. Notably, its lead grows as tasks increase from 5 (+4.42%) to 20 (+6.39%).
  • Adversarial Robustness: On the notoriously tough ImageNet-A (10 tasks), $\mathbf{E}^3$ reaches 65.84% Acc, outperforming LoRA-P&M by a massive +9.27%.
  • Sublinear Parameter Growth: On ImageNet-R (20 tasks), instead of spawning 20 adapters like SD-LoRA or LoRA-P&M, $\mathbf{E}^3$ dynamically finishes the stream using only 6 experts, requiring fewer total parameters (88.79M vs. 93.97M) and ~70% fewer learnable parameters (~0.11M vs. 0.37M) at 35.12 GFLOPs per expert.

Limitations and Future Work

The authors candidly highlight three main trade-offs:

  1. Inference Latency: Because task IDs aren't available at test time, every test sample must be evaluated by all instantiated experts to find the lowest-entropy prediction. While sublinear in growth (e.g., 6 experts instead of 20), it still multiplies inference compute.
  2. Covariance Memory Overhead: Storing second-moment matrices isn't free—one full float32 covariance matrix takes about 2.25 MiB (averaging ~0.68 to 1.80 MiB per task depending on compressions).
  3. Heuristic Scheduling: The "+1 / -1" capacity probing rule works well empirically, but lacks formal theoretical guarantees.

Future work aims to establish theoretical bounds for capacity scheduling, build faster routing mechanisms so test images don't have to query every expert, and further compress the stored covariance statistics.

Summary updated

Abstract

Large-scale pre-trained vision models provide powerful representations for class-incremental learning, yet continuously adapting them to new classes without historical samples, task identifiers, or unrestricted parameter growth remains a fundamental challenge. Existing LoRA-based approaches typically follow either a one-adapter-per-task expansion paradigm or a fixed parameter-sharing strategy. The former leads to linear parameter growth as the task sequence expands, while the latter often induces severe cross-task interference. To address these limitations, we propose Elastic Ensemble of Experts (${\bf E}^3$), a parameter-efficient framework for class-incremental learning. $\mathbf{E}^3$ treats LoRA modules as elastic experts whose task capacity is dynamically adjusted according to representational capacity saturation. Within each expert, we further introduce a novel parameter-partitioning mechanism that allocates LoRA parameters to disjoint, task-specific subspaces via magnitude-based importance estimation, thereby preventing parameter overwriting without requiring additional gradient-sensitivity computation. Moreover, $\mathbf{E}^3$ preserves and updates hierarchical covariance structures to mitigate interference at both the prediction level and the representation level and to provide a reference for capacity saturation detection. Extensive experiments on standard class-incremental learning benchmarks demonstrate that $\mathbf{E}^3$ achieves state-of-the-art or competitive performance, especially in long-horizon task sequences, while maintaining a favorable balance between stability, plasticity, and parameter efficiency. The code is available at https://github.com/yrluestc/EEE.
BibTeX
@inproceedings{yu2026class,
  author = {Ruilong Yu and Fei Ye and Zhiyuan Ren and Qihe Liu and Adrian G. Bors and Rongyao Hu and shijie zhou},
  title = {{Class-Incremental Learning via LoRA-based Elastic Ensemble of Experts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5v1mhJ0DnN},
}
Figure