Papers › Understanding the Robustness of Randomized Feature Defense Against Query-Based...

Understanding the Robustness of Randomized Feature Defense Against Query-Based Adversarial Attacks

1 Oct 2023arXiv:2310.00567archive 2025-07-28

Quang H. Nguyen, Yingjie Lao, Tung Pham, Kok-Seng Wong, Khoa D. Doan

Recent works have shown that deep neural networks are vulnerable to adversarial examples that find samples close to the original image but can make the model misclassify. Even with access only to the model's output, an attacker can employ black-box attacks to generate such adversarial examples. In this work, we propose a simple and lightweight defense against black-box attacks by adding random noise to hidden features at intermediate layers of the model at inference time. Our theoretical analysis confirms that this method effectively enhances the model's resilience against both score-based and decision-based black-box attacks. Importantly, our defense does not necessitate adversarial training and has minimal impact on accuracy, rendering it applicable to any pre-trained model. Our analysis also reveals the significance of selectively adding noise to different parts of the model based on the gradient of the adversarial objective function, which can be varied during the attack. We demonstrate the robustness of our defense against multiple black-box attacks through extensive empirical experiments involving diverse models with various architectures.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.00567")

Code

Syntology Ran 15 of 20 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 14 ran with no contract checked.

By repository: official repository: 20 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mail-research/randomized_defenses officialpytorchGPL-3.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 15 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
14ran
5unverified

Licence: 20 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mail-research/randomized_defenses. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_defense mail-research/randomized_defenses/models/utils.py official repository ran GPL-3.0 (copyleft) · pointer only · f80e7f6342bb06ff · report
create_aa mail-research/randomized_defenses/models/resnet.py official repository ran GPL-3.0 (copyleft) · pointer only · de9aaff4c2936743 · report
defense_token mail-research/randomized_defenses/models/utils.py official repository ran GPL-3.0 (copyleft) · pointer only · d903e362d00e661c · report
dense_to_onehot mail-research/randomized_defenses/utils.py official repository ran GPL-3.0 (copyleft) · pointer only · 176dfa1e026fb136 · report
downsample_conv mail-research/randomized_defenses/models/resnet.py official repository ran GPL-3.0 (copyleft) · pointer only · eea0376ea397a1c7 · report
get_idx mail-research/randomized_defenses/attack/nes.py official repository ran GPL-3.0 (copyleft) · pointer only · 3cb33b36db4150ca · report
get_margin mail-research/randomized_defenses/attack/nes.py official repository ran GPL-3.0 (copyleft) · pointer only · 59a538c2bf7701e7 · report
get_padding mail-research/randomized_defenses/models/resnet.py official repository ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 9b02c1068795fd5b · report
random_classes_except_current mail-research/randomized_defenses/utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 0c48a3a1bc51d3e9 · report
tojpeg mail-research/randomized_defenses/models/wrapper.py official repository ran GPL-3.0 (copyleft) · pointer only · e3593b2830ad0418 · report
tv mail-research/randomized_defenses/models/tvm.py official repository ran GPL-3.0 (copyleft) · pointer only · 6acddfe42148f8f2 · report
tv_dx mail-research/randomized_defenses/models/tvm.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 13910d402badb827 · report
vanilla_resnet20 mail-research/randomized_defenses/models/vanilla_resnet.py official repository ran GPL-3.0 (copyleft) · pointer only · cd56898dd1531f85 · report
vanilla_resnet32 mail-research/randomized_defenses/models/vanilla_resnet.py official repository ran GPL-3.0 (copyleft) · pointer only · cab91481ef35184c · report
vanilla_resnet44 mail-research/randomized_defenses/models/vanilla_resnet.py official repository ran GPL-3.0 (copyleft) · pointer only · 2acb1379b48508e4 · report
checkpoint_seq mail-research/randomized_defenses/models/robust_vit.py official repository unverified GPL-3.0 (copyleft) · pointer only · 4e82d32ad5df0e01 · report
create_robust_model mail-research/randomized_defenses/models/utils.py official repository unverified GPL-3.0 (copyleft) · pointer only · 4f4087e87730c76c · report
noise_resnet20 mail-research/randomized_defenses/models/noise_resnet.py official repository unverified GPL-3.0 (copyleft) · pointer only · 45164c859a619736 · report
softmax mail-research/randomized_defenses/utils.py official repository unverified GPL-3.0 (copyleft) · pointer only · 8bf374c9e1999142 · report
tv_l2 mail-research/randomized_defenses/models/tvm.py official repository unverified GPL-3.0 (copyleft) · pointer only · 9c87fc8acd9c2789 · report

Tasks

Image Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification delete Top 1 Accuracy 36.2 #1 of 1 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections