Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in bridging visual and textual information. However, a significant challenge arises during the instruction-tuning phase: "visual forgetting." As models are fine-tuned on text-heavy instruction datasets to improve their command-following abilities, they often lose the rich, nuanced visual representations acquired during their initial large-scale pre-training. This paper introduces Modality-decoupled Gradient Descent (MDGD), a novel optimization strategy designed to preserve visual knowledge while enabling effective task-specific alignment.
The Information Bottleneck and Visual Forgetting
The core issue identified by the authors is an Information Bottleneck. When a model like LLaVA is fine-tuned to follow human instructions (e.g., "Describe this image in detail"), the training objective is primarily text-based. To satisfy this objective, the model learns to aggressively compress visual information, discarding details that it deems "irrelevant" to the specific instruction but which are crucial for general visual understanding.
To quantify this phenomenon, the researchers utilize effective rank, a metric that measures the richness and complexity of the model's internal representations. Their analysis reveals a direct correlation: standard fine-tuning leads to a sharp decline in effective rank across model layers, signaling a loss of visual nuance.
Methodology: Modality-decoupled Gradient Descent (MDGD)
To address visual forgetting, the authors propose decoupling the learning of new tasks from the preservation of old visual knowledge. MDGD achieves this through two primary mechanisms:
- Feature Alignment Loss: An auxiliary loss function is introduced to keep the current visual representations close to the original pre-trained features.
- Orthogonal Gradient Projection: This is the central innovation. The algorithm calculates the gradient required for the new instruction task and the gradient associated with "visual drift" (the direction leading to forgetting). It then projects the task gradient so that it is orthogonal to the drift direction. This mathematical disentanglement allows the model to update its weights for the new task without moving in a direction that destroys pre-existing visual knowledge.
For resource-constrained environments, the authors also introduce MDGD-GM (Gradient Masking). This parameter-efficient variant updates only a subset of parameters where task gradients are most aligned with "safe" directions, making the method compatible with efficient fine-tuning setups.
Key Results and Insights
The effectiveness of MDGD was evaluated across multiple models (LLaVA-1.5, MiniCPM-V) and diverse datasets, including both "old" pre-trained tasks (e.g., GQA, POPE) and "new" target tasks (e.g., OKVQA, PathVQA).
- Performance Gains: For LLaVA-1.5 (7B) on the Flickr30k task, standard fine-tuning caused the average score on pre-trained tasks to drop from 55.8% to 47.9%. In contrast, MDGD not only improved target task performance but also increased the average pre-trained score to 66.6%.
- Representation Preservation: T-SNE visualizations of high-dimensional feature space demonstrate that MDGD-tuned models maintain a feature distribution remarkably similar to the original pre-trained model. Standard fine-tuning, conversely, causes features to cluster and lose their distinctiveness, confirming the loss of representational richness.
Conclusion
This research demonstrates that the trade-off between instruction-following and visual knowledge retention is not inevitable. By framing forgetting as a consequence of the information bottleneck and employing orthogonal gradient projections, MDGD allows MLLMs to become better assistants without sacrificing their fundamental ability to perceive the visual world with nuance. Future work may extend this modality-decoupling approach to other emerging multimodal inputs such as audio and video.
Summary updated