Skip to content

Can an agent trust its own zoomed observations? Cross-magnification provenance verification for whole-slide imagesCan an Agent Trust Its Own Zoom? Cross-Magnification Provenance Verification for Whole-Slide Images

Hugging Face Daily Papers· arXiv:2611.29150· Yan Wang, Yiran Song, Zizhuo Gong, Jianxiang Qi, Zhongxing Xu, Lingfei Qian, Minquan LinYale University; University of Minnesota – Twin Cities; Monash UniversityIndexed by this site · 4 days ago· Originally publishedDefenses

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose the CMPV task, the PyraFault benchmark, and the ZoomTrace verifier; on 503,320 test samples, AUPRC is 0.9686, but cross-dataset retrieval and calibration are limited.

Questions
When visual agents read whole-slide pathology images, zoomed observations may not come from their claimed locations. The authors aim to verify spatial provenance, recover the source when it is in context, and abstain when evidence is insufficient.
Methods
PyraFault constructs source faults using pyramid coordinates and slide identity. ZoomTrace first independently performs physical scale alignment, UNI candidate retrieval, and LoFTR geometric refinement, then estimates reliability using spatially disjoint candidates, and only then checks the claim.
Experiments and results
On PyraFault, ZoomTrace's AUPRC is 0.9686 and Efficient LoFTR's is 0.7885; however, the former has lower calibrated coverage. On CAMELYON16, retrieval and calibration performance decline, and the verdict gains of the agent protection path vary with agent and threshold.
Limitations and future work
The authors state that cross-source retrieval and calibration under large localization residuals are the main constraints. The experiments use five TCGA cohorts and CAMELYON16; the main text fully lists only three of seven VLMs, and the numbers of valid paired episodes per arm for the agents are 78, 79, and 106.
Experimental setupZoomTrace、Qwen3-VL-8B et al. · PyraFault、TCGA-LUAD et al. · AUPRC、AUROC et al.
Evaluated models
ZoomTraceQwen3-VL-8BLingshu-32BClaude Sonnet 5.5Claude CodeCodexDeepSeek Harness
Benchmarks
PyraFaultTCGA-LUADTCGA-LUSCTCGA-LGGTCGA-BLCATCGA-UCECCAMELYON16
Metrics
AUPRCAUROCCoverageBalanced accuracyMedian source IoU[email protected]Fault exposureSilent failureVerdict accuracy
AI summaryResearchers propose the cross-magnification provenance verification (CMPV) task, to test whether a visual agent's zoomed observations on whole-slide images truly come from the location it claims. The paper releases the PyraFault benchmark, containing 3.06 million coordinate supervision samples from 2200 cases across five TCGA cohorts, covering in-context substitution, missing-provenance faults and geometric perturbations; it also proposes the ZoomTrace verifier, which first estimates the actual provenance of an observation and then assesses its consistency with the claimed location, combining physical scale alignment, visual retrieval, geometric refinement and reliability estimation. On 503,320 test samples, ZoomTrace reaches 0.969 AUPRC and 0.987 AUROC, higher than Efficient LoFTR's 0.789 and 0.903. Further evaluation shows a trade-off in reliability estimation, and that vision-language models, cross-dataset retrieval and calibration still have limitations; integrating ZoomTrace into a visual agent's tool path can reduce corrupted observations and silent failures, but downstream accuracy gains depend on the agent and the verification threshold.

