Can an Agent Trust Its Own Zoom? Cross-Magnification Provenance Verification for Whole-Slide Images

Media reports Hugging Face Papers Source language: Chinese

The paper defines cross‑magnification provenance verification, releases the PyraFault benchmark, and presents ZoomTrace achieving 0.969 AUPRC.

Full text

Can an Agent Trust Its Own Zoom?

Cross-Magnification Provenance Verification for Whole-Slide Images

Yan Wang Affiliation: Yale University, New Haven, CT, USA Yiran Song Affiliation: University of Minnesota – Twin Cities, Minneapolis, MN, USA Zizhuo Gong Affiliation: University of Minnesota – Twin Cities, Minneapolis, MN, USA Jianxiang Qi Affiliation: University of Minnesota – Twin Cities, Minneapolis, MN, USA Zhongxing Xu Affiliation: Monash University, Melbourne, VIC, Australia*Equal contribution †Corresponding authors:lingfei.qian@yale.edu, lin01231@umn.edu Lingfei Qian Affiliation: Yale University, New Haven, CT, USA Mingquan Lin Affiliation: University of Minnesota – Twin Cities, Minneapolis, MN, USA

Abstract

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. Our code and data are released at GitHub11 1 https://github.com/Yan2266336/PyraFault.

1 Introduction

Visual agents explore whole-slide images by requesting magnified views [6, 5, 34]. Each observation carries a claimed location that connects local evidence to its reference context. An agent may correctly interpret a magnified observation yet attribute it to the wrong location, turning valid visual content into misleading spatial evidence. This raises a question: when does a visual match provide sufficient evidence of a claimed spatial origin? Figure 1 shows a plausible observation from another location with similar tissue structures. Such mismatches may arise from pyramid-coordinate conversion errors or incorrect content–metadata associations [15, 11].

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
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

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.

Matching and localization [29, 30] face three challenges here. Magnification changes visual detail: a 512×512512\times 512 query occupies only 128×128128\times 128 context pixels in our setting, where cellular details may be absent. Repeated tissue structures support competing locations, connecting provenance verification to ambiguity in visual place recognition [35, 22]. Sources may lie outside the context, elsewhere on the same slide or on another slide, even when an in-context match appears plausible. Therefore, verification must assess spatial agreement and permit abstention when evidence is insufficient.

We formulate cross-magnification provenance verification (CMPV): given a magnified query, lower-magnification context, and claimed location, evaluate the spatial claim, recover the source within the context when possible, and abstain under uncertainty. PyraFault provides 3.06 million examples from 2,200 cases across five TCGA cohorts. Pyramid coordinates and slide identities establish true sources independently of claims. PyraFault includes controlled provenance faults, appearance-mined alternatives, and geometric viewing perturbations. The test set samples all eight conditions equally, with 12.5% correct claims.

Our verifier, ZoomTrace, estimates the source and its reliability before consulting the claim. It aligns physical scale, retrieves candidates using frozen features, and refines locations through geometric matching. Building on matching uncertainty [35, 22], reliability compares the strongest match with spatially disjoint alternatives; overlapping windows may represent the same source. The final decision combines source–claim agreement with reliability, enabling verification, mismatch detection, or abstention, and local source recovery for incorrect claims.

On 503,320 test examples, ZoomTrace reaches AUPRC 0.969 and AUROC 0.987, versus 0.789 and 0.903 for Efficient LoFTR. Ablations support scale alignment, refinement, and candidate diversity. Winning-score confidence gives stronger aggregate discrimination, while disjoint competition yields more uniform coverage across perturbations. Seven VLMs show limited claim-free localization in the tested settings; CAMELYON16 exposes retrieval and calibration limitations. Verification reduces exposure and silent failures; verdict gains vary by agent and threshold.

Our contributions are: (1) CMPV, a task for spatial provenance discrimination, local source recovery, and selective decisions across magnifications; (2) PyraFault, a coordinate-supervised benchmark of controlled provenance faults; and (3) ZoomTrace, a claim-independent verifier combining geometric localization with competing-source reliability, evaluated through component studies and visual-agent interventions.

2 Related Work

Visual agents and evidence acquisition.

V* [32] and ZoomEye [28] guide detailed image exploration. PathAgent [6], GIANT [5], and PathNavigate [34] extend navigation and evidence selection to gigapixel pathology, while PathAgentBench [18] evaluates retrieval, localization, and multi-scale reasoning. MedVIGIL studies recognition of broken visual evidence in medical question answering [16]. PathTrace audits recorded navigation and evidence traces of pathology agents [19]. Image provenance analysis reconstructs source relationships and transformation histories among related images [23]. CMPV instead verifies whether a magnified observation originates from its claimed spatial location using independent visual evidence.

