Abstract
Multi-modal Large Language Models (MLLMs) have revolutionized Visual Question Answering (VQA), yet their performance often degrades when encountering domain shifts—transitioning from general-purpose training data to specialized domains like synthetic or abstract imagery. This paper presents UDAM (Unsupervised Domain Adaptation for MLLMs), a novel framework designed to adapt MLLMs to unlabeled target domains. UDAM integrates three core strategies: coarse-grained unimodal alignment for text and image inputs, fine-grained cross-modal alignment targeting domain-sensitive queries within the Q-Former, and a domain-aware prompting strategy. Our experiments across CLEVR, VQA-Abstract, and ArtVQA demonstrate that UDAM effectively mitigates domain bias, significantly outperforming zero-shot and standard fine-tuning baselines without requiring target-domain labels.
Introduction
Visual Question Answering (VQA) has seen significant advancements through Multi-modal Large Language Models (MLLMs) such as BLIP-2. Despite their success, these models are typically pre-trained on massive, general-purpose datasets (e.g., COCO) and struggle with "domain shift"—the discrepancy between training data and specialized target domains like synthetic scenes (CLEVR) or abstract art (VQA-Abstract). This shift presents challenges at the unimodal level (raw feature variance), the cross-modal level (biases in fusion modules), and the prompt level (sensitivity to instruction phrasing).
While Unsupervised Domain Adaptation (UDA) is well-studied for traditional VQA architectures, it remains an open challenge for modern MLLMs. This work introduces UDAM, the first systematic framework for adapting MLLMs to new, unlabeled domains by addressing these multi-level shifts.
Methodology: The UDAM Framework
UDAM enhances the standard MLLM fine-tuning pipeline with three specialized components designed to bridge the domain gap.
Coarse-grained Unimodal Alignment
To handle shifts in raw input distributions, UDAM employs adversarial training:
- Semantic-guided Coarse-grained Feature Alignment (SCFA): Aligns text features by targeting the
[CLS]token embeddings. - Domain Query-based Feature Alignment (DQFA): Introduces a dedicated "domain query" token to capture global contextual information from images. A domain discriminator attempts to identify the source of the features, while the model learns to produce domain-invariant representations.
Fine-grained Cross-modal Alignment (SQFA)
A critical insight of this research is that domain shift is not uniform across the Q-Former's learnable queries. Analysis reveals that only a small subset (~12.5%) of queries are highly sensitive to domain changes. Semantics-guided Query-based Feature Alignment (SQFA) utilizes a weight map based on cosine similarity to prioritize the alignment of these domain-sensitive "specialist" queries, ensuring more efficient and effective adaptation.
Pair-wise Domain-aware Prompt Strategy
MLLMs exhibit significant sensitivity to prompt structure. UDAM replaces generic prompts with a structured, domain-aware format: Visual Question Answering: [Domain Style Description]. Question: [Q] Answer:. By explicitly identifying the domain (e.g., "abstract images"), the model can better leverage its internal pre-trained knowledge relevant to that specific style.
Key Insights: Query Sensitivity
The effectiveness of the SQFA module is rooted in the observation that queries within the Q-Former can be categorized as "generalists" or "specialists."
As illustrated in the t-SNE visualizations above, the most domain-sensitive queries (Top K) show a distinct separation between source and target domains, whereas the full set of queries appears more homogeneous. Aligning these specific "specialists" is the key to mitigating cross-modal domain bias.
Experimental Results
UDAM was evaluated by adapting from "knowledge-rich" source datasets (OKVQA, AOKVQA) to specialized target domains. The results demonstrate consistent improvements:
- CLEVR: UDAM achieved a 14.66% improvement over BLIP-2’s zero-shot accuracy and a 1.98% boost over standard fine-tuning.
- VQA-Abstract: On the AOKVQA $\rightarrow$ VQA-Abstract task, UDAM reached 59.57% accuracy, significantly outperforming the source-only baseline.
- Model Agnostic: The framework's generalizability was confirmed by successful application to both BLIP-2 and BLIVA architectures.
Conclusion and Future Work
UDAM establishes a robust methodology for adapting large multi-modal models to specialized domains without requiring labeled target data. While currently focused on Q-Former-based architectures, future research could explore its extension to "projection-only" models like LLaVA. Additionally, automating the generation of domain-specific style descriptions and expanding the framework to other tasks like image captioning remain promising avenues for future exploration.
Summary updated