EndoComparer: Comparative Surgical Video Question Answering with Pseudo-Siamese Visual Adaptation and Perceive-then-Compare Reasoning

Shi Li1,2,*, Lalith Sharan1,2, Joël L. Lavanchy3,4, Kun Yuan1,2, Lorenzo Arboit1,2, Nabani Banik1,2, Elif Yazici1,2, Maria Vannucci2,5, Vinkle Srivastav1,2, Pietro Mascagni1,2,6, Nicolas Padoy1,2
1ICube, UMR7357, University of Strasbourg, CNRS, INSERM, France  ·  2Institute of Image-Guided Surgery, IHU Strasbourg, France  ·  3University Digestive Health Care Center – Clarunis, Basel, Switzerland  ·  4Department of Biomedical Engineering, University of Basel, Switzerland  ·  5General Surgery Department, University of Turin, Italy  ·  6Fondazione Policlinico Universitario Agostino Gemelli IRCCS, Rome, Italy
*Corresponding author: shi.li@unistra.fr
TL;DR

EndoComparer is a vision-language model focused on cross-case surgical video comparison: given two surgical videos from different cases, it answers questions about whether and how they differ in anatomy, tools, actions and skill. EndoDiffVQA is the benchmark we built for this task.

Abstract

Purpose: Surgical training benefits from explicit comparison between cases: in patient condition, in technique and in skill proficiency. Surgical vision-language models (VLMs) offer a promising and flexible interface for this purpose. Yet current VLMs typically see one video at a time, and they often fall short when asked to compare videos.

Methods: We propose EndoComparer, a VLM for comparative surgical video question answering with two components. (a) A Pseudo-Siamese Visual LoRA (PSVL) gives each video slot its own low-rank adapter over a shared frozen vision encoder, separating the two videos in the visual pathway at the cost of a single encoder pass. (b) A Perceive-then-Compare chain of thought (PtC-CoT) trains the model to first state what each video shows, then derive the answer from these statements. We further curate EndoDiffVQA, a benchmark of nearly 11K multiple-choice questions on video pairs over cholecystectomy and gastric bypass procedures, covering anatomy, tool, action and skill.

Results: EndoComparer outperforms strong generalist and surgical VLMs on detecting and specifying differences between videos. Ablations show that the two proposed components contribute complementarily, and the model remains more robust under a video-swap control that exposes confusion between the two videos.

Conclusion: Providing a dedicated visual reasoning path through PSVL and PtC-CoT makes cross-case comparison of surgical videos more robust for VLMs. EndoDiffVQA and EndoComparer provide a benchmark and a strong baseline for this task.

EndoComparer

Model architecture

EndoComparer architecture: two video slots pass through a shared frozen vision transformer and merger with slot-specific LoRA adapters, the language model reads the interleaved sequence, and the Perceive-then-Compare response states what each video shows before the answer letter.
Table 1: comparison with baselines on the EndoDiffVQA test split
Model 4-subset macro Strict per subset
DetectSpecifyStrict Chole-CapLRYGB-CapChole-SkillLRYGB-Skill
Zero-shot
Qwen3.5-9B49.857.335.441.334.431.634.3
Qwen3.8-27B52.858.9†35.238.733.844.723.6
InternVL3.5-8B49.754.5†30.644.725.528.623.6
InternVL3.5-30B56.657.137.244.532.036.336.1
SurgVidLM51.549.2†32.132.524.939.232.0
GPT-5.549.556.332.945.825.935.224.7
Gemini 3.6 Flash59.175.146.953.946.943.143.7
Fine-tuned on EndoDiffVQA
InternVL3.5-8B61.685.3†47.066.351.746.423.6
SurgVidLM60.088.3†45.162.652.238.027.5
SurgTEMP60.988.9†46.864.352.942.627.5
SurgViVQA52.437.532.632.933.136.927.4
PeskaVLP61.363.3†44.653.944.847.731.9
SurgCLIP61.457.343.554.045.447.527.2
Qwen3.5-9B (backbone)63.677.648.364.649.443.331.1
  w/o PSVL64.078.049.565.351.644.933.4
  w/o PtC-CoT65.680.350.968.352.543.332.6
