Can an Agent Trust Its Own Zoom? Cross-Magnification Provenance Verification for Whole-Slide Images
Authors: Yan Wang, Yiran Song, Zizhuo Gong, Jianxiang Qi, Zhongxing Xu, Lingfei Qian, Minquan Lin
Organizations: Yale University, New Haven, CT, USA · University of Minnesota – Twin Cities, Minneapolis, MN, USA · Monash University, Melbourne, VIC, Australia
Visual agents navigate whole-slide images through magnified observations associated with claimed locations. However, a visually plausible observation does not necessarily originate from its claimed location, particularly across magnifications and in regions with similar tissue structures. We formulate cross-magnification provenance verification (CMPV) to evaluate whether visual evidence supports a claimed spatial association, recover the source when possible, and abstain when evidence is insufficient. We introduce PyraFault, a benchmark of 3.06 million coordinate-supervised examples from 2,200 cases across five TCGA cohorts, covering within-context substitutions, absent-source faults, and geometric perturbations. We further propose ZoomTrace, a claim-independent verifier that estimates the observation's source before evaluating its agreement with the claimed location. It combines physical-scale alignment, visual retrieval, geometric refinement, and reliability estimation using spatially disjoint competing matches. On 503,320 test examples, ZoomTrace achieves 0.969 AUPRC and 0.987 AUROC, compared with 0.789 and 0.903 for Efficient LoFTR. Further evaluations reveal trade-offs in reliability estimation and limitations in vision-language models, cross-dataset retrieval, and calibration. Integrating ZoomTrace into visual agent tool paths reduces exposure to corrupted observations and silent failures, while downstream accuracy improvements depend on the agent and verification threshold.
Figures & tables
Figure 1: Cross-magnification provenance verification in a whole-slide pathology image. (a) The reference context shows the claimed location (red), ground-truth source (green), and ZoomTrace prediction (blue dashed). (b) The returned high-magnification observation originates from the true source rather than the claimed location. (c) The claimed and actual source regions exhibit visually similar tissue structures. ZoomTrace independently recovers the source (IoU = 0.998) and correctly identifies the provenance mismatch.
Property
Count or setting
TCGA cohorts / organ groups
5 / 4
Cases
2,200
Total examples
3,057,732
Development / calibration
2,076,456 / 477,956
Test
503,320
Cases: development / calibration / test
1,540 / 330 / 330
Table 1: The five-cohort PyraFault release. Splits are assigned by case. Examples represent query–claim pairs.
Figure 2: Claim-independent source estimation and verification in ZoomTrace. (a) The query is resampled to the context’s physical resolution; frozen UNI features retrieve candidate windows, and LoFTR with RANSAC refines the source estimate B . (b) Reliability r measures the winning match’s margin over its strongest spatially disjoint retrieved competitor. Windows overlapping the winner are excluded from the rival set. (c) Only then is the claim ℓ introduced. Reliability threshold τ and spatial tolerance δ determine whether it is verified, mismatched, or unverifiable. The tissue comes from Figure 1 ; candidate windows are schematic placements on the retrieval grid.
Table 2: CMPV on 503,320 test examples. Bold/underlined values denote best/second-best per metric; coverage and counts are unranked. AUPRC/AUROC use continuous scores; BA is conditional on answering. IoU is median source overlap over Nloc returned in-context estimates. [email protected] is the fraction of all 188,745 incorrect in-context claims localized at IoU ≥0.5 , counting missing estimates as failures regardless of abstention. SUE and Statistical Uncertainty share retrieval. For the claim-conditioned baseline, [email protected] reflects overlap of the unchanged claimed box with the true source, not independent recovery. Dashes mark undefined BA and inapplicable independent localization. Full coverage for LightGlue/MINIMA includes missing-box mismatches (Supplement ).
Figure 3: Balanced accuracy on reliability-ranked subsets at six matched coverages. Each method retains its calibrated spatial tolerance. Points describe exact rank selections, not deployable threshold operating points.
Condition
Coverage
Verified
Clean
0.6731
0.6729
Adjacent drift
0.6775
0.0598
Random within-context
0.6751
0.0000
Hard within-context
0.6744
0.0000
Out-of-context
0.0118
0.0000
Hard out-of-context
0.0117
0.0030
Table 3: ZoomTrace by fault type. Each condition has 62,915 items. Both coverage and verified fraction use all items in the row.
Variant
AUPRC
AUROC
Cov.
BA
IoU
Calls
Full ZoomTrace
0.9686
0.9872
0.3439
0.9847
0.7987
10
No scale alignment
0.2012
0.5712
0.0105
0.5005
0.0000
10
K=1 candidate
0.9317
0.9703
0.0000
–
0.7868
1
No refinement
0.9204
0.9825
0.1415
0.9543
0.5904
10
Decoy statistic
0.9521
0.9888
0.4519
0.9858
0.7986
138
Table 4: Component and reliability variants on all 503,320 test items, each calibrated separately. BA is conditional on answering (undefined at zero coverage). Calls count geometric matches per query; decoy adds 128.
Rule
AUPRC ↑
AUROC ↑
Cov.
BA ↑
Range ↓
Best score
0.9820
0.9916
0.4609
0.9861
0.1655
Top-two
0.5206
0.8274
0.4753
0.9702
0.1371
Disjoint
0.9686
0.9872
0.4203
0.9856
0.0228
Table 5: Reliability on identical source estimates for 503,320 test items. Rules share δ=0.3756 and fit separate τ . This separate localization/calibration run differs from Table 2 ( δ=0.3872 ), giving disjoint-margin coverage 0.4203 rather than 0.3439. (a) Aggregate discrimination and selective decisions; Range is maximum minus minimum coverage over four perturbation levels. (b) Coverage / conditional BA at those fixed thresholds. Top-two allows overlapping alternatives; Disjoint excludes them.
Method
Input
AUPRC
AUROC
ZoomTrace
Images
0.9622
0.9857
Efficient LoFTR
Images
0.7490
0.8897
Qwen3-VL-8B
Grid
0.1188
0.5020
Lingshu-32B
Direct
0.1196
0.5041
Claude Sonnet 5.5
Grid
0.1511
0.5546
Table 6: Claim-free localization on the same 2,000 items (11.8% positive). Direct uses images; Grid adds an 8×8 reference grid.
Method
AUPRC
AUROC
Cov.
BA
IoU
ELoFTR
0.7849
0.8979
0.3154
0.9983
0.9610
ZT, K=10
0.6761
0.8096
0.0129
0.5008
0.6536
ZT, K=50
0.7918
0.8835
0.0109
0.5027
0.7442
Table 7: CAMELYON16 (68,400 test items). Source-specific calibration is refitted for K=50 . BA is conditional on answering; IoU uses returned in-context estimates.
Agent ( N )
Tool path
E ↓
S ↓
A ↑
Claude (78)
Clean
0.000
0.000
0.987
Corrupted
1.000
0.769
0.521
Protected, τb
0.936
0.667
0.579
Protected, τw
0.538
0.423
0.756
Codex (79)
Clean
0.000
0.000
0.987
Corrupted
1.000
0.785
0.987
Table 8: Paired agent outcomes; ranks compare corrupted/protected paths within each agent, excluding the clean reference. E: fault exposure; S: silent failure (unflagged delivered corruption); A: verdict accuracy. E/S use all paired episodes; A uses episodes returning a verdict. τb=0.5009 controls false verification; τw=0 controls clean withholding.
Whole-slide image (WSI) diagnosis requires identifying diagnostically relevant regions, examining them across magnifications, and integrating multi-scale evidence. However, most existing pathology benchmarks evaluate models on pre-cropped patches or pre-extracted slide features, leaving their ability to acquire evidence directly from gigapixel WSIs largely untested. We introduce PathAgentBench, a benchmark for evaluating evidence-seeking vision-language models (VLMs) across four complementary capabilities: image-to-text matching for evidence interpretation, text-to-image retrieval for evidence verification, diagnostic-region localization for evidence acquisition, and multi-scale reasoning for evidence integration. The benchmark is organized as a diagnostic tree that links nested regions across magnifications with scale-specific findings and path-level diagnoses. It contains 1,822 TCGA WSIs and 17,135 diagnostic paths annotated by ten board-certified pathologists. An additional private cohort of 190 breast cancer WSIs with detailed annotations is used to evaluate autonomous whole-slide exploration. We evaluate 20 general-purpose, medical, and pathology-specialized models. Leading open-weight models achieve over 93% accuracy in multi-scale reasoning and over 50% accuracy in both cross-modal matching tasks. In contrast, diagnostic-region localization remains challenging: the best text-guided mean intersection-over-union is below 0.09, underperforming a simple center-based heuristic. During autonomous exploration, the unconditional hit rate decreases from 0.522 at low magnification to 0.185 at intermediate magnification and 0.020 at high magnification. These results reveal a pronounced gap between reasoning over curated evidence and acquiring that evidence directly from WSIs. PathAgentBench provides a unified framework for measuring and improving evidence-seeking pathology models.
Dankai Liao, Tianyi Zhang, Yufeng Wu +6
Department of Biomedical Engineering, National University of Singapore, Singapore 117417, Singapore
Agentic VLM pipelines increasingly pass the same static visual evidence through multiple specialist agents and tools. This design creates an orchestration-level redundancy mode: semantically unchanged images are repeatedly reconstructed as image-conditioned requests at the VLM API boundary. We call this phenomenon visual orchestration tax and develop a measurement-to-certification framework for visual evidence reuse in agentic VLM pipelines. The audit side defines M1trace to count raw visual-evidence touches and M2 to measure structural touch redundancy, with query-level distributions, bootstrap confidence intervals, and paired quality tests. Across SeeingEye and MAMMQA on chart, document, general-VQA, and multi-modal-QA tasks, audits reveal 66.8-75.6% visual-evidence touch redundancy, and every audited query exceeds the predefined gate. The certification side introduces SharedVisCache, a contract-aware evidence reuse hook keyed by image content, preprocessing fingerprint, and encoder assumptions. On SeeingEye, contract validation certifies 75.0-75.5% repeated touches as reusable while preserving 350/350 output strings and ΔM5=0. At the physical layer, certified hits reduce Fvision from 800 to 200 in ChartQA-200 trace replay and from 200 to 50 inside live SeeingEye translator-stage physical integration, preserving 800/800 replay strings and 200/200 integrated call outputs. The results position visual reuse as a measurable, behavior-preserving property of agent orchestration and define an agent-layer contract that makes backend prefix or token reuse semantically interpretable.
Lingteng Zeng
Faculty of Engineering, The Chinese University of Hong Kong Hong Kong, China
High-resolution visual question answering often fails because a multimodal model does not acquire the small, spatially localized evidence needed to answer a question. Sequential zooming can recover detail, but it asks the main model to choose a region before obtaining a reliable overview. We introduce VPS, a visual parallel-search framework in which a main agent first invokes grid_search to inspect image tiles in parallel with question-conditioned sub-agents, and then adaptively invokes zoom_in on a precise or merged region. The same interface supports both training-free inference and post-training of the main and sub-agents. Across five benchmark splits and three model sizes, VPS improves mean accuracy over dedicated zoom-only search in 14 of 15 same-model comparisons, with gains up to 8.0 points and especially strong improvements for smaller main models. ZoomBench retains an approximately 3.2-point gain at every tested size. We further develop a supervision pipeline with hint-free verification and a paired role-specific GRPO surrogate for learning the controller and tile-reader roles. SFT improves observed accuracy on all five benchmark splits, including a 4.17-point gain on HR-Bench 4K. Role-specific RL further reshapes search behavior: main-only RL reduces mean tool use from 2.65 to 2.11 with similar pass@1 in an internal four-response evaluation, while external accuracy changes are mixed. Joint training reveals an asymmetry between local evidence reading and global search control. Together, these results support VPS as an effective inference-time scaffold and a trainable decomposition for visual evidence acquisition.
Xijia Tao, Yihua Teng, Xinyu Fu +5
The University of Hong Kong · Huawei Research · City University of Hong Kong +1