Stronger Data Poisoning Attacks Break Data Sanitization Defenses
Pang Wei Koh, Jacob Steinhardt, Percy Liang
TL;DR
This work studies the vulnerability of data sanitization defenses to coordinated data poisoning. It introduces three attacks—Influence, KKT, and Min-Max—that exploit concentrated poisoning and constrained bilevel optimization to bypass anomaly detectors like $L_2$, slab, $k$-NN, and SVD, significantly degrading test accuracy with only a 3% poisoning budget on datasets such as Enron and IMDB. The attacks rely on concentrating poisoned points in a small number of locations, using decoy parameters to simplify optimization, and, when needed, applying randomized rounding and LP relaxations to handle integer inputs and defense constraints. Experimental results across binary and multi-class tasks (including MNIST) show substantial test-error increases while bypassing defenses, underscoring the need for more robust, possibly provable defenses against coordinated data poisoning. The study emphasizes that defenses must anticipate attackers who optimize against them, and highlights directions such as stronger outlier detection, robust estimation, and data-trusted strategies to improve resilience in real-world ML systems.
Abstract
Machine learning models trained on data from the outside world can be corrupted by data poisoning attacks that inject malicious points into the models' training sets. A common defense against these attacks is data sanitization: first filter out anomalous training points before training the model. In this paper, we develop three attacks that can bypass a broad range of common data sanitization defenses, including anomaly detectors based on nearest neighbors, training loss, and singular-value decomposition. By adding just 3% poisoned data, our attacks successfully increase test error on the Enron spam detection dataset from 3% to 24% and on the IMDB sentiment classification dataset from 12% to 29%. In contrast, existing attacks which do not explicitly account for these data sanitization defenses are defeated by them. Our attacks are based on two ideas: (i) we coordinate our attacks to place poisoned points near one another, and (ii) we formulate each attack as a constrained optimization problem, with constraints designed to ensure that the poisoned points evade detection. As this optimization involves solving an expensive bilevel problem, our three attacks correspond to different ways of approximating this problem, based on influence functions; minimax duality; and the Karush-Kuhn-Tucker (KKT) conditions. Our results underscore the need to develop more robust defenses against data poisoning attacks.
