zappz

All topics

adversarial robustness

1 article

Adversarial robustness is a machine learning model's ability to keep behaving correctly when someone deliberately crafts inputs to make it fail.

The classic demonstration involves image classifiers. Change a photo by an amount too small for a person to notice, with the changes chosen carefully, and a model that correctly saw a panda may confidently report something else entirely. Such inputs are called adversarial examples. They are not random noise. They are found by searching for the small change that most increases the model's error.

Attacks differ in what the attacker knows and when they act. A white-box attacker can see the model's internals, while a black-box attacker can only send inputs and watch outputs. Evasion attacks fool a finished model. Poisoning attacks corrupt its training data. For language models the equivalent is the jailbreak: wording or odd strings of characters that lead a model to ignore its safeguards. The best established defence is adversarial training, in which attack examples are generated during training and the model learns to handle them. It helps, but it costs computation, can lower ordinary accuracy, and tends to protect only against the kinds of attack it was trained on.

Robustness matters wherever a model faces people with a motive to beat it. Spam and fraud filters, malware detectors, content moderation, face recognition and driver-assistance vision all have adversaries. Average accuracy says little in these settings, because an attacker does not send average inputs. They send the worst one they can find. A model that is right nearly always but fails on demand is not safe to rely on.

  1. red teamingWhat Is Red Teaming for AI Systems? Alignment and SafetyRed teaming for AI systems means probing a model with adversarial inputs to expose unsafe behavior, weak safeguards and gaps between intent and conduct. · 7 min read

Related topics

All topics