Papers › Not All Poisons are Created Equal: Robust Training against Data Poisoning

Not All Poisons are Created Equal: Robust Training against Data Poisoning

18 Oct 2022arXiv:2210.09671archive 2025-07-28

Yu Yang, Tian Yu Liu, Baharan Mirzasoleiman

Data poisoning causes misclassification of test time target examples by injecting maliciously crafted samples in the training data. Existing defenses are often effective only against a specific type of targeted attack, significantly degrade the generalization performance, or are prohibitive for standard deep learning pipelines. In this work, we propose an efficient defense mechanism that significantly reduces the success rate of various data poisoning attacks, and provides theoretical guarantees for the performance of the model. Targeted attacks work by adding bounded perturbations to a randomly selected subset of training data to match the targets' gradient or representation. We show that: (i) under bounded perturbations, only a number of poisons can be optimized to have a gradient that is close enough to that of the target and make the attack successful; (ii) such effective poisons move away from their original class and get isolated in the gradient space; (iii) dropping examples in low-density gradient regions during training can successfully eliminate the effective poisons, and guarantees similar training dynamics to that of training on full data. Our extensive experiments show that our method significantly decreases the success rate of state-of-the-art targeted attacks, including Gradient Matching and Bullseye Polytope, and easily scales to large datasets.

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="2210.09671")

Code

Syntology Ran 4 of 12 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 3 ran with no contract checked.

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

yuyang0901/effective-poison-identification officialmentioned in paperpytorchMIT report
yuyang0901/epic officialmentioned in paperpytorchMIT 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

12 samples harvested; 4 ran; 0 honoured the contract we drafted; 8 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 · fixture could not drive it
3ran
8unverified

Licence: 0 of the 12 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 yuyang0901/effective-poison-identification. “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.

AutoContrast yuyang0901/effective-poison-identification/dataset/randaugment.py official repository ran MIT (permissive) · c6e7c3451c85404f · report
Brightness yuyang0901/effective-poison-identification/dataset/randaugment.py official repository ran MIT (permissive) · 0d1a8d6ce2015fc7 · report
Color yuyang0901/effective-poison-identification/dataset/randaugment.py official repository ran MIT (permissive) · 32cb3f5760fa593e · report
accuracy yuyang0901/effective-poison-identification/utils/misc.py official repository ran · fixture could not drive it MIT (permissive) · 18badd533b52adb3 · report
get_random_subset yuyang0901/effective-poison-identification/utils/subset.py official repository unverified MIT (permissive) · e6f4e5ea17a7ffd9 · report
get_target yuyang0901/effective-poison-identification/dataset/cifar.py official repository unverified MIT (permissive) · d65b4886674fe03e · report
resnet18 yuyang0901/effective-poison-identification/models/resnet.py official repository unverified MIT (permissive) · cae978d0a6f422f9 · report
resnet34 yuyang0901/effective-poison-identification/models/resnet.py official repository unverified MIT (permissive) · d48e87956df93e58 · report
resnet50 yuyang0901/effective-poison-identification/models/resnet.py official repository unverified MIT (permissive) · 8a16838753a239a4 · report
resnet_picker yuyang0901/effective-poison-identification/models/ap_resnet.py official repository unverified MIT (permissive) · 9cab94b4eba6256c · report
vgg11 yuyang0901/effective-poison-identification/models/vgg.py official repository unverified MIT (permissive) · 57636423450ce2a4 · report
vgg16 yuyang0901/effective-poison-identification/models/vgg.py official repository unverified MIT (permissive) · 8c60051157c60390 · report

Tasks

AllData Poisoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

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