Manuscript Offprint

arXiv:2608.23853

LUX: A Lesion-Aware Graph-Conditioned Visual - Language Architecture for Explainable Endoscopic Captioning

Alexis Ivan Escamilla-Lopez, Gilberto Ochoa-Ruiz, Salvador Hinojosa, Sharib Ali

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

Abstract

The interpretation of endoscopic imagery in ulcerative colitis remains a complex and subjective process, often affected by variability in human assessment and the subtle presentation of mucosal inflammation. Although deep learning has enabled remarkable advances in automated analysis, most current vision-language models describe endoscopic scenes through global embeddings that neglect the localized and relational nature of pathological evidence. This limitation constrains both clinical reliability and interpretability, as the linguistic descriptions generated by such models are rarely grounded in explicit visual reasoning.

To address this challenge, we introduce LUX (Lesion-aware Unified eXplainable captioning), a lesion-aware graph-conditioned visual-language architecture designed to bridge visual understanding and linguistic interpretation in endoscopic image captioning. LUX constructs a lesion-centric scene graph from Grad-CAM and CBAM activation maps, representing pathological regions as structured nodes and encoding their spatial and clinical relations within a graph topology. These graph embeddings are subsequently integrated into the cross-attention layers of a T5 decoder, allowing each word in the generated caption to attend to specific lesion nodes rather than to abstract global features. Through this design, the model establishes a direct alignment between linguistic semantics and pathological evidence, enabling token-level interpretability and relational reasoning.

Experimental results demonstrate that LUX consistently outperforms strong baseline and state-of-the-art medical captioning models across BLEU, METEOR, ROUGE-L, and CIDEr metrics, with particularly strong gains in CIDEr, indicating improved semantic alignment with expert-authored descriptions. In addition, LUX significantly reduces hallucinated clinical findings and improves lesion-level grounding, as evidenced by more faithful correspondence between generated tokens and localized pathological regions.

By unifying lesion localization, graph-based representation, and contextual language generation within a single architecture, LUX offers a transparent and clinically meaningful step toward explainable artificial intelligence for gastrointestinal endoscopy.

Keywords: Endoscopy, Image captioning, Visual-language models, Graph conditioning, Explainability, Ulcerative colitis

arXiv:2608.23853v1

1. Introduction

Ulcerative colitis (UC) is a chronic inflammatory bowel disease characterized by recurrent mucosal inflammation that varies in severity and spatial distribution throughout the colon (Vashist et al., 2018). Endoscopic evaluation remains the clinical standard for assessing disease activity and therapeutic response (Buchner and et al., 2024). However, this process is inherently subjective, requiring clinicians to interpret subtle vascular, textural, and color variations under heterogeneous imaging conditions. Even with standardized grading systems such as the Mayo Endoscopic Subscore (MES), substantial inter-observer variability persists, particularly in borderline or moderate cases (Hashash and et al., 2024). Consequently, considerable effort has been devoted to developing computational methods capable of improving diagnostic reproducibility and supporting objective endoscopic assessment.

Recent advances in computer vision and deep learning have accelerated the development of computer-aided diagnosis systems for gastrointestinal endoscopy (Lodola and et al., 2025). Convolutional neural networks and transformer-based architectures have demonstrated strong performance in lesion detection, segmentation, and severity classification (Shamshad et al., 2023). Nevertheless, most existing approaches remain focused on classification-oriented objectives and provide limited insight into the semantic or pathological reasoning underlying model predictions. Their outputs are commonly restricted to categorical scores or confidence values, which constrains interpretability and limits clinical trust.

The emergence of vision–language models (VLMs) has introduced new possibilities for generating natural-language descriptions directly from medical imagery (Li and et al., 2025). In clinical settings, image captioning offers the potential to bridge visual findings and diagnostic reasoning by producing structured textual descriptions aligned with expert interpretation. However, most existing medical captioning approaches rely on global visual embeddings that compress heterogeneous pathological patterns into a single representation. As a result, generated captions

∗^{*}Corresponding author.

Email address: gilberto.ochoa@tec.mx (Gilberto Ochoa-Ruiz)

(A) Global visual-language captioning (conventional approach)

