Manuscript Offprint
arXiv:2611.01913SurgQ-VLM: Question-Conditioned Dual-Stream Compression and Answer-Type-Aware Reinforcement for Surgical Video Question Answering
Abstract
Reasoning about surgical video — which phase is underway, which instruments act, and when events occur — underpins operative documentation, workflow analysis, and skill assessment. Yet surgical visual question answering is still largely built on single frames and closed labels that cannot express a duration, an ordering, or a count, and the video models that lift the frame limit typically compress every clip the same way regardless of the question, discarding the temporal evidence the answer needs. Worse, the answers are structurally heterogeneous, spanning five incompatible structures — binary, classification, multi-label, counting, and sentence-temporal — that no single training signal scores uniformly well. We propose SurgQ-VLM, a two-stage model for surgical video question answering. Stage 1 trains a question-conditioned dual-stream (slow/fast) compressor for a LoRA-adapted Qwen2.5-VL-7B: cross-attention conditions both streams on the question, and each clip's visual tokens shrink 49× from the raw ViT patches (11× vs. post-merge backbone tokens). Stage 2 post-trains with GRPO under an answer-type-aware reward that scores each question on the metric matching its answer structure (micro-F1 for label sets, normalised error for counts, a content-timing blend for temporal windows). On a sealed 21,840-question test split over Cholec80 and CholecT50, SurgQ-VLM reaches 0.779 keyword accuracy and a 10× BLEU-4 gain over zero-shot; GRPO adds 2.5 pp K-Acc (2.0 pp attributable to the answer-type-aware reward), concentrated in the structurally hard types, with answer format unchanged (ROUGE-L). Code is available at https://github.com/DhruvMakwana/SurgQ-VLM.
1. Introduction
Automated reasoning over surgical video underpins a growing set of clinically motivated tasks — operative documentation, operating-room workflow analysis and scheduling, and objective skill assessment — each of which depends on knowing not only what happens in a procedure but in
Same 30-second clip — different questions need different evidence

