What is adversarial robustness?

Adversarial robustness is an AI model's ability to keep producing correct, consistent output despite small, deliberate and often imperceptible changes to its inputs, measured for a given attack type and size.

Unlike general robustness, which covers natural variation such as noise, distribution shift or random corruption, adversarial robustness measures performance against a deliberate, worst-case attacker. Measurement can be empirical or certified: certified methods give a mathematical guarantee for every change below a set size.

Topic
AI security

How adversarial robustness works

  1. A threat model is defined: what the attacker can access and how large a change they can make.
  2. The model is tested with known strong attacks such as gradient-based methods, with accuracy under them reported.
  3. Where needed, certified methods such as randomised smoothing compute a guarantee within a set radius.
  4. Robustness is raised through adversarial training and certified methods, tracked alongside clean accuracy.

In more detail

Lp norm budgets and the threat model

Threat models are defined formally by Lp norms (L∞ for the largest per-pixel change, L2 for total Euclidean size, L0 for the number of changed pixels or patch size) and by the attacker's knowledge (white, grey or black box). A defence's certificate holds only for the stated norm and radius; a result proven for L2 does not carry over to L∞ attacks by itself.

Obfuscated gradients and adaptive evaluation

Evaluating defences solely against weak or non-adaptive attacks creates a false sense of security known as obfuscated gradients or gradient masking. Reliable evaluation requires adaptive attacks tailored to the specific defence and standardised parameter-free ensembles such as AutoAttack (combining APGD-CE, APGD-DLR, FAB and Square Attack).

Robustness in language models and multimodal systems

In large language models and multimodal systems, adversarial robustness shifts from continuous L_p image perturbations to discrete prompt injections, jailbreaks and cross-modal adversarial inputs. Because discrete input spaces lack exact L_p balls, robustness is increasingly evaluated via attack success rate (ASR) under automated red-teaming and representation-level safeguards.

Commonly confused terms

TermHow it differs
Natural robustnessGeneral or natural robustness covers performance under random noise, weather, sensor degradation and natural distribution shift, whereas adversarial robustness specifically measures worst-case accuracy against an intentional attacker.
Certified robustnessAdversarial robustness is the overarching property of resisting malicious perturbations, whereas certified robustness is one formal verification/measurement approach that proves no perturbation within a mathematical radius can flip the prediction.
Adversarial trainingAdversarial robustness is the security property evaluated at inference time, while adversarial training is a specific training-time defence technique used to improve that robustness.

Why adversarial robustness matters for on-premises AI

A paper studying adversarial robustness through robust optimisation suggests security against a first-order adversary can serve as a natural, broad security guarantee. A paper achieving certified robustness through randomised smoothing reaches 49% certified accuracy on a large image classification dataset for any adversarial change below a set size. A study of robustness and accuracy shows training robust models may need more resources and may lower standard accuracy. Robustness should always be reported with a defined threat model.

ON-PREMISES EXAMPLE

An insurer measures the robustness of its car damage photo classifier not just on a clean test set but on adversarial examples built to a documented threat model, reporting the result together with that threat model.

Common questions

How is adversarial robustness measured?

Empirically with strong attacks under a defined threat model, or with certified methods for a set change size. Always report the threat model with the result.

Does robustness lower accuracy?

Often somewhat. Research shows a possible tension between robustness and standard accuracy; measure the trade-off per task.

Sources

In the glossary: Glossary, A to D

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.