R2GenCSR: Retrieving Context Samples for Large Language Model based X-ray Medical Report Generation

Xiao Wang, Yuehang Li, Fuling Wang, Shiao Wang, Chuanfu Li +1 more
8/19/2024
cs.CVcs.AIcs.CL

Official code: Event-AHU/Medical_Image_Analysis (243 stars, BSD-3-Clause, last commit 2026-02-27).

Abstract

Inspired by the tremendous success of Large Language Models (LLMs), existing X-ray medical report generation methods attempt to leverage large models to achieve better performance. They usually adopt a Transformer to extract the visual features of a given X-ray image, and then, feed them into the LLM for text generation. How to extract more effective information for the LLMs to help them improve final results is an urgent problem that needs to be solved. Additionally, the use of visual Transformer models also brings high computational complexity. To address these issues, this paper proposes a novel context-guided efficient X-ray medical report generation framework. Specifically, we introduce the Mamba as the vision backbone with linear complexity, and the performance obtained is comparable to that of the strong Transformer model. More importantly, we perform context retrieval from the training set for samples within each mini-batch during the training phase, utilizing both positively and negatively related samples to enhance feature representation and discriminative learning. Subsequently, we feed the vision tokens, context information, and prompt statements to invoke the LLM for generating high-quality medical reports. Extensive experiments on three X-ray report generation datasets (i.e., IU-Xray, MIMIC-CXR, CheXpert Plus) fully validated the effectiveness of our proposed model. The source code of this work will be released on \url{https://github.com/Event-AHU/Medical_Image_Analysis}.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Foundation models based medical image analysis

24318C, C++Dec 25, 20237 months agoBSD-3-Clause
context-sample-retrievalfoundation-modellarge-language-modelllmmae+8 more

Similar Papers

Cite this paper

@article{wang2024rgencsr,
  title  = {R2GenCSR: Retrieving Context Samples for Large Language Model based X-ray Medical Report Generation},
  author = {Xiao Wang and Yuehang Li and Fuling Wang and Shiao Wang and Chuanfu Li and Bo Jiang},
  year   = {2024},
  eprint = {2408.09743},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09743v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.09743.svg)](https://codeofpaper.com/paper/2408.09743)

Discussion