EndoComparer (ours)67.783.554.069.654.551.940.1

2,300 test items, %. Detect, Specify and Strict are 4-subset macros; the last four columns give Strict per subset. † Specify macro over fewer than four subsets, because the model called fewer than 20 items Different in the others; not highlighted. Best per group in bold; the fine-tuned group includes ours. Standard deviations are given in the paper.

EndoDiffVQA

Dataset overview

The four-stage EndoDiffVQA construction pipeline: clips and annotations, per-video fact extraction, pairing and relation building, QA construction and audit.
Construction pipeline. (1) Clips and annotations from CholecT50, MultiBypass140 and CholeScore. (2) Per-video facts extracted with a fixed slot schema from captions, or taken directly from the expert score for skill. (3) Clips are paired within split, procedure and surgical phase, across cases, and each pair receives a relation: same, different, only 1, only 2 or neither. (4) One of 13 templates renders the relation into a stem and four options, with named distractors and a clinician audit.
Details on four subsets
SubsetProcedureSource annotationQuestionsClip length
Chole-Cap-DQALaparoscopic cholecystectomyCholecT50 scene captionsAnatomy · Tool · Actionseconds to tens of seconds
LRYGB-Cap-DQARoux-en-Y gastric bypassMultiBypass140 scene captions (newly curated)Anatomy · Tool · Actionseconds to tens of seconds
Chole-Skill-DQALaparoscopic cholecystectomyCholeScore OSATS-style criteria (1–5)Skilltens of minutes
LRYGB-Skill-DQARoux-en-Y gastric bypassMultiBypass140 GOALS domains (newly annotated)Skilltens of minutes
Dataset stats
Donut charts of items per category and attribute in EndoDiffVQA.
Templates and examples
D1 swap: the correct facts on the wrong videos D2 collapse: the opposite verdict D3 substitute: one side replaced by another value D4 absent: a value neither video shows
A1Anatomypresence Chole-Cap-DQAphase: calot triangle dissection
TemplateIs the <entity> visible in both videos?

Is the falciform ligament visible in both videos?

  • (a)No — visible in neither videoD4 absent
  • (b)No — visible in Video 1 onlyD1 swap
  • (c)Yes — visible in both videosD2 collapse
  • (d)No — visible in Video 2 onlycorrect
Answer(d) No — visible in Video 2 only
relation: only Video 2
A2Anatomycolour Chole-Cap-DQAphase: calot triangle dissection
TemplateIs the <entity> the same colour in both videos?

Is the gallbladder the same color in both videos?

  • (a)No — blue-green in Video 1, yellow-pink in Video 2D1 swap
  • (b)Yes — blue-green in both videosD2 collapse
  • (c)Yes — gray in both videosD4 absent
  • (d)No — yellow-pink in Video 1, blue-green in Video 2correct
Answer(d) No — yellow-pink in Video 1, blue-green in Video 2
relation: different
A3Anatomyposition Chole-Cap-DQAphase: clipping and cutting
TemplateIs the <entity> in the same part of the view in both videos?

Is the gallbladder in the same part of the view in both videos?

  • (a)Yes — bottom-right in both videosD4 absent
  • (b)No — left in Video 1, top in Video 2correct
  • (c)Yes — left in both videosD2 collapse
  • (d)No — top in Video 1, left in Video 2D1 swap
Answer(b) No — left in Video 1, top in Video 2
relation: different
A4Anatomystate Chole-Cap-DQAphase: gallbladder dissection
TemplateIs the <entity> <state> in both videos?

Is the cystic artery cut in both videos?

  • (a)No — cut in Video 2 onlyD1 swap
  • (b)No — cut in Video 1 onlycorrect
  • (c)Yes — cut in both videosD2 collapse
  • (d)No — cut in neither videoD4 absent
