BiCert: A Bilinear Mixed Integer Programming Formulation for Precise Certified Bounds Against Data Poisoning Attacks

Tobias Lorenz, Marta Kwiatkowska, Mario FritzarXiv 2024 · OpenReview

Abstract

Data poisoning attacks pose one of the biggest threats to modern AI systems, necessitating robust defenses. While extensive efforts have been made to develop empirical defenses, attackers continue to evolve, creating sophisticated methods to circumvent these measures. To address this, we must move beyond empirical defenses and establish provable certification methods that guarantee robustness. This paper introduces a novel certification approach, BiCert, using Bilinear Mixed Integer Programming (BMIP) to compute sound deterministic bounds that provide such provable robustness. Using BMIP, we compute the reachable set of parameters that could result from training with potentially manipulated data. A key element to make this computation feasible is to relax the reachable parameter set to a convex set between training iterations. At test time, this parameter set allows us to predict all possible outcomes, guaranteeing robustness. BiCert is more precise than previous methods, which rely solely on interval and polyhedral bounds. Crucially, our approach overcomes the fundamental limitation of prior approaches where parameter bounds could only grow, often uncontrollably. We show that BiCert's tighter bounds eliminate a key source of divergence issues, resulting in more stable training and higher certified accuracy.

Introduction

Machine learning models are increasingly vulnerable to data poisoning, where attackers inject malicious data into training sets to manipulate model behavior. While empirical defenses exist, they often fail against adaptive attacks. BiCert (also referred to as MIBP-Cert) addresses this by providing a mathematical guarantee that a model's prediction remains constant even under training data perturbations.

Previous deterministic certifiers relied on Interval Bound Propagation (IBP), which suffers from two major flaws:

  1. Over-approximation: Errors compound at every layer and training step, leading to "loose" bounds that become useless for large perturbations.
  2. Instability: Compounding errors frequently cause training to diverge, known as the "exploding bounds" problem.

BiCert overcomes these by shifting from simple interval arithmetic to a formal optimization task.

Methodology: Bilinear Mixed Integer Programming

BiCert frames each training step as an exact optimization problem using Mixed-Integer Bilinear Programming (MIBP). This approach is bilinear because both model weights and inputs are treated as variables, and mixed-integer to handle non-linearities like ReLU activations and discrete categorical data.

Comparison of properties across different certification methods.

Key components of the BiCert framework include:

  • Iterative Relaxation: To manage the NP-hard complexity of solving an entire training trajectory, BiCert computes exact bounds for a single step and uses them as the starting point for the next, effectively "cutting" the computational graph after each update.
  • Exact Reasoning: By utilizing high-performance solvers like Gurobi, the method preserves dependencies between variables that interval methods discard. This allows parameter bounds to actually shrink during training, mirroring standard gradient descent convergence.

Experimental Evaluation

The authors evaluated BiCert on synthetic and real-world datasets, including TwoMoons, UCI Iris, Breast Cancer Wisconsin, and the National Poll on Healthy Aging (NPHA).

Key Results and Stability

BiCert demonstrates superior accuracy and remarkable stability compared to prior state-of-the-art methods like FullCert and Sosnin et al. On the TwoMoons dataset with a perturbation radius of $\epsilon=0.01$, BiCert achieved significantly higher certified accuracy with much lower variance.

Certified accuracy and stability comparison on the TwoMoons dataset.

Beyond standard $\ell_p$ balls, BiCert’s optimization-based approach handles complex "preconditions," such as missing values in categorical features. On the NPHA dataset, the method successfully certified 98.6% of predictions against scenarios involving missing mental health values.

Discussion and Future Work

The primary insight of BiCert is that being slightly more computationally expensive per step leads to significantly better global results. Tighter bounds allow the model to tolerate larger perturbations before certification fails.

However, limitations remain regarding computational cost and scalability. Solving MIBPs is significantly slower than standard training, and current implementations are limited to small neural networks (e.g., 2 layers). Future work includes exploring hybrid methods that combine BiCert with faster approximations and exploiting model sparsity to accelerate the underlying optimization.

Summary updated

BibTeX
@misc{lorenz2024bicert,
  author = {Tobias Lorenz and Marta Kwiatkowska and Mario Fritz},
  title = {{BiCert: A Bilinear Mixed Integer Programming Formulation for Precise Certified Bounds Against Data Poisoning Attacks}},
  year = {2024},
  eprint = {2412.10186},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.10186},
}
Figure