Correspondence and uncertainty.

Histopathology registration aligns tissue images across sections or staining conditions [4, 31, 12]. CMPV instead evaluates a local observation’s claimed source, including cases where the source is absent from the reference context. LoFTR [29], Efficient LoFTR [30], LightGlue [20], and RoMa [10] establish geometric correspondences; MatchAnything [14] and MINIMA [27] extend matching across appearance changes. DINOv2 [26] and UNI [7] provide frozen retrieval representations. Relative match distinctiveness is used in Lowe’s ratio test [21] and place-recognition uncertainty methods, including SUE [35] and Statistical Uncertainty [22]. ZoomTrace applies a related principle at the candidate-region level, comparing the strongest geometric match against spatially disjoint alternatives to estimate source reliability. Selective prediction [13] provides an accuracy–coverage perspective for comparing verifiers with different answering rates.

3 Cross-Magnification Provenance Verification

Inputs and supervision.

Let CC be a context image covering a slide region BcB^{c} at physical resolution mcm_{c}, measured in micrometers per pixel. A query QQ is acquired at finer resolution mq<mcm_{q}<m_{c} and is claimed to originate from box ℓ\ell. The verifier receives (C,Q,ℓ,Bc,mc,mq)(C,Q,\ell,B^{c},m_{c},m_{q}). The benchmark additionally records the true source slide and box B∗B^{*}, which are not available to the verifier. A correct claim identifies the true source; a provenance fault changes the source while retaining the claim. Image perturbations are recorded separately and do not change the underlying source label.

The context and its coordinate frame are trusted; actual query extraction coordinates are unavailable. Source recovery is defined only for sources inside the context.

Independent source estimation.

A verifier estimates a source box B^\widehat{B} and reliability rr from the images:

(B^,r)=f⁡(C,Q,Bc,mc,mq).(\widehat{B},r)=f(C,Q;B^{c},m_{c},m_{q}). (1)

The claimed box ℓ\ell is excluded because its correctness is being evaluated. Estimating the source independently allows the verifier to identify spatial mismatches and recover an alternative source when one exists within the context.

Selective decisions.

For an estimated box, define its discrepancy from the claim as

d⁡(B^,ℓ)=‖c⁡(B^)−c⁡(ℓ)‖2wq,d(\widehat{B},\ell)=\frac{\|c(\widehat{B})-c(\ell)\|_{2}}{w_{q}}, (2)

where c⁡(⋅)c(\cdot) denotes the box center and wqw_{q} is the query footprint width in the slide coordinate frame. A reliability threshold τ\tau and spatial tolerance δ\delta produce the decision