Figure 1. The same 30-second laparoscopic clip requires different temporal evidence for different questions. Prior methods (a) compress without question context, producing incomplete or mistimed answers. SurgQ-VLM (b) conditions both streams on the question via four independent GuidelInjectors, then refines with GRPO's answer-type-aware reward.
what order and when [22, 36]. This evidence is inherently temporal: a phase begins at one second and ends at another, an instrument first appears just before a transition, a clip contains some number of distinct actions. Yet surgical visual question answering (VQA) is still built on single frames and closed label sets [9, 29, 43], which cannot express a duration, an ordering, or a count by construction.
Video vision-language models (VLMs) [15, 19, 21] remove the single-frame limit, but they compress every clip the same way regardless of the question, so the temporal
Accepted to the 2027 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV). © 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
evidence a question needs is often the first evidence the compressor discards (Fig. 1a). Surgery makes this acute: from the same pixels, the same clip may be asked for a phase label, an instrument set, a count, or the second at which a transition occurs — answers spanning five incompatible structures (binary, classification, multi-label, counting, sentence-temporal) that no single training signal scores correctly.
Prior work addresses only fragments of this. Surgical video VLMs that move beyond single frames still train with supervised fine-tuning alone [17, 37]; question-conditioned compressors condition a single unified stream [20]; dual-rate samplers keep a slow and a fast stream but compress both question-agnostically [6, 40]; and reinforcement post-training for medical video normalises one reward across datasets [34] rather than across the answer structures inside a single task. Three gaps remain. (i) Question-agnostic compression discards the temporal evidence a question needs before the language model ever sees it. (ii) SFT plateaus on the structurally hard question types (multi-label, sentence-temporal). (iii) A single scalar RL reward conflates the five incompatible answer structures. We propose SurgQ-VLM (Fig. 1b): Qwen2.5-VL [4] with LoRA [11] and a per-stream question-conditioned dual-stream compressor that extends HICom [20] and SlowFast-LLaVA [40], post-trained through a two-stage supervised fine-tuning (SFT) → GRPO [31] pipeline whose continuous reward dispatches on answer structure. Surgery is our testbed; all experiments are on laparoscopic cholecystectomy. The compressor design and answer-type reward family make no procedure-specific assumptions — ordered phases, acting instruments, and time-stamped events recur across procedural domains — but cross-procedure generalization is untested and a concrete next step.
• A question-conditioned dual-stream compressor. Four independent GuideInjectors shape a 30-second clip into four separately addressable token groups (slow/fast × local/global) within a fixed 671-token budget — a 49× compression of the clip's 32,805 ViT patch tokens. Question conditioning is the load-bearing element (removing it costs 10.6 pp K-Acc, 21.2 pp sentence-temporal); dual-streaming adds a further +0.9 pp Primary and enables the per-stream analysis of Sec. 4.5.
• A multi-task surgical video-QA benchmark of 80,636 QA pairs automatically generated from the per-frame phase, instrument, and triplet annotations of Cholec80 and CholecT50 [25, 36], spanning eighteen question types and five answer structures across 6,701 clips, with a sealed 1,914-clip / 21,840-QA test split.
On the sealed test split, SurgQ-VLM reaches 0.779 K-Acc and a BLEU-4 gain over the Qwen2.5-VL-7B zero-shot baseline; the MedGRPO model [34] (uAI-NEXUS Med-VLM) scores 0.398 zero-shot out-of-domain. The GRPO gain concentrates in the open-ended answer types (multi-label, counting, sentence-temporal), while surface form stays fixed (ROUGE-L p=0.98). Code and trained weights are public.
2. Related work
Video VLMs and temporal compression. Video VLMs share a common structure: a frozen vision encoder produces per-frame tokens, a compressor reduces them to a budget the language model can consume, and the language model is fine-tuned on video-text pairs [15, 19, 21]. Token compression is the design axis where these models differ. ChatUni-VI [13] clusters dynamic visual tokens, MovieChat [33] maintains sparse memory banks, and LongVU [32] prunes by cross-frame similarity — but all remain question-agnostic: the same tokens are produced for every query on a clip. Two recent threads push against this. SlowFast-LLaVA-1.5 [40] borrows the SlowFast split [6] to trade spatial against temporal resolution across two streams, and SlowFocus [24] localises the question-relevant temporal segment and samples it at higher density for fine-grained temporal reasoning. HICom [20] instead conditions a single-stream compressor on the question, pooling patches relevant to the query. QGVTC [18] does the same for static images. SurgQ-VLM differs from both: it conditions each stream independently through four GuideInjectors, producing four question-shaped token groups rather than a single conditioned representation.
Surgical and medical VLMs. Surgical-VQA [29] introduced transformer-based surgical question answering, releasing the Cholec80-VQA and EndoVis-18-VQA benchmarks by bootstrapping QA pairs from per-frame phase and instrument annotations. A line of single-frame follow-up extends this template: GPT-2 decoding [30], gated fusion [1], localised answering [2, 3], pituitary adaptation [9], and scenagraph priors [43]. SurgViVQA [5] moves to short clips with a GPT-2 decoder and introduces the keyword-accuracy protocol we adopt. Recent surgical LVLMs — LLaVA-Surg [17], Surgical-LLaVA [12], and Surgical-LVLM [38] adapt general-purpose VLM assistants to the surgical domain, and general medical foundation models such as LLaVA-Med [16], VILA-M3 [23], Med-PaLM M [35], and Med-Gemini [28] target broader biomedical tasks without procedural temporal structure. The closest work moves to video: SurgVidLM [37] targets multi-grained surgical video understanding, and Surgery-R1 [8] adds reinforcement fine-tuning to surgical visual question-localised answering, localising answers on robotic-surgery frames rather than scoring open-ended temporal answers.
Reinforcement learning for VLM post-training. Reinforcement learning has become a standard post-training step for reasoning in language models since GRPO [31], which replaces a learned value function with group-relative returns and enables on-policy updates without a critic. VLMs followed quickly. For video, Time-R1 [39] formulates temporal grounding as a GRPO problem with an IoU-based reward on predicted time spans, and Video-R1 [7] introduces T-GRPO, a temporal variant of GRPO that contrasts rollouts on ordered versus shuffled frames to teach reasoning-over-time. In the medical domain, MedVLM-R1 [26] and Med-R1 [14] post-train image VLMs with GRPO for medical image reasoning, each applying a single reward function per sample regardless of answer structure. Closest to our setting, MedGRPO [34] applies multi-task GRPO to heterogeneous medical video data, normalising rewards across eight datasets so that imbalanced reward scales do not collapse training. These methods address heterogeneity across datasets or tasks with one reward function per sample; none dispatch the reward on the answer structure within a task.
3. Method
Figure 2 shows the SurgQ-VLM architecture. A 30-second laparoscopic clip is sampled at two rates, encoded by a frozen vision encoder, and compressed by a question-conditioned dual-stream compressor into a fixed 671-token bundle before being decoded by a LoRA-adapted language model. Prior question-conditioned video compressors apply conditioning to a single unified stream [20]; dual-rate samplers process two streams without per-stream conditioning [6, 40]. Our contribution is per-stream question conditioning: a GuideInjector — a cross-attention block, adapted from HICom [20], in which each visual token queries the question's token embeddings (as keys and values) to absorb question-specific signal — is applied independently to both the slow and fast streams, so each retains the temporal character of its sampling rate while attending to the question.
Training proceeds in two stages. Stage 1 (SFT) equips the model with surgical domain vocabulary and structured answer format through maximum-likelihood supervision; without it, the policy explores an unstructured output space and open-ended question types degrade. Stage 2 (GRPO) refines the SFT checkpoint using a continuous reward that provides gradient signal where cross-entropy cannot. We describe each component in turn.
3.1. Dual-stream visual encoding
A clip is a 30-second segment of laparoscopic video paired with a question q and target answer a. Eighteen question types span five answer structures: binary, classification, multi-label, counting, and sentence-temporal. Clips are sampled at two rates chosen to match the temporal scales of the two evidence types the task requires. The slow stream takes one frame every two seconds (0.5 FPS, 15 frames), preserving the spatial detail needed to identify fine anatomical structures — the hepatocystic triangle, gallbladder attachment site, and clip placement — that change slowly within a phase and are critical for phase classification and instrument identification. The fast stream takes one frame per second (1.0 FPS, 30 frames), capturing instrument state transitions, action-boundary events, and triplet changes that occur on second-level timescales. Both streams pass through the frozen Qwen2.5-VL-7B [4] vision transformer (ViT), producing pre-merger patch tokens per frame. A 30-second clip therefore yields patch tokens (15 slow + 30 fast frame instances; the slow stream re-samples the clip's 30 distinct frames), which are routed into the compressor.
3.2. Local compression
The local compressor processes each stream at its own spatial and temporal resolution. For the slow stream, we pool patch tokens to (a spatial reduction): the readout discriminates adjacent anatomical structures while keeping the per-stream token count tractable. For the fast stream, we pool to (a reduction): at faster temporal density the discriminating signal is instrument presence and coarse motion, so we trade spatial fidelity for temporal coverage. Each readout slot attends over its own spatio-temporal window at the original resolution through a windowed attention block (kernels for slow, for fast), so pooling summarises rather than discards. Before readout, each pooled visual token slot is conditioned on the question. We embed q with Qwen2.5-VL's frozen token-embedding layer to produce a sequence of question token embeddings; these are projected from LLM dimension (3,584) to ViT dimension (1,280) via a learned linear layer before serving as keys and values in the cross-attention. The full grid of visual token queries then passes through a GuideInjector: each visual token independently cross-attends over all question token embeddings (fine-grained per-token conditioning, 10-head MHA) — the visual token as query, projected question tokens as keys and values. Unlike HICom [20], where an instruction-conditioned token queries its own spatial group, every spatial position here reads the entire question, so a region containing a clipper attends to the word clipper. (A coarser AdaLN-style injection [27] would lose this per-location specificity.) Each compressor block closes with a two-layer readout MLP (Linear 1,280→3,584, GELU, Linear 3,584→3,584) that projects compressed tokens back to LLM dimension. The slow and fast local paths each have their own GuideInjector and read-

Figure 2. SurgQ-VLM pipeline. Dual-stream sampling (slow: 0.5 FPS/15f; fast: 1.0 FPS/30f) is encoded by a frozen Qwen2.5-VL ViT, then compressed by four question-conditioned GuideInjectors into 671 tokens (405 slow-local + 250 fast-local + 16 global) before a LoRA-adapted LLM. Blue: frozen; green/orange: slow/fast streams; purple: global queries; gold: GuideInjectors. Bottom panel: two-stage training.
out instances. The local stage yields slow-local tokens and fast-local tokens.
3.3. Global queries
Local compression processes each stream inside bounded spatio-temporal windows, which means evidence that spans multiple windows — a phase transition falling at a window boundary, or an instrument appearing briefly in a single frame — can be missed. The global path addresses this by attending over the entire flattened clip rather than any window. Eight learnable queries per stream cross-attend over all ViT patch tokens from that stream's frames, building a fixed-size clip-level summary that is complementary to the local path. As with the local paths, the slow and fast global paths stay separate: slow-stream queries capture holistic spatial context (anatomy layout, phase-level appearance) and fast-stream queries the temporal narrative (instrument appearances and action changes), whereas a single shared set over all 45 frames would collapse these into one undifferentiated representation. Queries are zero-initialised and diverge in training, as each occupies a distinct LLM sequence position and so receives a distinct gradient; the concatenated ViT patch tokens receive a 3D sinusoidal position embedding so the queries can resolve temporal and spatial position across the entire clip. Each stream has its own GuideInjector and cross-attention block — four independent GuideInjector instances in total across local and global paths, each with separate weights — completing the per-stream conditioning. The four token groups then concatenate as slow_local || fast_local || slow_global || fast_global, yield-
ing visual tokens per clip — a compression of the 32,805 raw patch tokens — with all question-specific information encoded inside the compressor rather than after it.
3.4. Stage 1: Supervised fine-tuning
The compressor and LoRA [11] adapters on the Qwen2.5-VL-7B [4] LLM are trained jointly on the full 18-Q-type mixture. LoRA targets both attention and MLP modules () at rank 16, . After PEFT wrapping we re-freeze all visual.* parameters. Freezing the ViT preserves its large-corpus prior while the compressor and LoRA adapters specialise for surgical video. We apply Q-type inverse-frequency loss weighting so that binary questions — which dominate the raw count — do not swamp the long-tail classes. Optimiser is 8-bit AdamW at learning rate , batch size 8 with gradient accumulation 8 (effective batch 64), three epochs on the SFT split; validation loss plateaus by epoch two, confirming the policy reaches SFT capacity before Stage 2 begins. Unlike prior conditional compressors that pre-train injection on a separate instruction corpus [20], the question-conditioning here learns entirely within Stage 1.
3.5. Stage 2: GRPO post-training
SFT establishes structured answer format and domain vocabulary, but token-level cross-entropy encodes no notion of count distance: nothing in the loss prefers “2 actions” over “0 actions” when the target is “3”. GRPO [31] provides metric-aligned, sequence-level feedback that closes this gap. The compressor is frozen at this stage; only the LoRA adapters receive gradients. For each prompt we sample rollouts from the policy and compute group-relative advantages. The reference model is the SFT checkpoint, re-materialised by swapping LoRA weights. We apply DAPO-style decoupled clipping [42] with and (DAPO paper defaults), which allows asymmetric pressure on exploration. We retain a small KL-divergence penalty () to the reference. Dynamic sampling discards prompts with reward std below (all rollouts scored equally) after oversampling. Optimiser is 8-bit AdamW at , batch size 4 with gradient accumulation 2 (effective batch 8), max_new_tokens=384 during rollout generation, one epoch over the GRPO training split.
3.6. Answer-type-aware continuous reward
A single scalar tied to exact-match correctness would conflate eighteen question types with incompatible answer structures: multi-label sets need F1, counts need normalised error, temporal windows need overlap. We define
each term scored in [0, 1] before weighting. (task correctness) dispatches on the answer-structure group, returning a value in [0, 1]:
• Binary: indicator on normalised yes/no match (0 or 1).
• Classification: 1 if at least half the gold answer's content words appear in the prediction, else 0 — multi-word labels (e.g., calot triangle dissection) count as retrieved when most of their tokens appear.
• Multi-label (instrument sets, verb–instrument–target triplets): micro-F1 over the predicted item set — precision and recall are computed over all predicted and gold labels pooled together, so a model that recovers some labels from a long triplet list earns partial credit rather than zero.
• Counting: , normalising absolute count error by the ground-truth count c.
• Sentence-temporal: a content–timing blend , where is continuous keyword accuracy on the answer text and is temporal accuracy within s. The dominant multiplicative term grants credit only when both the named content and the timing are right; the small additive floor keeps a gradient when one side is zero.
is a soft format check on the reasoning trace, rewarding <think></think> delimiters (one-third each) and at least two “Step N” markers (one-third), while subtracting a penalty for annotation-lookup phrasing (“the annotation”, “frame index N”, *_per_frame field names) that early rollouts discovered as a reward shortcut. SFT targets contain no reasoning traces; the trace format emerges during GRPO under . applies only to the six sentence-temporal Q-types (Q03, Q04, Q08, Q09, Q16, Q18): it rewards at least one numeric second or frame reference in the reasoning trace (+0.5) and temporal vocabulary such as before/after/transition/begins (+0.5); non-temporal Q-types receive by default. is a linear overlong penalty that prevents the policy from drifting into long rollouts as the context budget approaches. Each prompt’s policy-gradient loss is scaled by the same Q-type inverse-frequency weight used in Stage 1 (applied after group-relative advantage normalisation), so rare Q-types contribute as much gradient as frequent ones despite far fewer prompts. Coefficients were calibrated on a short pilot run (5% of training data, G=4): the weight was reduced from 0.2 to 0.05 after the pilot revealed the model citing annotation-schema field names to gain temporal reward — a pattern ’s annotation-lookup penalty also penalises, making a large redundant. and share the same weight (0.3): symmetric auxiliary coefficients beneath the task-correctness weight ( ).
Table 1. Benchmark distribution across the five answer structures. Q-type inverse-frequency weighting compensates for the imbalance between binary and counting questions.
| Answer structure | Q-types | Test QA | Metric |
|---|---|---|---|
| Binary | Q02, Q06, Q07, Q13, Q17 | 7,120 | Bin. accuracy |
| Classification | Q01, Q10, Q14, Q15 | 3,522 | K-Acc |
| Multi-label | Q05, Q11 | 2,446 | Micro-F1 |
| Counting | Q12 | 542 | Exact-match |
| S-temporal | Q03, Q04, Q08, Q09, Q16, Q18 | 8,210 | K-Acc, T-Acc 2 |
| Total | Q01-Q18 (18 types) | 21,840 | — |
4. Experiments
4.1. Setup
Our benchmark totals 80,636 QA pairs automatically generated from the per-frame phase, instrument, and triplet annotations of Cholec80 and CholecT50 [25, 36], spanning 6,701 thirty-second clips of laparoscopic cholecystectomy. To the best of our knowledge, it is the first surgical video-QA benchmark to jointly span five answer structures within a single procedure; prior work addresses at most closed-label classification [9, 29]. We partition at the video level, canonicalising the 45 surgeries shared between the two datasets so no surgery crosses splits (supp. §A.1): train (52,100 QA / 4,212 clips), validation (6,696 QA / 575 clips), and a sealed test split of 21,840 QA pairs over 1,914 clips (held out from all training and hyper-parameter decisions; used only for inference-time evaluation of frozen models). QA pairs come from deterministic rule-based templates over per-frame annotations — no LM involved — with five surface-form phrases per Q-type (Tab. A1, supplementary). The benchmark and weights are released under CC BY-NC-SA 4.0, inherited from both source datasets, and the code under MIT.
Table 1 shows the distribution across answer structures; the benchmark is naturally imbalanced, motivating the
Table 2. Results on the sealed 21,840-QA test split; our final model in bold. †Backbone-only row also serves as the architecture ablation. n/a: not logged for baseline/ablation runs; ---: not applicable.
| Method | Backbone | Type | #Fr. | #Tok. | K-Acc | Primary | BLEU-4 | ROUGE-L | METEOR | CIDEr | T-Acc±2 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Zero-shot | |||||||||||
| Qwen2.5-VL (backbone) | 7B | ZS | 45 | 7,605 | 0.220 | 0.293 | 0.057 | 0.255 | 0.193 | 0.260 | 0.510 |
| uAI-NEXUS MedVLM [34] | 7B | ZS | 8 | 1,352 | 0.398 | 0.376 | 0.038 | 0.214 | 0.183 | 0.125 | 0.338 |
| Fine-tuned on our SFT split | |||||||||||
| LLaVA-OneVision-7B [15] | Qwen2 | +LoRA | 8 | 1,568 | 0.653 | 0.621 | 0.481 | 0.759 | 0.703 | n/a | n/a |
| SurgVidLM [37] | Qwen2-VL | +LoRA | 30 | 540 | 0.740 | 0.710 | 0.554 | 0.751 | 0.710 | n/a | n/a |
| SurgViVQA [5] | GPT-2 | full FT | 8 | — | 0.132 | 0.132 | 0.097 | 0.297 | 0.218 | n/a | n/a |
| Ablation + ours | |||||||||||
| Qwen2.5-VL (no compressor)† | 7B | +LoRA | 45 | 7,605 | 0.746 | 0.711 | 0.564 | 0.707 | 0.732 | 5.158 | 0.842 |
| Single-stream (slow-only) SFT | 7B | ours | 15 | 671 | 0.750 | 0.713 | 0.555 | 0.812 | n/a | n/a | 0.875 |
| SurgQ-VLM (SFT) | 3B | ours | 45 | 671 | 0.736 | 0.709 | 0.561 | 0.797 | 0.722 | 5.211 | 0.839 |
| SurgQ-VLM (SFT) | 7B | ours | 45 | 671 | 0.754 | 0.722 | 0.576 | 0.803 | 0.740 | 5.328 | 0.874 |
| SurgQ-VLM + GRPO (ours) | 7B | ours | 45 | 671 | 0.779 | 0.743 | 0.586 | 0.803 | 0.760 | 5.442 | 0.888 |
inverse-frequency weighting in both training stages. The test split spans all eighteen Q-types described in Sec. 3.1. Decoding is greedy with max_new_tokens=192 (GRPO rollouts use 384; at evaluation 192 suffices for all answer structures). All fine-tuned baselines train on the same SFT split with their released recipes and, where applicable, our LoRA hyper-parameters.
Metrics. K-Acc is keyword-presence accuracy — the fraction of gold keywords present in the predicted answer [5]; precision-soft by design (extra output is not penalised, preserving reasoning traces), it is reported alongside ROUGE-L and BLEU-4 to cover length sensitivity. Our Primary metric is the N-weighted average of binary accuracy, classification K-Acc, multi-label micro-F1, count exact-match, and sentence-temporal K-Acc (its ±2 s temporal accuracy saturates and is reported separately: Tab. 2, supp. §A.7), scoring each answer structure on its own terms; because binary questions dominate (32.6% of test vs. counting at 2.5%), Tab. 3 disaggregates by group. For cross-paper comparison we report BLEU-4, ROUGE-L, METEOR, CIDEr, T-Acc±2, and per-clip inference latency (1.7±0.6 s/clip excluding video decoding, 21.2 GB peak on A100). Headline cells carry 95% bootstrap CIs (10,000 resamples; half-widths ≤ 0.5 pp on accuracy columns); paired significance tests use permutation with the same count; reported figures are from a single training run per configuration, except the headline GRPO result, verified across three seeds (Sec. 4.4).
4.2. Main results
Table 2 tells a story of three compounding improvements. The zero-shot backbone produces 0.220 K-Acc — fluent surgical English, hallucinated content, no structured format. Surgical SFT with the dual-stream compressor is the single biggest jump: K-Acc rises to 0.754 and BLEU-4 from 0.057 to 0.576, a 10× gain, as the model acquires domain vocabulary and the five answer structures. The backbone-only ablation confirms the compressor’s contribution: the
same SFT recipe without it trails on every metric (BLEU-4 0.564 vs. 0.576, ROUGE-L 0.707 vs. 0.803, T-Acc 0.842 vs. 0.874). GRPO then adds the final +2.5 pp to 0.779 K-Acc, with gains concentrated on the structurally hard answer types (Tab. 3).
Table 3. GRPO gains by answer structure (SFT → SFT+GRPO, sealed test). Bold: improvement >1 pp; †: Q13 regression (-3.9 pp) discussed in text. Counting has n=542; its Δ is within sampling error. Sentence-temporal scored by K-Acc; its saturating T-Acc±2s: Tab. 2, supp. §A.7.
| Answer structure | Metric | SFT | GRPO | Δ |
|---|---|---|---|---|
| Binary† | B-Acc | 0.727 | 0.727 | 0.000 |
| Classification | K-Acc | 0.818 | 0.818 | 0.000 |
| Multi-label | F1 | 0.766 | 0.778 | +0.012 |
| Counting | Exact | 0.328 | 0.354 | +0.026 |
| Sent-temporal | K-Acc | 0.690 | 0.741 | +0.051 |
| Primary (wtd. avg.) | — | 0.722 | 0.743 | +0.021 |
Among fine-tuned baselines, SurgVidLM reaches 0.740 K-Acc (surgical specialist) and LLaVA-OneVision-7B 0.653 (strongest general video VLM); the gap reflects the compressor and answer-type-aware reward, not privileged training data. SurgVidLM samples 30 frames and 540 tokens; our model uses 45 frame instances yet produces 671 tokens and leads by 3.9 pp K-Acc. The backbone-only row (same 45 frames, no compressor, Tab. 2) leads SurgVidLM by only 0.6 pp, suggesting frame count is not the driver. The single-stream (slow-only) ablation conditions one stream with our GuideInjector — HICom’s scope [20] with mechanism, budget, and recipe held fixed, a controlled proxy rather than a reimplementation — and reaches 0.750 K-Acc vs. 0.754 dual-stream at matched budget (finer temporal kernel: 648+23=671 tokens). The headline margin is small (within the bootstrap CI half-width), but dual-streaming lifts Primary by +0.9 pp with consistent per-group gains (binary +1.4, classification +1.1, counting +1.5 pp) and enables the per-stream analysis of Tab. 5. A 3B backbone costs only
Table 4. Core ablations on the 7B SurgQ-VLM, grouped by the component removed. Every removal lowers the headline K-Acc below the full model (0.779); the —Compressor and —GRPO rows are SFT-only (SFT reference: 0.754). Group columns report per-group K-Acc (structure metrics: Tab. 3). * central contribution. The “—Question conditioning” row is a dual-stream unconditioned baseline (SlowFast-LLaVA-style [40]) at matched 671-token budget.
| Variant | Removed | K-Acc | Binary | Classif. | Multi-lbl | Count | S-Temp | ROUGE-L |
|---|---|---|---|---|---|---|---|---|
| Full SurgQ-VLM (SFT+GRPO) | — | 0.779 | 0.799 | 0.818 | 0.820 | 0.645 | 0.741 | 0.803 |
| Reward design | ||||||||
| — Answer-type dispatch ( uniform) * | per-structure reward | 0.759 | 0.799 | 0.819 | 0.784 | 0.627 | 0.699 | 0.803 |
| Architecture | ||||||||
| — Compressor (backbone-only) | dual-stream compressor | 0.746 | 0.785 | 0.808 | 0.742 | 0.611 | 0.656 | 0.707 |
| — Question conditioning | GuideInjectors | 0.673 | 0.756 | 0.793 | 0.755 | 0.576 | 0.529 | 0.733 |
| Training pipeline | ||||||||
| — GRPO (SFT only) | post-training stage | 0.754 | 0.799 | 0.818 | 0.769 | 0.632 | 0.690 | 0.803 |
| — Q-type loss weighting | inverse-frequency | 0.744 | 0.767 | 0.763 | 0.812 | 0.628 | 0.702 | 0.787 |
| Visual grounding | ||||||||
| Text-only (blind, no visual input) | all frame tokens | 0.454 | 0.694 | 0.624 | 0.402 | 0.299 | 0.459 | 0.660 |
1.8 pp (0.736 vs. 0.754), confirming the design is robust to backbone scale. Against the uncompressed backbone (7,605 post-merge tokens, our budget; counts the 32,805 pre-merge ViT patches), the compressor improves every metric. The zero-shot medical RL model uAI-NEXUS Med-VLM reaches 0.398 K-Acc on our test split — a zero-shot, out-of-domain reference rather than a controlled comparison of reward designs; the uniform- ablation (Sec. 4.4) is the controlled evidence.
4.3. Answer-structure gain analysis
Table 3 shows that the +2.1 pp Primary gain does not distribute uniformly — the asymmetry is the story. Binary and classification hold steady (changes <0.1 pp) at 0.727 and 0.818; with four of five binary Q-types requiring transition or idle detection (chance 0.5), SFT cross-entropy is already a near-perfect proxy, leaving the reward no gap to close. The remaining three groups improve because SFT’s token-level loss diverges from the evaluation metric.
Sentence-temporal gains most (+5.1 pp K-Acc): the reward’s temporal term credits timing only within s — a criterion invisible to cross-entropy. Multi-label improves +1.2 pp micro-F1 and +5.1 pp keyword recall (K-Acc, Tab. 4). Counting adds +2.6 pp on strict exact-match, with the reward’s normalised count error improving in step (MAE : residual errors are predominantly off-by-one).
The one notable regression is Q13 (binary action-presence, -3.9 pp), which pulls the binary group mean back to level. The reasoning-trace format GRPO rewards conflicts with the terse yes/no structure this Q-type expects, and the effect reproduces across GRPO configurations — it is a genuine failure mode, not an artefact (mitigation: exempt binary Q-types from ; future work). A natural concern is verbosity: ROUGE-L is unchanged at 0.803 (paired permutation ) while K-Acc, BLEU-4, and METEOR move
at — the improvement is content, not length. Nor are gains confined to reward-aligned metrics: BLEU-4, METEOR, and CIDEr — none of which enter the reward — all improve (Tab. 2). Within sentence-temporal, T-Acc is near-ceiling after SFT for all Q-types except Q08; the +5.1 pp K-Acc gain is content-driven, concentrated in Q09 (+8.2 pp; a point-lookup type whose T-Acc is vacuously saturated, supp. §A.3) and Q08 (+2.6 pp).
4.4. Ablation studies
Table 4 removes one component at a time; every removal lowers K-Acc below the full model’s 0.779.
Reward design. Replacing the answer-type-aware reward with a single uniform (*, the central contribution) — the thresholded keyword-accuracy indicator applied to every Q-type — drops K-Acc to 0.759, with the loss concentrated exactly on the structurally hard groups: multi-label -3.6 pp and sentence-temporal -4.2 pp, while binary and classification are unchanged. The uniform 0/1 reward collapses the continuous F1 and temporal signals: ~70% of rollout groups then have zero reward variance and yield no gradient. The uniform reward recovers under a quarter of GRPO’s gain — the cleanest evidence that the reward design, not GRPO itself, is what helps (full component ablations in the supplementary).
Architecture. Removing the compressor (backbone-only) lowers every group (K-Acc 0.746, multi-label 0.742, sentence-temporal 0.656). Removing question conditioning (GuideInjectors) yields a SlowFast-style question-agnostic dual-stream ablation [40] at the same 671-token budget; sentence-temporal collapses to 0.529, the largest single-component drop, showing that per-question conditioning — not dual-stream sampling alone — preserves the relevant temporal evidence.
| FRAMES & Q-TYPE | QUESTION | GROUND TRUTH | ZERO-SHOT | SFT | SFT + GRPO |
|---|---|---|---|---|---|
| Q03 · Sentence-Temporal | How many seconds into the clip does the surgical phase change? | The phase changes from calot triangle dissection to clipping cutting at second 15 of the clip. | The surgical phase changes at 10.0 seconds. | Phase changes from gallbladder dissection to cleaning coagulation at second 15 of the clip. | The phase changes from calot triangle dissection to clipping cutting at second 15 of the clip. ✓ |
| Q12 · Action Counting | Count the unique surgical triplets visible in this clip. | 3 actions | There is 1 surgical triplet in the video. | 2 actions | 3 actions |
| Q05 · Multi-label | Which tools does the surgeon use in this clip? | grasper, specimen bag | The surgeon uses a hook cautery and a forceps. | grasper | grasper, specimen bag |
| Q13 · Binary (honest failure) | Does the surgeon transition to a new action during this clip? | yes, the active triplets change during this clip. | The surgeon uses the grasper to remove the gallbladder. | no, the active triplets stay the same across the clip. | no, the active triplets stay the same across the clip. * all three models fail |
Figure 3. Qualitative comparison (sealed test set). Two frames, GT, ZS, SFT, and GRPO per row. Rows 1–3: GRPO recovers on Q03, Q12, and Q05 where ZS and SFT fail. Row 4: all models err on Q13 (failure case).
Table 5. Stream specialisation: K-Acc change (pp) when each token group is zeroed at inference (7B+GRPO model). Most-critical component per row in bold. Most diagnostic Q-type shown per group; full breakdown in supplementary.
| Question group | Q | —Slow | —Fast | —Global |
|---|---|---|---|---|
| Phase | Q03 | +0.3 | —22 | —0.7 |
| Instrument | Q07 | —0.5 | —2.6 | +0.3 |
| Triplet/action | Q12 | —2.1 | —0.7 | —0.6 |
| Binary action | Q13 | —1.7 | —0.6 | —2.7 |
| Temporal | Q16 | —2.3 | —12.7 | +0.3 |
Visual grounding. The text-only blind baseline (Tab. 4) scores 0.454 K-Acc — a 32.5 pp gap — with the largest drops on multi-label (-41.8 pp) and sentence-temporal (-28.2 pp): the open-ended structures collapse without vision while label priors partially survive, so the hard-type scores reflect visual reasoning.
Training pipeline. Dropping GRPO (SFT only) costs 2.5 pp K-Acc; GRPO training is stable across seeds (three runs: K-Acc = 0.779±0.0003, ~80× below the gain; seeds share the SFT initialisation and one low-LR epoch; curves in supp. §A.5). Disabling Q-type inverse-frequency loss weighting lowers binary and classification most (-3.3 and -5.6 pp): the loss collapses onto high-count Q-types and under-trains the rare ones; the Q13 regression (Sec. 4.3) recurs across all these variants.
4.5. Stream specialisation and qualitative analysis
Zeroing each token group at inference and re-measuring per Q-type (Tab. 5) reveals emergent specialisation: fast tokens dominate temporal Q-types (Q03 –22.0 pp, Q16 –12.7 pp), slow tokens dominate counting (Q12 –2.1 vs. –0.7 pp fast), and global queries are load-bearing for holistic binary judgments (Q13 –2.7 pp).
Qualitatively (Fig. 3), the zero-shot baseline emits fluent
surgical English with hallucinated content, the SFT model produces well-formed answers with the wrong specifics, and GRPO recovers the correct content. Row 4 shows all three failing on the same hard binary example (the Q13 regression); Fig. A2 in the supplementary adds six further examples.
5. Limitations
(i) Scope: all results are on one procedure (laparoscopic cholecystectomy); cross-procedure transfer is unmeasured. (ii) Benchmark construction: QA pairs come from deterministic templates over per-frame annotations, so linguistic diversity is bounded and scores may partly reflect template regularities; held-out-template and clinician-authored evaluation are future work. (iii) Evaluation: a few sentence-temporal question types saturate the ±2 s temporal-accuracy metric, so its group mean is optimistic. (iv) Multi-step reasoning: clip-level QA is atomic; cross-boundary questions are out of scope; multi-clip extension is future work. (v) Annotation noise: answers inherit label noise; disagreements concentrate near phase-transition boundaries [10, 41].
6. Conclusion
SurgQ-VLM shows that the bottleneck in surgical video QA is not decoder scale but the mismatch between a clip's heterogeneous questions and the uniform machinery that compresses and rewards them. Question-conditioned compression and answer-structure reward dispatch close that mismatch: the reward design drives the gain — over four times a uniform reward's — concentrated on the open-ended structures where SFT plateaus.
Acknowledgments. This work was funded by Centific Global Solutions, which also provided the compute resources.
References
[1] Long Bai, Mobarakol Islam, and Hongliang Ren. Cat-vil: Co-attention gated vision-language embedding for visual question localized-answering in robotic surgery. In MICCAI, 2023. 2
[2] Long Bai, Mobarakol Islam, Lalithkumar Seenivasan, and Hongliang Ren. Surgical-vqla: Transformer with gated vision-language embedding for visual question localized-answering in robotic surgery. In ICRA, 2023. arXiv:2305.11692. 2
[3] Long Bai et al. Surgical-vqla++: Adversarial contrastive learning for calibrated robust visual question-localized answering in robotic surgery. Information Fusion, 2025. arXiv:2408.04958. 2
[4] Shuai Bai et al. Qwen2.5-vl technical report. arXiv preprint arXiv:2502.13923, 2025. 2, 3, 4
[5] Mauro Orazio Drago, Luca Carlini, Pelinsu Celebi Balyemez, Dennis Pierantozzi, Chiara Lena, Cesare Hassan, Danail Stoyanov, Elena De Momi, Sophia Bano, and Mobarak I. Hoque. Surgvivqa: Temporally-grounded video question answering for surgical scene understanding. arXiv preprint arXiv:2511.03325, 2025. 2, 6
[6] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In ICCV, 2019. 2, 3
[7] Kaituo Feng, Kaixiong Gong, Bohao Li, Zonghao Guo, Yibing Wang, Tianshuo Peng, Junfei Wu, Xiaoying Zhang, Benyou Wang, and Xiangyu Yue. Video-r1: Reinforcing video reasoning in mlms. Advances in Neural Information Processing Systems, 38:99114–99137, 2026. 3
[8] Pengfei Hao, Shuaibo Li, Hongqiu Wang, Zhizhuo Kou, Junhang Zhang, Guang Yang, and Lei Zhu. Surgery-r1: Advancing surgical-vqla with reasoning multimodal large language model via reinforcement learning. arXiv preprint arXiv:2506.19469, 2025. 3
[9] Runlong He, Mengya Xu, Adrito Das, Danyal Z. Khan, Sophia Bano, Hani J. Marcus, Danail Stoyanov, Matthew J. Clarkson, and Mobarakol Islam. Pitvqa: Image-grounded text embedding llm for visual question answering in pituitary surgery. In MICCAI, 2024. arXiv:2405.13949. 1, 2, 5
[10] Seungbum Hong, Jiwon Lee, Bokyung Park, Ahmed A. Alwusaibie, Anwar H. Alfadhel, SungHyun Park, Woo Jin Hyung, and Min-Kook Choi. Rethinking generalization performance of surgical phase recognition with expert-generated annotations. In arXiv preprint arXiv:2110.11626, 2021. 8
[11] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. In ICLR, 2022. 2, 4
[12] Juseong Jin et al. Surgical-llava: Toward surgical scenario understanding via large language and vision models. arXiv preprint arXiv:2410.09750, 2024. 2
[13] Peng Jin, Ryuichi Takanobu, Wancai Zhang, Xiaochun Cao, and Li Yuan. Chat-univi: Unified visual representation em-powers large language models with image and video under-standing. In CVPR, 2024. arXiv:2311.08046. 2
[14] Yuxiang Lai, Jike Zhong, Ming Li, Shitian Zhao, Yuheng Li, Konstantinos Psounis, and Xiaofeng Yang. Med-r1: Reinforcement learning for generalizable medical reasoning in
vision-language models. arXiv preprint arXiv:2503.13939, 2025. 3
[15] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, and Chunyuan Li. Llava-onevision: Easy visual task transfer. arXiv preprint arXiv:2408.03326, 2024. 1, 2, 6
[16] Chunyuan Li et al. Llava-med: Training a large language-and-vision assistant for biomedicine in one day. In NeurIPS Datasets and Benchmarks, 2023. 2
[17] Jiajie Li et al. Llava-surg: Towards multimodal surgical assistant via structured surgical video learning. arXiv preprint arXiv:2408.07981, 2024. 2
[18] Shuai Li, Jian Xu, Xiao-Hui Li, Chao Deng, and Lin-Lin Huang. Qg-vtc: Question-guided visual token compression in mlms for efficient vqa. arXiv preprint arXiv:2504.00654, 2025. 2
[19] Bin Lin et al. Video-llava: Learning united visual representation by alignment before projection. In EMNLP, 2024. arXiv:2311.10122. 1, 2
[20] Zhihang Liu, Chen-Wei Xie, Pandeng Li, Liming Zhao, Longxiang Tang, Yun Zheng, Chuanbin Liu, and Hongtao Xie. Hybrid-level instruction injection for video token compression in multi-modal large language models. In CVPR, 2025. arXiv:2503.16036. 2, 3, 4, 6
[21] Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. Video-chatgpt: Towards detailed video understanding via large vision and language models. In ACL, 2024. arXiv:2306.05424. 1, 2
[22] Lena Maier-Hein, Swaroop S. Vedula, Stefanie Speidel, Nassir Navab, Ron Kikinis, Adrian Park, Matthias Eisenmann, Hubertus Feussner, Germain Forestier, Stamatia Giannarou, Makoto Hashizume, Darko Katic, Hannes Kenngott, Michael Kranzfelder, Anand Malpani, Keno März, Thomas Neumuth, Nicolas Padoy, Carla Pugh, Nicolai Schoch, Danail Stoyanov, Russell Taylor, Martin Wagner, Gregory D. Hager, and Pierre Jannin. Surgical data science for next-generation interventions. Nature Biomedical Engineering, 1(9):691–696, 2017. 1
[23] Vishwesh Nath et al. Vila-m3: Enhancing vision-language models with medical expert knowledge. In CVPR, 2025. 2
[24] Ming Nie et al. Slowfocus: Enhancing fine-grained temporal understanding in video llms. In NeurIPS, 2024. 2
[25] Chinedu I. Nwoye, Tong Yu, Cristians Gonzalez, Barbara Seeliger, Pietro Mascagni, Didier Mutter, Jacques Marescaux, and Nicolas Padoy. Rendezvous: Attention mechanisms for the recognition of surgical action triplets in endoscopic videos. Medical Image Analysis, 2022. 2, 5, 11
[26] Jiazhen Pan, Che Liu, Junde Wu, Fenglin Liu, Jiayuan Zhu, Hongwei Bran Li, Chen Chen, Cheng Ouyang, and Daniel Rueckert. Medvlm-r1: Incentivizing medical reasoning capability of vision-language models via reinforcement learning. In MICCAI, 2025. arXiv:2502.19634. 3
[27] William Peebles and Saining Xie. Scalable diffusion models with transformers. In ICCV, 2023. arXiv:2212.09748. 3
[28] Khaled Saab, Tao Tu, Wei-Hung Weng, Ryutaro Tanno, David Stutz, Ellery Wulczyn, Fan Zhang, Tim Strother, Chunjong Park, Elahe Vedadi, et al. Capabilities of gemini models in medicine. arXiv preprint arXiv:2404.18416, 2024. 2
[29] Lalithkumar Seenivasan, Mobarakol Islam, Adithya K. Krishna, and Hongliang Ren. Surgical-vqa: Visual question answering in surgical scenes using transformer. In MICCAI, 2022. arXiv:2206.11053. 1, 2, 5
[30] Lalithkumar Seenivasan, Mobarakol Islam, Gokul Kannan, and Hongliang Ren. Surgicalgpt: End-to-end language-vision gpt for visual question answering in surgery. In MICCAI, 2023. 2
[31] Zhihong Shao et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. 2, 3, 4, 12
[32] Xiaoqian Shen, Yunyang Xiong, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, Zechun Liu, Fanyi Xiao, Balakrishnan Varadarajan, Florian Bordes, et al. Longyu: Spatiotemporal adaptive compression for long video-language understanding. arXiv preprint arXiv:2410.17434, 2024. 2
[33] Enxin Song et al. Moviechat: From dense token to sparse memory for long video understanding. In CVPR, 2024. arXiv:2307.16449. 2
[34] Yuhao Su, Anwesa Choudhuri, Zhongpai Gao, Benjamin Planche, Van Nguyen Nguyen, Meng Zheng, Yuhan Shen, Arun Innanje, Terrence Chen, Ehsan Elhamifar, and Ziyan Wu. Medgrpo: Multi-task reinforcement learning for heterogeneous medical video understanding. In CVPR, 2026. arXiv:2512.06581. 2, 3, 6, 14, 15
[35] Tao Tu, Shekoofeh Azizi, Danny Driess, Mike Schaekermann, Mohamed Amin, Pi-Chuan Chang, Andrew Carroll, Charles Lau, Ryutaro Tanno, Ira Ktena, et al. Towards generalist biomedical ai. NEJM AI, 2024. arXiv:2307.14334. 2
[36] Andru P Twinanda, Sherif Shehata, Didier Mutter, Jacques Marescaux, Michel De Mathelin, and Nicolas Padoy. Endonet: a deep architecture for recognition tasks on laparoscopic videos. IEEE transactions on medical imaging, 36(1): 86–97, 2016. 1, 2, 5, 11
[37] Guankun Wang, Junyi Wang, Wenjin Mo, Long Bai, Kun Yuan, Ming Hu, Jinlin Wu, Junjun He, Yiming Huang, Nicolas Padoy, Zhen Lei, Hongbin Liu, Nassir Navab, and Hongliang Ren. Surgvidlm: Towards multi-grained surgical video understanding with large language model. arXiv preprint arXiv:2506.17873, 2025. 2, 6
[38] Guankun Wang et al. Surgical-lvlm: Learning to adapt large vision-language model for grounded visual question answering in robotic surgery. arXiv preprint arXiv:2405.10948, 2024. 2
[39] Ye Wang, Ziheng Wang, Boshen Xu, Yang Du, Kejun Lin, Zihan Xiao, Zihao Yue, Jianzhong Ju, Liang Zhang, Dingyi Yang, Xiangnan Fang, Zewen He, Zhenbo Luo, Wenxuan Wang, Junqi Lin, Jian Luan, and Qin Jin. Time-r1: Post-training large vision language model for temporal video grounding. In NeurIPS, 2025. arXiv:2503.13377. 3
[40] Mingze Xu et al. Slowfast-llava-1.5: A family of token-efficient video large language models for long-form video understanding. arXiv preprint arXiv:2503.18943, 2025. 2, 3, 7
[41] Amine Yamlahi, Thuy Nuong Tran, Patrick Godau, Melanie Schellenberg, Dominik Michael, Finn-Henri Smidt, Jan-Hinrich Noelke, Tim Adler, Minu Dietlinde Tizabi, Chinedu
Nwoye, Nicolas Padoy, and Lena Maier-Hein. Self-distillation for surgical action recognition. In MICCAI, 2023. arXiv:2303.12915. 8
[42] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems, 38:113222–113244, 2026. 5, 12
[43] Kun Yuan, Manasi Kattel, Joël L. Lavanchy, Nassir Navab, Vinkle Srivastav, and Nicolas Padoy. Advancing surgical vqa with scene graph knowledge. International Journal of Computer Assisted Radiology and Surgery, 19(7):1409–1417, 2024. arXiv:2312.10251. 1, 2
Supplementary Material
Supplementary Content. In this supplementary material, we present the following:
-
Dataset construction details: source annotations, clip segmentation, deterministic QA generation, answer-structure assignment, and a complete per-Q-type metadata table (Sec. A.1).
-
Question-type examples: one verbatim example per Q-type (Q01–Q18) in a single table, with ground-truth answers drawn directly from per-frame annotations (Sec. A.2).
-
Per-Q-type primary metric for SFT vs. GRPO across all 18 question types (Sec. A.3).
-
Full reward decomposition ablating each component of (Sec. A.4).
-
GRPO training stability: reward and KL-divergence curves over the full run, plus a group-size sensitivity check (Sec. A.5).
-
Stream specialisation: full per-Q-type K-Acc table under token-group zeroing, extending Tab. 5 of the main paper (Sec. A.6).
-
Temporal accuracy sensitivity at s tolerances on sentence-temporal Q-types (Sec. A.7).
-
MedGRPO-style per-group reward normalisation comparison (Sec. A.8).
-
Additional qualitative examples (Sec. A.9): a six-row figure with four rows (Q01, Q06, Q10, Q14) for binary and classification Q-types not shown in Fig. 3, plus two rows (Q16, Q08) for sentence-temporal Q-types where only GRPO succeeds; all examples from the sealed test set.
-
Frame-count robustness: K-Acc under independent sweeps of the fast- and slow-stream frame budgets (Sec. A.10).
A.1. Dataset Construction Details
SurgQ-VLM is evaluated on a benchmark we built from two public laparoscopic cholecystectomy datasets. Cholec80 [36] provides per-frame phase and instrument annotations for 80 videos (7 phase labels; 7 instrument classes). CholecT50 [25] provides per-frame phase, instrument, verb, and triplet (instrument-verb-target) annotations for 50 videos (same 7 phases; 10 verb classes; 6 instrument classes; 100 triplet combinations).
Clip segmentation. Each video yields non-overlapping 30-second clips at 1 FPS (30 frames per clip). Transition clips are centred frames around each detected phase or triplet transition; stable clips are sampled every 45 s inside single-phase regions that contain at least one active instrument. Clip centres are spaced at least 30 s apart; videos shorter than 30 s are skipped.
QA generation. A deterministic rule-based generator reads per-frame annotation arrays (phase_per_frame, instrument_per_frame, triplet_per_frame, verb_per_frame) and fills question templates to produce fully grounded QA pairs. All answers are derived entirely from annotation values — no language model is used for answer generation. Each Q-type has five surface-form variants (v0–v4) that ask the same underlying question with different surface phrasings; a variant is drawn uniformly at generation time to create lexically diverse training data while keeping ground-truth answers identical.
Answer-structure assignment. Questions map to five evaluation structures:
-
Binary: yes/no questions scored by normalised yes/no accuracy.
-
Classification: single-label short-phrase scored by keyword accuracy (K-Acc).
-
Multi-label: comma-separated set answers scored by micro-F1.
-
Counting: integer-with-unit answers (“N actions”) scored by exact-match.
-
Sentence-temporal: free-text sentences embedding second values; scored by K-Acc (content) and T-Acc (timing).
Video-level split. All splits are at the video level to prevent clips from the same procedure appearing in both train and test. Because 45 CholecT50 videos originate from Cholec80, videos are canonicalised by their underlying surgery before partitioning: a CholecT50 video and its Cholec80 counterpart always share a split, so no surgery appears in more than one of train/validation/test (pairwise surgery-level overlap is zero). This yields Cholec80 48/9/23 and CholecT50 35/5/10 (train/val/test), with the CholecT50 test set matching the Rendezvous protocol [25]. This yields train/validation/test sizes of 4,212 / 575 / 1,914 clips and 52,100 / 6,696 / 21,840 QA pairs respectively.
Annotation coverage. Q01–Q09 and Q16–Q17 require only phase and instrument annotations and are generated for clips from both Cholec80 and CholecT50. Q10–Q15 and Q18 additionally require triplet or verb annotations, which are available only in CholecT50.
Table A1 lists all 18 question types with their group, answer structure, annotation source, temporal grounding requirement, and dataset coverage.
Table A1. All 18 question types. Coverage: Both = Cholec80 + CholecT50; T50 = CholecT50 only. Temporal: question or answer references a specific second value.
| Q | Name | Group | Answer struct. | Annotation source | Temporal | Coverage |
|---|---|---|---|---|---|---|
| Q01 | Current phase | Phase | Classification | phase majority vote | No | Both |
| Q02 | Phase change | Phase | Binary | phase change flag | No | Both |
| Q03 | Phase transition time | Phase | Sent.-temporal | phase segment boundary second | Yes | Both |
| Q04 | Phase sequence | Phase | Sent.-temporal | phase segments, ordered | Yes | Both |
| Q05 | Active instrument list | Instrument | Multi-label | instrument union across clip | No | Both |
| Q06 | Instrument presence | Instrument | Binary | per-instrument membership | No | Both |
| Q07 | Instrument handoff | Instrument | Binary | instrument transition events | Yes | Both |
| Q08 | Instrument active duration | Instrument | Sent.-temporal | per-instrument frame count | Yes | Both |
| Q09 | Instrument at second N | Instrument | Sent.-temporal | point lookup in frame array | Yes | Both |
| Q10 | Primary triplet | Triplet | Classification | triplet frame-count majority | No | T50 |
| Q11 | Action sequence | Triplet | Multi-label | triplet segments, ordered | No | T50 |
| Q12 | Distinct action count | Triplet | Counting | distinct triplet elements | No | T50 |
| Q13 | Action presence | Triplet | Binary | triplet change flag | No | T50 |
| Q14 | Anatomical target | Triplet | Classification | triplet target component | No | T50 |
| Q15 | Primary verb | Triplet | Classification | verb majority vote | No | T50 |
| Q16 | Instrument at phase change | Temporal | Sent.-temporal | phase boundary + instrument arr. | Yes | Both |
| Q17 | Instrument idle period | Temporal | Binary | instrument idle segments | Yes | Both |
| Q18 | Action before/after change | Temporal | Sent.-temporal | triplet segments before/after | Yes | T50 |
A.2. Question-Type Examples
Table A2 shows one representative example per question type, drawn verbatim from the sealed test split. Ground-truth answers are derived directly from per-frame annotations with no language model involvement.
A.3. Per-Q-Type Primary Metric: SFT vs. GRPO
Table A3 is the full per-Q-type breakdown behind the group aggregate in Tab. 3 of the main paper, each Q-type scored on its group's primary metric (binary accuracy for binary types; K-Acc for classification; micro-F1 for multi-label; exact-match for counting; T-Acc for sentence-temporal). Gains concentrate in the open-ended types — multi-label (Q05), counting (Q12), and sentence-temporal generation (Q08); binary and classification Q-types are at or near SFT ceiling. The one notable regression is Q13 (binary action-presence, pp); the main paper analyses this failure mode in detail. Q09 and Q18 score 1.0000 on T-Acc because their gold answers contain no explicit second values, so the temporal check is vacuously satisfied; treat those rows as a metric caveat, not as evidence of perfect temporal grounding.
A.4. Full Reward Decomposition
Table A4 extends the -uniform ablation in Tab. 4 of the main paper by independently ablating each reward component. The anchor is the full reward , each row strips or substitutes one term and retrains from the SFT checkpoint with the same one-epoch GRPO [31] budget (DAPO-style asymmetric clipping [42]) on the sealed test split ().
Stripping any single component causes a pp drop
in K-Acc. The effect is concentrated where it matters: multi-label K-Acc drops from 0.820 (full) to 0.786–0.788, and sentence-temporal K-Acc from 0.741 to 0.700–0.703 — these are the two answer structures where GRPO provides the most lift over SFT. Binary and classification Q-types are at SFT ceiling and unaffected. Q-type inverse-frequency weighting provides the smallest headline gain (1.4 pp on K-Acc) but is complementary: without it, multi-label and sentence-temporal improvements are also reduced.
A.5. GRPO Training Stability
Figure A1 shows the primary reward and KL divergence over the full 3,256 optimisation steps of the reported GRPO run (seed 42; 20-step rolling averages). rises from 0.70 to a plateau of by step 1,600 and remains stable through training — no monotone increase that would indicate reward hacking. KL divergence stays bounded throughout, with a peak of 0.73 nats (step 2,381) and a mean of 0.27 nats over the final 1,256 steps; there is no collapse or divergence. GRPO hyperparameters: group size , KL coefficient , DAPO asymmetric clipping , . A group-size sensitivity run (, otherwise identical configuration) reaches K-Acc 0.775 vs. 0.779 for ( pp on the sealed test split of 21,840 pairs), confirming that the GRPO gain is robust to group size within this range.
A.6. Stream Ablation: Per-Q-Type Breakdown
Table A5 is the full per-Q-type expansion of Tab. 5 in the main paper, reporting K-Acc under each inference-time stream-zeroing condition for the 7B + GRPO model. The largest drop per row is highlighted by sign and magnitude. Q06 achieves K-Acc = 1.000 under every condition — this reflects that the model reliably emits a yes/no keyword re-
Table A2. One representative example per Q-type (Q01–Q18), verbatim from the sealed test split. Q03/Q04 are from the same clip. Q10–Q15 and Q18 require CholecT50 triplet annotations. Q07 gold answers embed a second value but the Q-type is scored by binary accuracy; Q08 is scored by T-Acc±2s. Q09 answers are instrument lists with no second embedded, so their T-Acc is vacuously 1 (Sec. A.3).
| Group | Q | Example question | Ground-truth answer |
|---|---|---|---|
| Phase | Q01 | Which phase of the cholecystectomy procedure is shown here? | The clip primarily shows calot triangle dissection. |
| Q02 | Does the surgical phase change at any point during this clip? | No, the surgical phase remains constant throughout this clip. | |
| Q03 | How many seconds into the clip does the surgical phase change? | The phase changes from gallbladder packaging to cleaning coagulation at second 18 of the clip. | |
| Q04 | Which phases appear in this clip and in what order? | gallbladder packaging from second 0 to second 17, then cleaning coagulation from second 18 to the end of the clip. | |
| Instrument | Q05 | What instruments are active at any point in this clip? | hook, grasper |
| Q06 | Is the grasper used at any point in this clip? | Yes, the grasper is used in this clip. | |
| Q07 | Does the active surgical tool change during this video? | Yes, the active instrument changes from hook to grasper at second 15. | |
| Q08 | How long is the hook active during this clip? | The hook is used for 29 seconds, from second 0 to second 29 of the clip. | |
| Q09 | What is the active instrument 13 seconds into this clip? | hook | |
| Triplet | Q10 | Which action dominates this clip? | The primary action in this clip is grasper grasp gallbladder. |
| Q11 | Walk me through the sequence of actions in this clip. | The actions in this clip are, in order of first appearance: grasper retract gallbladder, hook dissect cystic duct. | |
| Q12 | How many distinct surgical actions occur in this clip? | 2 actions | |
| Q13 | Is there an action transition visible in this clip? | Yes, the active triplets change during this clip. | |
| Q14 | Identify the main target of the surgical actions here. | The primary anatomical target in this clip is gallbladder. | |
| Q15 | What is the primary surgical maneuver in this clip? | The primary surgical maneuver in this clip is grasp. | |
| Temporal | Q16 | How does the surgical instrument change when the phase transitions in this clip? | When the phase changes from calot triangle dissection to clipping cutting at second 3, the grasper is replaced by the clipper. |
| Q17 | Are there seconds in this clip where no instrument is being used? | Yes, there is a period of 29 seconds with no active instrument, from second 0 to second 28 of the clip. | |
| Q18 | What surgical action appears immediately after the main transition in this clip? | Before the transition the action is hook dissect cystic plate; after the transition the action is grasper retract gallbladder. |


Figure A1. GRPO training dynamics (seed 42, 3,256 steps). Left: primary reward (20-step rolling average) rises then plateaus at . Right: KL divergence from the reference policy stays bounded (peak 0.73 nats) with no collapse. Both curves confirm stable optimisation without reward hacking.
gardless of which stream is zeroed (K-Acc detects keyword presence), not that all answers are polarity-correct; binary accuracy on Q06 is 0.862 per Tab. A3.
A.7. Temporal Accuracy Sensitivity
Table A6 reports Temporal Accuracy at s, s, and s tolerances on the six sentence-temporal Q-types (Q03, Q04, Q08, Q09, Q16, Q18). The monotonic rise across tolerances rules out random guessing: errors are tightly clustered near ground truth. Q09 and Q18 score 1.0000 on this metric for both SFT and GRPO because their gold answers contain no explicit second values, so the temporal check is vacuously satisfied; those rows should be read as a caveat on the metric, not as evidence of perfect temporal grounding (see also Sec. A.3).
Note on values vs. main paper. The T-Acc±2s values here (SFT 0.874, GRPO 0.888) differ from the sentence-temporal row in Tab. 3 of the main paper (0.690/0.741) because they are different metrics. The main paper's aggregate dispatches sentence-temporal types to keyword accuracy (K-Acc) as the group primary — the fraction of predictions containing a correct keyword or phrase — and Tab. 3 is labelled accordingly. This table reports T-Acc±2s (second-extraction
Table A3. Per-Q-type primary metric, SFT vs. GRPO (sealed test split, ). Metric per group: binary accuracy (bin), classification K-Acc (cls), multi-label F1 (mul), counting exact-match (cnt), sentence-temporal T-Acc (s-tmp).
| Q | Name (group) | SFT | GRPO | (pp) |
|---|---|---|---|---|
| Q01 | Current phase (cls) | 0.8163 | 0.8186 | +0.23 |
| Q02 | Phase change (bin) | 0.6694 | 0.6612 | -0.82 |
| Q03 | Phase transition time (s-tmp) | 0.8793 | 0.8793 | 0.00 |
| Q04 | Phase sequence (s-tmp) | 0.9253 | 0.9253 | 0.00 |
| Q05 | Active instrument list (mul) | 0.7738 | 0.7896 | +1.58 |
| Q06 | Instrument presence (bin) | 0.8623 | 0.8623 | 0.00 |
| Q07 | Instrument handoff (bin) | 0.5145 | 0.5182 | +0.37 |
| Q08 | Instrument active duration (s-tmp) | 0.7271 | 0.7606 | +3.35 |
| Q09 | Instrument at second N (s-tmp) | 1.0000 | 1.0000 | 0.00 |
| Q10 | Primary triplet (cls) | 0.7284 | 0.7190 | -0.94 |
| Q11 | Action sequence (mul) | 0.7385 | 0.7363 | -0.22 |
| Q12 | Distinct action count (cnt) | 0.3284 | 0.3542 | +2.58 |
| Q13 | Action presence (bin) | 0.6250 | 0.5865 | -3.85 |
| Q14 | Anatomical target (cls) | 0.8765 | 0.8762 | -0.03 |
| Q15 | Primary verb (cls) | 0.8570 | 0.8545 | -0.25 |
| Q16 | Instrument at phase change (s-tmp) | 0.9028 | 0.9028 | 0.00 |
| Q17 | Instrument idle period (bin) | 0.5915 | 0.5922 | +0.07 |
| Q18 | Action before/after change (s-tmp) | 1.0000 | 1.0000 | 0.00 |
matching), which is higher because the sentence templates reliably produce second values; K-Acc is the conservative headline since it reflects overall response correctness.
A.8. MedGRPO-Style Per-Group Reward Normalisation
MedGRPO [34] normalises rewards across heterogeneous medical datasets with a median/IQR sigmoid, , so imbalanced reward scales do not collapse multi-dataset training. We adapt this to operate per answer-structure group within our single procedure, with a saturated-group skip when (which keeps already-converged groups from mapping every rollout to 0.5). Warm-started from the SFT checkpoint with the same one-epoch budget as our GRPO run, the normalised variant reaches the same headline K-Acc as answer-type dispatch alone (Tab. A7); per-group differences are within pp in either direction. The parity confirms the paper's argument: the cross-dataset reward heterogeneity that normalisation targets is absent within a single procedure, where per-group reward scales are already comparable.
A.9. Additional Qualitative Examples
Figure A2 complements Fig. 3 of the main paper, which focused on generation-heavy Q-types (phase-transition timing Q03, action counting Q12, multi-label instrument lists Q05). Rows 1–4 cover binary and classification Q-types not shown in the main figure: four sealed test-set clips where zero-shot fails through systematic errors (wrong phase, wrong polarity, wrong action, wrong anatomy), SFT reaches the correct answer, and GRPO adds no further gain. Rows 5–6 extend
coverage to sentence-temporal Q-types (Q16: phase-and-instrument-at-transition; Q08: instrument active duration), where the answer requires precise phase names, instrument identities, and an exact second value: zero-shot produces vague or structurally wrong output, SFT learns the sentence template but fills it with wrong content, and GRPO recovers the fully correct structured answer.
A.10. Frame-Count Robustness
Figure A3 reports frame-count robustness, varying the fast and slow stream frame budgets independently while holding the other at its default. The fast stream is sensitive exactly where the architecture assigns it: phase-transition timing (Q03) rises 7.5 pp as fast frames increase from 5 to 10, while overall K-Acc plateaus above 10 frames. By contrast, varying the slow-stream budget between 3 and 15 frames moves K-Acc by only 0.77 pp: slow-stream tokens carry redundant spatial context at this density, and the fast stream is the load-bearing path for temporal Q-types.
Table A4. Full reward decomposition on the sealed test split (n=21,840). Each row removes or replaces one component from the full GRPO reward; all other hyperparameters unchanged. Group columns report per-group K-Acc.
| Variant | K-Acc | Binary | Classif. | Multi-lbl | Counting | S-Temp |
|---|---|---|---|---|---|---|
| Full | 0.779 | 0.799 | 0.818 | 0.820 | 0.645 | 0.741 |
| only (strip , , ) | 0.760 | 0.799 | 0.820 | 0.788 | 0.630 | 0.700 |
| (strip , ) | 0.761 | 0.799 | 0.820 | 0.786 | 0.633 | 0.703 |
| (strip , ) | 0.760 | 0.799 | 0.819 | 0.788 | 0.629 | 0.701 |
| No length penalty () | 0.760 | 0.798 | 0.820 | 0.787 | 0.636 | 0.701 |
| No Q-type IFW in reward (uniform weighting) | 0.765 | 0.799 | 0.820 | 0.794 | 0.628 | 0.712 |
Table A5. Stream zeroing, per-Q-type K-Acc (7B + GRPO, sealed test split). Each column is that condition minus Full. Largest-magnitude per row in bold.
| Q | Full | —slow | —fast | —global | slow | fast | global |
|---|---|---|---|---|---|---|---|
| Q01 | 0.8201 | 0.8199 | 0.7932 | 0.8194 | -0.0002 | -0.0269 | -0.0007 |
| Q02 | 0.6694 | 0.6557 | 0.5082 | 0.6585 | -0.0137 | -0.1612 | -0.0109 |
| Q03 | 0.7680 | 0.7706 | 0.5485 | 0.7611 | +0.0026 | -0.2195 | -0.0069 |
| Q04 | 0.8285 | 0.8293 | 0.7350 | 0.8289 | +0.0008 | -0.0935 | +0.0004 |
| Q05 | 0.8276 | 0.8236 | 0.8201 | 0.8275 | -0.0040 | -0.0075 | -0.0001 |
| Q06 | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0000 | 0.0000 | 0.0000 |
| Q07 | 0.4567 | 0.4515 | 0.4307 | 0.4593 | -0.0052 | -0.0260 | +0.0026 |
| Q08 | 0.7096 | 0.7129 | 0.7098 | 0.7031 | +0.0033 | +0.0002 | -0.0065 |
| Q09 | 0.7591 | 0.7522 | 0.7512 | 0.7589 | -0.0069 | -0.0079 | -0.0002 |
| Q10 | 0.7199 | 0.7149 | 0.6999 | 0.7181 | -0.0050 | -0.0200 | -0.0018 |
| Q11 | 0.7915 | 0.7900 | 0.7841 | 0.7914 | -0.0015 | -0.0074 | -0.0001 |
| Q12 | 0.6485 | 0.6273 | 0.6411 | 0.6430 | -0.0212 | -0.0074 | -0.0055 |
| Q13 | 0.8385 | 0.8212 | 0.8327 | 0.8115 | -0.0173 | -0.0058 | -0.0270 |
| Q14 | 0.8762 | 0.8767 | 0.8651 | 0.8765 | +0.0005 | -0.0111 | +0.0003 |
| Q15 | 0.8532 | 0.8433 | 0.8265 | 0.8520 | -0.0099 | -0.0267 | -0.0012 |
| Q16 | 0.8002 | 0.7770 | 0.6731 | 0.8033 | -0.0232 | -0.1271 | +0.0031 |
| Q17 | 0.6204 | 0.6138 | 0.5927 | 0.6211 | -0.0066 | -0.0277 | +0.0007 |
| Q18 | 0.8097 | 0.8120 | 0.8023 | 0.8097 | +0.0023 | -0.0074 | 0.0000 |
Table A6. Temporal accuracy at s on sentence-temporal Q-types (n=8,210 sentence-temporal test QA pairs).
| Model | s | s | s |
|---|---|---|---|
| 7B SFT | 0.860 | 0.874 | 0.884 |
| 7B + GRPO | 0.876 | 0.888 | 0.899 |
| +0.016 | +0.014 | +0.015 |
Table A7. Answer-type dispatch (our full model) vs. MedGRPO-style per-group reward normalisation [34], both warm-started from the SFT checkpoint with a matched one-epoch budget (sealed test split, n=21,840).
| Metric | Dispatch (ours) | + per-group norm. |
|---|---|---|
| K-Acc | 0.779 | 0.779 |
| Primary | 0.743 | 0.743 |
| ROUGE-L | 0.803 | 0.811 |
| Per-group K-Acc (norm. – dispatch) | ||
| Binary | — | -0.3 |
| Classification | — | -0.2 |
| Multi-label | — | +0.3 |
| Counting | — | -0.9 |
| Sentence-temporal | — | +0.3 |
| FRAMES & Q-TYPE | QUESTION | GROUND TRUTH | ZERO-SHOT | SFT | SFT + GRPO |
|---|---|---|---|---|---|
| Q01 · Phase-Classification | What stage of the surgery is taking place in this video? | the clip primarily shows calot triangle dissection | The surgeon is cutting the gallbladder with a scalpel. (wrong phase, wrong action) | the clip primarily shows calot triangle dissection. | the clip primarily shows calot triangle dissection. |
| Q06 · Binary Instrument Present | Does the irrigator appear in this video clip? | no, the irrigator is not used in this clip. | Yes, the irrigator appears in this video clip. (Wrong Polarity) | no, the irrigator is not used in this clip. | no, the irrigator is not used in this clip. |
| Q10 · TripletAction classification | Which action dominates this clip? | the primary action in this clip is grasper retract gallbladder. | The surgeon uses the scissors to cut the gallbladder. (wrong instrument, wrong action) | the primary action in this clip is grasper retract gallbladder. | the primary action in this clip is grasper retract gallbladder. |
| Q14 · Anatomy Classification | Identify the main target of the surgical actions here. | the primary anatomical target in this clip is specimen bag. | The gallbladder is being removed. (wrong target, wrong format) | the primary anatomical target in this clip is specimen bag. | the primary anatomical target in this clip is specimen bag. |
| Q16 · Phase+Instrument Temporal | What happens to active instrument when the phase changes? | the grasper is replaced by the clipper. | The active instrument is removed from the patient's body. | the scissors is replaced by the grasper. | the grasper is replaced by the clipper. |
| Q08 · Instrument Duration | How long is the clipper active during this clip? | the clipper is used for 30 seconds, from second 0 to second 29 of the clip. | The clipper is active for 1 second. X (completely wrong count) | the clipper is used for 15 seconds, from second 0 to second 14 | the clipper is used for 30 seconds, from second 0 to second 29 of the clip. |
Figure A2. Additional qualitative examples across six Q-types (sealed test set). Rows 1–4 cover binary and classification Q-types (Q01, Q06, Q10, Q14); rows 5–6 cover sentence-temporal Q-types (Q16, Q08). Each row shows two representative frames, the question, ground truth, and predictions from zero-shot (ZS), SFT, and SFT+GRPO. ZS fails on all six through systematic errors — wrong phase names, wrong polarity, wrong instrument or action, vague temporal descriptions with no named content. For the binary and classification rows, SFT already matches the ground truth and GRPO adds no further gain, consistent with the near-zero deltas in Tab. 3 of the main paper. For the sentence-temporal rows, SFT learns the surface format but fills it with wrong phase names, wrong instruments, or wrong durations; GRPO recovers the fully correct structured answer in both cases.
(a) Fast-stream frame budget

(b) Slow-stream frame budget

Figure A3. Frame-count robustness. (a) Fast stream (slow=15 fixed): Q03 drops 7.5 pp at fast=5; K-Acc flat above 10 frames. (b) Slow stream (fast=30 fixed): K-Acc varies by only 0.77 pp across 3–15 frames.