Unified Chest X-ray and Radiology Report Generation Model with Multi-view Chest X-rays

Hyungyung Lee, Da Young Lee, Wonjae Kim, Jin-Hwa Kim, Tackeun Kim, Jihang Kim, Leonard Sunwoo, Edward Choi

TL;DR

UniXGen is a unified, bidirectional vision-language model capable of both generating multi-view chest X-rays (CXRs) from clinical text and synthesizing radiology reports from CXR images. By tokenizing images into discrete visual codes via VQ-GAN and using an efficient linear-attention Transformer (Performer), UniXGen achieves view-controllable, multi-view conditional generation that outperforms specialized single-task baselines and adapted diffusion models.

What Problem Does This Paper Address?

Generating synthetic medical data offers a promising solution to chronic healthcare ML hurdles—such as strict patient privacy, dataset scarcity, and severe class imbalances. However, previous work in chest radiograph analysis treats the two directions of multimodal synthesis separately:

  1. Chest X-ray generation (text-to-image) typically conditioned only on short disease tags or report snippets, lacking the ability to specify the radiographic projection (e.g., PA vs. AP vs. Lateral) or condition on complementary views.
  2. Radiology report generation (image-to-text) has relied on rigid encoder-decoder architectures tailored to fixed inputs (e.g., strictly one frontal view, or exactly one frontal plus one lateral view), breaking down when arbitrary subsets of views are provided.

UniXGen addresses this architectural fragmentation by framing bidirectional generation as a single sequence-to-sequence problem that natively supports multi-view inputs and controllable target views.

Methods

UniXGen tokenizes both text and vision into a unified discrete vocabulary, then trains an autoregressive language model over multimodal sequences:

  • Image Discretization: A VQ-GAN tokenizes $512 \times 512$ chest radiographs into a $32 \times 32$ grid ($1{,}024$ discrete visual tokens).
  • View-Specific Framing: Special delimiter tokens (e.g., [SOS_PA], [EOS_PA], [SOS_LAT]) explicitly frame visual token spans. This design allows users to prompt the model to generate a specific radiographic view on demand.
  • Efficient Modeling (Performer): Concatenating a full-length radiology report (up to 256 tokens) and up to three high-resolution X-rays ($3 \times 1{,}026$ tokens) results in sequences exceeding 3,000 tokens. To bypass the quadratic memory bottleneck of vanilla self-attention, the authors adopt the Performer architecture using FAVOR+ (positive orthogonal random features) with prefix-sum causal masking for linear-time complexity.
  • Bidirectional Multimodal Training: Sequences (report + X-ray views) are concatenated in random order during training. Conditioned on earlier modalities, the model minimizes negative log-likelihood across all tokens via standard next-token prediction. At inference, supplying text prompts image generation, while supplying one or more images prompts report generation.
Multi-View Input Formulation:
[Report Tokens] + [SOS_LAT] [Lateral Tokens] [EOS_LAT] + [SOS_PA] -> Predicts [PA Tokens]...

Datasets

The authors evaluate on MIMIC-CXR, filtering for studies with up to 3 radiographs across three primary views: Posteroanterior (PA), Anteroposterior (AP), and Lateral (LATERAL).

  • Final subset: 208,534 studies (train: 204,102; validation: 1,659; test: 2,773).
  • Text inputs: Extracted from the complete Findings and Impression sections.
  • No new benchmark dataset was introduced.

Key Insights and Ideas

  • Bidirectional Multitasking Creates Synergy: Training a single backbone simultaneously on image-to-text and text-to-image improves clinical efficacy metrics over models trained purely for a single task (e.g., generating CXRs improves clinical report precision, and vice versa).
  • Multiple Views Fill Clinical Blindspots: In clinical practice, radiologists rely on lateral views to confirm retrocardiac or basal lesions. Experimentally, providing an existing view alongside the report significantly improves the generation quality and pathology alignment of an absent target view (e.g., adding a lateral view resolves ambiguous lung consolidations or pleural effusions).
  • Discrete Tokens Handle View Swapping Natively: Instead of designing cross-attention fusion graphs for multi-view aggregation, the model treats additional view perspectives simply as preceding token context.

Key Results

  • Chest X-ray Generation vs. Single-Task Baselines: UniXGen achieves superior clinical efficacy in generating CXRs compared to single-task models trained solely on individual views (14-diagnosis classification macro AUROC of 0.728 vs. 0.689 for AP, 0.697 for PA, and 0.667 for Lateral).
  • Comparison with Stable Diffusion: Outperforms a fine-tuned Latent Stable Diffusion baseline conditioned on reports (FID: 18.994 vs. 78.857; 14-disease F1: 0.396 vs. 0.290; AUROC: 0.711 vs. 0.589).
  • Multi-View Conditioning Gains: For studies with two X-rays, conditioning CXR generation on the report plus an existing image dropped the overall FID from 16.416 to 8.757 and raised clinical classification F1 from 0.309 to 0.400.
  • Report Generation: UniXGen achieved a CheXpert F1 of 0.420 and BLEU-4 of 0.050, markedly outperforming the single-task report generation baseline (F1 of 0.353, BLEU-4 of 0.038).
  • Human Expert Evaluation: In a blinded review by three board-certified clinicians, UniXGen generated images with a realism score of 4.19 / 5.0 (matching real images at 4.18), and clinicians correctly identified view orientations with high accuracy (100% on Lateral, 75.5% on AP, 66.7% on PA).

Limitations and Future Work

  • Historical Comparison Hallucination: Because real-world reports frequently cite prior studies (e.g., "compared to prior exam, effusion has enlarged"), the autoregressive model sometimes hallucinates historical temporal comparisons without grounding. The authors plan to leverage filtered corpora like CXR-PRO to mitigate this.
  • Fine-Grained Alignment: Human evaluations indicated that while synthetic images look visually realistic, alignment to specific text clauses still lags behind original scans (alignment score of 3.58 vs. 3.98 for originals).
  • Hardware & Device Artifacts: The model occasionally struggles to replicate precise geometries and placements of medical support apparatus (e.g., pacemakers, PICC lines).

Summary updated

BibTeX
@misc{lee2023unified,
  author = {Hyungyung Lee and Da Young Lee and Wonjae Kim and Jin-Hwa Kim and Tackeun Kim and Jihang Kim and Leonard Sunwoo and Edward Choi},
  title = {{Unified Chest X-ray and Radiology Report Generation Model with Multi-view Chest X-rays}},
  year = {2023},
  eprint = {2302.12172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.12172},
}

Loading related content...

Figure