Towards Multimodal Understanding via Stable Diffusion as a Task-Aware Feature Extractor

Vatsal Agarwal, Matthew Gwilliam, Gefen Kohavi, Eshan Verma, Daniel Ulbricht, Abhinav ShrivastavaarXiv 2025 · DOI

Introduction

Modern Multimodal Large Language Models (MLLMs), such as LLaVA, predominantly utilize CLIP as their primary visual encoder. While CLIP excels at aligning global image semantics with textual descriptions, it often lacks the granularity required for complex vision-centric reasoning. It is frequently "blind" to fine-grained spatial relationships and intricate details, failing on simple queries regarding object parts or specific orientations. Furthermore, CLIP provides static features regardless of the user's query. This research proposes using pre-trained Stable Diffusion (SD) models as "task-aware" visual encoders to address these limitations.

Overview of the task-aware diffusion feature extraction and comparison with CLIP.

Methodology

The authors integrate Stable Diffusion v2.1 internal representations into the LLaVA framework. The methodology centers on several core innovations:

  1. Instruction-Aware Conditioning: Unlike static encoders, the user's question is fed directly into the diffusion model's text encoder. This leverages internal cross-attention mechanisms to "highlight" query-relevant image regions before features reach the LLM.
  2. Multi-Scale Feature Probing: Analysis of U-Net blocks across noise timesteps ($T$) revealed that lower timesteps (e.g., $T=50$) capture fine-grained structures, while higher timesteps provide global layout information.
  3. Feature Fusion and Leakage Mitigation: Diffusion features are fused with CLIP features using either concatenation or cross-attention probing. To prevent the LLM from simply "reading" the text prompt embedded in the diffusion features (a phenomenon termed "leakage"), the authors implemented "caption dropout" during training.

Key Results and Insights

The proposed approach demonstrates significant improvements in visual perception and spatial reasoning. By conditioning the diffusion process, the model exhibits a "microscope effect," developing a granular understanding of texture and shape that surpasses CLIP's caption-matching capabilities.

Performance comparison across various vision-centric tasks for different diffusion timesteps vs CLIP-LLaVA.
  • Vision-Centric Benchmarks: The SD-based models outperformed CLIP-LLaVA on the BLINK-val benchmark (+1.23%) and achieved a +7 point improvement on the MMVP-VLM benchmark.
  • Spatial and Multi-view Reasoning: As shown in the radar analysis, the model achieved notable gains (up to +10%) in specific sub-tasks like Spatial Reasoning and Multi-view Reasoning compared to the standard LLaVA-v1.5 baseline.
  • Task-Aware Focus: Qualitative analysis confirms that internal attention maps physically shift toward query-relevant objects, simplifying the downstream reasoning task for the LLM.

Discussion and Limitations

While Stable Diffusion features provide superior visual detail, they introduce higher computational overhead compared to CLIP. Additionally, there is a trade-off in "knowledge-heavy" tasks (e.g., identifying specific celebrities) where CLIP's broader language pre-training still holds an advantage. Future work will explore more efficient extraction methods and dynamic ensembling strategies to balance the strengths of both CLIP and diffusion-based encoders.

Summary updated

BibTeX
@misc{agarwal2025towards,
  author = {Vatsal Agarwal and Matthew Gwilliam and Gefen Kohavi and Eshan Verma and Daniel Ulbricht and Abhinav Shrivastava},
  title = {{Towards Multimodal Understanding via Stable Diffusion as a Task-Aware Feature Extractor}},
  year = {2025},
  eprint = {2507.07106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.07106},
}
Figure