Answer(b) No — cut in Video 1 only
relation: only Video 1
T1Toolpresence Chole-Cap-DQAphase: gallbladder dissection
TemplateIs <a tool> used in both videos?

Is a hook used in both videos?

  • (a)No — a hook is used in Video 2 onlyD1 swap
  • (b)Yes — a hook is used in both videosD2 collapse
  • (c)No — a hook is used in Video 1 onlycorrect
  • (d)No — no hook appears in either videoD4 absent
Answer(c) No — a hook is used in Video 1 only
relation: only Video 1
T2Toolentry side Chole-Cap-DQAphase: calot triangle dissection
TemplateDoes the <tool> enter from the same side in both videos?

Does the grasper enter from the same side in both videos?

  • (a)Yes — from the left in both videosD2 collapse
  • (b)No — from the top in Video 1, from the left in Video 2D1 swap
  • (c)No — from the left in Video 1, from the top in Video 2correct
  • (d)Yes — from the bottom-right in both videosD4 absent
Answer(c) No — from the left in Video 1, from the top in Video 2
relation: different
T3Toolcount Chole-Cap-DQAphase: calot triangle dissection
TemplateDo both videos show the same number of instruments engaging the <entity>?

Do both videos show the same number of instruments engaging the gallbladder?

  • (a)Yes — neither video shows an instrument engaging itD4 absent
  • (b)No — more instruments in Video 2correct
  • (c)Yes — the same number in both videosD2 collapse
  • (d)No — more instruments in Video 1D1 swap
Answer(b) No — more instruments in Video 2
relation: more in Video 2
T4Toolengagement Chole-Cap-DQAphase: cleaning and coagulation
TemplateIs the <tool> actively engaged with the <entity> in both videos?

Is the grasper actively engaged with the cystic pedicle in both videos?

  • (a)No — idle in both videosD4 absent
  • (b)No — actively engaged in Video 1 onlycorrect
  • (c)No — actively engaged in Video 2 onlyD1 swap
  • (d)Yes — actively engaged in both videosD2 collapse
Answer(b) No — actively engaged in Video 1 only
relation: only Video 1
C1Actioninteraction Chole-Cap-DQAphase: ?
TemplateIs the same interaction with the tissue shown in both videos?

Is the same interaction with the tissue shown in both videos?

  • (a)Yes — a grasper retracts the gallbladder in both videosD4 absent
  • (b)Yes — scissors coagulates the omentum in both videosD2 collapse
  • (c)No — scissors coagulates the omentum in Video 1; scissors cuts the liver in Video 2D1 swap
  • (d)No — scissors cuts the liver in Video 1; scissors coagulates the omentum in Video 2correct
Answer(d) No — scissors cuts the liver in Video 1; scissors coagulates the omentum in Video 2
relation: different
C2Actiontarget part Chole-Cap-DQAphase: calot triangle dissection
TemplateDoes <a tool> hold the same part of the <entity> in both videos?

Does a grasper hold the same part of the gallbladder in both videos?

  • (a)Yes — the peritoneum in both videosD4 absent
  • (b)No — the proximal part in Video 1, the distal part in Video 2correct
  • (c)No — the lateral part in Video 1, the distal part in Video 2D3 substitute
  • (d)No — the distal part in Video 1, the proximal part in Video 2D1 swap
Answer(b) No — the proximal part in Video 1, the distal part in Video 2
relation: different
C3Actiongoal LRYGB-Cap-DQAphase: gastric pouch creation
TemplateIs the surgeon pursuing the same goal in both videos?

Is the surgeon pursuing the same goal in both videos?

  • (a)Yes — cutting the gastric pouch in both videosD4 absent
  • (b)No — grasping the stomach in Video 1; dissecting the fat in Video 2D1 swap
  • (c)No — dissecting the fat in Video 1; grasping the stomach in Video 2correct
  • (d)Yes — grasping the stomach in both videosD2 collapse
Answer(c) No — dissecting the fat in Video 1; grasping the stomach in Video 2
relation: different
S1SkillSkill (CholeScore) Chole-Skill-DQAphase: hepatocystic triangle dissection · criterion: Calot exposure
TemplateIs <criterion> performed to the same standard in both videos?

