Poison Forensics: Tracing data poisoning attacks in neural networksPoison Forensics: Traceback of Data Poisoning Attacks in Neural Networks
The authors propose a poisoning forensics traceback system that uses iterative clustering and pruning to locate the poisoned training data causing misclassification, achieving precision above 98.4% and recall above 96.8% on 6 types of attacks.
The attacker can modify any training data under their control, poisoning at most half of the training set, cannot access other parts of the training pipeline or the final model parameters, knows the traceback system exists and can take anti-forensics measures; at inference time submits attack inputs to trigger misclassification. The traceback system is deployed by the model owner or a trusted third party and has full access to the model, training pipeline, training data, and the misclassification event (xa, ya).
- Defenses against data poisoning for deep learning are often bypassed by stronger attacks; the authors propose the poisoning backtracking problem: after an attack has occurred, starting from a misclassification event, locate the poisoned training data that caused that misclassification, to assist accountability and mitigation.
- Propose a backtracking system with iterative clustering and pruning: map the data according to each training sample's influence on model parameters (the gradient with respect to the classification layer parameters) and cluster it, then use functional unlearning to construct a model after removing a cluster, determine whether a cluster is innocent based on whether the loss of the misclassification event rises, and prune it, until the poisoned data remain.
- On 3 types of dirty-label and 3 types of clean-label attacks across 5 datasets, precision ≥98.4% and recall ≥96.8% (Table 2); outperforms forensic tools adapted from 4 existing defenses; robust to 4 types of anti-forensics measures, with the most effective reducing precision/recall by less than 4%.
- The authors note: parameter-space poisoning attacks are outside the threat model; the system may be affected by false flag attacks, and accountability requires data provenance tools and human confirmation; robustness to extension to more attack types and application domains, and the optimality of the data mapping, are left for future work.
- Evaluated models
- WideResNet-28Inception ResNetVGG-16ResNet-50EmberNN
- Benchmarks
- CIFAR10ImageNetVGGFaceWenger FaceEMBER Malware
- Metrics
- PrecisionRecallRuntime
Researchers propose Poison Forensics, a forensic tracing tool for poisoning attacks on deep neural networks that first clusters training samples by their influence on model parameters, then iteratively prunes irrelevant sample clusters using an efficient unlearning method, ultimately leaving the poisoned data that caused the attack. On three types of dirty-label (backdoor) poisoning attacks and three types of clean-label poisoning attacks in two domains, computer vision and malware classification, the system achieves over 98.4% precision and 96.8% recall, and withstands four anti-forensic measures specifically targeting it. The authors position such forensic tools as a complement to existing defenses, for tracing the root of an attack and supporting subsequent mitigation.
Paper analysis
What problem does this paper attempt to solve?
The authors propose the poisoning backtracking problem: after an attack has occurred, locate from a misclassification event the poisoned training data that caused it, and give a solution.
Core question: after a deep neural network suffers a data poisoning attack, how can one trace back from a single observed misclassification event to the poisoned training data that caused that misclassification (which the authors call the poison traceback problem).
- Scenario and motivation: the authors believe that defenses for deep learning systems are often broken by stronger attacks after release, and that digital forensics can complement defenses by tracing the root cause of an attack to help mitigate it. An industry survey (cited in the paper as [42]) ranks data poisoning as the threat practitioners are most concerned about.
- Shortcomings of existing methods: the authors state that influence functions perform poorly on DNNs and require computing second-order derivatives — they reproduced this and found that when used for traceback of BadNet on CIFAR10, both precision and recall were below 69%, and on an ImageNet model the computation timed out after 15 days (4 TitanX GPUs). Existing poisoning defenses target pre-attack prevention and can be bypassed by adaptive attacks.
- Core observation: the success of a poisoning attack depends on the group effect of a set of poisoned samples, and the contribution of a single sample is hard to quantify; therefore the authors model traceback as a set search problem, requiring only a "binary" event responsibility measure (whether removing a group of data reduces the attack confidence), rather than precisely quantifying each sample's contribution.
- Paper contributions: defines the poisoning forensics problem and proposes an iterative clustering + pruning traceback system; validates it on 3 types of dirty-label and 3 types of clean-label attacks; compares it with 4 forensic tools adapted from existing defenses; tests adaptive anti-forensics attacks against the system (the abstract says 6, while the §9 main text says 4 types of measures plus high-cost attacks).
- Threat model (§3.1):
- Attacker capability: can modify any training data under their control, poisoning at most half of the entire training set; cannot access other parts of the training pipeline or the final model parameters.
- Attacker knowledge: knows the traceback system may exist and can use anti-forensics techniques; at inference time submits attack inputs exploiting the injected vulnerability to cause misclassification.
- Victim system: a model owner who relies on external data sources to train a DNN; parameter-space poisoning attacks (requiring additional access to the training pipeline) are outside the threat model.
- Traceback system: deployed by the model owner or a trusted third party, with full access to the model parameters and architecture, the training pipeline, the training data, and the misclassification event (xa, ya); does not assume knowledge of the attack type or parameters.
What related research exists?
Related work is divided into four groups: poisoning attacks, poisoning defenses, digital forensics, influence functions and unlearning; this paper's positioning is forensics rather than prevention.
Data poisoning attacks
- Dirty-label (backdoor) attacks: BadNet [29], Trojan [48], Physical Backdoor [80] — the attacker can modify data and labels, injecting a trigger so that the model misclassifies inputs with the trigger to the target label.
- Clean-label attacks: divided into clean-label backdoor [61, 65, 76] and triggerless attacks; Shafahi et al. [66] proposed the first clean-label triggerless attack, BP [1] and [87] improve effectiveness by placing poisoned data on a convex polytope around the target data; WitchBrew [26] uses gradient alignment to target the from-scratch training scenario.
- The paper notes that clean-label attacks [1, 87] typically assume transfer learning and that the attacker has white-box access to the pretrained model.
Data poisoning defenses
- Robust training: ensemble training [36], kNN majority voting [35], adversarial training [27], randomized smoothing [78], data augmentation [7].
- Diagnosing and patching poisoned models: Neural Cleanse [79] reverse-engineers the trigger; Fine-Pruning and STRIP [24, 47] remove neurons not activated by benign data; SPECTRE [31] assumes benign features follow a Gaussian distribution and filters anomalous queries.
- The paper notes that stronger and adaptive attackers can bypass existing defenses [4, 63, 65, 80, 83]; Physical Backdoor [80] can bypass 4 defenses, and Malware Backdoor [65] defeats 3 defenses.
Digital forensics
- Forensics research in traditional security: DDoS source IP traceback [17, 62, 72], intrusion traceback [39, 84], APT attribution [23, 82, 85]; as well as protecting trace integrity [6, 21, 38, 43], reducing log storage overhead [19, 44, 50, 81], solving the dependency explosion problem [39, 51, 85], and post-forensics (court evidence presentation and attack fingerprinting) [20, 25, 37, 54, 58].
Influence functions and machine unlearning
- Influence function [40] uses a first-order Taylor approximation to estimate the contribution of a training sample to the classification result; the paper cites [5] as showing that it performs poorly on DNNs, and reproduces this themselves (see Question 1).
- Machine unlearning [8, 30, 53] is designed for privacy protection, pursuing provable privacy guarantees but with high computational complexity, and its performance degrades as more data is unlearned; the authors consider it unsuitable for direct use in traceback.
Comparison baselines and positioning
- Baselines: §8 adapts 4 existing defenses into forensic tools for comparison — Spectral Signature [75], Neural Cleanse [79] (for backdoor attacks), Deep K-NN and L2-Norm Outliers [59] (for clean-label attacks); the benchmark is the paper's own 9 attack-dataset tasks.
- Positioning: the authors state that this is the first work to take a forensic approach to data poisoning attacks on deep learning systems, distinguishing it from existing research that focuses entirely on attack prevention.
How does the paper address this problem?
Iterative clustering and pruning: cluster by the influence of samples on model parameters, use functional unlearning to verify and prune innocent clusters until only poisoned data remains.
The overall idea is to model traceback as set search: starting from the full training set, each round clusters the unlabeled data into two clusters, uses a binary responsibility measure to identify the innocent cluster and prune it, and iterates until convergence to the set of poisoned data that caused the misclassification event.
Problem setting and core measure
- Input: model F, training data D, misclassification event (xa, ya); output: the subset of poisoned data that caused this event.
- Binary event responsibility measure: ℓ(F(xa), ya) ≥ ℓ(F−(xa), ya), where F⁻ is a model trained on D \ D1 and ℓ is the cross-entropy loss. If removing D1 does not reduce the attack confidence (the loss does not increase), then D1 has low responsibility and can be judged innocent.
- Appendix A.1 gives a theoretical analysis: under both the true distribution and the empirical distribution (SGD, convex loss), it proves that if the loss on the poisoned test data does not increase after removing D1, then the poisoning proportion of the remaining data is higher, supporting the use of this measure for set search.
Clustering: data mapping
- The goal is to separate benign and poisoned data in the mapping space. The mapping estimates the influence of sample x on the model parameters: ∇θ ℓ(F(x), NULL), where θ is the classification layer parameters and NULL is the "no learned knowledge" label, implemented as equal-probability output (borrowing an approach from the OOD literature [77]).
- The authors' rationale: forgetting poisoned samples pushes the model toward parameter positions where poisoning fails, while forgetting benign samples pushes the model toward a random initialization state; the two have different effects on the parameters.
- The clustering algorithm uses Mini-Batch K-means [64], producing 2 clusters per round, and can be parallelized across servers. On large models, a random ρ% of the final classification layer weights is retained to accelerate the mapping computation; the experiment sets ρ = 1 (Table 12 shows that reducing ρ from 10 to 1 has no visible effect on accuracy).
Pruning: functional unlearning
- For the two clusters in each round, (xa, ya) is used to test whether the above binary condition holds; those that satisfy it are marked innocent and excluded from clustering in the next round; during computation, D is always the original full training set.
- To avoid retraining F⁻ from scratch, functional unlearning is proposed: fine-tune F to minimize the cross-entropy between D1 and the NULL label while maintaining low loss on D \ D1, solved with SGD using the same hyperparameters as the original training, and the fine-tuning result serves as F⁻.
- The authors state that the difference from privacy unlearning [8, 30] is that it does not pursue provable guarantees, in exchange for acceptable computational overhead.
Procedure and termination
- Each round: map the unlabeled data → Mini-Batch K-means splits into 2 clusters → evaluate the responsibility of each cluster using functional unlearning → prune the innocent cluster. When no further splitting or pruning is possible, the remaining unlabeled data is judged to be the poisoned data causing the misclassification.
- The system does not assume priors such as attack type or poisoning quantity; §10 also gives an extended use: if neither of the two clusters in the first round can be pruned, the misclassification event is judged not to be caused by poisoning.
Evaluation method
- Metrics: precision and recall for identifying poisoned data, and the runtime of one successful traceback; each attack configuration generates 1000 misclassification events (10 target labels × 100 successful attack instances each), reporting mean and standard deviation.
What experiments did the paper conduct?
On 9 attack-dataset tasks, precision ≥98.4% and recall ≥96.8%; outperforms 4 adapted defenses; robust to anti-forensics measures.
Experimental setup
- Models and datasets under test (Table 1): WideResNet-28 (CIFAR10, 50,000 training samples), Inception ResNet (ImageNet, 1,281,167 samples), VGG-16 (VGGFace, 2,622,000 samples), ResNet-50 (Wenger Face, 762 samples), EmberNN (EMBER Malware, 600,000 samples).
- Attacks: three dirty-label — BadNet (CIFAR10, ImageNet), Trojan (VGGFace), Physical Backdoor (Wenger Face), default injection rate 10%; three clean-label — BP (CIFAR10, ImageNet, injection rate 0.01%), WitchBrew (CIFAR10, ImageNet, 1%), Malware Backdoor (EMBER, 1%) (Table 15, 16).
- Baselines: forensic tools adapted from 4 defenses — Spectral Signature, Neural Cleanse, Deep K-NN, L2-Norm Outliers.
- Metrics: precision, recall, runtime; 1000 misclassification events per attack configuration, reporting mean ± standard deviation.
- Traceback system configuration: Mini-Batch K-means with 2 clusters per round; on large models, the mapping computation retains ρ = 1% of the classification layer weights; runtime environment is 1 Nvidia Titan X GPU + 12 Intel Xeon CPUs.
- Anti-forensics evaluation assumptions (§9): the attacker fully understands the training pipeline and the traceback system (including the data mapping function), perturbation budget Linf = 0.1, and trigger position and values can be changed arbitrarily.
Main results
According to Table 2 (average of 1000 runs per task):
Swipe horizontally to read the table
Attack-dataset Type Precision Recall Runtime (mins) BadNet-CIFAR10 dirty-label 99.5 ± 0.0% 98.9 ± 0.0% 11.2 ± 0.4 BadNet-ImageNet dirty-label 99.1 ± 0.0% 99.1 ± 0.0% 142.5 ± 4.1 Trojan-VGGFace dirty-label 99.8 ± 0.0% 99.9 ± 0.0% 208.9 ± 9.2 Physical-Wenger dirty-label 99.5 ± 0.1% 97.1 ± 0.2% 2.1 ± 0.0 BP-CIFAR10 clean-label 98.4 ± 0.1% 96.8 ± 0.2% 19.2 ± 1.2 BP-ImageNet clean-label 99.3 ± 0.0% 97.4 ± 0.1% 202.0 ± 7.1 WitchBrew-CIFAR10 clean-label 99.7 ± 0.0% 96.8 ± 0.1% 21.4 ± 2.1 WitchBrew-ImageNet clean-label 99.1 ± 0.1% 97.9 ± 0.1% 194.3 ± 5.9 Malware-Ember clean-label 99.2 ± 0.0% 98.2 ± 0.1% 57.7 ± 3.0 - The authors state that the system achieves precision ≥ 98.4% and recall ≥ 96.8% on all 9 tasks.
- Physical Backdoor recall is relatively low (97.1%); the authors' explanation is that some poisoned samples contribute little to the vulnerability; verification experiment: removing the missed poisoned samples reduces the attack success rate by only 0.08% on average, whereas removing an equal number of random poisoned samples reduces it by 1.02%.
- Runtime grows linearly with the data mapping dimension and the number of training samples; in Trojan-VGGFace, clustering accounts for 83% of computation time, and parallelizing across 5 machines speeds it up 4.1× to 49.5 ± 3.2 minutes.
Comparison with adapted defenses (§8)
- Adapted backdoor defenses (Table 5): Spectral Signature is still acceptable on BadNet/Trojan (e.g., BadNet-CIFAR10 is 95.3%/92.4%), but drops to 43.2%/67.4% on Physical-Wenger and only 2.1%/15.1% on Malware Backdoor; Neural Cleanse is 0%/0% on these two tasks (fails to recover the trigger). The system in this paper is 99.5%/97.1% and 99.2%/98.2% on the corresponding tasks.
- Adapted clean-label defenses (Table 6): Deep K-NN and L2-Norm are close to random guessing on the 4 clean-label tasks (e.g., L2-Norm is 52.1%/42.8% on WitchBrew-CIFAR10), while the system in this paper is 98.4%/96.8% to 99.7%/97.9%.
- The authors state that these results are consistent with the conclusion in the original BP, WitchBrew, and Malware papers that "existing defenses are ineffective."
Anti-forensics measures (§9)
- Camouflaging poisoned data (Table 7, 8): reducing the L2 distance between poisoned and benign data in the mapping space reduces the attack success rate to 0 (success rate 0% at distance 59.0 for Trojan-VGGFace), while traceback precision/recall drops by less than 3.6%; the TaCT attack reduces precision/recall by less than 4% on 4 backdoor tasks.
- Injecting perturbed benign data (helper data) (Table 9, 10): after injecting 10000 helper samples into Trojan-VGGFace, the success rate drops to 21.0% and precision is 94.1%; for BP-CIFAR10, only 20 helper samples reduce the success rate to zero, at which point traceback still has > 91.4% precision/recall.
- Poisoned data forking and multiple overlapping attacks: under the forking measure, precision/recall on 7 tasks is ≤ 96.7% (Table 11 gives details for Trojan-VGGFace); when two backdoor attacks are overlaid, precision/recall is > 98.4%, which the authors attribute to the two attacks having the same target and clustering together in the mapping space.
- High-cost attacks: when the injection rate rises to 50%, precision is > 95% and recall is > 92% on all 9 tasks; the authors believe this is because the system treats poisoning as a group effect.
Other ablations and analyses
- Clustering visualization (Figure 3, 5): under 2-D PCA, benign/poisoned data separate for dirty-label attacks, and BP-CIFAR10 poisoned data falls in the gaps between benign clusters; Table 17 gives the normalized L2 distance and number of iterations for 4 attacks (3.1–4.0 rounds), with BP-CIFAR10 requiring 10.7 rounds on average.
- Pruning signal (Table 3, 4): on BadNet-CIFAR10, the event loss after removing the innocent cluster is 0.02 ± 0.00 (original model 0.09 ± 0.02), and after removing the poisoned cluster it is 6.91 ± 0.6; for BP-CIFAR10 the corresponding values are 0.39 ± 0.04 (original 0.61 ± 0.07) and 8.81 ± 0.81.
- Perturbation budget (Table 14): for BP-CIFAR10, as the budget rises from 0.01 to 0.09, the attack success rate goes from 29.2% to 97.6%, recall goes from 94.9% to 99.4%, and precision remains ≥ 98.4%.
- Weight retention ratio (Table 12): on ImageNet-BadNet, retaining 0.1%–5% of weights gives precision 98.9%–99.2% and recall 97.9%–98.0%.
- Non-poisoning event identification (§10): for four evasion attacks, PGD, CW, Boundary, HSJA (100 samples each), and benign misclassifications (100 per task), the system correctly judges all as non-poisoning, with no false positives.
What are some points that can be further explored?
The authors list directions such as false flag attacks, data provenance, and extending attack types; the experiments cover 5 datasets and 9 attack tasks.
Limitations and future directions noted by the authors
- Parameter-space poisoning is outside the threat model (§3.1 footnote 2): such attacks require additional access to the victim's training pipeline and are not considered in this paper.
- False flag attacks (§10 Limitation): an attacker can carefully construct a misclassification event to induce the backtracking system to wrongly accuse an innocent data provider; the authors state that accountability requires effective data provenance tools and human confirmation before decisions are made.
- Extending to more attack types and application domains (Future Work): the authors state that the method is effective in the current tests, but its robustness when extended to other attack types and domains requires more research.
- Data provenance remains an open problem (Future Work): to attribute poisoned data to a provider, training data metadata must be accurate and tamper-proof.
- Systematic study of data mapping (§4.2): the authors state that the mapping method in this paper is only one of several representations, and the study of mapping optimality and better mapping designs is left for future work.
- A complete study of non-poisoning misclassification is out of scope (§3.1): a comprehensive identification study of non-poisoning misclassification events is out of scope for this paper; construction techniques for inference-time attacks with a false flag component are also a future direction (§10).
Experimental coverage
- The models tested are 5 architectures: WideResNet-28, Inception ResNet, VGG-16, ResNet-50, EmberNN, corresponding to 5 datasets (Table 1).
- The attacks cover 3 dirty-label and 3 clean-label attacks, for a total of 9 attack-dataset tasks; each configuration has 1000 misclassification events (§6.1).
- The anti-forensics evaluation covers 4 categories of measures plus a high-cost attack, tested on 7 tasks (Physical Backdoor and Malware Backdoor were not included because their triggers are not easy to modify, §9).
- Non-poisoning event identification tested 4 evasion attacks (100 samples each) and 100 benign misclassification samples per task (§10).
- The paper does not report detailed hyperparameters of the backtracking system's components (such as the number of functional unlearning fine-tuning rounds), nor whether code or the system is released.
Summarize the main content of the paper
The authors propose the poisoning backtracking problem and an iterative clustering and pruning system, with precision ≥98.4% and recall ≥96.8% on 9 tasks, robust to anti-forensics.
A paper on data poisoning forensics: the authors define the "poisoning backtracking problem"—after a DNN suffers a poisoning attack, starting from an observed misclassification event (xa, ya), locate the subset of poisoned training data that caused that event, as a complementary means beyond defense.
- Problem to solve: poisoning defenses are often bypassed by adaptive attacks; influence functions perform poorly on DNNs (the authors reproduced: precision/recall below 69% on CIFAR10 BadNet, 15-day timeout on ImageNet), requiring a backtracking tool that can handle group effects and has sufficiently high precision to avoid false accusations.
- Method highlights: iterative clustering + pruning. Map the data according to each training sample's gradient with respect to the classification layer parameters (relative to the NULL label), Mini-Batch K-means splits into 2 clusters each round; use functional unlearning to approximate the "model after removing a cluster", use whether the loss of the misclassification event rises as a binary responsibility measure to prune innocent clusters, until the poisoned data remain.
- Main results:
- On 9 attack-dataset tasks (3 dirty-label, 3 clean-label attacks, 5 datasets), precision ≥ 98.4%, recall ≥ 96.8% (Table 2, 1000 events per configuration).
- Forensic tools adapted from 4 existing defenses fail on stronger attacks (e.g., Spectral Signature only 2.1%/15.1% on Malware Backdoor), while this paper's system maintains 99.2%/98.2% (Table 5, 6).
- Under 4 categories of anti-forensics measures, the most effective reduces precision/recall by less than 4%; when the injection rate rises to 50%, it still maintains > 95% precision and > 92% recall (§9).
- For 4 evasion attacks and benign misclassification, the system correctly determines all as non-poisoning events, with no false positives (§10).
- Authors' conclusion: the authors state this is the first work to take a forensic approach to DNN data poisoning, and consider poisoning backtracking a direction worth further exploration; they also note that the system may be affected by false flag attacks, and actual accountability requires data provenance tools and human confirmation.
Related papers
- Poisoning and Backdooring Contrastive LearningAttacksarXiv
- Natural Backdoor DatasetsAttacksarXiv