SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.27832 · 2026

USAD: Uncertainty-aware Statistical Adversarial Detection

Feng Liu, Jiacheng Zhang, Donghao Zhang, Xunye Tian, Zhijian Zhou, Liuhua Peng, Zesheng Ye, Yiyi Guo

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.27832.json · badge: /api/ran/2606.27832.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
tmlr-group/USAD community
Papers with Code archive
9 ran · 4 no recorded run
FunctionStatusWhere it lives
check_device Ran
ran on a synthesized input
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("b79c971b12d359c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flatten_img Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("4623e56e734af32f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_cifar10_adv_success Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("ffc6db4b7be734e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_cifar10_test Ran
ran, honoured the contract we drafted
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("4173046f687eb58b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_imagenet_adv_success Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("4f1ac6141dd80b13")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_imagenet_test Ran
ran, honoured the contract we drafted
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("2c9e8f2143052bb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rep_by_batch Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("bd0ffa7ce54c262f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_CIFAR10 Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("3fee427b8470273f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_IMAGENET Ran
ran; our contract draft was wrong, not the code
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("6cf64168f5063942")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SAD Not yet run
unverified (harvested, no recorded run)
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("5b5f2d8780b4176c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("a7f8434097a96f65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_train Not yet run
unverified (harvested, no recorded run)
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("d5312352cc01d1b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

log Not yet run
unverified (harvested, no recorded run)
tmlr-group/USAD/baselines/USAD/USAD.py
pointer only (licence: NONE) · get_code("396ba40a950867fd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tmlr-group/USAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Statistical adversarial detection (SAD) treats detection as a two-sample test. Given a reference set of clean examples (CEs) and a batch of queries, potentially containing an unknown mixture of CEs and adversarial examples (AEs), SAD decides whether the query distribution drifts away from the CE distribution while controlling the false-alarm rate. Existing SAD-based methods mainly use maximum mean discrepancy (MMD) to measure the distributional discrepancy. However, MMD's distributional properties limit its ability to capture characteristic uncertainty patterns of AEs that are crucial for detection: AEs typically exhibit abnormal feature spread (i.e., global uncertainty) and instability under perturbations (i.e., local uncertainty). To close the gap, we propose Uncertainty-aware Statistical Adversarial Detection (USAD), which explicitly captures these uncertainty patterns with two new statistics: (1) Variance Discrepancy (VD), which measures the difference in feature spread between AEs and CEs to capture global uncertainty differences, and (2) Perturbation-based Covariance Discrepancy (PCD), which compares feature covariance under Gaussian perturbations to capture local uncertainty differences. By aggregating VD and PCD, USAD achieves superior detection performances over baseline methods against various adversarial attacks, highlighting the importance of considering characteristic behaviors of AEs for effective SAD. Our code is available at: https: //github.com/tmlr-group/USAD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.27832")
get_code_for_paper("2606.27832")
have("2606.27832")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.27832.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.27832.svg)](https://syntology.ai/paper/2606.27832)

Connect an agent — have() is free.