[Paper Review] SurgicalGPT: End-to-End Language-Vision GPT for Visual Question Answering in Surgery
SurgicalGPT introduces an end-to-end trainable Language-Vision GPT (LV-GPT) model that integrates vision tokens—extracted via a learnable vision tokenizer and embedded with token type and pose information—into a GPT-2 backbone to enable visual question answering in robotic surgery. By sequencing word tokens before vision tokens, the model leverages GPT's strong language generation to improve VQA performance, achieving 3–5% higher accuracy than state-of-the-art models on EndoVis18-VQA and Cholec80-VQA, with further gains from optimized token ordering and embedding strategies.
Advances in GPT-based large language models (LLMs) are revolutionizing natural language processing, exponentially increasing its use across various domains. Incorporating uni-directional attention, these autoregressive LLMs can generate long and coherent paragraphs. However, for visual question answering (VQA) tasks that require both vision and language processing, models with bi-directional attention or models employing fusion techniques are often employed to capture the context of multiple modalities all at once. As GPT does not natively process vision tokens, to exploit the advancements in GPT models for VQA in robotic surgery, we design an end-to-end trainable Language-Vision GPT (LV-GPT) model that expands the GPT2 model to include vision input (image). The proposed LV-GPT incorporates a feature extractor (vision tokenizer) and vision token embedding (token type and pose). Given the limitations of unidirectional attention in GPT models and their ability to generate coherent long paragraphs, we carefully sequence the word tokens before vision tokens, mimicking the human thought process of understanding the question to infer an answer from an image. Quantitatively, we prove that the LV-GPT model outperforms other state-of-the-art VQA models on two publically available surgical-VQA datasets (based on endoscopic vision challenge robotic scene segmentation 2018 and CholecTriplet2021) and on our newly annotated dataset (based on the holistic surgical scene dataset). We further annotate all three datasets to include question-type annotations to allow sub-type analysis. Furthermore, we extensively study and present the effects of token sequencing, token type and pose embedding for vision tokens in the LV-GPT model.
Motivation & Objective
- To address the lack of robust, end-to-end trainable multi-modal models that can jointly process surgical images and natural language questions for visual question answering.
- To overcome the limitations of unidirectional attention in standard GPT models by integrating vision tokens in a way that preserves contextual coherence and improves answer generation.
- To reduce reliance on surgical experts for answering procedural questions by enabling automated, context-aware VQA in robotic surgery environments.
- To introduce a new surgical-VQA dataset (PSI-AVA-VQA) with detailed question-type annotations to support sub-type analysis and model evaluation.
- To investigate the impact of token sequencing, vision token type, and pose embedding on VQA performance in a GPT-based architecture.
Proposed method
- Extends GPT-2 with a learnable vision tokenizer (ResNet-18, Swin-T, or ViT) to extract and embed visual features as vision tokens.
- Introduces vision token type embedding to distinguish vision tokens from language tokens and pose embedding to encode spatial position of image patches.
- Sequences word tokens before vision tokens in the input sequence to align with the autoregressive nature of GPT, mimicking human reasoning: understand question first, then reason from image.
- Employs a multi-modality transformer decoder with cross-attention to attend to both language and vision tokens, enabling joint representation learning.
- Uses a fine-tuned GPT-2 backbone with added vision-specific embeddings, trained end-to-end on surgical VQA datasets.
- Applies ablation studies to evaluate the impact of token ordering, vision token type, and pose embedding (with and without positional encoding) on model performance.
Experimental results
Research questions
- RQ1How does the sequential ordering of word and vision tokens affect VQA performance in a GPT-based model?
- RQ2What is the impact of vision token type and pose embedding on the accuracy and robustness of surgical VQA?
- RQ3Can a GPT-based model effectively integrate visual inputs through a learnable vision tokenizer to outperform existing vision-language models in surgical VQA?
- RQ4Does the use of zero-position embedding (instead of learned positional encoding) improve performance in certain architectural variants?
- RQ5How does the LV-GPT model generalize across diverse surgical VQA datasets, including newly annotated ones?
Key findings
- The LV-GPT model outperforms state-of-the-art models by 3–5% on EndoVis18-VQA and Cholec80-VQA, achieving an F1 score of 0.6811 and 0.9429, respectively.
- Sequencing word tokens before vision tokens improved model performance by 2–4%, demonstrating the importance of input order in autoregressive GPT models.
- Using custom vision token embedding (C-VE) with vision token type and zero-position embedding (VT-TY + VT-ZPE) yielded the best performance, especially in the ViT-based variant.
- Surprisingly, zero-position embedding (ZPE) outperformed learned positional encoding in the LV-GPT model, particularly in the PSI-AVA-VQA dataset, suggesting that double positional encoding in Swin/ViT + GPT layers may be detrimental.
- The ablation study confirmed that VT-TY + VT-ZPE with C-VE achieved the highest F1 score of 0.6811 on EndoVis18-VQA, indicating optimal fusion of modality-specific embeddings.
- The novel PSI-AVA-VQA dataset, annotated with question-type categories, enabled sub-type analysis and revealed significant performance gains in tool location and procedural question types when using optimized tokenization and embedding strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.