[Paper Review] A Simple Explanation for the Existence of Adversarial Examples with Small Hamming Distance
The paper provides a theoretical framework showing that targeted adversarial examples with small L0 (Hamming) distance naturally arise in high-dimensional, piecewise-linear networks, and validates the idea with MNIST experiments finding effective adversarial changes within m+1 coordinates for m classes.
The existence of adversarial examples in which an imperceptible change in the input can fool well trained neural networks was experimentally discovered by Szegedy et al in 2013, who called them "Intriguing properties of neural networks". Since then, this topic had become one of the hottest research areas within machine learning, but the ease with which we can switch between any two decisions in targeted attacks is still far from being understood, and in particular it is not clear which parameters determine the number of input coordinates we have to change in order to mislead the network. In this paper we develop a simple mathematical framework which enables us to think about this baffling phenomenon from a fresh perspective, turning it into a natural consequence of the geometry of $\mathbb{R}^n$ with the $L_0$ (Hamming) metric, which can be quantitatively analyzed. In particular, we explain why we should expect to find targeted adversarial examples with Hamming distance of roughly $m$ in arbitrarily deep neural networks which are designed to distinguish between $m$ input classes.
Motivation & Objective
- Explain why adversarial examples with small Hamming distance are a natural byproduct of high-dimensional piecewise-linear classifiers.
- Quantitatively analyze how many input coordinates need to change to move between labeled regions in neural networks.
- Demonstrate, via theoretical bounds and MNIST experiments, that changing around m coordinates suffices to move between any two class regions when distinguishing m classes.
Proposed method
- Model neural networks as piecewise-linear mappings induced by ReLU activations.
- Analyze partitions of R^n by m hyperplanes and derive conditions under which a sparse perturbation can move a point from one cell to another (L0 metric).
- Prove that for random-like hyperplane arrangements, changing two coordinates often suffices when n is large relative to m.
- Propose a basic algorithm that perturbs about m coordinates to steer the network’s output toward a target class, and an improved randomized version to avoid hard/soft failures.
- Experimentally verify with MNIST that adversarial examples with distance m+1 exist for networks distinguishing m classes.
Experimental results
Research questions
- RQ1How many input coordinates must be altered to move from one class region to another in high-dimensional, piecewise-linear networks?
- RQ2Does a small L0 (Hamming) perturbation suffice to realize targeted misclassification across m classes, and how does this scale with n and m?
- RQ3Can we design an algorithm to construct such targeted adversarial examples and what are its success/failure modes?
Key findings
- In partitions of R^n by m linear separators, a sparse perturbation changing at most k coordinates can reach another labeled region if a sparse combination of columns lies in a desired orthant; for k=2 this is likely when n is moderate relative to m.
- For MNIST (n=784, m=10), experiments show adversarial examples can be produced by modifying 11 pixels (m+1) to switch from one digit to any other, confirming the m+1 bound in practice.
- Theoretical bounds suggest that in typical settings with large n, changing about m coordinates suffices to move between any two regions in the partition, enabling targeted attacks.
- A randomized improvement (altering m+1 coordinates instead of m) helps avoid soft failures and find adversarial examples more reliably.
- The results imply that defenses relying solely on preserving piecewise-linearity or increasing network depth may remain vulnerable to targeted low-Hamming-distance adversarial examples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.