Is Calot's triangle exposed to the same standard in both videos?

  • (a)Yes — to the same standard in both videosD2 collapse
  • (b)No — clearly better in Video 2D1 swap
  • (c)No — clearly better in Video 1correct
  • (d)No — slightly better in Video 1D3 substitute
Answer(c) No — clearly better in Video 1
relation: better in Video 1
Expert scores: Video 1 = 4, Video 2 = 2 (1–5)
S2SkillSkill (MultiBypass) LRYGB-Skill-DQAphase: gastric pouch creation · domain: bimanual dexterity
TemplateIs <domain> of the same standard in both videos during the <step>?

Is two-handed coordination of the same standard in both videos during the gastric pouch creation?

  • (a)No — clearly better in Video 1D1 swap
  • (b)No — clearly better in Video 2correct
  • (c)Yes — to the same standard in both videosD2 collapse
  • (d)No — slightly better in Video 1D3 substitute
Answer(b) No — clearly better in Video 2
relation: better in Video 2
Expert scores: Video 1 = 3, Video 2 = 5 (1–5)
Qualitative results
A1 Is the liver visible in both videos? Anatomy · presence LRYGB-Cap-DQA
phase: gastrojejunal anastomosis
Video 1
Three frames of video 1 for item A1
1.6 s · 12 s · 76 s
Video 2
Three frames of video 2 for item A1
0.0 s · 96 s · 144 s
  • (a)Yes — visible in both videoscorrect
  • (b)No — visible in Video 2 onlyD3 substitute
  • (c)No — visible in Video 1 onlyD3 substitute
  • (d)No — visible in neither videoD4 absent
Model outputs
Gemini 3.6 Flashzero-shot(b) D3 substitute✗
Qwen3.5-9Bfine-tuned backbone(c) D3 substitute✗
EndoComparerours“Video 1: visible. Video 2: visible. (a)”✓
A2 Is the gallbladder the same color in both videos? Anatomy · colour Chole-Cap-DQA
phase: calot triangle dissection
Video 1
Three frames of video 1 for item A2
0.1 s · 0.8 s · 1.4 s
Video 2
Three frames of video 2 for item A2
0.1 s · 0.5 s · 0.9 s
  • (a)Yes — gray in both videosD4 absent
  • (b)No — light yellow in Video 1, blue-green in Video 2D1 swap
  • (c)No — blue-green in Video 1, light yellow in Video 2correct
  • (d)No — gray in Video 1, light yellow in Video 2D3 substitute
Model outputs
Gemini 3.6 Flashzero-shot(b) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(b) D1 swap✗
EndoComparerours“Video 1: blue-green. Video 2: light yellow. (c)”✓
A3 Is the gallbladder in the same part of the view in both videos? Anatomy · position Chole-Cap-DQA
phase: calot triangle dissection
Video 1
Three frames of video 1 for item A3
1.2 s · 7.7 s · 14 s
Video 2
Three frames of video 2 for item A3
0.1 s · 0.4 s · 0.8 s
  • (a)No — left in Video 1, bottom in Video 2D3 substitute
  • (b)Yes — center in both videosD2 collapse
  • (c)No — center in Video 1, left in Video 2D1 swap
  • (d)No — left in Video 1, center in Video 2correct
Model outputs
Gemini 3.6 Flashzero-shot(c) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(c) D1 swap✗
EndoComparerours“Video 1: left. Video 2: center. (d)”✓
A4 Is the gallbladder coagulated in both videos? Anatomy · state Chole-Cap-DQA
phase: calot triangle dissection
Video 1
Three frames of video 1 for item A4
0.1 s · 0.4 s · 0.8 s
Video 2
Three frames of video 2 for item A4
0.1 s · 0.8 s · 1.5 s
  • (a)Yes — coagulated in both videosD2 collapse
  • (b)No — coagulated in Video 1 onlycorrect
  • (c)No — coagulated in Video 2 onlyD1 swap
  • (d)No — coagulated in neither videoD4 absent
