NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Focus on What Matters: Enhancing Medical Vision-Language Models with Automatic Attention Alignment Tuning

Aofei Chang, Le Huang, Alex James Boyd, Parminder Bhatia, Taha A. Kass-Hout, Cao Xiao, Fenglong Ma

TL;DR

Medical vision-language models (Med-LVLMs) often struggle with focusing on the right parts of medical images, leading to inaccurate diagnoses or reports. This paper introduces A³TUNE, a novel fine-tuning method that automatically aligns the model's attention to critical regions using weak labels and a new adaptive tuning mechanism, significantly improving performance and interpretability.

What Problem Does This Paper Address?

Large vision-language models (LVLMs) have shown promise in various domains, but when applied to medicine (Med-LVLMs), they frequently exhibit "hallucinations" or produce inaccurate outputs. A key reason for this is suboptimal attention distribution – the model doesn't consistently focus on the diagnostically relevant parts of medical images. For example, a model might miss a tumor and instead focus on irrelevant background areas. Existing methods to fix this often require manual annotations or are limited to inference-time adjustments, making them impractical for real-world clinical settings. The paper aims to bridge this gap by proposing a fine-tuning approach that automatically learns to focus on the correct visual information without needing extensive manual supervision.

Methods

The core of the proposed solution is A³TUNE, a fine-tuning framework designed to automatically align attention in Med-LVLMs. Here's a breakdown of its key components:

  • Prompt-Aware Weak Labels: To overcome the lack of precise segmentation labels (Regions of Interest or RoIs), A³TUNE leverages the zero-shot segmentation capabilities of SAM (Segment Anything Model) to generate initial candidate segments. These segments are then refined into "prompt-aware weak labels" using BioMedCLIP. This means the labels are not just general segments but are tailored to be relevant to the specific prompt and image being analyzed.
  • Selective Attention Tuning: Instead of modifying all attention heads, A³TUNE identifies and fine-tunes only the "visually-critical" attention heads. This is done by calculating a "visual attention ratio" for each head and selecting the top-performing ones. This selective approach helps to improve alignment while minimizing the risk of disrupting model stability and causing over-alignment.
  • A³MOE (Adaptive Mixture-of-Experts): To handle the dynamic nature of attention requirements across different prompts and images, A³TUNE incorporates an A³MOE module. This module consists of two parts:
  • Q-MoE (Query-Level MoE): This part adapts attention based on the input prompt. It uses a gating mechanism to dynamically select experts for the Query matrices, allowing the model to adjust its focus based on what the prompt is asking.
  • K-MoE (Key-Level MoE): This part adapts attention based on the visual tokens themselves. It uses a sparse MoE approach to select experts for the Key matrices, enabling fine-grained attention adjustments for individual visual tokens, which is crucial for handling subtle visual differences.
  • Parameter-Efficient Fine-Tuning: A³TUNE builds upon LoRA (Low-Rank Adaptation) to efficiently fine-tune the model, making the process more computationally feasible.

Datasets

The paper evaluates A³TUNE on several standard medical datasets for two main tasks:

  • Medical Visual Question Answering (VQA):
    • SLAKE
    • VQA-RAD
    • PathVQA
    • IU-Xray
    • OmniMedVQA
  • Medical Report Generation:
    • MIMIC-CXR
    • IU-Xray

No new benchmarks were introduced; instead, the focus was on improving performance on existing ones.

Key Insights and Ideas

  • Weak Labels are Sufficient: The research demonstrates that even "weak" labels, generated automatically and refined based on prompts, can be highly effective for attention alignment, significantly reducing the need for manual annotation.
  • Selective Tuning is Key: Modifying all attention heads can be detrimental. Focusing on "visually-critical" heads strikes a better balance between alignment and model stability.
  • Adaptability is Crucial: A Mixture-of-Experts approach (A³MOE) is essential for dynamically adjusting attention based on both the prompt and the specific visual content, outperforming static parameter sharing.
  • Interpretability Boost: Improved attention maps directly lead to better model interpretability, allowing researchers and clinicians to understand why a model makes a certain prediction.

Key Results

A³TUNE consistently outperformed state-of-the-art baselines across various medical VQA and report generation benchmarks.

  • Medical VQA: A³TUNE achieved the highest scores in both "Coverage" (0.275) and "Intensity" (0.147) metrics on the SLAKE dataset, indicating better spatial alignment and focus on ground truth regions.
  • Medical Report Generation: On IU-Xray, A³TUNE achieved a BLEU score of 11.05, significantly higher than the best baseline (PAI at 8.87). Similar improvements were observed across other metrics and datasets like MIMIC-CXR.
  • Generalization: The method was shown to generalize well to a stronger Med-LVLM, HuatuoGPT-Vision-7B, consistently achieving top performance.
  • Module Effectiveness: Ablation studies showed that removing any component of A³MOE (Q-MoE, K-MoE) led to a performance drop, highlighting the importance of each module. K-MoE was particularly critical for handling diverse image modalities.

Limitations and Future Work

  • Noise from Weak Labels: While effective, weak labels can still introduce noise, potentially limiting performance in some cases. Using high-quality ground truth labels (as shown in Figure 4) further improves results, suggesting a direction for future work.
  • Fine-tuning Restriction: The current framework is primarily designed for fine-tuning for specific downstream tasks, limiting its broader applicability without task-specific adaptation.
  • Pixel-Level Precision: Current metrics for attention evaluation are patch-level. Achieving pixel-level precision for attention analysis remains a challenge.

The authors suggest that future work could explore incorporating higher-quality labels and extending the framework for more general applicability.

Summary updated

BibTeX
@inproceedings{chang2025focus,
  author = {Aofei Chang and Le Huang and Alex James Boyd and Parminder Bhatia and Taha A. Kass-Hout and Cao Xiao and Fenglong Ma},
  title = {{Focus on What Matters: Enhancing Medical Vision-Language Models with Automatic Attention Alignment Tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure