arXiv:2610.30928cs.CVOct 2026

Manuscript Offprint

arXiv:2610.30928

ICGF-CXRMate: Image-Conditioned Clinical Context Compression and Gated Fusion for Chest X-ray Report Generation

Vu Minh Tran, Thuc Huynh, Son Thanh Luu, Doanh C. Bui

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Vu Minh Tran 1,2,∗^{1,2,*}, Thuc Huynh 1,2,∗^{1,2,*}, Son Thanh Luu 1,2^{1,2}, Doanh C. Bui 1,2^{1,2}

1^{1}University of Information Technology

2^{2}Viet Nam National University Ho Chi Minh City

∗^{*} These authors contributed equally to this work

Abstract. Auxiliary patient data can improve chest X-ray report generation, but directly concatenating heterogeneous clinical information with visual tokens produces long, variable-length decoder prompts and may expose the model to redundant or image-irrelevant context. We propose ICGF-CXRMate, an image-conditioned clinical context compression and gated fusion framework. Learnable queries are first conditioned on the current chest X-ray representations and then attend to the patient-data sequence, compressing it into a fixed number of clinical context tokens. Gated cross-attention selectively integrates these tokens into the visual stream, while the compressed tokens are retained in the decoder prompt as a direct clinical pathway. Experiments on linked MIMIC-CXR and MIMIC-IV-ED examinations show that ICGF-CXRMate improves report quality while reducing the average prompt length. In Stage 2, it improves RadGraph-F1 from 24.00 to 28.86, CXR-BERT similarity from 56.86 to 62.80, and BLEU-4 from 5.14 to 7.96 compared with CXRMate-ED, while reducing the average prompt length from 373.89 to 288.37 tokens, corresponding to a 22.9% reduction. After self-critical sequence training, ICGF-CXRMate outperforms CXRMate-ED on six of eight report-quality metrics in Stage 3. Ablation studies confirm the complementary contributions of image-conditioned compression, gated fusion, and direct retention of the compressed clinical tokens.

Keywords: Radiology report generation · Chest X-ray · Multimodal learning · Clinical context compression

1 Introduction

Chest X-ray (CXR) report generation aims to automatically produce a radiology report from one or more images in a CXR examination. Such systems may assist radiologists and improve reporting efficiency amid increasing imaging workloads [11]. The field has progressed from conventional image-to-text models toward approaches that jointly process multiple radiographs, optimize clinical consistency, and employ radiology-specific large vision-language models [2, 5, 7, 17, 24].

Tran et al.

Recent studies further incorporate information beyond the current radiographs. Longitudinal methods use prior examinations to model interval changes and disease progression [6, 19, 28, 30], while other approaches use the examination indication to guide generation toward patient-specific clinical concerns [16, 18]. These findings show that contextual information can improve the clinical relevance of generated reports.

In clinical practice, radiologists interpret images together with presenting symptoms, examination indication, clinical history, and medication records [4]. CXRMate-ED [20] introduced a unified representation for heterogeneous patient data and identified triage, reconciled medicines, indication, and clinical history as effective inputs for CXR report generation. Following this evidence, we adopt the same four sources and focus on improving how their variable-length representations are compressed and integrated with visual tokens.

CXRMate-ED directly concatenates the complete patient-data sequence with the visual tokens, producing a decoder prompt whose length grows with the available clinical information. Larger inputs may degrade performance due to prompt growth, attention dilution, and potentially confounding auxiliary evidence [20, 25]. This motivates a mechanism that selects image-relevant clinical context and controls its influence on the visual representations.

To address these limitations, we propose ICGF-CXRMate, an image-conditioned clinical context compression and gated fusion framework. Learnable queries are conditioned on the current CXR representations and then retrieve relevant information from the patient sequence, producing a fixed number of clinical context tokens. Gated cross-attention selectively integrates this context into the visual stream, while the compressed tokens are retained as a direct clinical pathway to the decoder.

Experiments on linked MIMIC-CXR and MIMIC-IV-ED examinations show that ICGF-CXRMate reduces the average prompt length from 373.89 to 288.37 tokens, corresponding to a 22.9% reduction. In Stage 2, it improves RadGraph-F1 from 24.00 to 28.86, CXR-BERT similarity from 56.86 to 62.80, and BLEU-4 from 5.14 to 7.96 over CXRMate-ED. After self-critical sequence training, it outperforms CXRMate-ED on six of eight report-quality metrics in Stage 3.

The main contributions are as follows:

– We propose an image-conditioned clinical context compression module that converts variable-length auxiliary patient data into a fixed number of radiographically relevant clinical tokens.

– We introduce gated cross-attention fusion to selectively integrate the compressed context into the visual stream while preserving a direct clinical-token pathway to the decoder.

– Experiments and ablation studies demonstrate improved report quality, a 22.9% reduction in average prompt length, and consistent benefits after self-critical sequence training.

References (29)