Auto-Encoding Knowledge Graph for Unsupervised Medical Report Generation

Fenglin Liu, Chenyu You, Xian Wu, Shen Ge, Sheng Wang, Xu Sun

TL;DR

Generating medical reports from X-rays typically requires massive datasets of paired images and text, which are costly and time-consuming to produce. This paper introduces the Knowledge Graph Auto-Encoder (KGAE), an unsupervised approach that learns to generate accurate medical reports using independent, unpaired sets of images and text. By leveraging a shared medical knowledge graph to bridge the visual and textual domains, KGAE achieves performance competitive with supervised models and sets new state-of-the-art benchmarks when fine-tuned with paired data.

What Problem Does This Paper Address?

Writing medical reports is a tedious, time-consuming task for radiologists, making automated report generation a highly sought-after AI application. Historically, models tackle this using an encoder-decoder framework (similar to image captioning), which heavily relies on large-scale, paired image-report datasets.

In the medical domain, acquiring these paired datasets is a massive bottleneck. It requires expert radiologists for annotation, is incredibly expensive, and involves strict patient privacy constraints. For many types of medical imaging outside of chest X-rays (like MRIs, dermoscopy, or retinal scans), large paired datasets simply do not exist. The authors aim to bypass this bottleneck by creating a model that can learn to generate reports using a pile of images and a separate pile of text reports, without needing them to be matched pairs.

Methods

To bridge the gap between vision and language without paired data, the authors propose the Knowledge Graph Auto-Encoder (KGAE).

Architecture of the Knowledge Graph Auto-Encoder (KGAE)

The architecture relies on three main components:

  1. Pre-constructed Knowledge Graph (KG): The authors built a graph of frequent clinical abnormalities (e.g., "pleural effusion") and normalities (e.g., "lungs are clear") based on a medical corpus. This graph acts as a universal, shared latent space for both images and text.
  2. Knowledge-Driven Encoder: This module uses standard extractors (ResNet-50 for images, Transformer for text) but applies an attention mechanism to project both the image and the report into the same coordinates within the KG latent space.
  3. Knowledge-Driven Decoder: Because there are no paired images and text to train on, the model is trained via an auto-encoding pipeline. The text encoder maps a report to the KG space, and the decoder learns to reconstruct the original report from those KG coordinates.

How it works at inference: Once trained, an X-ray image is passed through the image encoder to find its coordinates in the KG space. Because the decoder already knows how to turn KG coordinates into fluent text, it seamlessly generates a medical report for the image. The authors also introduce a "Knowledge Bank" (a memory mechanism) into the decoder to help distill and preserve fine-grained medical knowledge during generation.

Datasets

  • Unsupervised Training (Unpaired):
    • Images: CheXpert dataset (224,316 X-ray images).
  • Text: Reports from MIMIC-CXR and IU X-ray (225,528 reports).
  • Evaluation & Supervised Fine-Tuning (Paired):
    • IU X-ray: A standard public benchmark with 7,470 images and 3,955 reports.
  • MIMIC-CXR: A large-scale dataset with 377,110 images and 227,835 reports.

Key Insights and Ideas

  • Knowledge Graphs as Universal Translators: The core "aha" moment of the paper is using a domain-specific knowledge graph as a modality-agnostic bridge. If both an image and a text document can be mapped to the exact same nodes on a graph of medical concepts, you don't need paired data to translate between them.
  • Unsupervised is Surprisingly Competitive: It is highly counterintuitive that a model trained without a single paired image-text example can outperform older supervised models. KGAE proves that learning the underlying structure of medical concepts is incredibly powerful.
  • Massive Gains in Low-Data Regimes: When tested in a semi-supervised setting (using only 20% of available paired data), KGAE significantly outperformed existing state-of-the-art models, proving that unpaired pre-training acts as a massive performance booster when labeled data is scarce.

Key Results

Performance comparison across different ratios of paired data
  • Unsupervised Performance: Without any paired data, KGAE achieved a BLEU-4 score of 0.126 on IU X-ray and 0.062 on MIMIC-CXR, outperforming several early supervised baselines.
  • Semi-Supervised Dominance: When trained on just 20% of paired data, KGAE surpassed the state-of-the-art R2Gen model by 8.5% absolute BLEU-4 on IU X-ray and 9.8% absolute F1 score on MIMIC-CXR.
  • Supervised State-of-the-Art: When fine-tuned on 100% of the paired data, KGAE set new SOTA records across the board (e.g., pushing BLEU-4 to 0.179 on IU X-ray and clinical efficacy F1 to 0.355 on MIMIC-CXR).
  • Human Evaluation: Three professional clinicians blindly evaluated the generated reports. KGAE scored significantly higher than baselines in both faithfulness (not hallucinating fake abnormalities) and comprehensiveness (not missing real abnormalities).

Limitations and Future Work

  • Limitations: While KGAE doesn't need paired data, it still requires massive, independent datasets of medical images and reports, which can still be difficult to collect for highly specialized medical fields. Furthermore, the model relies on an explicitly pre-defined knowledge graph, requiring some manual domain setup.
  • Future Work: The authors suggest replacing the explicit knowledge graph with an implicit, learnable large matrix to improve the model's generalization ability. They also plan to apply this framework to other medical imaging modalities where paired data is notoriously scarce, such as MRIs, dermoscopy, and retinal scans.

Summary updated

BibTeX
@inproceedings{liu2021auto,
  author = {Fenglin Liu and Chenyu You and Xian Wu and Shen Ge and Sheng Wang and Xu Sun},
  title = {{Auto-Encoding Knowledge Graph for Unsupervised Medical Report Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=XfaDhD26SFg},
}
Figure