Learning Along the Way: Student-State Supervision for Interactive Gigapixel Pathology Image Reasoning

AuthorsYicong Wu, Mingyuan Li, Hans Moen, Shaoxiong Ji
VenuePreprint
DateDecember 2026
Read Paper Code Models

Abstract

Interactive reasoning over gigapixel whole-slide images (WSIs) requires agents to seek visual evidence across vast regions and make decisions through multiple interactions. Training such agents is challenging, as coordinate-based navigation requires models to jointly handle spatial localization and diagnostic reasoning, with localization errors potentially affecting subsequent decisions. Meanwhile, teacher-trajectory imitation provides limited supervision for the states students encounter. We introduce STAGER (Student-state Training with Aligned Guidance for Evidence-Grounded Reasoning), a student-state-aligned training framework that decouples spatial retrieval from agent reasoning through a frozen vision-language retriever. Rather than imitating complete teacher trajectories, STAGER provides guidance from a stronger teacher at student-visited states, followed by outcome-based reinforcement learning. Across five WSI tasks, STAGER's student-state supervision outperforms teacher-trajectory imitation on both 9B and 4B agents. With subsequent GRPO refinement, STAGER achieves up to 44.77% Macro accuracy for a 9B agent (vs. 35.25% untuned), comparable to an unadapted 35B agent (44.99%) under the same retrieval interface. Behavioral and fixed-evidence analyses further suggest that these gains extend beyond evidence selection to more effective reasoning and decision-making from visual observations.

STAGER overview: (A) a VLM agent iteratively requests visual evidence from a frozen semantic retriever or answers; (B) student-state-aligned SFT followed by outcome-based GRPO
Figure 1: Overview of STAGER. (A) A VLM agent iteratively requests visual evidence through a frozen semantic retriever, without predicting coordinates, until it decides to answer. (B) Student-state-aligned SFT uses teacher guidance at student-visited states without executing teacher actions; the resulting policy is refined with outcome-based GRPO. [Download vector graphics]

Supervising the states the student actually visits

In interactive WSI reasoning, every evidence request changes what the agent sees next. A single different request returns a different high-resolution patch, so a student's interaction history quickly drifts away from any teacher demonstration. STAGER therefore moves teacher supervision onto the student's own rollouts: the student explores, and the teacher labels each state the student reached.

Teacher and student trajectories start from the same slide and diverge after retrieving different patches; STAGER queries the teacher at each student-visited state. Teacher-visited states Student-visited states q s1 sT2 sT3 answer zT1 zT2 zT3 s02 s03 answer ? ? different request, different patch no teacher label here Teacher πT Teacher πT queried at s0t z̃1 z̃2 z̃3 teacher action not executed
Illustrative example. Each state stacks the slide thumbnail and every patch retrieved so far, matching st = (q, o0, z1:t−1, o1:t−1); one different evidence request is enough to put the student on different tissue.

Highlights

We evaluate STAGER on MultiPathQA, covering five WSI reasoning tasks and 236 evaluation questions, with Macro accuracy as the primary metric.

+9.52 ppPerformance gain35.25 → 44.77 Macro accuracy for the 9B agent (best run)
≈ 35BCompetitive with a larger modelComparable to unadapted Qwen3.5-35B-A3B (44.99 Macro) under the same retrieval interface
+2.31 / +2.72Better supervisionMacro gain (pp) over teacher-trajectory SFT for 9B / 4B agents (three-run mean)
Student-state supervision outperforms teacher-trajectory imitation
  • Teacher trajectory (TT)
  • STAGER, student state (SS)
Qwen3.5-9B354045untuned 35.25SFTTT-SFT · SFT: 38.86 ± 1.23 Macro (3 seeds)STAGER (SFT) · SFT: 41.17 ± 0.64 Macro (3 seeds)41.17SFT + GRPOTT-SFT + GRPO · SFT + GRPO: 39.59 ± 0.99 Macro (3 seeds)STAGER (SFT + GRPO) · SFT + GRPO: 41.38 ± 3.10 Macro (3 seeds)41.38 Qwen3.5-4B354045untuned 39.46SFTTT-SFT · SFT: 37.49 ± 2.23 Macro (3 seeds)STAGER (SFT) · SFT: 40.21 ± 1.96 Macro (3 seeds)40.21SFT + GRPOTT-SFT + GRPO · SFT + GRPO: 37.16 ± 0.61 Macro (3 seeds)STAGER (SFT + GRPO) · SFT + GRPO: 42.06 ± 1.17 Macro (3 seeds)42.06

