arXiv:2611.09866cs.CVNov 2026

Manuscript Offprint

arXiv:2611.09866

GRAC: Graph-Based Retrieval-Augmented Captioning for Surgical Scene Description

Rochak Dhakal, Chen Zhao, Soup Cobb, Xin Qian, Xiaofeng Yang, Weihua Zhou

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

Abstract

Purpose: Surgical operative reports document the surgical procedures and support surgical training, performance assessment, and workflow review. However, extracting meaningful procedural information often requires extensive manual review and clinical expertise. Automated generation of clinically meaningful and contextually accurate surgical scene description can reduce manual review effort. Since many patterns recur across surgical scenes deep learning models have opportunity to learn these patterns integrating prior knowledge from scenes to generate more accurate and contextually relevant descriptions.

Methods: We propose GRAC (Graph-Based Retrieval-Augmented Captioning), a framework that represents surgical scenes as graphs to capture relationships among instruments, their actions, and anatomical structures. Given an input surgical scene graph, GRAC learns to retrieve relevant graph-caption pairs from the training data. It then compares the instrument-tissue interactions in the retrieved examples with those of the input scene and uses the resulting comparison features to condition retrieved-caption representations during generation.

Results: On the combined EndoVis-18 evaluation benchmark, GRAC achieved a CIDEr-D of 5.88, compared with 4.23 for SGT and 3.36 for the strongest conventional Transformer-based captioning baseline. GRAC also achieved an exact instrument–action–target triplet-set accuracy of 52.6%, compared with 32.7% for SGT and 26.2% for the strongest conventional baseline. These findings demonstrate improvements in both linguistic quality and factual agreement. On the TORS dataset, GRAC achieved a CIDEr-D of 5.06, compared with 3.80 for the strongest baseline.

Conclusion: GRAC demonstrates that integrating structured surgical scene representations with relevant information retrieved from prior examples enhances surgical scene understanding and generates more contextually meaningful descriptions.

Keywords: Surgical scene graphs; Surgical captioning; Retrieval-augmented generation; Surgical caption generation

1 Introduction

Surgical video recordings provide valuable information about operative procedures and support surgical training, performance assessment, and workflow analysis [1]. Automatically translating

GRAC: Graph-based Retrieval-Augmented Captioning

Figure

Figure 1: Overview of GRAC. The input surgical scene graph is encoded to capture surgical interactions and retrieve similar prior scene graphs with their corresponding captions. GRAC then compares the retrieved graphs with the current scene and uses these comparisons to guide caption generation through a Transformer decoder.

surgical activities into meaningful descriptions can facilitate procedural documentation, video retrieval, and the development of computer-assisted surgical systems. Surgical scene graphs provide a structured representation of these activities [2], where nodes represent surgical instruments and anatomical structures, and edges describe their relationships and interactions.

Existing surgical report generation methods primarily learn a direct mapping from scene representations to natural-language descriptions [3, 4, 5]. Although these approaches can generate descriptions of surgical activities, learning the relationships between structured scene information and language can be challenging when annotated training data are limited. Surgical procedures, however, contain recurring patterns of instrument use, actions, and anatomical interactions, often described using similar terminology. These characteristics suggest that descriptions of previously observed surgical scenes can provide useful prior information for generating new reports. Retrieval-based approaches offer a complementary direction [6, 7] by incorporating relevant examples from the training data into the generation process.

Although surgical scenes frequently exhibit similar patterns, effectively using prior examples for caption generation requires careful consideration. Similar instruments may perform different actions or interact with different anatomical structures. Thus, retrieving relevant examples must be complemented by comparing their interactions with the current scene to ensure that the generated descriptions reflect the observed surgical activity. To address these challenges, we propose GRAC, a scene-graph-to-caption framework with three complementary components. First, an interaction-aware graph encoder represents relationships among surgical instruments, their actions, and anatomical structures. Second, a caption-supervised retrieval module learns to retrieve prior graph-caption pairs based on surgical activity rather than appearance alone. Third, a graph-conditioned caption memory compares the retrieved and current scenes and uses this comparison to guide caption generation. We evaluate GRAC on the EndoVis-18 and TORS datasets using language-generation metrics and measures of factual correctness.

The main contributions of this work are summarized as follows:

I. Surgical activity-guided retrieval We introduce a caption-supervised contrastive learning strategy that brings graph embeddings of similar surgical activities closer together, enabling the model to retrieve relevant prior scene graphs and their corresponding captions based on learned graph similarity.

II. Graph comparison-guided caption generation: We develop an instrument-aligned comparison mechanism that captures differences between current and retrieved scene graphs and incorporates this information into retrieved caption representations to guide generation.

III. Integrated surgical scene-captioning framework: We combine interaction-aware graph encoding, activity-guided retrieval, and graph-conditioned caption generation in a unified framework, demonstrating their combined effectiveness through evaluations on EndoVis-18 and TORS and systematic ablation studies.

References (25)