Researchers propose the cross-magnification provenance verification (CMPV) task, to test whether a visual agent's zoomed observations on whole-slide images truly come from the location it claims. The paper releases the PyraFault benchmark, containing 3.06 million coordinate supervision samples from 2200 cases across five TCGA cohorts, covering in-context substitution, missing-provenance faults and geometric perturbations; it also proposes the ZoomTrace verifier, which first estimates the actual provenance of an observation and then assesses its consistency with the claimed location, combining physical scale alignment, visual retrieval, geometric refinement and reliability estimation. On 503,320 test samples, ZoomTrace reaches 0.969 AUPRC and 0.987 AUROC, higher than Efficient LoFTR's 0.789 and 0.903. Further evaluation shows a trade-off in reliability estimation, and that vision-language models, cross-dataset retrieval and calibration still have limitations; integrating ZoomTrace into a visual agent's tool path can reduce corrupted observations and silent failures, but downstream accuracy gains depend on the agent and the verification threshold.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Verifies whether a magnified pathology observation comes from the claimed location, and can recover the source or abstain due to insufficient evidence.

    The core question is: can a visual agent trust the spatial provenance claimed by a magnified observation, rather than only judging whether the image content is plausible.

    • Problem setting: A visual agent explores whole-slide images by requesting magnified views; even if it correctly understands the observation content, it may attribute it to the wrong location, turning valid visual content into misleading spatial evidence.
    • Causes stated by the authors: Such mismatches may come from pyramid-coordinate conversion errors or incorrect content–metadata associations; detail changes across magnifications and repetitive tissue structures increase localization ambiguity.
    • Gap in existing tasks: The authors argue that matching, localization, and image provenance analysis usually do not directly answer "whether a local magnified observation comes from its claimed location," nor do they cover cases where the source is not in the reference context.
    • Core observation: A visually plausible match is insufficient to prove spatial provenance; a verifier should independently estimate the source and compare the strongest match with competing matches at spatially different locations, allowing abstention when evidence is insufficient.
    • What the paper proposes: It proposes the cross-magnification provenance verification (CMPV) task, the PyraFault benchmark containing 3,057,732 samples, and the claim-independent verifier ZoomTrace, and evaluates its effect when integrated into a visual agent's tool path.
    • Trust boundary: The context image and its coordinate frame are trusted, and the verifier cannot access the actual query extraction coordinates; the true source slice and box are used only for benchmark supervision. Source recovery is defined only for samples whose source lies within the context.
  2. What related research exists?

    Related work is divided into three groups: visual agents, geometric matching and uncertainty, and provenance analysis; this paper focuses on claim-independent source verification.

    Visual Agents and Evidence Acquisition

    • V* (2024), ZoomEye (2025): Guide models to perform detailed image exploration and human-like zoomed observation.
    • PathAgent (2025), GIANT (2025), PathNavigate (2026): Extend navigation and evidence selection to gigapixel pathology images.
    • PathAgentBench (2026), MedVIGIL (2026), PathTrace (2026): Evaluate retrieval, localization, and multi-scale reasoning, respectively; study medical question answering under broken visual evidence; and audit pathology agents' navigation and evidence traces.

    Correspondence, Retrieval, and Uncertainty

    • Histopathology registration work: Anhir (2020), Gatenbee et al. (2023), and ACROBAT 2022 (2024) study tissue image alignment across slides or staining conditions; the authors position CMPV as verification of the source of local observation claims.
    • LoFTR (2021), Efficient LoFTR (2024), LightGlue (2023), RoMa (2024): Establish geometric correspondence; MatchAnything (2025) and MINIMA (2025) extend matching to appearance changes.
    • DINOv2 (2023), UNI (2024): Provide frozen retrieval representations; Lowe's ratio test (2004), SUE (2024), and Statistical Uncertainty (2025) use relative match distinctiveness or estimate uncertainty in visual place recognition.

    Image Provenance and Selective Decision-Making

    • Moreira et al. (2018): Reconstruct provenance relationships and transformation histories among related images; the authors state that CMPV instead uses independent visual evidence to check the claimed spatial location of zoomed observations.
    • Selective classification (2017): Provides an accuracy–coverage perspective for comparing verifiers at different answer rates.
    • ZoomTrace's relationship: The authors apply the competing-source principle at the candidate-region level, comparing the strongest geometric match with spatially disjoint candidates.

    Experimental Baselines and Benchmarks

    • Baseline methods: Efficient LoFTR, SuperPoint + LightGlue, MatchAnything–ELoFTR, RoMa v1, MINIMA–LightGlue, SUE, Statistical Uncertainty, NCC, and Claim-conditioned LoFTR, which directly checks claims.
    • Benchmarks used: The five-cohort PyraFault and the external source CAMELYON16; VLM claim-free localization is also evaluated on the same 2,000 context–query pairs.

    The authors position the paper's distinction as: first independently recover the source and reliability, then check the claim, while supporting mismatch, local source correction, and selective abstention.

  3. How does the paper address this problem?

    ZoomTrace first independently localizes and estimates competing-source reliability, then uses a calibrated threshold to check the claim and selectively abstain.

    The overall idea is to separate source estimation from claim checking: ZoomTrace finds the source only from the context and the magnification query, and introduces the claimed location only at the end, avoiding using the claim itself as localization evidence.

    Task Inputs and Selective Decision

    • Inputs and supervision: The verifier receives context C, query Q, claimed box ℓ, context region, and two physical resolutions; the true source slice and box B* are not exposed to the verifier.
    • Independent estimation: Source estimation is written as (B̂,r)=f(C,Q;Bc,mc,mq), where r is reliability, and the claimed box does not participate in this stage.
    • Spatial difference: The normalized difference d is obtained by dividing the center distance between the estimated box and the claimed box by the query footprint width.
    • Three outputs: When r is below τ, output unverifiable; when r reaches τ and d does not exceed δ, output verified, otherwise output mismatched. A missing estimate is also judged mismatch when r reaches τ.

    PyraFault Data Construction

    • True source: Uses TCGA-LUAD, LUSC, LGG, BLCA, and UCEC, relies on image-pyramid coordinates and slide identity to independently determine the source, and splits data by case to avoid case leakage.
    • Image geometry: Context is 2048², 2.0 µm/px, query is 512², 0.5 µm/px; the query occupies only 128² pixels in the context.
    • Eight condition classes: clean, adjacent drift, random within-context, hard within-context, and ordinary or appearance-mined out-of-context and out-of-slide faults. The test set has 62,915 samples per class, with clean accounting for 12.5%.
    • Observation perturbations: four levels of frozen perturbation: none, mild, moderate, severe, with rotation of ±5°, ±10°, or ±15°, and scale changes within ±2%, ±4%, or ±6%, respectively; the parameters are hidden from the verifier and do not change the source label.

    Source Retrieval and Geometric Refinement

    • Physical scale alignment: The query's context footprint is converted by its physical size and downsampled; in the evaluation geometry it goes from 512² to 128², putting retrieval and matching at a common physical scale.
    • Candidate retrieval: A grid is built with context window side length h and stride h/2, ranked by frozen UNI descriptors and cosine similarity, taking top K=10; under this geometry the descriptor library contains 961 windows and can be reused across queries in the same context.
    • Geometric refinement: For the ten candidates, frozen outdoor-pretrained LoFTR is used, fitting a window-to-query homography with RANSAC and a three-pixel threshold, scoring by inlier fraction and correcting the source box; if fitting fails, no source box is returned.

    Competing-Source Reliability and Calibration

    • Disjoint competitors: Windows overlapping the winning window are excluded from the candidate set, and reliability is taken as 1 minus the ratio of the strongest disjoint competitor's score to the winning score, truncated to the non-negative range.
    • Edge cases: When the winning score is zero, reliability is zero; when the score is positive but there is no disjoint retrieved competitor, the implementation assigns r=1. This quantity measures separation within the retrieval candidate set and does not additionally invoke the matcher.
    • Threshold calibration: δ is taken as the 99th percentile of clean localization residuals; τ is chosen as the lowest candidate value satisfying "verify at most 1% mis-calibrated claims," and remains fixed at test time.
    • Agent integration: ZoomTrace sits between crop extraction and observation delivery, intercepting mismatched observations, but verified or unverifiable observations are still delivered, so abstention itself does not prevent corrupted content from reaching the agent.
  4. What experiments did the paper conduct?

    The experiments cover nine verifiers, faults and perturbations, VLMs, external datasets, and three agent tool paths.

    Experimental Setup

    • Verifiers: ZoomTrace was compared with nine frozen-model verifiers—Efficient LoFTR, SuperPoint + LightGlue, MatchAnything–ELoFTR, RoMa v1, MINIMA–LightGlue, SUE, Statistical Uncertainty, and NCC—and Claim-conditioned LoFTR was also tested.
    • Main benchmark: The PyraFault test set has 503,320 samples, with 62,915 for each of eight conditions; development, calibration, and test were split by case, with 330 test cases.
    • Metrics: AUPRC and AUROC treat correct claims as positive and include abstentions; Coverage is the non-abstention proportion, and BA is computed only on the answered subset.
    • Localization metrics: IoU is the median source IoU over returned in-context estimates; [email protected] counts missing estimates as failures, with a denominator of 188,745 claims that are wrong and whose source is in context.
    • Other evaluations: VLMs used the same 2,000 samples, of which 11.8% were positive; CAMELYON16 has 68,400 test samples. The numbers of jointly valid episodes per arm for the agents were Claude Code 78, Codex 79, and DeepSeek Harness 106.
    • Adjudication and statistics: Source ground truth was determined by coordinates and slide identity; the paper did not use an LLM judge; some comparisons used paired slide-bootstrap, exact McNemar tests, and paired tests.

    Main Results

    According to Table 2, all results are on all 503,320 PyraFault test samples; Coverage and BA come from each calibrated operating point.

    Swipe horizontally to read the table

    MethodAUPRCAUROCCoverageBAMedian IoU[email protected]
    ZoomTrace0.96860.98720.34390.98470.79870.9726
    Efficient LoFTR0.78850.90260.36140.99770.96160.8275
    SUE0.69990.86720.01220.51270.50220.5034
    Statistical Uncertainty0.64870.86300.01090.52950.50220.5034
    NCC0.59400.75890.00990.50080.83990.5307
    MatchAnything–ELoFTR0.36250.63450.08820.99920.96150.2829
    SuperPoint + LightGlue0.21720.55071.00000.55330.98250.1095
    Claim-conditioned LoFTR0.88380.98970.0000——0.0073

    MINIMA–LightGlue and RoMa v1 are omitted from the table; their AUPRC is 0.1439 and 0.1269, respectively, and their [email protected] is 0.0222 and 0.0024, respectively. ZoomTrace's IoU is based on 251,660 returned estimates, and Efficient LoFTR's on 208,334, so they cannot be directly treated as the same denominator.

    • Authors' interpretation: The authors state that ZoomTrace combines claim discrimination with broader source recovery; Efficient LoFTR has higher IoU on its returned estimates and higher BA at its calibrated operating point.
    • Direct claim baseline: Its AUROC is higher than ZoomTrace's, but because 1.44% of wrong calibration claims received full scores, τ was set to 1+10⁻⁹, test Coverage is zero, and it cannot independently recover alternative sources.
    • Ranking subset: The main text of Figure 3 reports that ZoomTrace leads in BA at 50%, 75%, and 100% matched coverage, with 0.980 at 100% versus 0.910 for the comparison method; these rank-selected subsets are not deployable threshold operating points.

    Fault Types and Geometric Perturbations

    • Fault answer situation: In Table 3, Coverage for clean, adjacent drift, and the two within-context conditions is approximately 0.674–0.678; for the absent-source condition it is only 0.0083–0.0194, with most going to abstention rather than explicit mismatch.
    • Wrong-verification exceptions: The Verified fraction for adjacent drift is 0.0598, which the authors explain as small displacements possibly falling within nonzero δ; hard out-of-context and hard out-of-slide are 0.0030 and 0.0003, respectively.
    • Perturbation results: ZoomTrace's Coverage is 0.321–0.361 and conditional BA is 0.983–0.985, but median IoU drops from 0.990 to 0.607; Efficient LoFTR's Coverage drops from 0.476 to 0.103.

    External Sources and VLM Localization

    • CAMELYON16: In Table 7, at K=10 ZoomTrace's AUPRC is 0.6761, AUROC is 0.8096, Coverage is 0.0129, and BA is 0.5008; Efficient LoFTR's AUPRC is 0.7849.
    • Retrieval diagnostics: On 4,000 clean calibration queries per source, candidate recall with source-IoU of at least 0.5 is 81.7% for TCGA and 35.9% for CAMELYON16; K=50 raises the latter's AUPRC to 0.7918, but Coverage remains 0.0109.
    • VLM results: In Table 6, the AUROC of five open models is 0.497–0.511; the AUPRC of Qwen3-VL-8B, Lingshu-32B, and Claude Sonnet 5.5 is 0.1188, 0.1196, and 0.1511, respectively, while ZoomTrace is 0.9622 on the same batch of samples.

    Agent Tool-Path Intervention

    • Protection and silent failure: In Table 8, the τw path reduces fault exposure for Claude Code, Codex, and DeepSeek Harness from 1.000 to 0.538, 0.519, and 0.453, respectively, and reduces silent failure to 0.423, 0.392, and 0.179, respectively.
    • Verdict gains vary: Claude Code's verdict accuracy rises from 0.521 to 0.756, exact McNemar p=8.6×10⁻⁴; DeepSeek rises from 0.755 to 0.829, p=0.22; Codex remains at 0.987.
    • Benchmark-threshold counterexample: Under τb, DeepSeek's accuracy is 0.689, lower than 0.755 without protection; under τb, the PathAgent bridge intercepts 12/31 adjacent-drift, 0/31 within-context, and 2/31 out-of-slide observations, and provenance answers are unchanged.

    Other Ablations and Analyses

    • Scale alignment: In Table 4, after removal, AUPRC is 0.2012 and median IoU is 0.0000.
    • Geometric refinement: After removal, AUPRC is 0.9204, Coverage is 0.1415, and IoU is 0.5904.
    • Number of candidates: At K=1, AUPRC is 0.9317, but after calibration Coverage is zero; with the full model's δ fixed, full-coverage BA is 0.958.
    • Reliability rule: In Table 5(a), Best score has AUPRC 0.9820 and Coverage 0.4609, and Disjoint has 0.9686 and 0.4203.
    • Cross-perturbation stability: Disjoint's four-level Coverage range is 0.0228, and Winning score's is 0.1655; the paired mean difference is 0.142, 95% CI [0.134, 0.151].
    • Decoy statistic: In Table 4, AUPRC is 0.9521, AUROC is 0.9888, and Coverage is 0.4519, requiring 138 geometric matches per query, versus 10 for full ZoomTrace.
  5. What are some points that can be further explored?

    The authors list cross-source retrieval and large-residual calibration as the main constraints; experiments also show that thresholds and agents affect the gains.

    Limitations and Future Directions Noted by the Authors

    • Cross-source retrieval: Section 7, Conclusion, states that retrieval under source shift remains a constraint on broader use; the CAMELYON16 experiments treat missed true-source candidates as a retrieval-side problem.
    • Calibration under large residuals: Section 7, Conclusion, states that calibration sensitivity to large residuals remains a major constraint; Section 6.3 explains that wide spatial tolerances require higher reliability thresholds, thereby lowering Coverage.
    • Conditions for downstream gains: Section 7, Conclusion, frames verdict gains as depending on the agent and threshold, rather than all integration methods obtaining the same gains.
    • Difference between abstention and interception: Section 6.4 notes that unverifiable observations still pass, so abstention can still let corrupted content reach the agent; this is an explicit behavioral boundary of the tool-path design.
    • Observable effects of PathAgent: Section 6.4 states that its precomputed navigation features limit the downstream effects observable from replacing pixels.

    Scope of Experimental Coverage

    • Data sources: PyraFault covers five TCGA cohorts, four organ groups, and 2,200 cases; external-source evaluation uses CAMELYON16, with the same geometry, fault classification, and split protocol.
    • Verifiers and VLMs: The main table compares nine frozen-model verifiers and one claim-conditioned baseline; the main text states that seven VLMs were evaluated, but Table 6 fully lists only three of them, and the rest are summarized only as the AUROC range of five open models.
    • Agent sample sizes: Claude Code, Codex, and DeepSeek Harness use 78, 79, and 106 jointly valid episodes per arm, respectively; the PathAgent bridge reports 31 observations for each fault condition.
    • Runtime cost: The PathAgent bridge reports 2.3 s to read the reference context, 5.7 s to build the descriptor library, and 0.5 s for verification; CAMELYON16's median localization time is 150 and 535 ms at K=10 and K=50, respectively.
    • Reproduction information: The main text does not report the number of random repetitions for the main test; some reliability, source-recovery, and agent comparisons give paired intervals or p-values, and the full VLM results and response diagnostics are in Supplement F.2.
  6. Summarize the main content of the paper

    The paper turns spatial provenance verification of pathology magnification observations into a benchmark, and implements selective verification with independent localization and competing matching.

    This is a study of a task, benchmark, and verification method for whole-slide pathology visual agents, focusing on whether zoomed images actually come from their claimed locations.

    • Problem: Plausible image content does not mean the spatial source is correct; coordinate transformation or content–metadata association errors can cause an agent to attribute a real tissue observation to the wrong location.
    • Method: PyraFault provides supervision via pyramid coordinates and slide identity, with 3,057,732 samples and eight equally sized test conditions. ZoomTrace performs physical scale alignment, UNI candidate retrieval, LoFTR and RANSAC refinement in sequence, then estimates reliability using spatially disjoint candidates, and finally checks the claim.
    • Main results: In Table 2, on 503,320 PyraFault test samples, ZoomTrace's AUPRC is 0.9686 and AUROC is 0.9872, while Efficient LoFTR's are 0.7885 and 0.9026, respectively; ZoomTrace's [email protected] is 0.9726, but its calibrated Coverage is 0.3439.
    • Robustness and external sources: Under geometric perturbations, conditional BA remains at 0.983–0.985, while median IoU drops from 0.990 to 0.607; on CAMELYON16 at K=10, AUPRC is 0.6761, and the authors list missed candidates and calibration under wide localization residuals as constraints.
    • Agent intervention: Under the τw path, Claude Code's silent failure drops from 0.769 to 0.423, and verdict accuracy rises from 0.521 to 0.756; DeepSeek's accuracy changes from 0.755 to 0.829 with p=0.22, and Codex remains at 0.987.
    • Authors' conclusion: The authors believe independent localization helps claim discrimination and source correction, but there is a trade-off between winning-score discrimination and uniform coverage of disjoint competition; tool-path verification can reduce exposure, and verdict gains depend on the agent and threshold.
Read originalhuggingface.co