On Optimal Learning Under Targeted Data Poisoning

Steve Hanneke, Amin Karbasi, Mohammad Mahmoody, Idan Mehalel, Shay Moran

Machine learning models are notoriously vulnerable to data poisoning. But what happens when an attacker corrupts a training dataset with a highly specific goal in mind—such as ensuring a particular spam email bypasses a filter, or a specific stop sign is ignored by an autonomous vehicle?

This paper establishes the theoretical limits of machine learning under this exact threat model, known as instance-targeted data poisoning. By analyzing both realizable and agnostic learning settings, the authors provide tight mathematical bounds on how much an adversary can degrade performance and reveal a surprising impossibility result for standard agnostic learning.

The Threat Model: Instance-Targeted Poisoning

In instance-targeted poisoning, an attacker alters a small, constant fraction ($\eta$) of the training set to manipulate the model's prediction on a specific future test input. The adversary knows the target test point, but the learning algorithm does not.

Previous research demonstrated that learning is possible if the adversary's corruption budget is sublinear (approaching zero as the dataset scales). However, the exact error rates when the adversary can corrupt a constant fraction of the data ($\eta = \Omega(1)$) remained an open question. Furthermore, previous robust algorithms relied heavily on "improper" learning—outputting complex ensembles rather than a single, interpretable model from the target class. This paper seeks to find the exact mathematical bounds of learnability under these attacks and explores whether "proper" learning is achievable.

Methodology: Stable Partition and Vote (SPV)

To achieve optimal bounds, the authors approach the problem by decoupling adversarial risk into two components: standard expected loss and prediction stability (how much a prediction changes when a bounded number of training examples are swapped).

They introduce a deterministic meta-algorithm called Stable Partition and Vote (SPV), which operates in three steps:

  1. Partition: The algorithm splits the training data into $O(1/\eta)$ disjoint subsamples.
  2. Train: It trains a standard base learner on each subsample.
  3. Vote: It outputs the majority vote of these base learners for any given test point.

Because SPV uses disjoint subsamples, it naturally provides a "certificate" of robustness. The algorithm can easily calculate exactly how many training examples an adversary would need to change to flip the majority vote for a given test point, providing a mathematical guarantee of stability at inference time.

Key Theoretical Insights and Results

The paper's most significant contributions lie in tightly characterizing the optimal adversarial risk across different learning settings. A core finding is that VC dimension dictates vulnerability: a model's susceptibility to targeted poisoning is directly proportional to its VC dimension ($\mathtt{VC}(\mathcal{H})$). More complex models are linearly more vulnerable to targeted attacks.

The Realizable Setting

In the realizable setting (where a perfect model exists for the clean data), the optimal adversarial risk is tightly characterized as $\epsilon = \Theta(\mathtt{VC}(\mathcal{H}) \cdot \eta)$. The SPV algorithm successfully achieves this upper bound, and the authors provide a matching mathematical lower bound to prove its optimality.

The Agnostic Setting and the Multiplicative Penalty

In standard PAC learning, agnostic bounds typically look like $\mathtt{OPT} + \epsilon$, where $\mathtt{OPT}$ is the baseline error of the best possible model in the class.

Under targeted poisoning, the authors prove a fascinating impossibility result: deterministic learners must suffer a multiplicative penalty. You cannot simply add the adversarial noise to the baseline error. The authors designed a semi-agnostic learner achieving an upper bound of $C \cdot \mathtt{OPT} + O(\mathtt{VC}(\mathcal{H}) \cdot \eta)$. Crucially, they proved a lower bound showing that any deterministic learner suffers at least $2 \cdot \mathtt{OPT}$ error. This proves that standard additive agnostic learning is impossible under targeted poisoning.

Proper vs. Improper Learning

Because the SPV algorithm outputs a majority vote of multiple models, it is an improper learner. To achieve proper learning—ensuring the final output is a single model from the original hypothesis class (e.g., a single linear classifier)—the authors introduce a variant called PSPV (Projected SPV).

PSPV uses a combinatorial concept called the "projection number" to mathematically project the majority vote back into the original hypothesis class. For the specific class of halfspaces in $\mathbb{R}^d$ (linear classifiers), they successfully developed a proper learning algorithm with an error rate of $O(d^3 \eta)$, proving that proper learning is possible, albeit with a higher polynomial dependence on the VC dimension.

Limitations and Future Directions

While this paper establishes foundational bounds for targeted data poisoning, several open questions remain:

  • Loose Constants: While the bounds are tight up to constant factors, the exact constants are not pinned down. There remains a gap between the upper and lower bound constants in the realizable case.
  • The Multiplicative Factor: In the agnostic setting, the authors proved the multiplicative factor $C$ must be at least 2, but the exact optimal value of $C$ remains unknown.
  • Proper Learning Efficiency: The proper learning bound for halfspaces depends on $d^3$, whereas the improper bound depends linearly on $d$. It is an open question whether this efficiency gap can be closed.
  • The Role of Randomness: The $2 \cdot \mathtt{OPT}$ impossibility result for agnostic learning only applies to deterministic learners. A major future direction is determining whether randomized learning algorithms—where the randomness is hidden from the adversary—can bypass this multiplicative barrier.

Summary updated

BibTeX
@inproceedings{hanneke2022optimal,
  author = {Steve Hanneke and Amin Karbasi and Mohammad Mahmoody and Idan Mehalel and Shay Moran},
  title = {{On Optimal Learning Under Targeted Data Poisoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=6PpLxPPTPd},
}
Figure