(B) Lesion-aware graph-conditioned captioning (proposed)

Figure

Inflamed mucosa with possible ulceration and bleeding.

Marked erythema with loss of vascular pattern and superficial erosions, consistent with moderate disease (by MES-2).

Global visual embedding

No explicit lesion entities

Tokens weakly grounded

Risk of hallucinated findings

Lesion-centric representation

Token-level grounding

Reduced hallucination

Clinically traceable reasoning

Figure 1: Comparison between conventional global visual-language captioning and the proposed lesion-aware graph-conditioned approach. (A) Conventional medical captioning compresses visual information into global embeddings, often producing weakly grounded descriptions and hallucinated findings. (B) In LUX, pathological regions are represented as lesion nodes within a relational graph that conditions decoder cross-attention, enabling token-level grounding and clinically traceable reasoning.

frequently lack lesion-level grounding, conflate distinct findings, or introduce unsupported pathological statements (Srinivasan and et al., 2023). These limitations are illustrated in Fig. 1.

At the same time, the growing adoption of large language models (LLMs) in medical vision–language research has intensified concerns regarding interpretability, scalability, and clinical grounding (Thirunavukarasu et al., 2023). Although architectures such as T5 and multimodal transformers provide remarkable linguistic fluency, their outputs often depend heavily on large-scale language priors rather than explicit pathological evidence. In medical imaging domains where annotated data remain limited and interpretability is essential, there is a critical need for architectures capable of maintaining clinical transparency without relying exclusively on massive language models or weakly grounded global representations.

These challenges are closely related to the broader problem of explainable artificial intelligence (XAI) in healthcare (Chen et al., 2022). Existing explainability approaches, including GradCAM and attention visualization, provide post hoc interpretations that highlight influential image regions after prediction. While useful, such techniques do not explicitly integrate interpretability into the reasoning process itself. In clinical practice, physicians require systems that can associate localized pathological findings with coherent diagnostic descriptions rather than merely highlighting diffuse attention regions. This distinction is particularly important in ulcerative colitis endoscopy, where disease severity depends on the spatial co-occurrence and progression of multiple mucosal abnormalities.

Prior lesion-aware frameworks (López-Escamilla et al., 2025) partially addressed this limitation by incorporating localized visual grounding into ulcerative colitis assessment. Although these approaches improved feature-level interpretability, they did not explicitly model relations among lesion entities nor directly constrain language generation through relational reasoning. Consequently, the generated descriptions remained only partially connected to the underlying pathological evidence.

To address these limitations, we introduce LUX (Lesion-aware Unified eXplainable captioning), a lesion-aware graph-conditioned visual-language architecture for explainable endoscopic image captioning. The proposed framework, illustrated in Fig. 2, models the endoscopic scene as a structured graph of pathological regions derived from Grad-CAM and CBAM activations. Lesion nodes encode localized pathological evidence, while graph edges capture spatial and semantic relationships among lesions. These graph representations are subsequently integrated into the cross-attention layers of a T5 decoder, enabling each generated token to attend jointly to visual embeddings and lesion-level relational structures.

Rather than treating caption generation as a direct image-to-text translation problem, LUX formulates medical captioning as an evidence-grounded clinical reasoning process. The framework progressively localizes pathological findings, abstracts them into lesion entities, reasons over their relationships, and generates clinically structured language explicitly linked to visual evidence. Through this design, LUX establishes traceable alignment between pathological regions and generated descriptions, reducing hallucinated findings while improving interpretability and semantic consistency.

The principal contributions of this work are summarized as follows:

• We propose a lesion-aware graph-conditioned vision–language architecture that integrates localized pathological evidence directly into the caption generation process.

• We introduce a scene–lesion graph representation that models spatial and semantic relationships among inflammatory findings in ulcerative colitis endoscopy.

• We develop a dual cross-attention mechanism that enables token-level grounding between generated language and lesion-level representations.

• We demonstrate improved caption quality, lesion grounding, and hallucination reduction compared with conventional medical captioning baselines.

• We formulate endoscopic image captioning as an evidence-constrained multimodal reasoning problem aligned with clinical interpretation practices.

References (55)