Model outputs
Gemini 3.6 Flashzero-shot(a) D2 collapse✗
Qwen3.5-9Bfine-tuned backbone(a) D2 collapse✗
EndoComparerours“Video 1: coagulated. Video 2: not coagulated. (b)”✓
T1 Is a stapler used in both videos? Tool · presence LRYGB-Cap-DQA
phase: gastrojejunal anastomosis
Video 1
Three frames of video 1 for item T1
5.6 s · 35 s · 64 s
Video 2
Three frames of video 2 for item T1
3.8 s · 24 s · 44 s
  • (a)No — a stapler is used in Video 1 onlyD3 substitute
  • (b)Yes — a stapler is used in both videoscorrect
  • (c)No — a stapler is used in Video 2 onlyD3 substitute
  • (d)No — no stapler appears in either videoD4 absent
Model outputs
Gemini 3.6 Flashzero-shot(c) D3 substitute✗
Qwen3.5-9Bfine-tuned backbone(a) D3 substitute✗
EndoComparerours“Video 1: used. Video 2: used. (b)”✓
T2 Does the needle driver enter from the same side in both videos? Tool · entry side LRYGB-Cap-DQA
phase: jejunojejunal anastomosis
Video 1
Three frames of video 1 for item T2
0.9 s · 5.7 s · 11 s
Video 2
Three frames of video 2 for item T2
6.5 s · 41 s · 75 s
  • (a)Yes — from the left in both videosD4 absent
  • (b)No — from the left in Video 1, from the right in Video 2D1 swap
  • (c)No — from the right in Video 1, from the left in Video 2D2 collapse
  • (d)Yes — from the right in both videoscorrect
Model outputs
Gemini 3.6 Flashzero-shot(c) D2 collapse✗
Qwen3.5-9Bfine-tuned backbone(c) D2 collapse✗
EndoComparerours“Video 1: right. Video 2: right. (d)”✓
T3 Do both videos show the same number of instruments engaging the gallbladder? Tool · count Chole-Cap-DQA
phase: calot triangle dissection
Video 1
Three frames of video 1 for item T3
0.1 s · 0.6 s · 1.0 s
Video 2
Three frames of video 2 for item T3
0.6 s · 3.9 s · 7.2 s
  • (a)No — more instruments in Video 1D1 swap
  • (b)No — more instruments in Video 2correct
  • (c)Yes — the same number in both videosD2 collapse
  • (d)Yes — neither video shows an instrument engaging itD4 absent
Model outputs
Gemini 3.6 Flashzero-shot(a) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(a) D1 swap✗
EndoComparerours“Video 1: 0 instruments. Video 2: 1 instrument. (b)”✓
T4 Is the grasper actively engaged with the cystic pedicle in both videos? Tool · engagement Chole-Cap-DQA
phase: cleaning and coagulation
Video 1
Three frames of video 1 for item T4
0.1 s · 0.6 s · 1.2 s
Video 2
Three frames of video 2 for item T4
0.0 s · 0.4 s · 0.7 s
  • (a)No — idle in both videosD4 absent
  • (b)No — actively engaged in Video 2 onlycorrect
  • (c)No — actively engaged in Video 1 onlyD1 swap
  • (d)Yes — actively engaged in both videosD2 collapse
Model outputs
Gemini 3.6 Flashzero-shot(a) D4 absent✗
Qwen3.5-9Bfine-tuned backbone(c) D1 swap✗
EndoComparerours“Video 1: not engaged. Video 2: engaged. (b)”✓
C1 Is the same interaction with the tissue shown in both videos? Action · interaction LRYGB-Cap-DQA
phase: gastric pouch creation
Video 1
Three frames of video 1 for item C1
2.6 s · 16 s · 30 s
Video 2
Three frames of video 2 for item C1
0.8 s · 4.7 s · 8.6 s
  • (a)No — a stapler grasps the stomach in Video 1; an energy device dissects the stomach in Video 2correct
  • (b)No — an energy device dissects the stomach in Video 1; a stapler grasps the stomach in Video 2D1 swap
  • (c)Yes — a stapler grasps the stomach in both videosD2 collapse
  • (d)Yes — a grasper grasps the gastric pouch in both videosD4 absent
