MoExtend: Tuning New Experts for Modality and Task Extension
Shanshan Zhong, Shanghua Gao, Zhongzhan Huang, Wushao Wen, Marinka Zitnik, Pan Zhou
TL;DR
MoExtend tackles the challenge of extending large language models to new modalities without catastrophic forgetting by introducing a three-stage pipeline that aligns a vision encoder to text, selectively extends MoE layers with new experts, and fine-tunes only the extension parts along with calibration modules. By freezing pretrained MoE and vision encoders, it achieves rapid adaptation (about $\sim$6x faster than full fine-tuning) while maintaining performance on vision-language benchmarks at parity with larger models using far fewer active parameters. The approach demonstrates strong image understanding and multimodal capabilities across standard benchmarks, with ablations showing that adding experts to roughly half of the layers and using data-driven layer selection yields competitive results and controlled forgetting. This work offers a practical, cost-effective path to scalable multimodal LLMs and opens avenues for extending MoE-based models to diverse modalities beyond vision. The codebase is available at the provided URL, enabling reproducibility and further exploration in multimodal MoE architectures.
Abstract
Large language models (LLMs) excel in various tasks but are primarily trained on text data, limiting their application scope. Expanding LLM capabilities to include vision-language understanding is vital, yet training them on multimodal data from scratch is challenging and costly. Existing instruction tuning methods, e.g., LLAVA, often connects a pretrained CLIP vision encoder and LLMs via fully fine-tuning LLMs to bridge the modality gap. However, full fine-tuning is plagued by catastrophic forgetting, i.e., forgetting previous knowledge, and high training costs particularly in the era of increasing tasks and modalities. To solve this issue, we introduce MoExtend, an effective framework designed to streamline the modality adaptation and extension of Mixture-of-Experts (MoE) models. MoExtend seamlessly integrates new experts into pre-trained MoE models, endowing them with novel knowledge without the need to tune pretrained models such as MoE and vision encoders. This approach enables rapid adaptation and extension to new modal data or tasks, effectively addressing the challenge of accommodating new modalities within LLMs. Furthermore, MoExtend avoids tuning pretrained models, thus mitigating the risk of catastrophic forgetting. Experimental results demonstrate the efficacy and efficiency of MoExtend in enhancing the multimodal capabilities of LLMs, contributing to advancements in multimodal AI research. Code: https://github.com/zhongshsh/MoExtend.