a={unverifiable,r<τ,verified,r≥τ,B^≠∅,d≤δ,mismatched,otherwise.a=\begin{cases}\text{unverifiable},&r<\tau,\\ \text{verified},&r\geq\tau,\ \widehat{B}\neq\varnothing,\ d\leq\delta,\\ \text{mismatched},&\text{otherwise}.\end{cases} (3)

A missing estimate with r≥τr\geq\tau yields a mismatch, while r<τr<\tau yields abstention. The ground truth remains binary; unverifiable denotes the model’s decision to abstain. For a mismatched query localized within the context, the estimated box also supports source correction.

Calibration.

Each method fits δ\delta to the 99th percentile of clean localization residuals and selects the lowest candidate τ\tau that verifies at most 1% of incorrect calibration claims. Thresholds remain fixed on test. Supplementary Section gives threshold enumeration and edge cases.

4 The PyraFault Benchmark

PyraFault uses TCGA-LUAD, LUSC, LGG, BLCA, and UCEC [24], spanning four organ groups. Image-pyramid coordinates and slide identity determine the true source independently of the claim. Faults retain the requested location while substituting the source. Cases are separated into development, calibration, and test splits (Table 1), preventing case leakage. A 5122512^{2} query at 0.5​μ0.5\,\mum/px has a 1282128^{2} footprint in a 204822048^{2} context at 2.0​μ2.0\,\mum/px.

Table 1: The five-cohort PyraFault release. Splits are assigned by case. Examples represent query–claim pairs.

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

Context image 204822048^{2} at 2.0​μ2.0\,\mum/px

Query image 5122512^{2} at 0.5​μ0.5\,\mum/px

Provenance faults.

Three within-context faults permit local source recovery: adjacent drift (0.25–6 query widths), random within-context substitution, and hard within-context substitution mined for appearance similarity using frozen features. Substitutions use nonoverlapping alternatives. Four absent-source faults use ordinary or appearance-mined hard alternatives outside the context on the same slide, or on another slide. Together with clean pairs, these give eight conditions sampled equally in test, each with 62,915 examples; correct claims form 12.5% of the test set. Supplementary Section details candidate eligibility, donor strata, and quality control.

Viewing perturbations.

Pairs receive one of four frozen conditions: none, mild, moderate, or severe. Perturbed queries rotate by ±5∘\pm 5^{\circ}, ±10∘\pm 10^{\circ}, or ±15∘\pm 15^{\circ}, with scale changes within ±2%\pm 2\%, ±4%\pm 4\%, or ±6%\pm 6\%. Parameters are replayed at extraction and hidden from the verifier. These transformations preserve provenance labels, separating geometric robustness from source correctness.

5 ZoomTrace

ZoomTrace estimates the source and reliability before consulting the claim (Figure 2), using frozen visual models.

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^\widehat{B}. (b) Reliability rr 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 ℓ\ell introduced. Reliability threshold
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^\widehat{B}. (b) Reliability rr 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 ℓ\ell introduced. Reliability threshold

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^\widehat{B}. (b) Reliability rr 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 ℓ\ell introduced. Reliability threshold τ\tau and spatial tolerance δ\delta determine whether it is verified, mismatched, or unverifiable. The tissue comes from Figure 1; candidate windows are schematic placements on the retrieval grid.

Physical-scale alignment.

A query with side length HqH_{q} occupies h=Hq​mq/mch=H_{q}m_{q}/m_{c} context pixels. We downsample it to this footprint before retrieval and matching. At the evaluated resolutions, h=128h=128. A common physical scale exposes shared tissue structure.

Candidate retrieval.

We place context windows WjW_{j} of side hh on a grid of stride h/2h/2 and represent each with a frozen UNI encoder [7]. The overlapping grid reduces the displacement between an off-grid source and its nearest candidate, providing an initialization for geometric refinement. Cosine similarity between frozen UNI descriptors of the aligned query and each window ranks candidates. The top ten windows form the candidate set 𝒦\mathcal{K}. Context descriptors can be reused for subsequent queries from the same reference. For the evaluated context geometry, the bank contains 961 windows; only the ten retrieved candidates undergo geometric matching. This separates a reusable representation of the context from query-specific correspondence estimation. The retrieval grid covers the context independently of the claimed location.

Geometric refinement.

For each retrieved window, LoFTR [29] establishes correspondences with the aligned query using frozen outdoor-pretrained weights. We fit a homography from window coordinates to query coordinates using RANSAC with a three-pixel threshold and score the candidate by its inlier fraction sjs_{j}. We select j∗=arg⁡maxj∈𝒦⁡sjj^{*}=\arg\max_{j\in\mathcal{K}}s_{j}. If the winning window has origin oj∗o_{j^{*}} and the fitted homography has translation entries tj∗t_{j^{*}}, the refined box has origin oj∗−tj∗o_{j^{*}}-t_{j^{*}} and retains the aligned query’s side length hh. The subtraction follows the window-to-query direction of the fitted transform. We round the refined origin to context pixels and map the box into slide coordinates using the known context origin and pixel-to-slide scale. A failed homography returns no source box.

Reliability from competing sources.

A strong geometric match is less informative when another location fits almost equally well. We compare the winner against candidates with nonoverlapping windows:

ℛ={j∈𝒦:Wj∩Wj∗=∅}.\mathcal{R}=\{j\in\mathcal{K}:W_{j}\cap W_{j^{*}}=\varnothing\}. (4)

For sj∗>0s_{j^{*}}>0 and a nonempty rival set, reliability is

r=max⁡(0,1−maxj∈ℛ⁡sjsj∗).r=\max\!\left(0,1-\frac{\max_{j\in\mathcal{R}}s_{j}}{s_{j^{*}}}\right). (5)

We assign zero reliability when the winning score is zero. With a positive score but no disjoint retrieved rival, the implementation assigns r=1r=1. Reliability therefore measures separation within the retrieved candidate set. The rival set is defined against the winning retrieval window; its members can overlap one another.

Overlapping windows can represent the same source at shifted origins. Excluding them focuses the margin on competition between spatially distinct locations: a disjoint candidate with a similar score lowers reliability. Equation 5 reuses the geometric matching scores, requiring no additional matcher calls or learned confidence model. The claimed box enters only in Eq. 3, which combines reliability with spatial agreement. A reliable estimate away from the claim supplies both a mismatch decision and a local source correction. Low reliability defers the decision even when the estimate overlaps the claim.

6 Experiments

Setup and metrics.

We evaluate nine frozen-model verifiers on all 503,320 test pairs: ZoomTrace; Efficient LoFTR [30], SuperPoint + LightGlue [9, 20], MatchAnything–ELoFTR [14], RoMa [10], and MINIMA–LightGlue [27]; retrieval uncertainty methods SUE [35] and Statistical Uncertainty [22]; and NCC [17]. All share claim-independent estimation and calibration; a direct claim scorer is added in Section 6.2. For continuous discrimination,

v=r​IoU⁡(B^,ℓ),v=0​ if ​B^=∅.v=r\,\operatorname{IoU}(\widehat{B},\ell),\qquad v=0\text{ if }\widehat{B}=\varnothing. (6)

AUPRC (average precision) and AUROC use all pairs, including abstentions, with correct claims positive. Decision coverage is the non-abstaining fraction; balanced accuracy (BA) is conditional on that subset. Localization uses median source IoU and the number of returned in-context estimates, independently of abstention. Protocols are in Supplement .

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 NlocN_{\mathrm{loc}} returned in-context estimates. R@.5 is the fraction of all 188,745 incorrect in-context claims localized at IoU≥0.5\geq 0.5, counting missing estimates as failures regardless of abstention. SUE and Statistical Uncertainty share retrieval. For the claim-conditioned baseline, R@.5 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 ).

