TL;DR
LLaVA-CMoE is a parameter-efficient, replay-free continual learning framework for Multimodal Large Language Models (MLLMs). It dynamically decides when and where to add MoE adapter experts using lightweight probes, and routes task-agnostic test inputs to task-specific routers using a VAE-based task locator.
What Problem Does This Paper Address?
Fine-tuning Multimodal Large Language Models (MLLMs) sequentially on new tasks inevitably leads to catastrophic forgetting—the model overwrites previously learned skills. While Mixture of Experts (MoE) architectures can isolate task knowledge into specialized sub-networks, two major roadblocks persist in continual learning:
- Parameter Explosion vs. Redundancy: Naively adding new experts across every Transformer layer for every task causes parameter counts to blow up, even when incoming tasks share substantial knowledge with previous ones.
- Router Forgetting: In standard MoEs, fine-tuning a shared router on new data degrades earlier routing policies, leading to misrouted inputs and catastrophic forgetting. Moreover, real-world deployment requires task-agnostic inference, meaning the model must correctly route queries without explicit task labels or storing rehearsal data.
Methods
LLaVA-CMoE solves these challenges through two core mechanisms built on top of a frozen LLaVA backbone with LoRA-based experts:
[Incoming Task Data]
│
▼
1. Probe-Guided Knowledge Extension (PGKE)
├── Fast probe training on a 10% data subset
├── Layer selection: Add experts ONLY if probe activation > (mean - α · std)
└── Full training: Warm-start new experts from the nearest prior expert
│
▼
2. Probabilistic Task Locator (PTL)
├── Train lightweight task-specific VAE on last-token features (F_end)
├── Store frozen dedicated router in a Key-Value "Primitive Bank"
└── Inference: Reconstruct input via VAEs → Select router with max likelihood
- Probe-Guided Knowledge Extension (PGKE): A "try-before-you-buy" strategy. Before expanding model capacity, a small probe dataset (10% of task data) trains temporary probe experts and a probe router across all layers. If a layer’s probe activation logit significantly exceeds a statistical threshold, the framework recognizes a genuine knowledge gap and permanently inserts new experts at that layer. New experts are initialized ("warm-started") using the weights of the most similar existing expert.
- Probabilistic Task Locator (PTL): Instead of continuously modifying a shared router, each task receives a dedicated, lightweight router. To select the correct router during inference without task IDs, PTL trains a lightweight Variational Autoencoder (VAE) to model the distribution of the final-token representation ($F_{\text{end}}$) for each task. At test time, the input is evaluated against all task VAEs; the task distribution yielding the highest reconstruction probability determines which router to activate.
Datasets
Evaluations were performed on the CoIN multimodal continual learning benchmark (569k training samples, 261k testing samples), consisting of eight diverse Visual Question Answering (VQA) and multimodal tasks:
- ScienceQA (SQA)
- TextVQA (TQA)
- ImageNet
- GQA
- VizWiz
- RefCOCO (Ref)
- VQAv2
- OCR-VQA
Key Insights and Ideas
- Expansion belongs in the late layers: The probe locating phase revealed that lower layers (layers 0–15) rarely require new experts because low-level visual and textual representations transfer broadly across tasks. Expansion is concentrated in higher layers (layers 16–31) where specialized task reasoning happens.
- Router retention is half the battle: The ablation showed that updating a single shared router is the primary driver of forgetting in MoE architectures. Decoupling routers per task and managing them via an unsupervised density estimator (VAE) eliminates router interference entirely.
- Load balancing prevents over-allocation: Using an auxiliary load-balancing loss during the probe phase prevents the router from collapsing into a "winner-take-all" state, pruning unnecessary parameter allocations by ~6%.
Key Results
- Superior Knowledge Retention: On the CoIN benchmark under the final evaluation setting (Last, after sequential training on all 8 tasks), LLaVA-CMoE achieved a mean accuracy of 59.23% and a Backward Transfer (BWT) of -3.58%, drastically outperforming baselines like standard LoRA (42.41% mean, -17.01% BWT), MoELoRA (44.24% mean, -17.86% BWT), and SEFE (58.57% mean, -10.45% BWT).
- Near-Zero Forgetting on Key Tasks: On ImageNet, LLaVA-CMoE maintained 94.50% accuracy after learning all subsequent tasks (compared to ~34.65% for standard LoRA).
- High Parameter Efficiency: PGKE achieves performance comparable to or exceeding uniform "every-layer" expansion while saving roughly 30%–40% of trainable parameters (averaging 43.96M trainable parameters per task).
Limitations and Future Work
- Language-Only Adaptation: Experts are currently inserted only into the Feed-Forward Networks (FFNs) of the language decoder, potentially limiting performance on tasks requiring fine-grained visual feature adjustments.
- Router Bank Growth: While parameter-efficient, accumulating a distinct router and VAE per task increases storage linearly as the sequence of tasks grows very large.
- Task Confusion for Overlapping Distributions: Tasks with closely mirrored styles and question types (such as GQA and VQAv2) experience minor classification overlap in the PTL locator.
Summary updated