Abstract
Traditional data poisoning defenses often struggle against "accumulative poisoning," where an attacker injects a sequence of imperceptible, seemingly benign samples that gradually manipulate a model's state. This paper, presented at ICML 2023, introduces Memorization Discrepancy (MD), a novel metric that identifies these "slow-burn" attacks by analyzing how a model's memory of a data point evolves relative to its historical checkpoints. Building on this metric, the authors propose Discrepancy-aware Sample Correction (DSC), a defense mechanism that selectively neutralizes suspicious data in real-time streaming environments. Experimental results on CIFAR-10, CIFAR-100, and SVHN demonstrate that DSC maintains high accuracy on clean data while effectively mitigating catastrophic performance collapses triggered by accumulative poison batches.
Introduction
Data poisoning attacks pose a significant threat to machine learning systems, particularly in scenarios involving continuous learning or data streaming. While traditional attacks aim for immediate disruption, a more insidious variant has emerged: accumulative poisoning. In this paradigm, the attacker injects a series of small, "imperceptible" perturbations over time. These individual batches do not immediately degrade model performance, making them invisible to standard outlier detection or gradient clipping. Instead, they slowly "prime" the model, leading to a sudden and catastrophic collapse in accuracy once a final "trigger batch" is introduced.
Identifying these malicious samples is difficult because they appear statistically normal at the pixel level. This research shifts the focus from static data statistics to model dynamics, leveraging the observation that poison samples are uniquely optimized for specific model states.
Methodology
Memorization Discrepancy (MD)
The core contribution of this work is the Memorization Discrepancy (MD) metric. The researchers discovered that the malicious effect of a poison sample is highly fragile and dependent on the specific model state it was designed to exploit. By "backtracking" to a previous version of the model—a historical checkpoint—one can observe a significant divergence in how the model treats poison versus clean data.
MD quantifies this difference, typically using Kullback-Leibler (KL) divergence, between the current model’s prediction and a historical model’s prediction for the same input. While clean samples tend to show consistent predictions across checkpoints as the model matures, poison samples exhibit a much higher discrepancy because their influence is tied to the specific, manipulated trajectory of the current model state.
Discrepancy-aware Sample Correction (DSC)
Using MD as a diagnostic tool, the authors developed Discrepancy-aware Sample Correction (DSC), a defense algorithm designed for real-time data streaming. The process follows three main steps:
- Detection: As new batches arrive, the MD is calculated for each sample. If a sample's MD exceeds a predefined threshold, it is flagged as suspicious.
- Correction: Flagged samples undergo a targeted correction step, essentially a form of reverse adversarial training intended to neutralize the poison's influence.
- Selective Intervention: Unlike standard adversarial training (AT), which applies corrections indiscriminately and often degrades clean data performance, DSC uses MD to decide when to stop the correction. This prevents "over-calibration" and preserves the model's accuracy on legitimate data.
Experimental Evaluation
The authors evaluated DSC using three standard image classification benchmarks: CIFAR-10, CIFAR-100, and the Street View House Numbers (SVHN) dataset. The experiments simulated a streaming environment where a model is initially trained on clean data ("burn-in") before being subjected to successive poison batches.
Key Results
- Robustness to Trigger Batches: On CIFAR-10, standard training accuracy plummeted from ~86% to ~50% following the introduction of a trigger batch. In contrast, DSC maintained a robust accuracy of 77.3%.
- Mitigating Performance Drop: The accuracy drop ($\\Delta$) after the trigger was only -3.8% for DSC, significantly outperforming standard training (-25.3%) and rivaling or exceeding other advanced defenses like Gradient Clipping (-4.7%).
- Preserving Clean Accuracy: A major advantage of DSC is its minimal impact on clean data. While standard Adversarial Training (AT) dropped clean oracle accuracy to 77.2% on CIFAR-10, DSC maintained it at 84.7%, nearly matching the 84.4% achieved by standard training on clean data.
- Architectural Generality: The MD phenomenon and the effectiveness of DSC were consistent across various architectures, including ResNet-18, VGG-11, and smaller convolutional neural networks.
Discussion and Conclusion
The success of MD and DSC highlights a critical insight: model dynamics are often more revealing than static data statistics when defending against sophisticated attacks. By viewing poisoning as a fragile manipulation of the model's learning trajectory, defenders can identify malicious intent that is otherwise invisible at the sample level.
Limitations and Future Work
Despite its effectiveness in streaming contexts, the authors note a "gap" in applying this approach to offline settings where a model is trained from scratch on a static, poisoned dataset. Additionally, the defense requires careful tuning of the MD threshold ($P$), which adds analytical overhead. As attackers become aware of these dynamic-based defenses, the development of adaptive attacks will likely represent the next frontier in this ongoing security arms race.
Summary updated