Method AUPRC ↑\uparrow AUROC ↑\uparrow Coverage BA ↑\uparrow IoU ↑\uparrow NlocN_{\mathrm{loc}} R@.5 ↑\uparrow

ZoomTrace (ours) 0.9686 0.9872 0.3439 0.9847 0.7987 251,660 0.9726

Efficient LoFTR 0.7885 0.9026 0.3614 0.9977 0.9616 208,334 0.8275

SUE 0.6999 0.8672 0.0122 0.5127 0.5022 251,660 0.5034

Statistical Uncertainty 0.6487 0.8630 0.0109 0.5295 0.5022 251,660 0.5034

NCC 0.5940 0.7589 0.0099 0.5008 0.8399 251,660 0.5307

MatchAnything–ELoFTR 0.3625 0.6345 0.0882 0.9992 0.9615 71,174 0.2829

SuperPoint + LightGlue 0.2172 0.5507 1.0000 0.5533 0.9825 27,438 0.1095

MINIMA–LightGlue 0.1439 0.5103 1.0000 0.5109 0.9848 5,567 0.0222

RoMa v1 0.1269 0.5027 0.0101 0.4996 0.0000 153,475 0.0024

Claim-conditioned LoFTR 0.8838 0.9897 0.0000 — — — 0.0073

6.1 Benchmark Performance and Provenance Failures

Discrimination and source recovery.

ZoomTrace combines strong claim discrimination with broad source recovery (Table 2). It achieves AUPRC 0.969 and AUROC 0.987, versus 0.789 and 0.903 for Efficient LoFTR. Median source IoU is 0.799 over all 251,660 in-context examples; Efficient LoFTR reaches 0.962 on 208,334 estimates. Recovery recall instead counts missing estimates as failures on all 188,745 incorrect claims with in-context sources. At IoU≥0.5\geq 0.5, ZoomTrace recovers 97.26%, versus 82.75% for Efficient LoFTR (Supplement ). On 210,647 shared estimates, ZoomTrace also leads in discrimination: AUPRC 0.976 versus 0.926 and AUROC 0.987 versus 0.977 (Supplement ).

Selective decisions.

At independently calibrated operating points, ZoomTrace has BA 0.985 at 34.39% coverage; Efficient LoFTR has BA 0.998 at 36.14%. Figure 3 compares equal-sized subsets ranked by each method’s reliability, retaining its spatial tolerance and stable input order within ties. Efficient LoFTR leads at 5–25%; ZoomTrace leads at 50%, 75%, and 100%, reaching full-coverage BA 0.980 versus 0.910. Rank-selected subsets can split ties and differ from calibrated operating points.

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.

Table 3: ZoomTrace by fault type. Each condition has 62,915 items. Both coverage and verified fraction use all items in the row.

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

Out-of-slide 0.0194 0.0000

Hard out-of-slide 0.0083 0.0003

Which faults are answered?

Clean and within-context conditions have coverage near 67% (Table 3). Random and hard within-context substitutions have no reported false verifications. Adjacent drift has a verified fraction of 5.98% of all drift items: small spatial displacements can fall within the nonzero tolerance δ≈0.387\delta\approx 0.387. Absent-source conditions have only 0.83–1.94% coverage, so most yield abstention rather than an explicit mismatch. False-verification rates remain low: 0.30% for hard out-of-context and 0.03% for hard out-of-slide substitutions. Avoiding false verification differs from rejecting corrupted observations; only the latter enables middleware interception.

