Med-Agentic: Distilling Agentic Medical Reasoning with Internalized Meta-Capabilities

Yucheng Zhou, Junwei Sheng, Jianbing Shen

TL;DR

Human clinicians don't memorize separate checklists for every disease; instead, they mix and match basic observational skills—like checking margins, density, or color—on the fly. Med-Agentic teaches multimodal LLMs to do the exact same thing inside their own parameters, turning external "tool calls" into fast, single-pass token generation. The result is a self-contained medical vision model that dramatically outperforms standard fine-tuned models, especially when diagnosing unfamiliar diseases.

What Problem Does This Paper Address?

When deploying AI in expert domains like medical imaging, engineers are usually stuck between two flawed paradigms.

First, there’s agentic tool use: the LLM acts as a planner calling external segmentation models or APIs over multiple turns. While modular, this setup is slow, brittle to API failures, and the external tools never actually improve during LLM training. Second, there’s end-to-end fine-tuning: baking everything into one model. It’s fast, but the model tends to memorize rigid shortcuts ("this pixel pattern = lung tumor") rather than learning how to observe, causing it to stumble when facing unseen diseases or new imaging scanners.

Figure 1: Three paradigms for deploying LLMs in expert domains. Med-Agentic realizes agentic capability composition as a single-pass capability-tagged CoT, without external tool runtime or multi-turn scaffolding. Capabilities are internalized in the LLM parameters and selected dynamically at the token level.

The authors propose a third path: internalized meta-capabilities. Just as "irregular margin" is a reusable concept whether looking at a lung nodule, skin lesion, or breast mass, an LLM should learn a small vocabulary of atomic (indivisible), internalized (stored in model weights), and composable observational skills, dynamically chaining them together during a single forward pass.

Methods

To bring this to medical visual diagnosis, the authors define $K=14$ clinical meta-capabilities—including color, margin, radiopacity, vascular pattern, and spatial grounding.

Instead of calling external APIs, Med-Agentic uses a capability-tagged structured Chain-of-Thought (CoT). In one continuous stream of text, the model prefixes each reasoning step with a plain-text capability tag (e.g., <THINK> margin: irregular... density: hyperdense... </THINK> <ANSWER> ...).

Training happens on a Qwen3.5-9B backbone across three stages:

  1. Capability SFT: Standard supervised fine-tuning on single observations so the model masters all 14 primitives individually.
  2. Structured-CoT SFT: Warm-starting the model on full multi-capability reasoning traces so it learns the grammar of composing skills.
  3. Med-OPD (The core novelty): Standard reinforcement learning (like GRPO) only gives a coarse thumbs-up/down on the final diagnosis. Instead, the authors forge four specialist teacher models—experts in Radiology, Fundus/OCT, RGB photography, and Ultrasound—and distill them into one student via Multi-Teacher On-Policy Distillation. Crucially, they introduce token-level dual-factor routing: as the student generates its reasoning trace, the training signal dynamically shifts mid-sentence depending on both (1) what kind of image it's looking at and (2) which specific capability tag it is actively writing.
Figure 3: Med-Agentic training pipeline. Stages 1-2 produce a cold-start Mcot that emits well-formed capability-tagged CoT. Stage 3 (Med-OPD) is the core methodological contribution.

Datasets

The authors aggregate 30 public medical imaging datasets totaling 119,373 samples across 9 anatomies and 8 imaging modalities.

  • Training & In-Distribution (ID) Test: 29,992 training samples and 6,033 ID test samples.
  • Out-of-Distribution (OOD) Benchmark: 519 samples across three held-out slices designed to test true transfer: COVID-19 CT (cross-modality/cross-disease), HyperKvasir held-out grades (severity label shift), and Head-CT hemorrhage (emergent disease on a rare modality/anatomy).
  • The remaining 82,829 samples are held back for future scaling studies.

Key Insights and Ideas

  • Mid-thought teacher switching matters: Standard distillation picks one teacher per prompt. In medicine, however, a single thought process spans multiple skills—a retina specialist is the best teacher when describing vascular_pattern, while a radiologist is better if the next sentence evaluates density. Routing teachers at the token level strictly generalizes prompt-level routing without introducing mathematical gradient bias.
  • True compositional resilience: When test cases require chaining four or more observations together, standard fine-tuned and RL baselines see their accuracy drop by 6 to 11 percentage points. Med-Agentic stays virtually flat—proving it genuinely composes primitives rather than memorizing templates.
  • Emergent clinical intuition: Without hard-coded rules, the model naturally learns to inspect images like a doctor—relying on density and radiopacity for chest/brain scans, and color and margins for skin/eye images (matching clinician standard operating procedures with a rank correlation of $\rho \approx 0.78$).

Key Results

Using an identical Qwen3.5-9B backbone and training pool across all trained baselines:

  • In-Distribution: Med-Agentic hits 69.7% top-1 accuracy (and 0.431 spatial grounding IoU), beating plain GRPO (65.8%), external tool orchestration (63.4%), disease-level SFT (60.1%), and zero-shot GPT-5.5 (28.3%).
  • Out-of-Distribution: Med-Agentic averages 56.5% accuracy, widening its lead to +6.2 points over plain GRPO (50.3%), +13.2 points over external tools (43.3%), and +20.7 points over disease-level SFT (35.8%).
Figure 4: Compositional generalization and pipeline dissection. Left: Top-1 accuracy as a function of the number of capabilities required per sample. Med-Agentic is nearly flat, while every other trained baseline drops by at least 7 points on the high-complexity bucket (shaded). Right: Three-stage pipeline ablation; paired bars show ID top-1 (teal) and OOD average (ochre) for each variant, and the arrow marks the +6.2-point OOD gain of Med-OPD over plain GRPO.

Limitations and Future Work

  • Fixed taxonomy boundaries: The 14-capability taxonomy is not claimed to be unique or exhaustive. Controls show the model recombines skills within this fixed basis rather than creating independent neural modules or achieving unrestricted transfer (e.g., hitting transfer limits on pathology datasets like PCam or tasks needing external clinical guideline retrieval).
  • Future Directions: The authors plan to use the 82,829 held-back samples for scaling studies, and suggest adapting this capability-tagged CoT and dual-factor distillation blueprint to other expert fields—such as legal evidence analysis, mechanical fault diagnosis, and security auditing.

Summary updated

Abstract

Large language models (LLMs) in expert domains face a trade-off between agentic tool use, which externalizes expertise behind brittle multi-turn runtimes, and end-to-end specialization, which internalizes expertise only implicitly at task-level granularity. We propose internalized meta-capabilities: atomic, parametrically internalized, and composable reasoning units that an LLM can select and combine within a single chain-of-thought (CoT). We instantiate this idea as Med-Agentic for medical visual diagnosis, where the model emits a capability-tagged structured CoT in one forward pass, turning capability invocation into tagged token generation rather than external tool calls. For training, Med-OPD performs multi-teacher on-policy distillation with token-level dual-factor teacher routing conditioned on both the image and the active capability tag, strictly generalizing per-prompt teacher routing. We show that this routing gives an unbiased estimator of the same expected teacher-KL gradient. Across public medical imaging datasets spanning nine anatomies and eight modalities, Med-Agentic consistently improves in-distribution and out-of-distribution diagnostic accuracy over the strong competitors.
BibTeX
@inproceedings{zhou2026med,
  author = {Yucheng Zhou and Junwei Sheng and Jianbing Shen},
  title = {{Med-Agentic: Distilling Agentic Medical Reasoning with Internalized Meta-Capabilities}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OddJPCN8CO},
}
Figure