Small lesions are hard to segment for two compounding reasons. First, the image is shrunk before the model sees it, and an object a few dozen pixels wide can nearly vanish. Second, the lesion's border fades gradually into healthy tissue, so even a full-resolution model is unsure exactly where the edge lies.
A recent family of systems handles the first problem by letting a vision-language model, an image-reading language model, choose where to "zoom in." The choice is trained with reinforcement learning against a checkable geometric score, such as how much a predicted region overlaps the true one. We argue that these overlap scores are the wrong teacher for zooming. An overlap score is dominated by the lesion's easy interior, so it barely changes when the zoom is too weak to resolve the margin. The result is a looking policy that finds lesions but never learns to magnify enough to draw their edges.
We propose to train the zoom policy with a reward computed only along the true boundary, at the image's native resolution, with tolerance for genuine edge ambiguity. Looks are taken in sequence, so the policy can take a second look at the part of the margin where the segmenter was least certain. We test this on polyp, brain-tumor, and CT lesion benchmarks under a fixed pixel budget.
Core Claim
The decision about where to look and how much to magnify cannot be learned by gradient descent through the segmenter. It is therefore the one place where reinforcement learning with a verifiable reward is actually needed. The reward used there decides which failures the policy learns to fix.
Our claim is in two parts:
- Area-based rewards (box IoU, mask Dice) are nearly flat in magnification for lesions above a modest size. A boundary-band reward stays steep. A policy trained on the boundary reward should therefore learn systematically higher magnification and margin-targeted second looks.
- Under an equal pixel budget, this should yield better boundary accuracy on small, low-contrast lesions, without losing detection recall.
A simple geometric argument shows why. If the image is downsampled by a factor $s$, edges blur over roughly $s$ native pixels. For a lesion of radius $r$, the misassigned area scales like $s/r$ of the total. The misplaced boundary length, however, stays a fixed fraction of the perimeter until $s$ approaches the true edge width. Overlap therefore forgives coarse looks, while a boundary score does not.
Relation to Prior Work
Three groups of prior work motivate the proposal, and one supplies the closest method.
Verifiable geometric rewards in medical models. These systems show that such rewards fix ungrounded spatial output, but all of them score only boxes or whole-mask overlap:
- MedMO trains a medical multimodal model with a box-level GIoU reward inside Group Relative Policy Optimization (GRPO, a policy-gradient method that compares a group of sampled answers against each other). It reaches 38.5% IoU on DeepLesion, where baseline models produced no valid localizations.
- BoxMed-RL rewards IoU between predicted and true anatomical regions during chest X-ray report generation.
- PathChat-SegR1 rewards mask overlap when deciding when to emit a segmentation, reporting 0.58 zero-shot Dice on PMBT. It works on pre-cut patches and never chooses where to look.
None of these rewards the edge itself.
Edge-specific supervised architectures. This work shows that margins are where models fail, and that the failure worsens under dataset shift. It also constrains our design: a differentiable segmenter can already be trained directly on edges, so reinforcement learning should not replace that training.
- PraNet and CaraNet erase confident foreground so that later layers attend to ambiguous margins.
- MISNet adds dedicated boundary attention.
- PraNet falls from 0.898 Dice on Kvasir to 0.628 on the unseen ETIS set. MISNet reports drops above 38% for competing models on ETIS.
Graded soft targets. Bounding Maps replaces hard box labels with values that decline smoothly toward the border. This improves DeepLesion sensitivity from 82.43% to 86.28%. We borrow the idea of graded credit near the edge for our tolerance term and for a dense term that rewards finding the lesion at all.
The closest method. ACTIVE-o3 trains, with GRPO, a sensing module that proposes up to three rectangular crops in one parallel pass. Its rewards are AP or mIoU plus heuristic regularizers, and it gains +8.5 small-object AP on SODA-A. We differ in three ways:
- The reward is computed on the boundary band at native resolution rather than on overlap.
- Looks are sequential and conditioned on the segmenter's uncertainty map, rather than a single parallel pass.
- Every method runs under an explicit pixel budget, so that "zoom everywhere" is not an available solution.
Cascades and iterative refinement. The cascade in A Unified 2D Framework for DeepLesion shows that cropping matters. Full-slice nnUNet reaches 34.1% Dice and Swin-UMamba 40.1%, against 62.6% after detect-then-crop. The authors also identify the weakness of that design: a missed detection is never recovered. RecycleNet refines predictions iteratively, but at a single fixed resolution. Our sequential looks are a learned, resolution-changing version of that idea of reconsidering an earlier guess.
Research Program
The system. The system has two parts that are trained differently.
The looking policy is a vision-language model, starting from the Qwen2.5-VL base used by ACTIVE-o3. It sees the downsampled whole image and emits up to $K=3$ looks, one at a time. Each look is a crop center and side length, and the policy may also emit "stop." After each look, a high-resolution segmenter processes the crop at its native input size. The segmenter returns a mask and a per-pixel uncertainty map, which are rendered back onto the policy's view before it chooses the next look. The final mask is stitched from all looks.
The segmenter is trained purely with supervision on crops, using Dice plus an edge loss in the style of CaraNet. It is then frozen during policy training. This keeps reinforcement learning confined to the non-differentiable choice of where to look and how much to magnify.
The reward. The policy's reward is
$$r = F_\tau(\partial \hat M, \partial M) + \alpha\, g(\hat M, M) - \beta\, \frac{P}{B}.$$
Each symbol is defined as follows:
- $\partial M$ and $\partial \hat M$ are the true and predicted boundaries, both extracted at native image resolution.
- $F_\tau$ is the harmonic mean of two fractions. The first is the fraction of predicted boundary pixels lying within $\tau$ native pixels of the true boundary. The second is the fraction of true boundary pixels lying within $\tau$ of the predicted one. The tolerance $\tau$ encodes how ambiguous the edge genuinely is.
- $g$ is a dense finding term, in the spirit of Bounding Maps. It gives graded credit when a look lands near a missed lesion, so the reward is not zero whenever a crop misses entirely. That sparsity problem is the one ACTIVE-o3 handles with heuristic shaping.
- $P$ is the number of native pixels the segmenter processed, and $B$ is the pixel budget.
We set $\tau$ per dataset, from inter-annotator variation where available and otherwise as a fixed fraction of the lesion's equivalent radius. We report results across a range of $\tau$ so that the conclusions do not hinge on one choice.
Guards against reward hacking. Following the dual-reward practice in ViGoRL and ACTIVE-o3, we add format validity and an overlap penalty between looks. We also monitor two specific hacks: emitting tiny fragmented masks to farm boundary precision, and skipping lesions.
A diagnostic before any policy is trained. For each test lesion, we place an oracle crop at the true center and sweep magnification. We then record how Dice and $F_\tau$ change as magnification rises, stratified by lesion size and by edge contrast. Edge contrast is measured as the intensity difference across the true margin.
The hypothesis predicts that Dice saturates early while $F_\tau$ keeps rising, specifically for small, low-contrast lesions. If both curves saturate together, the boundary reward adds nothing over Dice, and we would drop the proposal's central ingredient.
Data. The primary setting is polyps:
- Train on Kvasir-SEG and CVC-ClinicDB.
- Test on CVC-ColonDB and ETIS-LaribPolypDB. ETIS is the small, concealed, low-contrast stress test, and both test sets have true masks.
Two secondary settings follow:
- The BraTS 2018 small necrotic and non-enhancing core subset, where CaraNet reports 63.1% mDice.
- DeepLesion. Its masks are GrabCut pseudo-masks built from boxes, as used by the Unified 2D Framework, so we treat boundary scores there as indicative only. We report detection sensitivity and IoU against MedMO's figure.
ThinObjects is used as a non-medical check on thin, ambiguous edges.
Baselines
Naive reference. The segmenter is run once on the whole image, downsampled to the pixel budget $B$, with no looking policy. This measures how much any form of zooming buys.
Strongest supervised method. CaraNet is trained on the same Kvasir/ClinicDB split at full resolution. It is the strongest reported edge-focused architecture on the small-polyp test set: CaraNet reports 74.7% mDice on ETIS, against PraNet's 0.628. We retrain it with the authors' recipe and give it the same tuning budget of configurations as our method. Because it sees every pixel, it is allowed to exceed our budget. It is therefore an upper reference on cost rather than a budget-matched competitor. No boundary-band score for it is reported on Lacuna, so we compute $F_\tau$ ourselves.
Strongest cascade. This is the detect-then-crop pipeline of the Unified 2D Framework, at 62.6% Dice on DeepLesion pseudo-masks. We re-implement it with our segmenter and a heuristic crop: the detector box plus a fixed margin, magnified to the segmenter's input size, with the margin tuned on validation data. Its budget is matched to ours.
Strongest active-perception method. This is ACTIVE-o3, retrained on our data with its mIoU task reward and our segmenter and budget. No reported result was found on Lacuna for ACTIVE-o3 on ThinObjects or on any polyp benchmark.
Key ablation. The ablation that isolates our ingredient is our exact system with $F_\tau$ replaced by mask Dice. Architecture, sequential looks, budget, data, and number of GRPO steps are all identical. A second ablation removes uncertainty conditioning by making the looks parallel.
What counts as winning. We beat the field if the full system improves $F_\tau$ and the 95th-percentile boundary distance over both the Dice-reward ablation and the tuned heuristic cascade on ETIS and ColonDB. The improvement must be concentrated in the small, low-contrast stratum, must exceed seed-to-seed variation across at least three seeds, and must leave lesion-level recall unchanged or better.
Why not just…?
Why not just add a boundary loss to a full-resolution supervised segmenter? For the segmenter itself, we do exactly that; reinforcement learning never replaces the dense gradient. What a loss cannot do is decide where to spend a limited pixel budget. The DeepLesion evidence shows this decision matters: full-slice models stay at 34.1–40.1% Dice while cropping reaches 62.6%, and that gap holds even with lossless space-to-depth downsampling in the detector. CaraNet at full resolution is in the baseline set, so if it matches us at lower cost, the experiment will show it.
Why not just crop around a detected box with a fixed margin? This is the real threat. A well-tuned heuristic may capture most of the gain on isolated, roundish polyps. The policy can only win where the heuristic is structurally wrong:
- the detector's box is off-center on a tiny lesion;
- the margin is elongated and needs a magnification the fixed rule does not choose;
- a second look at an uncertain stretch of edge is worth more than a wider first crop;
- the detector misses entirely, which the dense finding term lets the policy recover from.
We report results stratified by these cases. If the tuned heuristic matches the policy everywhere, we will conclude that the learned looking policy is unnecessary, and that the contribution reduces to the diagnostic plus the evaluation protocol.
Why not just swap Dice for the boundary score in ACTIVE-o3? That is close to the Dice-versus-$F_\tau$ ablation, and we run it. The difference is that ACTIVE-o3 looks once, in parallel, with no budget. Without a budget, a policy can cover margins by making crops large, so no reward pressure pushes it toward magnification. The parallel-looks ablation tells us whether uncertainty-conditioned sequencing matters beyond the reward change.
Why not just prompt a box-prompted foundation segmenter such as MedSAM? PathChat-SegR1 reports that general segmenters are brittle on subtle tissue boundaries. They also still need someone to supply the prompt, which is precisely the looking problem. We include MedSAM as an alternative frozen segmenter inside every compared system. This makes the question of where to look separable from the question of which segmenter to use.
Decisive Experiments
First check: the magnification diagnostic. It must show the predicted gap between how Dice and $F_\tau$ respond to magnification for small, low-contrast lesions. Without that gap, the rest is unmotivated.
Second check: the matched-budget comparison. It compares the boundary-reward policy against the Dice-reward policy and the tuned heuristic cascade on ETIS and ColonDB, with BraTS small cores as replication. Two diagnostics make the comparison interpretable:
- The magnification the policy actually chooses, and where its second looks land relative to the uncertainty map. This tests whether the reward changed behavior, not just scores.
- A sweep over the budget $B$. As $B$ approaches full resolution, all methods should converge. The policy's advantage should be largest at tight budgets.
Third check: robustness to the tolerance and to pseudo-labels. We vary $\tau$ and report results in two ways: on true-mask datasets separately from DeepLesion's pseudo-masks, and with $F_\tau$ separated from Dice. A gain that appears only at one $\tau$, or only on pseudo-masks, would not count.
References
- MedMO: Grounding and Understanding Multimodal Large Language Model for Medical Images
- Reason like a radiologist: Chain-of-thought and reinforcement learning for verifiable report generation
- PathChat-SegR1: Reasoning Segmentation in Pathology via SO-GRPO
- PraNet: Parallel Reverse Attention Network for Polyp Segmentation
- CaraNet: context axial reverse attention network for segmentation of small medical objects
- Multi-scale information sharing and selection network with boundary attention for polyp segmentation
- Bounding Maps for Universal Lesion Detection
- ACTIVE-o3 : Empowering MLLMs with Active Perception via Pure Reinforcement Learning
- A Unified 2D Framework for DeepLesion Detection, Segmentation and Short Report Generation
- Abstract: RecycleNet - Latent Feature Recycling Leads to Iterative Decision Refinement
- Grounded Reinforcement Learning for Visual Reasoning