Model outputs
Gemini 3.6 Flashzero-shot(d) D4 absent✗
Qwen3.5-9Bfine-tuned backbone(b) D1 swap✗
EndoComparerours“Video 1: a stapler grasps the stomach. Video 2: an energy device dissects the stomach. (a)”✓
C2 Does a grasper hold the same part of the gallbladder in both videos? Action · target part Chole-Cap-DQA
phase: preparation
Video 1
Three frames of video 1 for item C2
0.2 s · 1.0 s · 1.8 s
Video 2
Three frames of video 2 for item C2
0.1 s · 0.5 s · 0.9 s
  • (a)No — the distal part in Video 1, the proximal part in Video 2D1 swap
  • (b)No — the proximal part in Video 1, the distal part in Video 2D2 collapse
  • (c)Yes — the distal part in both videosD4 absent
  • (d)Yes — the proximal part in both videoscorrect
Model outputs
Gemini 3.6 Flashzero-shot(a) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(a) D1 swap✗
EndoComparerours“Video 1: proximal part. Video 2: proximal part. (d)”✓
C3 Is the surgeon pursuing the same goal in both videos? Action · goal LRYGB-Cap-DQA
phase: jejunojejunal anastomosis
Video 1
Three frames of video 1 for item C3
3.9 s · 24 s · 44 s
Video 2
Three frames of video 2 for item C3
1.4 s · 8.7 s · 16 s
  • (a)Yes — suturing the jejunojejunal defect in both videosD4 absent
  • (b)No — suturing the gastrojejunal defect in Video 1; cutting the biliary limb in Video 2D1 swap
  • (c)No — cutting the biliary limb in Video 1; cutting the alimentary limb in Video 2D3 substitute
  • (d)No — cutting the biliary limb in Video 1; suturing the gastrojejunal defect in Video 2correct
Model outputs
Gemini 3.6 Flashzero-shot(a) D4 absent✗
Qwen3.5-9Bfine-tuned backbone(b) D1 swap✗
EndoComparerours“Video 1: cutting the biliary limb. Video 2: suturing the gastrojejunal defect. (d)”✓
S1 Is the cystic duct dissected to the same standard in both videos? Skill · Skill (CholeScore) Chole-Skill-DQA
phase: hepatocystic triangle dissection · criterion: cystic duct dissection
Video 1
Three frames of video 1 for item S1
57 s · 356 s · 655 s
Video 2
Three frames of video 2 for item S1
63 s · 394 s · 725 s
  • (a)No — slightly better in Video 1D3 substitute
  • (b)No — clearly better in Video 1D1 swap
  • (c)No — clearly better in Video 2correct
  • (d)Yes — to the same standard in both videosD2 collapse
Model outputs
Gemini 3.6 Flashzero-shot(b) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(b) D1 swap✗
EndoComparerours“Video 1: score 3. Video 2: score 5. (c)”✓
S2 Is two-handed coordination of the same standard in both videos during the gastric pouch creation? Skill · Skill (MultiBypass) LRYGB-Skill-DQA
phase: gastric pouch creation · domain: bimanual dexterity
Video 1
Three frames of video 1 for item S2
31 s · 192 s · 352 s
Video 2
Three frames of video 2 for item S2
196 s · 1224 s · 2251 s
  • (a)No — clearly better in Video 1correct
  • (b)No — slightly better in Video 1D3 substitute
  • (c)Yes — to the same standard in both videosD2 collapse
  • (d)No — clearly better in Video 2D1 swap
Model outputs
Gemini 3.6 Flashzero-shot(d) D1 swap✗
Qwen3.5-9Bfine-tuned backbone(c) D2 collapse✗
EndoComparerours“Video 1: score 5. Video 2: score 3. (a)”✓
Citation

BibTeX

To be added.