FullCert: Deterministic End-to-End Certification for Training and Inference of Neural Networks

Tobias Lorenz, Marta Kwiatkowska, Mario Fritz

TL;DR

FullCert is the first framework to provide deterministic, end-to-end robustness guarantees for neural networks, covering both training-time poisoning and inference-time adversarial attacks. By treating the entire pipeline—from training data to final prediction—as a single mathematical function and applying abstract interpretation, it ensures that no small perturbation can flip a model's decision.

What Problem Does This Paper Address?

Deep learning models are notoriously fragile. We’ve known for years about adversarial examples (inference-time attacks), where tiny, invisible changes to an image can trick a model. More recently, the community has grown concerned about data poisoning (training-time attacks), where an attacker manipulates the training set to "backdoor" the model.

While we have "certified" defenses that provide mathematical proof of robustness during inference, certifying the training process is much harder. Training involves thousands of iterations and a massive computational graph, giving an attacker a high degree of freedom to influence the model's final parameters. Current training-time defenses are mostly heuristic (easily bypassed) or probabilistic (they might fail). FullCert aims to close this gap by providing deterministic, worst-case guarantees that hold with 100% certainty under a defined threat model.

Methods

The authors propose a paradigm shift: viewing the combination of model training and inference as a single, unrolled function.

  1. Abstract Interpretation: Instead of training a single model, FullCert uses reachability analysis to track a "family" of infinitely many models. It defines a set of all possible poisoned training datasets (within an $\ell_\infty$ ball) and propagates these bounds through the training algorithm.
  2. Interval Bound Propagation (IBP): To make the math tractable, they represent sets of values as intervals (hyperrectangles). They developed interval-based versions of standard operations like linear layers, ReLU, and Cross-Entropy loss.
  3. End-to-End Pipeline: The process flows from bounding training data perturbations $\rightarrow$ bounding the resulting model parameters $\rightarrow$ bounding the final prediction on a (potentially perturbed) test point.
  4. BoundFlow Library: The authors implemented their theoretical work into a new open-source library called BoundFlow, built on PyTorch, which allows for training models directly on bounded datasets with GPU acceleration.

Datasets

The paper evaluates FullCert on two primary benchmarks:

  • Two-Moons: A classic 2D toy dataset consisting of two interleaving half-circles. This is used primarily for qualitative visualization of decision boundary "barriers."
  • MNIST 1/7: A subset of the famous MNIST handwritten digit dataset, specifically filtered to include only the digits '1' and '7'. This follows the experimental setup of prior work in the field.

Key Insights and Ideas

  • Training as a Function: The core "aha" moment is treating the training algorithm (like SGD) as a deterministic function $A(D) = \theta$. If you can bound the input $D$, you can bound the output $\theta$.
  • The Convergence Trade-off: The authors' convergence analysis reveals a fascinating tension: the more you train, the more "over-approximation" error accumulates in the bounds. To get tight certificates, it is often better to use a small learning rate and fewer training steps.
  • The "Radius" Problem: In interval arithmetic, subtraction causes the radius of a set to grow ($r_{a-b} = r_a + r_b$). This means that every gradient update step naturally makes the certification bounds looser, highlighting why training-time certification is fundamentally more difficult than inference-time.

Key Results

  • Feasibility: FullCert successfully produces deterministic certificates. On the Two-Moons dataset, it achieved 75% certified accuracy when training from scratch. On MNIST 1/7, it reached 60% certified accuracy.
  • Pre-training Benefits: The results show that starting from a partially pre-trained model (on a small, trusted clean subset) significantly improves the final certified accuracy, as the model starts closer to the optimum and requires fewer "bound-expanding" update steps.
  • Comparison with BagFlip: Unlike previous methods like BagFlip (which handles $\ell_0$ attacks—flipping a few pixels or labels), FullCert is designed for $\ell_\infty$ attacks (small changes to all pixels). The authors demonstrate that these methods are complementary; each succeeds in its own threat model but fails in the other.

Limitations and Future Work

  • Scalability: Like most bound-based certification methods, FullCert struggles to scale to very large architectures (like ResNets or Transformers) due to the computational cost and the "looseness" of interval bounds in high dimensions.
  • Tightness of Bounds: The current use of simple intervals (boxes) leads to significant over-approximation. The authors suggest that future work could use more complex shapes (like Zonotopes or Polytopes) to get tighter certificates, though this would increase computational overhead.
  • Numerical Precision: While the theory is sound, the implementation relies on standard floating-point math in PyTorch, which can have tiny rounding errors. Moving to "verified" floating-point arithmetic would be a step toward even more rigorous safety.

Summary updated

BibTeX
@inproceedings{lorenz2024fullcert,
  author = {Tobias Lorenz and Marta Kwiatkowska and Mario Fritz},
  title = {{FullCert: Deterministic End-to-End Certification for Training and Inference of Neural Networks}},
  booktitle = {GCPR},
  year = {2024},
  doi = {10.1007/978-3-031-85181-0\_5},
}

Loading related content...

Figure