Macro accuracy (%). Trained models are reported as mean ± SD across three runs, with untuned models evaluated once. All training comparisons use matched experimental settings.

View as table
TrainingQwen3.5-9BQwen3.5-4B
Untuned35.2539.46
TT-SFT38.86 (1.23)37.49 (2.23)
STAGER (SFT)41.17 (0.64)40.21 (1.96)
TT-SFT + GRPO39.59 (0.99)37.16 (0.61)
STAGER (SFT + GRPO)41.38 (3.10)42.06 (1.17)

Findings from behavioral, fixed-evidence, and transfer analyses of selected model runs.

Same slide, different reasoning paths

Case study on a TCGA slide: teacher-trajectory SFT repeats identical evidence requests for 19 retrievals and answers esophageal carcinoma incorrectly; STAGER (SFT) retrieves targeted tumor evidence and answers colorectal adenocarcinoma correctly after one retrieval
Given the same WSI, the teacher-trajectory-trained agent repeatedly requests the same evidence and arrives at an incorrect answer after 19 retrievals. In contrast, STAGER seeks targeted diagnostic evidence and answers correctly after a single retrieval. [Download vector graphics]
Full comparison with WSI models and agents

Accuracy (%); balanced accuracy for GTEx, PANDA, and TCGA. Semantic retrieval uses frozen CONCH. STAGER rows are single runs (seed 42); for SFT + GRPO this is the best of three seeds; three-seed means are shown in the plot above. Bootstrap SDs are reported in the paper.

MethodEvidence accessGTExPANDATCGASB-VQAExp-VQAMicroMacro
Fixed-input WSI models
SlideChat (Qwen2.5-7B)Slide-level embeddings5.0016.674.5568.0034.3827.5425.72
MedGemma 1.5 (4B)Multi-tile input25.1719.986.4444.0021.8824.1523.49
Training-free WSI agents
GIANT (Gemini 3.5 Flash)Coordinate-based cropping82.3343.4845.8340.0059.3854.2454.20
PathAgentAgent-guided ROI selection54.6722.866.5944.0037.5032.6333.12
BEACONEIG-guided patch selection44.2517.9517.2050.0040.6233.4734.00
Training-free MLLM agents
Qwen3-VL-8BCoordinate-based cropping12.5016.457.8834.0037.5019.4921.67
Semantic retrieval25.178.338.4852.0046.8825.8528.17
Lingshu-7BCoordinate-based cropping20.3315.2810.6134.0034.3823.3122.92
Semantic retrieval22.2523.5016.6742.0046.8829.6630.26
Qwen3.5-35B-A3BCoordinate-based cropping50.6720.6219.0952.0056.2538.9839.73
Semantic retrieval54.6724.8935.1554.0056.2544.0744.99
InternVL3-38BCoordinate-based cropping18.332.7810.0026.0028.1215.6817.05
Semantic retrieval19.339.7211.3642.0025.0019.4921.48
STAGER and matched baselines (Qwen3.5-9B)
Qwen3.5-9B (untuned)Thumbnail only34.0016.6719.3236.0046.8828.3930.57
Coordinate-based cropping45.0813.7817.4238.0065.6233.4735.98
Semantic retrieval51.7513.6816.8244.0050.0034.3235.25
STAGER (SFT)Semantic retrieval58.0016.6728.4850.0056.2542.3741.88
STAGER (SFT + GRPO) best runSemantic retrieval63.8320.7333.0350.0056.2545.7644.77

Read, reproduce, inspect

BibTeX

@article{wu2026learningwaystudentstatesupervision,
  title = {Learning Along the Way: Student-State Supervision for Interactive Gigapixel Pathology Image Reasoning},
  author = {Yicong Wu and Mingyuan Li and Hans Moen and Shaoxiong Ji},
  year = {2026},
  journal = {arXiv preprint arXiv:2612.05599},
  url = {https://arxiv.org/abs/2612.05599}
}

Funding

This project has received funding from the European Union's Horizon Europe research and innovation programme under the Marie Skłodowska-Curie grant agreement No 101177564 — HAIF. The authors wish to acknowledge CSC — IT Center for Science, Finland, for computational resources.

Co-funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Executive Agency (REA). Neither the European Union nor the granting authority can be held responsible for them.