TL;DR
This paper introduces LLaVA-CMoE, a novel framework for continually training large vision-language models (VLMs) using a Mixture of Experts (MoE) architecture. It tackles the challenges of parameter bloat and catastrophic forgetting by adaptively adding new experts only when needed (Probe-Guided Knowledge Extension) and intelligently routing tasks to specialized experts without explicit task labels (Probabilistic Task Locator).
What Problem Does This Paper Address?
Large vision-language models (VLMs) are powerful, but adapting them to new tasks sequentially without retraining from scratch is a significant challenge. This is especially true in real-world scenarios where tasks arrive one after another, and access to previous task data is limited. Two main problems arise:
- Parameter Bloat: Simply adding new "experts" (specialized neural network modules) for each new task can lead to models that grow uncontrollably large, making them computationally expensive and difficult to deploy.
- Catastrophic Forgetting: When a model learns a new task, it often forgets what it learned from previous tasks. This is particularly problematic in MoE architectures where modifying the "router" (which decides which expert to use for a given input) can disrupt previously learned routing strategies.
Existing methods struggle to balance efficient parameter usage with robust knowledge retention in a continual learning setting for VLMs.
Methods
LLaVA-CMoE introduces two core innovations to address these challenges:
- Probe-Guided Knowledge Extension (PGKE): Instead of blindly adding new experts to every layer for every new task, PGKE uses "probe experts." These are lightweight experts that are temporarily added and trained on a small subset of the new task's data. By observing how often these probe experts are activated, the model can intelligently determine if and where new, full-fledged experts are truly needed. This adaptive expansion prevents unnecessary parameter growth.
- Probabilistic Task Locator (PTL): A key challenge in continual learning is routing inputs to the correct experts, especially when task labels are unknown during inference. PTL addresses this by using a Variational Autoencoder (VAE) to learn a latent distribution for each task. When a new input arrives, PTL measures how well its representation fits the learned distributions of existing tasks to identify the most appropriate router, thus mitigating routing conflicts and forgetting.
The framework builds upon the LLaVA VLM and integrates these MoE components within its transformer blocks, using LoRA modules for efficient parameter updates.
Datasets
The experiments were conducted on the CoIN benchmark, which comprises eight diverse Visual Question Answering (VQA) tasks. These tasks include:
- RefCOCO (Ref)
- ImageNet
- TextVQA (TQA)
- VizWiz
- ScienceQA (SQA)
- GQA
- VQAv2
- OCR-VQA
Key Insights and Ideas
- "Try-before-you-buy" for experts: The PGKE mechanism is a clever way to avoid over-provisioning parameters. By using probes, the model only expands its capacity when a genuine need is detected, aligning parameter growth with actual knowledge gaps.
- Task-agnostic routing is crucial: The PTL mechanism is vital for real-world applications where task identities aren't always explicit. Learning to infer tasks from data distributions is a more robust approach than relying on predefined labels.
- MoE for continual learning is promising, but needs careful management: The paper demonstrates that MoE architectures are well-suited for continual learning due to their modularity, but requires sophisticated mechanisms like PGKE and PTL to manage their growth and prevent forgetting.
- Adaptive expansion benefits complex tasks more: Ablation studies suggest that while simpler tasks might not see huge gains from adaptive expert expansion, more challenging tasks benefit significantly, indicating the importance of targeted capacity increases.
Key Results
- LLaVA-CMoE achieves strong continual learning performance on the CoIN benchmark, significantly outperforming baseline methods.
- The method demonstrates robust anti-forgetting capabilities, with a Backward Transfer (BWT) score of -3.58, indicating minimal knowledge loss on previous tasks after learning new ones. This is a substantial improvement over other methods that can have BWT scores as low as -20.90.
- LLaVA-CMoE is parameter-efficient, using an average of 43.96M trainable parameters per task, which is significantly less than other MoE-based approaches.
- Qualitative results show that LLaVA-CMoE retains domain-specific knowledge better than other methods, producing more accurate and relevant responses on previously learned tasks. For instance, on the ImageNet dataset, it shows a significant improvement in performance compared to models that don't expand experts.
Limitations and Future Work
- Expert addition is limited to language models: The authors note that adding experts solely to the language model might not fully benefit tasks requiring detailed visual understanding. Future work could explore extending this to visual components.
- Storage demands increase with tasks: While parameter expansion is managed, the overall storage for experts and routers can still grow with the number of tasks.
- Router-related forgetting: Existing distillation or merging methods for routers can still lead to forgetting. The paper suggests addressing these issues in future work.
- Task difficulty vs. dissimilarity: Determining the optimal number of experts based on task difficulty remains an open challenge, and the current approach treats the number of experts as a hyperparameter.
Summary updated