Abstract
This paper explores the use of distributionally-robust optimization (DRO) to mitigate the impact of data poisoning attacks on machine learning models. By training models to perform against the worst-case distribution within a neighborhood of the empirical distribution—defined by the Wasserstein distance—we provide performance guarantees for the model on original, clean data. We demonstrate that this DRO problem can be relaxed into a manageable upper bound consisting of the empirical sampled-averaged fitness and a regularizer based on the Lipschitz constant of the fitness function. For regression models, we prove this regularizer is equivalent to the dual norm of the model parameters. The effectiveness of this approach is validated using the Wine Quality, Boston Housing, and Adult datasets.
Introduction
Machine learning models are increasingly deployed in adversarial environments where the integrity of training data cannot be guaranteed. In a data poisoning attack, an adversary injects malicious records, modifies features, or flips labels to degrade the model's performance or induce specific biases. While practitioners have long observed that regularization—penalizing model complexity—tends to improve resilience, a rigorous theoretical link between regularization and adversarial robustness has been missing.
This research bridges that gap by framing the defense as a problem of Distributionally-Robust Optimization (DRO). Rather than simply minimizing error on a potentially corrupted training set, we optimize for the worst-case scenario within a mathematically defined "uncertainty set" around the observed data.
Methodology: The Wasserstein Framework
Defining the Neighborhood
The core of the proposed defense is the use of the Wasserstein distance (or Earth-Mover distance) to define a neighborhood around the empirical distribution. This metric measures the minimum "work" required to transform one distribution into another. In the context of poisoning, it effectively models the adversary's ability to shift or perturb data points within a certain budget.
The DRO Relaxation
Directly solving for the worst-case distribution is an infinite-dimensional problem and computationally intractable. However, the paper provides a critical mathematical relaxation: the worst-case fitness can be upper-bounded by the sum of the standard empirical loss and a regularization term.
This regularizer is proportional to the Lipschitz constant of the loss function with respect to the data. Intuitively, if a small change in input data (poisoning) leads to a massive change in the loss, the model is vulnerable. Regularization serves to "flatten" the loss surface, reducing this sensitivity.
The Dual Norm Connection
For standard regression models, the author proves a significant result: the Lipschitz-based regularizer simplifies to the dual norm of the model parameters. This provides a formal theoretical justification for common practices like Lasso or Ridge regression, showing they are not just heuristic tools for preventing overfitting, but are mathematically optimal responses to distributional uncertainty caused by poisoning.
Experimental Validation
The theory was tested across three distinct benchmarks to evaluate its performance under various attack vectors, including label flipping and feature modification:
- Wine Quality Dataset: Predicting quality scores (regression).
- Boston Housing Market Dataset: Predicting median home prices (regression).
- Adult Dataset: Predicting income levels using logistic regression (classification).
Key Findings
- The Price of Robustness: In environments with zero poisoning, non-regularized models occasionally achieved slightly higher accuracy. However, as the percentage of poisoned data (denoted as $\beta$) increased, the performance of non-regularized models decayed rapidly.
- Stability: The robust, regularized models maintained stable performance even when 10-20% of the data was corrupted. The defense proved effective for both linear regression and logistic regression architectures.
- Agnostic Defense: A primary advantage of this method is that it does not require the defender to know the adversary’s specific strategy or cost function; it only assumes a bound on the total amount of corruption.
Discussion and Future Work
While this work provides a robust foundation for linear and logistic models, it highlights the challenges inherent in more complex architectures. The current proofs for dual norm regularization are specific to regression. While the general DRO framework remains applicable to any model, calculating or bounding the Lipschitz constant for deep neural networks remains a significant computational challenge.
Furthermore, the theoretical guarantees rely on "light-tailed" distribution assumptions. Future research should explore how these defenses perform in the presence of heavy-tailed data or extreme outliers, and how to efficiently implement Wasserstein-based DRO in high-dimensional deep learning contexts.
Conclusion
By linking distributionally-robust optimization to classical regularization, this paper provides a rigorous framework for defending against data poisoning. It confirms that regularization is a mathematically sound shield against adversarial uncertainty, offering a path toward more reliable machine learning in real-world, untrusted environments.
Summary updated