Algorithm Search⌘K

Adversarial machine learning

Problems

  • Neural network verification

    Decide whether a network's output satisfies a property, such as a fixed label, for every input in a given region.

    advanced
  • Machine unlearning

    Remove the effect of chosen training points from a trained model, so that it matches a model trained without them.

    research

Algorithms

  • Fast gradient sign method

    Builds an adversarial example in one step by moving each input coordinate by epsilon in the sign of the loss gradient, then clipping to the valid range.

    O(g + d) worst1 languagesintro
  • Carlini-Wagner attack

    Finds a small l2 perturbation by minimizing the squared distance plus c times a margin loss on the logits, with a tanh change of variables for the box and a binary search on c.

    O(s T (g + d)) worst1 languagescore
  • DeepFool

    Finds a near-minimal l2 perturbation by linearizing the classifier, stepping to the nearest boundary of the linear model, and repeating until the label changes. Exact in one step for affine models.

    O(T (g + K d)) worst1 languagescore
  • Projected gradient descent attack

    Repeats small signed gradient steps on the loss and projects back onto the epsilon ball and the valid box, from a random start. The standard first-order attack for robust accuracy.

    O(T (g + d)) worst1 languagescore
  • Boundary attack

    A black-box attack that sees only labels. It starts from an input of another class and takes random steps along the decision boundary, keeping those that stay wrong and get closer.

    O(T (d + q)) worst1 languagesadvanced
  • Defensive distillation

    An empirical defense that retrains a network on its own soft labels at a high temperature. It makes softmax gradients tiny but leaves the boundaries in place, and Carlini and Wagner broke it.

    O(S n K d) worst1 languagesadvanced
  • Interval bound propagation

    Pushes an input box through the network layer by layer with interval arithmetic, to certify robustness and to train certifiably robust models.

    Θ(N + d) worst1 languagesadvanced
  • Jacobian-based saliency map attack

    A targeted l0 attack that uses a saliency map of the Jacobian to pick pairs of features, and sets them high until the model gives the target class or a budget of changed features runs out.

    O(G (g + K d + d^2)) worst1 languagesadvanced
  • Membership inference attack

    Decides whether a record was in a model's training set from the model's output on it; the classic method fits its decision rule on shadow models trained on similar data.

    O(k s m d + k m log(k m)) worst1 languagesadvanced
  • Model inversion attack

    Recovers a sensitive input feature, or an input typical of one class, from a trained model and its confidence scores; MI-FACE does gradient descent on one minus the confidence.

    O(a (k d + q)) worst1 languagesadvanced
  • Poisoning attack on support vector machines

    Finds a training point that most increases an SVM's validation error by gradient ascent through the incremental SVM solution.

    O(p (n^2 d + k n + d s^3 + v d^2)) worst1 languagesadvanced
  • Randomized smoothing

    Classifies by the majority label under Gaussian noise and certifies an l2 radius from the gap between the top two class probabilities.

    O(n (c + d)) worst1 languagesadvanced
  • Universal adversarial perturbation

    Builds one small perturbation that changes the label of many inputs at once, by adding DeepFool steps over a data set and projecting the sum back onto a norm ball.

    O(P n T (g + K d)) worst1 languagesadvanced
  • Zeroth order optimization attack

    A black-box attack that sees only the output probabilities. It minimizes the Carlini-Wagner loss by coordinate descent, with each partial derivative estimated by a symmetric difference of two queries.

    O(T (q + d + K)) worst1 languagesadvanced
  • Clean-label poisoning

    Adds correctly labeled training points, crafted so that a model trained on them misclassifies one chosen target input; Poison Frogs makes their features match the target's.

    O(p h d) worst1 languagesresearch
  • Green list watermark for language models

    Biases generation toward a pseudorandom green list of tokens seeded by the previous token, and detects the watermark by a z-test on green counts.

    O(T V) detect1 languagesresearch
  • Krum

    A Byzantine-robust aggregation rule that needs n > 2f + 2 and picks the update with the smallest sum of squared distances to its n - f - 2 nearest updates.

    O(n^2 (d + log n)) worst1 languagesresearch
  • Likelihood ratio membership attack

    Fits Gaussians to a record's logit-scaled confidence under models trained with and without it, and tests membership by their likelihood ratio.

    O(k s m d + k m d) worst1 languagesresearch
  • Linear bound propagation

    Bounds each neuron by linear functions of the input through linear relaxations of the activations, which usually gives tighter certificates than intervals.

    O(K n N + K n d) worst1 languagesresearch
  • Reluplex

    Extends the simplex method with lazy case splits on ReLU constraints to verify properties of ReLU networks exactly.

    O(2^R s) worst1 languagesresearch
  • SISA training

    Trains models on disjoint shards in slices with checkpoints, so that deleting a point needs retraining only one shard from one slice.

    O(E d n R) build1 languagesresearch
  • Spectral signatures

    Finds poisoned training points by their large projection on the top singular vector of the centered learned features of each class, then removes the top 1.5 epsilon fraction.

    O(n d^2 + t d^3 + n log n) worst1 languagesresearch

Techniques

  • Backdoor attack

    Poisons training data with inputs that carry a trigger pattern and a target label, so the model misbehaves only when the trigger appears.

    advanced
  • Backward pass differentiable approximation

    Breaks defenses that hide gradients by using the true function on the forward pass and a differentiable stand-in on the backward pass.

    advanced
  • Expectation over transformation

    Optimizes an adversarial example for the expected loss over random transformations such as rotation and lighting, so it works in the physical world.

    advanced
  • Model extraction attack

    Rebuilds a model served behind an API from its answers to chosen queries, exactly for linear models by solving equations.

    advanced
  • Gradient inversion attack

    Recovers a client's training example in federated learning by optimizing a dummy input until its gradient matches the shared one.

    research
  • Greedy coordinate gradient attack

    An automated search for a token suffix that makes an aligned language model answer requests it should refuse. This page covers the threat model, the lesson for alignment and the defenses.

    research
  • Training data extraction from language models

    Samples many outputs from a language model and ranks them by perplexity relative to a reference, to find verbatim training text.

    research

Concepts

  • Evasion attack

    An attack that changes inputs at test time so that a trained classifier misclassifies them, in a white-box or black-box setting.

    intro
  • Data poisoning

    An attack that inserts or changes training points so that the learned model makes errors chosen by the attacker.

    core
  • Transferability of adversarial examples

    Adversarial examples made for one model often fool other models trained for the same task. This allows black-box attacks through a substitute model, and it limits defenses that hide gradients.

    core
  • Prompt injection

    An attack that places instructions in data a language model reads, such as a web page, so that the model follows them instead of its user.

    research

Definitions

  • Adversarial example

    An input in an allowed small set around a correctly classified input, such as an l_p ball, to which the model gives a wrong label. The set is part of the threat model.

    intro