6.2 Understanding ZoomTrace

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.

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=1K=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

Scale and geometric localization.

Scale alignment and geometric refinement both improve source localization and claim discrimination. Removing scale alignment reduces AUPRC to 0.201 and median IoU to zero (Table 4). Removing geometric refinement reduces these metrics to 0.920 and 0.590: returning a retrieved window restricts the estimate to the candidate grid.

Candidate diversity and residual tails.

With K=1K=1, retrieval remains active and median IoU is 0.787, but clean residual p99 increases from 0.387 to 5.464 query widths. The resulting tolerance and reliability calibration yield zero test coverage despite AUPRC 0.932. Fixing δ\delta to the full model’s value gives K=1K=1 full-coverage BA 0.958 versus 0.980 for K=10K=10. The residual tail explains the larger loss in calibrated coverage.

Table 5: Reliability on identical source estimates for 503,320 test items. Rules share δ=0.3756\delta=0.3756 and fit separate τ\tau. This separate localization/calibration run differs from Table 2 (δ=0.3872\delta=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.

(a) Aggregate results

Rule AUPRC ↑\uparrow AUROC ↑\uparrow Cov. BA ↑\uparrow Range ↓\downarrow

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

(b) Coverage / conditional BA by geometric perturbation

Rule None Mild Moderate Severe

Winning score 0.5232 / 0.9862 0.5141 / 0.9865 0.4485 / 0.9861 0.3577 / 0.9851

Top-two 0.4203 / 0.9581 0.4318 / 0.9666 0.4916 / 0.9729 0.5574 / 0.9737

Disjoint margin 0.4078 / 0.9845 0.4211 / 0.9855 0.4306 / 0.9862 0.4218 / 0.9863

Reliability at fixed localization.

Winning-score confidence gives stronger aggregate discrimination, while disjoint competition gives more uniform coverage across geometric perturbations. We compare three reliability rules on identical source estimates: the winning inlier fraction, its normalized margin over the strongest other candidate, and its margin over the strongest disjoint candidate (Table 5). Each fits τ\tau on the same calibration predictions and spatial tolerance; the caption distinguishes the runs.

Excluding overlapping candidates raises the margin’s AUPRC from 0.521 to 0.969 (paired slide-bootstrap mean gain 0.448; 95% CI [0.438,0.459][0.438,0.459]). Overlapping windows can represent the same source, so treating them as alternatives penalizes strong matches to that region. The winning score achieves higher AUPRC (0.982), AUROC (0.992), and conditional BA (0.986 at 46.09% coverage), using the same ten matches.

With calibrated thresholds fixed across perturbation levels, the disjoint margin’s coverage range is 0.023, versus 0.166 for the winning score (paired mean difference 0.142; 95% CI [0.134,0.151][0.134,0.151]). Winning-score confidence answers more queries in the first three levels; under severe perturbation, the margin answers 42.18% with BA 0.986, versus 35.77% and 0.985. Table 5(b) gives all coverage–accuracy pairs; Supplement gives paired intervals.

Sampled alternatives and matching cost.

The decoy variant standardizes the winning score against 128 additional matches outside the refined source (Table 4). The margin has higher AUPRC and uses 10 rather than 138 matches; decoy scoring has higher AUROC and coverage. The runs produce different boxes on 3.45% of items, so this compares complete variants; Table 5 isolates reliability on fixed estimates. Paired results and costs appear in Supplement .

Claim independence.

An implementation test holds context and query fixed and verifies that changing only the claim preserves the source box and reliability (Eq. 1).

Direct verification at the claim.

Claim-conditioned LoFTR aligns QQ and matches only the claimed crop using ZoomTrace’s matcher. This single match yields AUPRC 0.884 and AUROC 0.990 (Table 2). ZoomTrace improves AUPRC by 0.085 (paired slide-bootstrap mean; 95% CI [0.079,0.090][0.079,0.090]), while the direct baseline has higher AUROC. Adjacent drift is its most difficult fault, with AUROC 0.956 against clean; the other six faults achieve 0.988–0.999, including random and hard within-context substitutions. Its unchanged claimed boxes reach source IoU≥0.5\geq 0.5 on only 0.73% of incorrect in-context claims, through residual overlap with the true source (Supplement ).

To apply the shared decision rule, this baseline sets B^=ℓ\widehat{B}=\ell, making spatial discrepancy zero. This adapter can verify or abstain but cannot produce a mismatch or recover an alternative source. Moreover, 1.44% of incorrect calibration claims attain the maximum score of 1, exceeding the 1% false-verification budget. Calibration therefore selects τ=1+10−9\tau=1+10^{-9}, giving zero test coverage. For ZoomTrace, spatial agreement alone yields AUPRC 0.968, versus 0.240 for reliability alone and 0.969 for their product. Supplement reports implementation, costs, and fault-specific diagnostics.

6.3 Robustness, VLMs, and Generalization

Viewing perturbations.

Selective decision accuracy remains high across geometric perturbations, although localization precision declines. ZoomTrace’s coverage stays within 0.321–0.361 and conditional BA within 0.983–0.985, while median IoU falls from 0.990 to 0.607. Efficient LoFTR’s coverage falls from 0.476 to 0.103. Refinement improves ZoomTrace’s IoU at every level; without it, median IoU ranges from 0.605 to 0.569 (Supplement ).

Table 6: Claim-free localization on the same 2,000 items (11.8% positive). Direct uses images; Grid adds an 8×88\times 8 reference grid.

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

Claim-free VLM localization.

Claim-free source localization remains difficult for the tested VLMs. Seven models receive the same 2,000 context–query pairs directly or with an 8×88\times 8 reference grid. Table 6 includes Qwen3-VL [3], medical model Lingshu [33], and Sonnet [1]. The five open models have near-chance AUROC (0.497–0.511); API models show modest discrimination. ZoomTrace achieves AUPRC 0.962 on the same items. Full results and response diagnostics appear in Supplement .

Table 7: CAMELYON16 (68,400 test items). Source-specific calibration is refitted for K=50K=50. BA is conditional on answering; IoU uses returned in-context estimates.

Method AUPRC AUROC Cov. BA IoU

ELoFTR 0.7849 0.8979 0.3154 0.9983 0.9610

ZT, K=10K=10 0.6761 0.8096 0.0129 0.5008 0.6536

ZT, K=50K=50 0.7918 0.8835 0.0109 0.5027 0.7442

Calibration within TCGA.

Localization tails affect coverage even within TCGA. Clean residual p99 is 4.595 query widths for LGG, versus 0.283–0.315 for other cohorts with similar central residuals. Fitting δ\delta at p99 lets these failures widen spatial agreement, requiring a higher reliability threshold to control false verification (Supplement ).

External-source evaluation.

CAMELYON16 uses the same geometry, fault taxonomy, and split protocol, with 68,400 test items. Efficient LoFTR outperforms ZoomTrace at the standard K=10K=10 setting (Table 7). ZoomTrace’s AUPRC decreases to 0.676 and median IoU to 0.654; source-specific calibration yields coverage 0.013 and BA 0.501. The fraction of clean calibration queries localized more than one query width from the true source rises from 0.9% on TCGA to 39.9% on CAMELYON16. Two diagnostics separate retrieval from calibration effects.

First, retrieval misses true-source candidates. On 4,000 clean calibration queries per source, recall of windows with source IoU at least 0.5 is 81.7% on TCGA and 35.9% on CAMELYON16 at K=10K=10. Widening to K=50K=50 raises CAMELYON16 AUPRC to 0.792 and IoU to 0.744, with median localization time increasing from 150 to 535 ms.

Second, clean residual p99 remains 12.618 query widths at K=50K=50, versus 13.731 at K=10K=10. This wide tolerance requires a high reliability threshold to control false verification, leaving coverage at 0.011. Reliability still correlates with residual (−0.658-0.658 Spearman); only 0.7% of misplaced queries score above 0.5. Applying both TCGA thresholds to unchanged K=10K=10 predictions gives coverage 0.175 and BA 0.983. These transferred thresholds are not fitted to the target-source constraint; the diagnostic separates calibration from retrieval (Supplement ).

6.4 Verification in the Visual Agent Tool Path

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\tau_{b}=0.5009 controls false verification; τw=0\tau_{w}=0 controls clean withholding.

Agent (NN) Tool path E ↓\downarrow S ↓\downarrow A ↑\uparrow

Claude (78) Clean 0.000 0.000 0.987

Corrupted 1.000 0.769 0.521

Protected, τb\tau_{b} 0.936 0.667 0.579

Protected, τw\tau_{w} 0.538 0.423 0.756

Codex (79) Clean 0.000 0.000 0.987

Corrupted 1.000 0.785 0.987

Protected, τb\tau_{b} 0.937 0.734 0.987

Protected, τw\tau_{w} 0.519 0.392 0.987

DeepSeek (106) Clean 0.000 0.000 0.915

Corrupted 1.000 0.481 0.755

Protected, τb\tau_{b} 0.972 0.443 0.689

Protected, τw\tau_{w} 0.453 0.179 0.829

Intervention and operating points.

Verification reduces agent exposure to corruption, with verdict gains depending on the agent and operating point. ZoomTrace sits between crop extraction and observation delivery. It withholds mismatched observations and passes verified or unverifiable ones, so abstention still allows corrupted content to reach the agent. We compare the benchmark threshold τb≈0.501\tau_{b}\approx 0.501, controlling false verification, with τw=0\tau_{w}=0, selected under a 1% budget for withholding clean views. The latter has calibration false-withhold rate 0.009. Both retain the same spatial tolerance; τw=0\tau_{w}=0 can withhold spatial disagreements that τb\tau_{b} leaves unverifiable. Reference contexts use the benchmark resolution.

Exposure, silent failures, and verdicts.

Paired evaluations connect Claude Code [2], Codex [25], and DeepSeek Harness [8] to the same visual tool server, using 78, 79, and 106 common valid episodes per arm. A silent failure occurs when corruption is delivered and the agent answers without flagging it or re-requesting the location. At τw\tau_{w}, exposure falls from 1.000 to 0.538, 0.519, and 0.453 (Table 8); silent failures decrease from 0.769/0.785/0.481 to 0.423/0.392/0.179, respectively.

Claude Code’s verdict accuracy improves from 0.521 to 0.756, with 19 corrected versus 3 newly incorrect verdicts (exact McNemar p=8.6×10−4p=8.6\times 10^{-4}). DeepSeek improves numerically from 0.755 to 0.829, with 20 corrected versus 12 newly incorrect (p=0.22p=0.22); Codex remains at 0.987. Silent-failure reductions are significant for Claude and DeepSeek (p=3.5×10−6p=3.5\times 10^{-6} and 2.1×10−52.1\times 10^{-5}). The benchmark threshold produces smaller exposure reductions and no uniform accuracy benefit: DeepSeek’s accuracy is 0.689 at τb\tau_{b}, versus 0.755 without protection.

Practical execution.

The PathAgent bridge measures 2.3 s for reading a reference context, 5.7 s for constructing its descriptor bank, and 0.5 s for verification. The bank can be reused for subsequent queries within the same context.

PathAgent.

At τb\tau_{b}, the PathAgent bridge [6] withholds 12/31 adjacent-drift, 0/31 within-context, and 2/31 out-of-slide observations, no clean views withheld. Provenance answers remain unchanged across arms. Its precomputed navigation features limit the downstream effects observable from substituted pixels. See Supplement for details.

7 Conclusion

CMPV and PyraFault make it possible to evaluate whether visual agents can trust the spatial origins of their magnified observations. ZoomTrace’s independent localization supports claim discrimination and source correction; direct claim matching offers strong discrimination at lower cost. Reliability experiments reveal a trade-off between winning-score discrimination and more uniform coverage from disjoint competition. Tool-path verification reduces exposure, with verdict gains depending on the agent and threshold. Retrieval under source shift and calibration sensitivity to large residuals remain the main constraints on broader use.

LLM Usage Statement

OpenAI Codex assisted with improving the clarity and presentation of the manuscript draft and refining the LaTeX layout. Claude Code assisted with implementing experimental protocols and writing the corresponding evaluation code. The VLMs and agent harnesses evaluated as experimental systems are identified in Section 6 and the supplementary protocols.

References

[1] Anthropic. Claude Sonnet 5.5 system card. https://www.anthropic.com/claude-sonnet-5-5-system-card, 2026. September 2026.

[2] Anthropic. Claude Code: Official repository. https://github.com/anthropics/claude-code, n.d. Accessed October 27, 2026.

[3] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, et al. Qwen3-VL technical report. arXiv preprint arXiv:2511.21631, 2025.

[4] Jiří Borovec, Jan Kybic, Ignacio Arganda-Carreras, Dmitry V Sorokin, Gloria Bueno, Alexander V Khvostikov, Spyridon Bakas, Eric I-Chao Chang, Stefan Heldmann, Kimmo Kartasalo, et al. Anhir: automatic non-rigid histological image registration challenge. IEEE transactions on medical imaging, 39(10):3042–3052, 2020.

[5] Thomas A. Buckley, Kian R. Weihrauch, Katherine Latham, Andrew Z. Zhou, Padmini A. Manrai, and Arjun K. Manrai. Navigating gigapixel pathology images with large multimodal models. arXiv preprint arXiv:2511.19652, 2025.

[6] Jingyun Chen, Linghan Cai, Zhikang Wang, Yi Huang, Songhan Jiang, Shenjin Huang, Hongpeng Wang, and Yongbing Zhang. PathAgent: Toward interpretable analysis of whole-slide pathology images via large language model-based agentic reasoning. arXiv preprint arXiv:2511.17052, 2025.

[7] Richard J. Chen, Tong Ding, Ming Y. Lu, Drew F. K. Williamson, Guillaume Jaume, Andrew H. Song, Bowen Chen, Andrew Zhang, Daniel Shao, Muhammad Shaban, Mane Williams, Lukas Oldenburg, Luca L. Weishaupt, Judy J. Wang, Anurag Vaidya, Long Phi Le, Georg Gerber, Sharifa Sahai, Walt Williams, and Faisal Mahmood. Towards a general-purpose foundation model for computational pathology. Nature Medicine, 30:850–862, 2024.

[8] DeepSeek. DeepSeek Harness: Everything is a plugin. https://github.com/deepseek-ai/deepseek-harness, n.d. Accessed October 27, 2026.

[9] Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich. SuperPoint: Self-supervised interest point detection and description. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 224–236, 2018.

[10] Johan Edstedt, Qiyu Sun, Georg Bökman, Mårten Wadenbäck, and Michael Felsberg. RoMa: Robust dense feature matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024.

[11] Filippo Fraggetta, Yukako Yagi, Marcial Garcia-Rojo, Andrew J Evans, J Mark Tuthill, Alexi Baidoshvili, Douglas J Hartman, Junya Fukuoka, and Liron Pantanowitz. The importance of eslide macro images for primary diagnosis with whole slide imaging. Journal of Pathology Informatics, 9(1):46, 2018.

[12] Chandler D Gatenbee, Ann-Marie Baker, Sandhya Prabhakaran, Ottilie Swinyard, Robbert JC Slebos, Gunjan Mandal, Eoghan Mulholland, Noemi Andor, Andriy Marusyk, Simon Leedham, et al. Virtual alignment of pathology image series for multi-gigapixel whole slide images. Nature communications, 14(1):4502, 2023.

[13] Yonatan Geifman and Ran El-Yaniv. Selective classification for deep neural networks. In Advances in Neural Information Processing Systems, 2017.

[14] Xingyi He, Hao Yu, Sida Peng, Dongli Tan, Zehong Shen, Hujun Bao, and Xiaowei Zhou. MatchAnything: Universal cross-modality image matching with large-scale pre-training. arXiv preprint arXiv:2501.07556, 2025.

[15] Chao-Wei Hsu, Si-Wei Yang, Yu-Ting Lee, Kai-Hsuan Yao, Tzu-Hsuan Hsu, Pau-Choo Chung, Yuan-Chia Chu, Chen-Tsung Kuo, and Chung-Yueh Lien. Mainecoon: implementing an open-source web viewer for dicom whole slide images with ai-integrated pacs for digital pathology. Journal of Imaging Informatics in Medicine, 38(6):4075–4089, 2025.

[16] Hanqi Jiang, Junhao Chen, Yi Pan, Lifeng Chen, Weihang You, Haozhen Gong, Ruiyu Yan, Jinglei Lv, Lin Zhao, Hui Ren, Quanzheng Li, Tianming Liu, and Xiang Li. MedVIGIL: Evaluating trustworthy medical VLMs under broken visual evidence. arXiv preprint arXiv:2605.07919, 2026.

[17] J. P. Lewis. Fast template matching. In Vision Interface, pages 120–123, 1995. Expanded version: Fast Normalized Cross-Correlation.

[18] Dankai Liao, Tianyi Zhang, Yufeng Wu, Xinyue Zhang, Qiaochu Xue, Zeyu Liu, Dachun Zhao, Linghan Cai, and Yueming Jin. PathAgentBench: Benchmarking evidence-seeking vision-language models on whole-slide pathology image. arXiv preprint arXiv:2607.19261, 2026.

[19] Chiew Hui Lim. PathTrace: A Trace-Based Evidence Harness for Auditing Whole-Slide Pathology Agents . In Medical Image Computing and Computer Assisted Intervention – MICCAI 2026 Workshops and Challenges. Springer Nature Switzerland, 2026.

[20] Philipp Lindenberger, Paul-Edouard Sarlin, and Marc Pollefeys. LightGlue: Local feature matching at light speed. In Proceedings of the IEEE/CVF International Conference on

Sources

← Back to Daily AI Report