Medical AI · Video Understanding · Reinforcement Learning
MedGRPO: Multi-Task Reinforcement Learning for Heterogeneous Medical Video UnderstandingMedGRPO: 异构医学视频理解里的多任务强化学习
This paper does two things: it builds MedVidBench, a large medical video instruction benchmark, and proposes MedGRPO, a reinforcement learning framework for heterogeneous medical video tasks. The target is not everyday video understanding. The model must handle surgery, nursing, endoscopy, and robotic procedures while solving localization, summarization, region captioning, safety scoring, and next-action prediction.
The most important observation is that standard GRPO collapses in this multi-dataset setting. The issue is not that RL is unusable, but that raw rewards from different dataset-task pairs are not comparable. Easy datasets naturally produce higher rewards and hard datasets lower rewards, so the optimizer over-prioritizes easy sources. MedGRPO fixes this by aligning reward distributions across dataset-task pairs and by using a medical LLM judge for clinical caption quality.
Background
- Medical video understanding is fine-grained. Models must identify instruments, anatomy, procedure phase, safety criteria, and clinically meaningful actions.
- Existing datasets are not instruction-ready. CholecT50, EgoSurgery, AVOS, NurViD, and others contain useful annotations, but not unified VideoLLM-style QA.
- Single-dataset adaptation generalizes poorly. Fine-tuning on one procedure or source does not cover nursing, open surgery, laparoscopic surgery, and robotic surgery together.
- Multi-task RL is sensitive to reward scale. If reward magnitudes reflect dataset difficulty rather than model quality, policy gradients optimize the wrong distribution.
Problem
- No unified medical video instruction benchmark. Existing resources are fragmented across formats, procedures, tasks, and annotation granularities.
- SFT helps but is not enough. Qwen2.5-VL-7B fine-tuned on MedVidBench beats GPT-4.1 and Gemini-2.5-Flash, yet grounding and captioning still leave room for improvement.
- Standard GRPO collapses. CoPESD has much higher median STG mIoU than EgoSurgery, so raw mIoU rewards bias training toward the easier source.
- Generic caption metrics miss clinical errors. “Tool grasps tissue” and “grasper dissects the cystic duct” may look similar to embeddings, but are clinically different.
Core Idea
- First unify data into instruction format. MedVidBench converts 8 medical video sources into 531,850 video-instruction pairs across 8 tasks.
- Use SFT before RL. Supervised fine-tuning adapts the base VLM to the medical video domain and provides baseline reward statistics.
- Normalize rewards per dataset-task pair. Each median baseline performance is mapped to the same normalized reward, preventing easy datasets from dominating.
- Use a medical LLM judge for captions. The reward evaluates terminology, instrument/anatomy identification, specificity, clinical context, and action/state accuracy.
MedVidBench
- Scale. 531,850 QA samples: 461,413 train and 70,437 test, from 626 videos.
- Sources. CholecT50, CholecTrack20, Cholec80-CVS, CoPESD, AVOS, EgoSurgery, JIGSAWS, and NurViD.
- Tasks. Video-level tasks include video summarization, critical view of safety, next action prediction, and skill assessment; segment-level tasks include temporal action grounding, dense video captioning, and region captioning; frame-level tasks include spatiotemporal grounding.
- Quality control. Frame-annotated datasets use visual prompts with bounding boxes and labels; web-sourced videos use Whisper-X transcripts and metadata; GPT-4.1 and Gemini-2.5-Flash are used for dual-model generation and similarity filtering.
- Human validation. Twelve medical data analysis experts prefer expert-prompt captions over frame-only captions by 82.0% vs. 18.0%.
MedGRPO Method
1. Two-stage training. Qwen2.5-VL-7B is first SFT-trained on MedVidBench, then optimized with GRPO on representative grounding and captioning tasks.
2. Group-relative advantage. For each prompt, the model samples G = 8 responses and computes advantages from within-group normalized rewards. The paper follows DAPO-style asymmetric clipping and removes the KL penalty.
3. Cross-dataset reward normalization. For every dataset-task pair, SFT baseline p25, p50, and p75 statistics define a logistic normalization. The median p50 maps to 0.5 and the interquartile range controls scale.
4. Grounding reward. TAG and STG use normalized mIoU as content reward and a format penalty for parse failures. The two are multiplied rather than added.
5. Caption reward. VS and RC combine normalized semantic similarity with the medical LLM judge score using an equal-weighted average.
Medical LLM Judge
- Medical terminology precision. Whether the caption uses correct clinical terms instead of generic language.
- Instrument and anatomy identification. Whether tools and structures such as grasper, hook, cystic duct, and gallbladder are named correctly.
- Specificity versus vagueness. Whether the caption provides precise spatial and procedural details.
- Clinical procedure context. Whether the caption understands the procedural workflow and purpose.
- Action and state accuracy. Whether verbs such as grasps, retracts, dissects, and coagulates match the visual evidence.
The supplementary study reports strong agreement with 10 board-certified clinicians: Pearson r = 0.977 and Cohen's Kappa = 0.817.
Results
- SFT already beats closed-source baselines. Qwen2.5-VL-7B SFT reaches 0.894 on CVS, while GPT-4.1 is 0.018 and Gemini-2.5-Flash is 0.101.
- MedGRPO improves grounding. On Qwen2.5-VL-7B, STG mIoU improves from 0.177 to 0.202, TAG@0.3 from 0.142 to 0.216, and TAG@0.5 from 0.091 to 0.156.
- Caption gains are larger. VS LLM judge improves from 3.596 to 4.184, RC from 2.757 to 3.442, and DVC from 3.665 to 3.797.
- The recipe transfers to Qwen3-VL-4B. MedGRPO further improves the SFT model across STG, TAG, DVC, VS, and RC.
- Off-the-shelf models still need domain adaptation. Newer 2026 models are better, but remain weak on medical grounding compared with MedVidBench-adapted models.
Ablation
- Removing reward normalization breaks training. CVS drops to 0.020, STG to 0.010, and TAG@0.3 to 0.004.
- Multi-task RL has positive transfer. Adding caption rewards to grounding rewards improves STG and TAG.
- The LLM judge matters. VS and RC are both better when the medical judge is included instead of relying only on semantic similarity.
- CVS remains difficult. The model struggles to calibrate 0/1/2 safety scores, especially partial versus complete satisfaction.
Limitations
- Data generation depends on strong VLMs. MedVidBench captions inherit some biases from GPT-4.1 and Gemini-2.5-Flash.
- The judge needs broader validation. It correlates well with clinicians in this setting, but other specialties and languages may behave differently.
- RL optimizes only selected tasks. NAP is not directly rewarded and slightly drops in the main Qwen2.5-VL experiment.
- Safety scoring may require specialized calibration. CVS is ordinal and clinically nuanced, not just a recognition task.
My Take
The main value of MedGRPO is not simply applying GRPO to medical videos. It identifies a real failure mode in multi-dataset medical RL: rewards cannot be mixed raw. Otherwise, the policy learns dataset difficulty bias rather than medical capability.
The evaluation design is also worth reusing. Medical captions are not generic captions; instrument names, anatomy, action verbs, and workflow context can change the clinical meaning. Combining task metrics, a clinical LLM judge, and reward normalization may be more important than simply scaling SFT data.
这篇论文做了两件事:先构建一个大规模医学视频指令数据集 MedVidBench,再提出一个适合异构医学视频任务的强化学习框架 MedGRPO。它关注的问题不是普通 VideoLLM 能不能看懂日常视频,而是模型能不能在手术、护理、内镜等医疗场景里同时处理定位、摘要、区域描述、安全评分、下一步动作预测等任务。
论文最关键的观察是:在 MedVidBench 这种多数据集、多任务混合训练里,直接套标准 GRPO 会训练崩掉。原因不是 RL 算法本身不能用,而是不同数据集和任务的原始奖励尺度差异太大。容易数据集天然给高 reward,困难数据集天然给低 reward,优化器就会偏向容易来源,最后 hard dataset 上性能塌陷。MedGRPO 的核心就是把不同 dataset-task 的 reward 拉到可比较的尺度,同时用医学 LLM judge 补足普通语义相似度无法评价临床细节的问题。
背景铺垫
- 医学视频理解比通用视频更细。 模型不仅要识别动作,还要区分器械、解剖结构、操作阶段、安全标准和临床语义。
- 现有医学视频数据多是传统标注。 CholecT50、EgoSurgery、AVOS、NurViD 等有框、phase、action triplet 或 transcript,但不是 VideoLLM 所需的 instruction QA 格式。
- 单数据集医学 VideoLLM 泛化有限。 只在某个手术或某个数据集上 fine-tune,容易学到局部任务,难以覆盖护理、开放手术、腹腔镜、机器人手术等异构来源。
- RL 在多任务设置里很敏感。 如果 reward 的量纲、难度、分布不一致,策略梯度会把“容易拿高分”的任务当成主要优化方向。
问题是什么
- 缺少统一医学视频指令基准。 现有数据很丰富,但分散在不同格式、不同任务、不同临床场景里。
- SFT 能提升,但还不够。 Qwen2.5-VL-7B 在 MedVidBench 上 SFT 后明显强于 GPT-4.1 和 Gemini-2.5-Flash,但 grounding 和 captioning 仍有优化空间。
- 标准 GRPO 会 collapse。 例如 CoPESD 的 STG median mIoU 可到约 0.5,而 EgoSurgery 只有约 0.12;直接用原始 mIoU 做 reward 会天然偏向 CoPESD。
- 普通 caption 指标不懂医学差异。 “tool grasps tissue”和“grasper dissects the cystic duct”语义 embedding 可能很近,但临床上器械、动作、解剖位置都不一样。
核心想法
- 先把数据做成统一指令格式。 MedVidBench 把 8 个医学视频来源转换成 531,850 个 video-instruction pairs,覆盖 8 类任务。
- RL 前先做 SFT。 先用监督微调把基础 VLM 拉进医学视频域,再在这个 baseline 上计算各 dataset-task 的 reward 分布统计。
- 用 cross-dataset reward normalization 保持公平。 每个 dataset-task 的 median 表现都映射到相同 normalized reward,避免容易数据集天然占优。
- 用医学 LLM judge 评价 caption。 对生成描述不只看语义相似度,还看医学术语、器械/解剖识别、具体性、临床流程上下文和动作状态准确性。
MedVidBench 怎么构建
- 数据规模。 531,850 个 QA 样本,461,413 train,70,437 test,来自 626 个视频。
- 数据来源。 包括 CholecT50、CholecTrack20、Cholec80-CVS、CoPESD、AVOS、EgoSurgery、JIGSAWS 和 NurViD。
- 任务粒度。 video-level 包括 video summarization、critical view of safety、next action prediction、skill assessment;segment-level 包括 temporal action grounding、dense video captioning、region captioning;frame-level 包括 spatiotemporal grounding。
- 质量控制。 对有 frame annotation 的数据,叠加 bounding box、label 和 procedure context;对 web-sourced 视频,用 Whisper-X transcript 和 metadata 补上下文;caption 由 GPT-4.1 与 Gemini-2.5-Flash 双模型生成并做 similarity filtering。
- 人工验证。 12 位医学数据分析相关专家偏好带 expert prompt 的 caption,比例为 82.0% vs 18.0%,说明标注增强 prompt 确实提升了医学描述质量。
MedGRPO 方法
1. 两阶段训练。 第一阶段用 MedVidBench 对 Qwen2.5-VL-7B 做 SFT,注入医学视频知识。第二阶段用 GRPO 做 RL,让模型在 grounding 和 captioning 等任务上继续提升。
2. Group-relative advantage。 对同一个 prompt 采样 G = 8 个回答,在组内用 reward 的均值和标准差计算 advantage。论文采用类似 DAPO 的 asymmetric clipping,并去掉 KL penalty。
3. Cross-dataset reward normalization。 对每个 dataset-task 组合,用 SFT baseline 在训练集上的 p25、p50、p75 统计构建 logistic normalization。核心形式是以 median p50 为中心,用 IQR = p75 - p25 控制尺度,把各数据集的中位表现映射到 0.5。
4. Grounding reward。 对 TAG 和 STG,content reward 来自 normalized mIoU,format reward 用来惩罚解析失败,最终用乘法组合,避免格式正确被当作额外 bonus。
5. Caption reward。 对 VS 和 RC,最终 reward 是 normalized semantic similarity 与 medical LLM judge score 的平均值。这样既保留整体语义一致性,又能奖励医学细节准确性。
医学 LLM Judge 看什么
- Medical terminology precision。 是否使用正确临床术语,而不是泛化成普通词。
- Instrument and anatomy identification。 是否准确识别 grasper、hook、cystic duct、gallbladder 等器械和解剖结构。
- Specificity vs. vagueness。 描述是否具体,是否避免“upper area”“tool”等模糊表达。
- Clinical procedure context。 是否理解当前步骤在流程里的作用,例如暴露视野、牵拉、止血、取出标本袋。
- Action and state accuracy。 是否把 grasps、dissects、retracts、coagulates 等动作和状态说对。
补充材料里还用 10 位 board-certified clinicians 做相关性验证:LLM judge 与平均临床医生评分的 Pearson r = 0.977,Cohen's Kappa = 0.817,说明这个自动评价器至少在该实验设置下能较好代理临床偏好。
结果速览
- SFT 已经显著超过闭源模型。 Qwen2.5VL-7B SFT 在 CVS 上达到 0.894,而 GPT-4.1 是 0.018,Gemini-2.5-Flash 是 0.101。
- MedGRPO 继续提升 grounding。 Qwen2.5VL-7B 上 STG mIoU 从 0.177 到 0.202,TAG@0.3 从 0.142 到 0.216,TAG@0.5 从 0.091 到 0.156。
- Captioning 收益更明显。 VS LLM judge 从 3.596 到 4.184,RC LLM judge 从 2.757 到 3.442,DVC LLM judge 从 3.665 到 3.797。
- 框架能迁移到 Qwen3-VL-4B。 Qwen3-VL-4B SFT 后已经很强,MedGRPO 仍进一步提升 STG、TAG、DVC、VS、RC 等任务。
- 最新 off-the-shelf 模型仍需要领域适配。 GPT-5.4、Gemini-3.1-Flash-Lite、Qwen3.5-4B 比 2025 模型更强,但在 STG/TAG 等医学定位任务上仍明显低于 MedVidBench SFT 模型。
Ablation 说明什么
- 不做 reward normalization 会崩。 full MedGRPO 的 CVS 是 0.896;去掉 normalization 后 CVS 掉到 0.020,STG 从 0.202 掉到 0.010,TAG@0.3 从 0.216 掉到 0.004。
- 多任务 RL 有协同。 只训 TAG+STG 不如 TAG+STG+VS+RC,caption 任务带来的视频语义理解也帮助时空定位。
- LLM judge 对医学描述有用。 VS+RC 使用 LLM judge 时,VS 和 RC 都明显优于只用语义相似度的版本。
- CVS 仍是难点。 失败案例显示,模型容易在 0/1/2 三档安全评分上校准不好,尤其难区分“部分满足”和“完全满足”。
局限与开放问题
- 数据生成依赖强 VLM。 MedVidBench 的高质量 caption 很大程度依赖 GPT-4.1 和 Gemini-2.5-Flash,仍可能继承它们的偏差。
- 医学 judge 本身也需要持续验证。 虽然和临床医生相关性高,但不同科室、不同任务、不同语言环境下是否稳定还需要更多测试。
- RL 只覆盖部分任务 reward。 MedGRPO 主要用 TAG、STG、VS、RC 训练 reward,NAP 等未直接优化任务可能出现轻微下降。
- 安全评分需要更强校准。 Critical View of Safety 这类任务不只是识别,还涉及临床判分标准,可能需要专门的 ordinal calibration 或 uncertainty-aware scoring。
我的理解
MedGRPO 的价值不只是“把 GRPO 用到医学视频上”,而是很清楚地指出了多数据集医学 RL 的一个实际坑:reward 不能直接混。医学视频数据天然异构,不同来源、不同任务、不同标注精度的分数分布差异很大。如果不先做 reward 分布对齐,RL 学到的很可能是数据集难度偏差,而不是医学能力。
另一个值得借鉴的点是评价设计。医学 caption 不是普通 caption,器械名、解剖结构、动作动词和流程上下文都可能改变临床含义。用 LLM judge 做比较式评分,再和 semantic similarity 混合,是一个务实的折中:既不完全相信 embedding,也不完全把训练信号交给主观 judge。对医疗多模态任务来说,这种“任务指标 + 临床语义 judge + reward normalization”的组合可能比单纯扩大 SFT 数据更重要。