stat.MLAug 28, 2026

Localizing Global Discrepancies: Marginal Contributions and Contextual Anomaly Detection

Authors: Tommaso dorigo

Organizations: INFN, Sezione di Padova, Padova, Italy · Department of Computer Science, Electrical and Space Engineering, Luleå University of Technology, Luleå, Sweden

Abstract

Global goodness-of-fit and discrepancy statistics can establish that a sample departs from a reference distribution without identifying which observations drive the departure. We develop a framework for this localization problem by assigning to each observation its conditional or marginal contribution across random statistical contexts. This connects resampling diagnostics and data valuation to projection theory and event-level anomaly detection. For symmetric statistics, fixed-size replacement is exactly equivalent to centered conditional localization. For U-statistics, the addition score equals the first Hoeffding/Hájek contribution; for smooth distributional functionals it is related at leading order to the influence function; and for unbiased known-background MMD it reduces exactly to the MMD witness. This viewpoint also yields more efficient estimators. Matched-context subtraction removes fluctuations unrelated to the observation, while for pairwise MMD the event-containing terms give a simple localizer. On the LHC Olympics anomaly-detection benchmark, the pair estimator converges to the direct empirical MMD witness with the predicted 1/(Rm^2) scaling, where m is batch size and R the number of batches. At m=1000 and R=5x106 it reaches correlation 0.9993 with essentially identical AUC. We also ask when context contains information beyond an event's own features. In a shared-latent toy model, the full single-event signal and background distributions are identical by construction, forcing isolated-event AUC=0.5. Discriminating information survives only in cross-event dependence induced by the shared latent parameter; the ensemble recovers this information, whereas an independent-latent control does not. This separates two roles of context: efficient localization of a global discrepancy and genuinely additional class information when the alternative contains shared structure.

Figures & tables

Explore similar work

CardsList
  1. Localized Anomaly Detection via Differentiable D-vine Copulas

    Jul 27, 2026Nicholas Andrea Pearson, Francesca Zanello, Davide Russo +2Anomaly LocalizationDensity Estimation

  2. Out of Context: Reliability in Multimodal Anomaly Detection Requires Contextual Inference

    Apr 14, 2026Kevin Wilkinghoff, Neelu Madan, Juan Miguel Valverde +6Anomaly DetectionMultimodal Anomaly Detection

  3. Conformal calibration and look-elsewhere effect in anomaly detection for new-physics searches

    Jun 11, 2026Jack Y. Araz, Michael SpannowskyPost-Hoc CalibrationConformal Prediction