Certified robustness

Also known as: provable robustness

On this page 7

Certified robustness is a provable guarantee that a machine learning model’s prediction for a given input cannot change under any perturbation inside a precisely defined set, typically all changes whose size under an Lp norm stays below a radius epsilon. In AI security, it is the strongest form of defense against adversarial examples, because it holds against every possible attack within the bound, not only against the attacks a team happened to test.

The concept is also called provable robustness. It contrasts with empirical robustness, which is measured by running attacks such as the projected gradient descent attack and reporting how often they fail. Empirical numbers can be overturned by a stronger attack, while a valid certificate cannot be broken inside its threat model.

What a robustness certificate states

A robustness certificate states that for an input x, a classifier f returns the same label for every input x plus delta, where the norm of delta is at most a certified radius. The certificate is per input: a model may be certified at radius 0.5 for one image and not certified at all for another.

Model-level quality is therefore reported as certified accuracy at radius r, the share of test inputs that are both correctly classified and certified at that radius. This metric is always lower than clean accuracy, and it falls as the radius grows.

NormWhat it limitsTypical image radius
L-infinityLargest change to any single pixel2/255 to 8/255
L2Total Euclidean size of the change0.25 to 1.0
L1Sum of absolute changesVaries widely by input scale
L0Number of changed features or pixelsA few pixels or patch size
Threat models commonly used for certification

Main families of certification methods

Certification methods fall into two broad families: deterministic verification, which reasons exactly or conservatively about the network, and probabilistic certification, which derives guarantees from randomness added to the model. Each family trades tightness, scalability and strength of the guarantee differently.

FamilyGuarantee typeScalabilityTypical use
Complete verificationExact yes or no answerSmall networks onlySafety-critical controllers
Bound propagationSound but conservativeMedium to large networksCertified training such as IBP or CROWN
Lipschitz-constrained networksDeterministic margin boundLarge networksFast certificates at inference
Randomized smoothingHigh-probability guaranteeVery large modelsL2 certificates on ImageNet scale
Families of certification methods

Complete verifiers use mixed-integer programming or satisfiability solvers and become intractable as networks grow. Bound propagation methods such as interval bound propagation and CROWN push upper and lower bounds through each layer, which is fast but can be loose. Randomized smoothing classifies many noisy copies of the input and certifies the majority vote, giving an L2 radius that depends on the noise level and the vote margin.

Certified robustness versus empirical defenses

The central difference is that empirical defenses are validated by attacks, while certified defenses are validated by proofs. Several empirical defenses, including some based on defensive distillation and gradient masking, were later broken by adaptive attacks, which is the main motivation for certification.

AspectEmpirical robustnessCertified robustness
EvidenceFailure of tested attacksMathematical proof or bound
Validity over timeCan be broken by new attacksHolds within the stated threat model
Typical accuracyHigher at the same radiusLower, especially at large radii
Compute at inferenceSingle forward passOften many passes or bound computation
Main exampleAdversarial training with PGDRandomized smoothing or IBP training
Empirical and certified robustness compared

In practice the two are often combined: adversarial training improves the margin that certification methods can prove, and certified results provide a lower bound that empirical attack numbers should never contradict.

Where certified robustness is applied

Certification is most valuable where a worst-case guarantee matters more than average accuracy and where the threat model can be stated precisely. It is still rare in production for large language models, because semantic text perturbations do not map cleanly onto norm balls.

  • Perception in autonomous systems, where sensor noise and tampering must not flip safety-relevant classes.
  • Malware and fraud classifiers, using L0 or feature-budget threat models on a few editable fields.
  • Aircraft collision avoidance networks, verified with complete methods because they are small.
  • Model assurance cases under frameworks such as NIST AI 100-2 and regulatory robustness requirements for high-risk systems.

Limitations and common misconceptions

The most frequent misconception is that a certified model is secure in general. A certificate covers only its stated perturbation set; an attacker using rotations, patches, prompt injection or data poisoning operates outside that set and is not addressed at all.

Other limitations are practical. Certified radii remain small relative to perceptible changes, certified accuracy on large datasets lags well behind clean accuracy, and randomized smoothing certificates hold only with high probability, usually at a failure rate such as 0.001, and require hundreds to thousands of forward passes per input.

MisconceptionAccurate view
Certified means unbreakableOnly within the defined norm and radius
Certificates cover all inputsThey are computed per input and may be absent
Smoothing is deterministicIt gives a probabilistic guarantee with a set failure rate
L-infinity results transfer to L2Each norm needs its own certificate
Misconceptions and the accurate view

A plain-language summary

Attackers can fool AI models with tiny, almost invisible changes to an image or a file. Most defenses are tested by trying known tricks. If the tricks fail, the model looks safe. But a new trick may still work.

Certified robustness is different. It is a mathematical proof that no change smaller than a set size can alter the answer. Think of a guarantee that a lock resists any key within a certain shape, not just the keys someone tried. The proof is strong, but it covers only that kind of change.

An example from practice

A logistics company uses an image classifier to read damage labels on parcels in warehouse cameras. Its security team worried that worn or deliberately altered labels could cause misrouting, so it retrained the classifier with randomized smoothing at a noise level of 0.25.

At evaluation time, the team reported certified accuracy at an L2 radius of 0.5 alongside clean accuracy. Clean accuracy dropped from 97% to 93%, while about 78% of test images received a certificate at that radius, each holding with a failure probability of 0.001.

Inputs without a certificate were routed to human review instead of automatic sorting. The team documented that the guarantee did not cover physical stickers or camera angle changes, and addressed those with separate physical adversarial attack tests.