MedFrame-R1: Reliable Reinforcement Learning Framework for a Baseline Medical MLLM with Multimodal Reasoning

Shayan Nasiriboukani, Sara Atito, Umar Marikkar, Iqra Farooq, Jiantao Wu, Adinath Madhavrao Dukre, Imran Razzak, Muhammad AwaisarXiv 2026

TL;DR

Training medical vision-language models with reinforcement learning (RL) often backfires: models get stuck on impossible clinical cases, ramble endlessly, or "game" AI judges by listing twenty plausible diagnoses at once. MedFrame-R1 introduces a pragmatic, open-source training and evaluation recipe that plugs these leaks—filtering out uninformative training batches, catching reward hackers semantically, and evaluating models without single-judge bias. The result is an RL pipeline that makes medical AI models genuinely sharper, much more concise, and reproducible.

What Problem Does This Paper Address?

Imagine teaching a medical student using multiple-choice quizzes, where another student grades their open-ended explanations. Recent medical Multimodal Large Language Models (MLLMs) use a similar setup: Group Relative Policy Optimization (GRPO)—an RL algorithm that generates several candidate answers ("rollouts") per question and learns by comparing their relative scores—paired with an LLM judge.

The authors show that in medicine, this standard pipeline hits four major snags:

  1. Zero learning signal: GRPO learns from contrast. If a rare pathology image is so hard that all five rollouts are wrong (or so easy all five are right), their relative advantage is zero. Nothing is learned. In initial diagnostics, ~87% of training samples gave zero signal!
  2. Reward hacking: Models quickly learn to exploit lenient LLM judges by "shotgunning"—outputting a laundry list of body parts or diseases so the judge spots the right keyword and awards points. Without constraints, models also fall into verbose, repetitive reasoning loops.
  3. Cold-start ignorance: If the base model lacks specialized clinical knowledge, random exploration during RL will never stumble upon the right answer.
  4. Evaluation bias: Relying on a single LLM judge to grade benchmarks favors models from the same architectural family.
Figure 1. MedFrame-R1 avoids the repetitive reasoning of prior ap- proaches and the answer listing that appears when training rewards correctness alone, and produces concise and focused responses.

Methods

Instead of inventing a convoluted new optimization math, MedFrame-R1 fixes the surrounding system through a two-stage pipeline and a strict evaluation protocol:

Figure 2. MedFrame-R1 training pipeline. A frozen reasoning model generates chain-of-thought supervision for the SFT cold start. During RL, the policy generates five rollouts per sample, evaluated using judge, embedding, modality, and formatting rewards. (1) An embedding gate verifies positive judge scores against reference answers. (2) Dynamic sampling retains groups with mixed raw judge scores. Finally, the length reward favours short correct rollouts and penalises long incorrect ones before the policy update.
  • Stage 1: Diversity-Preserving Cold Start. A frozen teacher model generates Chain-of-Thought (CoT) traces—first attempting to solve cases blind (to avoid post-hoc rationalization), only peeking at the reference answer on a second pass if stuck. Rather than standard supervised fine-tuning (which can make a model overconfident and kill the diversity needed for RL), they combine answer-weighted cross-entropy with Adaptive Early-Stop Loss (AESL), easing off updates on tokens the model already predicts confidently.
  • Stage 2: Guardrailed RL. Using DAPO's dynamic sampling, the pipeline discards rollout groups with uniform scores (all 0s or all 1s) and refills the batch until it gets mixed outcomes. To stop answer-listing, a novel embedding gate checks the semantic similarity between the predicted and reference answers; if similarity falls below $\tau = 0.80$, it vetoes positive LLM judge scores. Finally, a length reward boosts short correct answers and heavily penalizes long wrong ones, while dropping standard KL-divergence regularization so the model can freely explore.
  • Reproducible Evaluation Protocol: Rather than trusting one LLM judge, deterministic rules score ~70% of test items. The remaining 30% (open-ended questions and reports) are graded via majority vote across three independent LLM families.

Datasets

  • Training: A 51K visual question answering (VQA) corpus (details of its exact composition are deferred to the supplementary material). Dynamic sampling expands the subset of samples yielding usable RL signals from ~6.5K to ~26K.
  • Evaluation: No new benchmarks are introduced, but existing ones are unified under the new evaluation protocol across 19,200 items spanning 17 medical benchmarks:
  • 6 Image-based (VQA/Report): SLAKE, VQA-RAD, PathVQA, PMC-VQA, PMC-VQA-H, MIMIC-Gen.
  • 11 Text-based (QA/Summarization): 6 medical MMLU subsets, MedMCQA, MedQA, USMLE-SA, PubMedQA, and MIMIC-Sum.

Key Insights and Ideas

  • Rising judge rewards can hide falling accuracy: Without the embedding gate, the LLM judge score steadily climbs during RL training while independent medical embedding similarity plummets—smoking-gun proof that the model is learning to game the grader rather than read scans.
  • Less data, faster and better learning: Training exclusively on the 26K dynamically identified "trainable pool" beats training on the full 51K dataset by 2.2 VQA macro points while cutting training time nearly in half (56 hours down to 30).
  • Dropping KL regularization doesn't cause forgetting: Removing the KL penalty (which tethers the RL model to its starting weights) unlocked +1.4 VQA macro points without degrading performance on unseen, text-only medical QA benchmarks.

Key Results

  • Consistent SoTA Gains: On Qwen3-VL (4B and 8B), MedFrame-R1 beats the prior state-of-the-art (MediX-R1) on the exact same backbone and data, averaging +1.5 macro and +3.3 micro points across all 17 benchmarks (with VQA jumping up to +8.1 points over the base 8B model).
  • Zero-Cold-Start Scaling: Applied directly to the stronger Qwen3.5 (4B and 9B) backbones using only the RL stage, it improves performance by an average of +3.0 macro and +5.2 micro points, reaching 74.5 macro average at 9B.
  • Drastic Conciseness: On Qwen3.5, setting a 500-token reasoning threshold slashed mean response lengths by over 80% (e.g., from 2,247 tokens down to 359 on the 9B model) and crushed phrase repetition rates from ~50% to under 2%—all while boosting accuracy and speeding up training by ~17%.

Limitations and Future Work

  • Wasted Compute on Discards: Dynamic sampling requires generating and grading rollouts only to throw them away if they all get the same score, creating computational overhead when informative samples are scarce.
  • Unreachable Cases: Even after the cold start, roughly 25K of the 51K training examples never produce mixed outcomes during RL, leaving half the dataset untapped during stage two.
  • Future Directions: The authors suggest exploring hint-based RL (giving subtle clues on impossible cases) or entropy-guided objectives that can extract learning signals directly from uniform-reward groups without discarding them.

Summary updated

BibTeX
@misc{nasiriboukani2026medframe,
  author = {Shayan Nasiriboukani and Sara Atito and Umar Marikkar and Iqra Farooq and Jiantao Wu and Adinath Madhavrao Dukre and Imran Razzak and Muhammad Awais},
  title = {{MedFrame-R1: Reliable Reinforcement Learning Framework for a Baseline Medical MLLM with Multimodal Reasoning}},
  year = {2026},
  eprint = {2611.36732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36732},
}
Figure