HSCR: Hierarchical Self-Contrastive Rewarding for Aligning Medical Vision Language Models

Songtao Jiang, Yan Zhang, Yeying Jin, Zhihang Tang, Yangyang Wu, Yang Feng, Jian Wu, Zuozhu Liu

TL;DR

The authors introduce Hierarchical Self-Contrastive Rewarding (HSCR), a data-efficient method to fix modality misalignment in Medical Vision-Language Models (Med-VLMs). By using visual token dropout to generate preference data internally and optimizing with a multi-level preference strategy, HSCR achieves state-of-the-art zero-shot performance across multiple medical benchmarks using just 2,000 training samples—completely eliminating the need for expensive external annotations or GPT-4o generation.

What Problem Does This Paper Address?

Medical Vision-Language Models (Med-VLMs) combine vision encoders with large language models to assist in clinical tasks like medical visual question answering (Med-VQA) and image captioning. However, because paired medical data is scarce, these models frequently suffer from modality misalignment: they ignore the actual visual evidence (e.g., an X-ray or MRI) and hallucinate answers based purely on text patterns.

To fix this, researchers typically use preference optimization techniques like Direct Preference Optimization (DPO). However, applying standard DPO to medical models introduces two major roadblocks:

  1. Low Sampling Probability: Standard preference data generated by external models like GPT-4o doesn't match the internal decoding distribution of the target Med-VLM. As a result, the model rarely samples these preferred responses during training, leading to weak reward signals.
  2. Coarse Comparisons: Traditional binary preference optimization (comparing a "good" response directly to a "bad" response) is too coarse for weakly trained medical models. The large gap between correct and incorrect answers prevents the model from learning the subtle, fine-grained nuances critical in clinical settings.
Figure 1: Two key challenges in preference optimization for Med-VLMs. See Appendix A.1 for details.

Methods

HSCR solves these issues using a three-step pipeline that operates entirely within the model itself:

  1. Token-Level Self-Contrastive Rewarding: To generate high-quality "dispreferred" (incorrect) data that aligns with the model's own distribution, the authors introduce a visual token dropout strategy. By dropping 70% of the visual tokens, they force the model to reveal its internal misalignment biases. By comparing the output logits with and without visual tokens, they identify "modality-coupled tokens" that are highly prone to causing hallucinations. They then use contrastive decoding to replace these sensitive tokens with hallucinated ones, creating a set of dispreferred responses with varying degrees of incorrectness.
  2. Similarity-Aware Preference Re-Ranking: Not all incorrect answers are equally bad; some are partially correct, while others are completely misleading. HSCR computes the semantic similarity between each generated dispreferred response and the ground truth, sorting them into a rank-based preference list.
  3. Hierarchical Multi-Level Preference Optimization (MLPO): Instead of standard binary DPO, HSCR uses a joint loss function. It optimizes for Explicit Preference (teaching the model to prefer the ground truth over any incorrect response) and Implicit Preference (teaching the model to distinguish the relative quality among the incorrect responses).
Figure 2: Overview of the HSCR pipeline, comprising token-level self-contrastive rewarding for data generation (Methods 3.1), similarity-aware preference re-ranking for quality control (Methods 3.2), and hierarchical multi-level preference optimization (Methods 3.3).

Datasets

The framework was trained and evaluated using several established benchmarks:

  • Med-VQA Benchmarks: VQA-RAD (3,515 question-answer pairs), SLAKE (over 7,000 pairs across diverse anatomical regions), and PathVQA (a pathology-focused dataset with 32,799 pairs).
  • Captioning & Instruction Following: Evaluation datasets from LLaVA-Med, utilizing unseen image-caption pairs from PMC-15M across five medical modalities.
  • General Domain Generalizability: The AMBER benchmark was used to test if the alignment benefits transfer to non-medical multimodal tasks.

Key Insights and Ideas

  • Self-Generation Beats External Models: Generating preference data from the model's own distribution ensures a high sampling probability (>0.6), providing much stronger and more stable reward signals than data synthesized by GPT-4o.
  • Incorrectness is a Spectrum: Treating all dispreferred responses as equally bad discards valuable gradient information. Forcing the model to rank different levels of incorrectness (implicit preference learning) provides the fine-grained guidance needed for complex medical domains.
  • Visual Token Dropout is Key: Dropping tokens in the latent space after the projector is significantly more effective than masking raw pixels or patches. It directly disrupts the LLM backbone's input, making it highly effective at triggering and exposing the model's inherent hallucination mechanisms.

Key Results

With just 2,000 training entries, HSCR achieved state-of-the-art (SOTA) zero-shot performance among open-source models:

  • Med-VQA: On the SLAKE dataset, HSCR improved closed-ended question accuracy by 6.97% and open-ended question accuracy by 2.87% over the LLaVA-Med1.5 baseline. On RAD-VQA, it performed nearly on par with GPT-4.
  • Data Efficiency: In captioning tasks, aligning the model with 2,000 HSCR entries delivered a 10.4% improvement, vastly outperforming the strategy of scaling up standard Supervised Fine-Tuning (SFT) data from 10k to 50k entries (which only yielded a 4.4% gain).
  • Cross-Domain Generalizability: When applied to the general-domain LLaVA-v1.5 model on the AMBER benchmark, HSCR significantly reduced object hallucination rates (dropping from 36.4% to 25.1%), outperforming standard DPO.

Limitations and Future Work

The authors note two primary limitations:

  1. Data Scarcity: The overall lack of diverse, high-quality medical data still restricts the model's ability to handle rare or highly complex clinical scenarios.
  2. Lack of Clinical Validation: While HSCR excels on research benchmarks, it has only been evaluated in controlled environments. Future work must validate the framework within real-world clinical workflows and trials to ensure practical safety and reliability.

Summary updated

Abstract

Medical Vision-Language Models (Med-VLMs) have achieved success across various tasks, yet most existing methods overlook the modality misalignment issue that can lead to untrustworthy responses in clinical settings. In this paper, we propose Hierarchical Self-Contrastive Rewarding (HSCR), a novel approach that addresses two critical challenges in Med-VLM alignment: 1) Cost-effective generation of high-quality preference data; 2) Capturing nuanced and context-aware preferences for improved alignment. HSCR first leverages the inherent capability of Med-VLMs to generate dispreferred responses with higher sampling probability. By analyzing output logit shifts after visual token dropout, we identify modality-coupled tokens that induce misalignment and derive an implicit alignment reward function. This function guides token replacement with hallucinated ones during decoding, producing high-quality dispreferred data. Furthermore, HSCR introduces a multi-level preference optimization strategy, which extends beyond traditional adjacent-level optimization by incorporating nuanced implicit preferences, leveraging relative quality in dispreferred data to capture subtle alignment cues for more precise and context-aware optimization. Extensive experiments across multiple medical tasks, including Med-VQA, medical image captioning and instruction following, demonstrate that HSCR not only enhances zero-shot performance but also significantly improves modality alignment and trustworthiness with just 2,000 training entries.
BibTeX
@inproceedings{jiang2025hscr,
  author = {Songtao Jiang and Yan Zhang and Yeying Jin and Zhihang Tang and Yangyang Wu and Yang Feng and Jian Wu and Zuozhu Liu},
  title = {{HSCR: Hierarchical Self-Contrastive Rewarding for Aligning Medical Vision Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure