TL;DR
This paper introduces WINGS, a novel multimodal large language model (MLLM) that addresses the critical issue of "text-only forgetting" – where MLLMs lose their ability to handle text-only instructions after being trained on multimodal data. WINGS achieves this by introducing parallel "modality learners" that act as complementary wings to the main LLM architecture, preserving text-only capabilities while enhancing multimodal performance.
What Problem Does This Paper Address?
Large Language Models (LLMs) have shown remarkable capabilities in understanding and generating text. When these LLMs are extended to handle visual information, becoming Multimodal Large Language Models (MLLMs), they achieve impressive performance on tasks like image captioning and visual question answering. However, a significant challenge arises during the fine-tuning process: MLLMs often "catastrophically forget" their original text-only capabilities. This means that after learning to process images and text together, they become significantly worse at responding to purely text-based instructions, which is a crucial aspect for many real-world applications. The authors identify that this text-only forgetting is linked to shifts in the model's attention mechanisms when processing visual information.
Methods
The core innovation of WINGS lies in its novel architecture that augments the standard MLLM. The authors observe that text-only forgetting is correlated with attention shifts in the main LLM branch, particularly in how attention is distributed to text tokens after an image is processed. To counteract this, WINGS introduces Low-Rank Residual Attention (LoRRA) blocks, which act as "modality learners."
These LoRRA blocks are added in parallel to each layer of the main LLM's attention mechanism. Initially, visual learners are trained alongside the main attention to help align visual features with text, mitigating the initial attention shift. Subsequently, textual learners are integrated. A token-wise routing mechanism dynamically blends the outputs of these visual and textual learners with the main branch's attention, guided by the attention weights themselves. This collaborative learning approach aims to preserve the LLM's original text-processing strengths while effectively incorporating visual understanding. The LoRRA structure is designed for efficiency, using low-rank matrices.
Datasets
The paper evaluates WINGS on a variety of benchmarks, including:
- Standard text-only benchmarks: MMLU, CMMLU, ARC-Easy/Challenge, WinoGrande, OpenbookQA, Race-Middle/High, WSC, CHID, HellaSwag, SIQA, PIQA, OCNLI, GSM8K, MBPP.
- General multimodal benchmarks: MMMU, MME, MMBench (EN/CN), ScienceQA, SEED-Bench, AI2D, HallusionBench.
- Newly constructed Interleaved Image-Text (IIT) benchmark: This benchmark features multi-turn conversations that mix text-only and multimodal questions, designed to more closely mimic real-world user interactions.
Key Insights and Ideas
- Text-only forgetting is an attention shift problem: The authors pinpoint the root cause of text-only forgetting to be a shift in attention distribution within the MLLM's main branch when processing visual information. Specifically, attention tends to move away from text tokens that follow an image.
- Complementary "wings" for modality learning: The core idea of WINGS is to add parallel, lightweight modules (learners) that specialize in either visual or textual processing. These act as "wings" that support and compensate for the main LLM's attention.
- Low-Rank Residual Attention (LoRRA) for efficiency: The proposed LoRRA mechanism allows for efficient learning of these modality-specific features without drastically increasing model parameters or computational cost.
- Dynamic routing is key: A router that dynamically weighs the outputs of the visual and textual learners based on the main branch's attention is crucial for harmonizing their contributions.
- Phased training for better adaptation: WINGS employs a phased training approach, first aligning visual learners and then integrating textual learners, which helps in a more stable adaptation process.
Key Results
WINGS demonstrates strong performance across various tasks:
- Superior text-only performance: WINGS significantly outperforms baseline MLLMs of similar scale on text-only benchmarks, often showing improvements even when baselines experience severe forgetting. For instance, on MMLU, CMMLU, and RACE-High, WINGS shows notable gains compared to its backbone.
- Competitive multimodal performance: WINGS achieves state-of-the-art performance on 13 out of 18 general multimodal benchmarks, demonstrating its ability to handle visual tasks effectively.
- Effective on interleaved conversations: The newly introduced IIT benchmark shows WINGS excelling in scenarios with mixed text-only and multimodal questions, particularly in text-centric dialogues.
- Scalability: WINGS shows good scalability, maintaining performance as parameters increase.
Limitations and Future Work
- Requires restarting feature alignment: Integrating visual learners into existing MLLMs necessitates re-training the feature alignment stage, which incurs additional costs.
- Edge deployment challenges: While WINGS1.8B offers a solution for edge devices, it comes at the cost of performance.
- Still needs text-only data: WINGS still requires some text-only data for replay and enhancement, though it aims to minimize this need.
- Future work: The authors suggest exploring further integration with more generic AI systems and continuing to investigate competitive reuse of expert groups within LLMs. They also plan to explore the future of MLLMs more broadly.
Summary updated