Enhanced Contrastive Learning with Multi-view Longitudinal Data for Chest X-ray Report Generation

Kang Liu, Zhuoqi Ma, Xiaolu Kang, Yunan Li, Kun Xie, Zhicheng Jiao, Qiguang Miao

Abstract

Automated radiology report generation offers an effective solution to alleviate radiologists' workload. However, most existing methods focus primarily on single or fixed-view images to model current disease conditions, which limits diagnostic accuracy and overlooks disease progression. Although some approaches utilize longitudinal data to track disease progression, they still rely on single images to analyze current visits. To address these issues, we propose enhanced contrastive learning with Multi-view Longitudinal data to facilitate chest X-ray Report Generation, named MLRG. Specifically, we introduce a multi-view longitudinal contrastive learning method that integrates spatial information from current multi-view images and temporal information from longitudinal data. This method also utilizes the inherent spatiotemporal information of radiology reports to supervise the pre-training of visual and textual representations. Subsequently, we present a tokenized absence encoding technique to flexibly handle missing patient-specific prior knowledge, allowing the model to produce more accurate radiology reports based on available prior knowledge. Extensive experiments on MIMIC-CXR, MIMIC-ABN, and Two-view CXR datasets demonstrate that our MLRG outperforms recent state-of-the-art methods, achieving a 2.3% BLEU-4 improvement on MIMIC-CXR, a 5.5% F1 score improvement on MIMIC-ABN, and a 2.7% F1 RadGraph improvement on Two-view CXR.

Introduction

Automated Radiology Report Generation (RRG) aims to reduce the crushing workload of radiologists. However, most existing AI models suffer from "tunnel vision": they typically analyze a single, fixed-view image from the current visit. In contrast, a human radiologist looks at the "big picture," comparing different angles (e.g., frontal vs. lateral) and reviewing previous scans to track disease progression. Ignoring this spatiotemporal context leads to diagnostic inaccuracies and "hallucinations," where models fail to notice clinical changes over time.

Comparison of input data types for chest X-ray report generation.

Furthermore, real-world clinical data is often incomplete. Patients frequently lack "Indications" (the reason for the scan) or previous reports, causing standard models to stumble. The proposed MLRG framework addresses these challenges by integrating multi-view longitudinal data and handling missing information gracefully through specialized encoding.

Methods

The MLRG framework operates in two distinct stages to mimic a radiologist's workflow.

The two-stage MLRG framework: Multi-view Longitudinal Contrastive Learning and Report Generation.

Stage 1: Multi-view Longitudinal Contrastive Learning

This stage focuses on learning robust representations before report generation:

  • Multi-positive Contrastive Learning (MPC): Trains the model to recognize that different views (PA, AP, Lateral) from the same visit share underlying features.
  • Multi-view Longitudinal Fusion (MLF): Uses a cross-attention mechanism where the current "anchor" scan pulls relevant information from auxiliary views and historical images.
  • Instance-wise Cross-modal Alignment: Aligns visual features with "factual serializations"—structured summaries of radiology reports—ensuring the model learns clinically relevant features rather than noisy prose.

Stage 2: Report Generation with Missing Data Handling

The model generates the final report using a DistilGPT2 decoder. A key innovation is Tokenized Absence Encoding. When metadata like "INDICATION" or a previous report is missing, the model uses special learned tokens (e.g., [NHI] for "No History Indication") to maintain stability in the fusion network regardless of data availability.

Key Results

MLRG consistently outperformed recent state-of-the-art (SOTA) methods across three major benchmarks:

  • MIMIC-CXR: Achieved a 2.3% improvement in BLEU-4 and significant gains in clinical efficacy (CE) metrics.
  • MIMIC-ABN: Saw a 5.5% F1 score improvement, proving superior accuracy in identifying actual pathologies.
  • Two-view CXR: Achieved a 2.7% F1 RadGraph improvement.

Qualitative analysis showed the model could accurately describe changes over time, such as noting when a patient received a new catheter or when lung volumes changed compared to a previous visit—tasks where single-image models typically fail.

Conclusion and Future Work

MLRG represents a major step forward by integrating spatial and temporal context into automated report generation. By mimicking the radiologist's comparative approach and implementing a robust method for handling missing data, it achieves superior clinical accuracy. Future research will focus on improving model explainability through saliency mapping and incorporating uncertainty prediction to flag cases requiring immediate human intervention.

Summary updated

BibTeX
@inproceedings{liu2025enhanced,
  author = {Kang Liu and Zhuoqi Ma and Xiaolu Kang and Yunan Li and Kun Xie and Zhicheng Jiao and Qiguang Miao},
  title = {{Enhanced Contrastive Learning with Multi-view Longitudinal Data for Chest X-ray Report Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=BZPBwXMZVc},
}
Figure