Direct Preference Optimization for Suppressing Hallucinated Prior Exams in Radiology Report Generation

Oishi Banerjee, Hong-Yu Zhou, Subathra Adithan, Stephen Kwak, Kay Wu, Pranav RajpurkararXiv 2024

TL;DR

Researchers have successfully applied Direct Preference Optimization (DPO) to medical vision-language models (VLMs) to suppress a persistent problem: the hallucination of references to non-existent prior exams. By using a novel weighted DPO loss, the team achieved a 3.2x to 4.8x reduction in these hallucinations while maintaining the clinical accuracy of generated chest X-ray reports.

What Problem Does This Paper Address?

Generative VLMs show immense promise in automating radiology report generation, but they suffer from a specific, frustrating type of hallucination. Because these models are often trained on real-world clinical datasets where radiologists frequently compare current images to previous ones, the models learn to generate phrases like "no change from prior study" or "interval increase in opacity."

However, in many AI deployment scenarios, the model only has access to a single current image. When a model references a "prior exam" it hasn't seen, it creates two major issues:

  1. Clinician Fatigue: Radiologists must spend extra time manually editing out these false references.
  2. Clinical Risk: A statement like "cardiac size is unchanged" is useless if the reader doesn't know if the heart was enlarged in the (non-existent) prior study. It masks the actual clinical state of the patient.

Methods

The authors propose using Direct Preference Optimization (DPO), a more stable and compute-efficient alternative to Reinforcement Learning from Human Feedback (RLHF). Unlike RLHF, DPO doesn't require training a separate reward model; instead, it optimizes the policy model directly using pairs of "preferred" and "dispreferred" responses.

The core technical innovation is the introduction of Weighted DPO. Standard DPO treats every token in a sentence with equal importance. However, in radiology reports, a hallucination might only occupy one line of an otherwise perfect report. To address this, the authors introduced a hyperparameter $\gamma$ (ranging from 0 to 1) to weight the log-probabilities of tokens:

  • Relevant tokens: Lines containing hallucinations are weighted fully.
  • Irrelevant tokens: Correct, factual lines are down-weighted by $\gamma$.

This allows the model to focus its learning on suppressing the specific "prior exam" behavior without accidentally penalizing the model for generating correct clinical observations.

An overview of the DPO weighting schemes, showing how preferred (green) and dispreferred (red) lines are treated during training.

Datasets

The study utilized the MIMIC-CXR dataset, a standard benchmark for chest X-ray report generation. To create the preference pairs needed for DPO, the authors employed GPT-4 as an automated editor.

GPT-4 was tasked with identifying lines in original MIMIC reports that referenced prior exams and labeling them as:

  • "None": No reference to a prior (kept as-is).
  • "Partial": Contains a comparison but also useful current info (rewritten to remove the comparison).
  • "All": Entirely dependent on a prior (deleted).
The GPT-4 processing pipeline used to create the preference dataset by rewriting or removing references to prior exams.

The final DPO training set consisted of 19,806 studies, while the validation and test sets were similarly processed to provide a "prior-free" ground truth for evaluation.

Key Insights and Ideas

  • DPO vs. SFT: The researchers found that Supervised Fine-Tuning (SFT) on the cleaned dataset was not enough. While SFT improved general clinical accuracy, it failed to meaningfully reduce hallucinations. The "contrastive" nature of DPO—explicitly showing the model what not to do—was essential.
  • The Power of Weighting: Setting $\gamma = 0.5$ (doubling the importance of relevant lines) provided the best balance, leading to the most significant reduction in hallucinations.
  • Clinical Accuracy Preservation: A major fear with alignment techniques is "taxing" the model's performance. This work demonstrates that you can suppress specific unwanted behaviors in a medical VLM without degrading its ability to identify pathology.
  • GPT-4 as a "Noisy" Teacher: The authors noted that while GPT-4 is a powerful tool for dataset creation, it only caught about 60% of prior exam references. Despite this "noise" in the training data, the DPO process was still highly effective.

Key Results

The effectiveness of the approach was measured by the average number of lines per report that hallucinated a prior exam:

  • Baseline Pretrained Model: 1.34 lines per report.
  • SFT Baseline: 1.28 lines per report (negligible improvement).
  • DPO ($\gamma = 0.5$): 0.28 lines per report (a ~4.8x reduction).

In terms of clinical accuracy, the DPO models performed comparably to or better than the original pretrained model when measured by RadCliQ-v1 (a metric designed to mimic radiologist opinion) and RadGraph-F1. Human evaluation by radiologists confirmed these trends, noting that DPO consistently reduced hallucinations while maintaining report quality.

Limitations and Future Work

The primary limitation is the reliance on GPT-4 for annotation, which the authors describe as "noisy." Some references to prior exams still leaked into the "preferred" responses. Future work could involve using higher-quality, human-curated preference datasets.

Additionally, the authors suggest that creating new benchmark datasets entirely free of prior-exam references would help the field better evaluate models against an "ideal" target distribution for first-time patient exams.

Summary updated

BibTeX
@misc{banerjee2024direct,
  author = {Oishi Banerjee and Hong-Yu Zhou and Subathra Adithan and Stephen Kwak and Kay Wu and Pranav Rajpurkar},
  title = {{Direct Preference Optimization for Suppressing Hallucinated Prior Exams in Radiology Report Generation}},
  year = {2024},
  eprint = {2406.06496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06496},
}
Figure