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.