The LogBarrier adversarial attack: making effective use of decision boundary information

Chris Finlay, Aram-Alexandre Pooladian, Adam M. ObermanICCV 2019

Abstract: Adversarial attacks for image classification are small perturbations to images that are designed to cause misclassification by a model. Adversarial attacks formally correspond to an optimization problem: find a minimum norm image perturbation, constrained to cause misclassification. A number of effective attacks have been developed. However, to date, no gradient-based attacks have used best practices from the optimization literature to solve this constrained minimization problem. We design a new untargeted attack, based on these best practices, using the well-regarded logarithmic barrier method. On average, our attack distance is similar or better than all state-of-the-art attacks on benchmark datasets (MNIST, CIFAR10, ImageNet-1K). In addition, our method performs significantly better on the most challenging images, those which normally require larger perturbations for misclassification. We employ the LogBarrier attack on several adversarially defended models, and show that it adversarially perturbs all images more efficiently than other attacks: the distance needed to perturb all images is significantly smaller with the LogBarrier attack than with other state-of-the-art attacks.

Introduction

Deep learning models are notoriously fragile; tiny, invisible changes to an image can trick a model into seeing a stop sign as a speed limit sign. Finding these "adversarial examples" is essentially an optimization problem: find the smallest possible change ($\delta$) that pushes an image across a model's decision boundary.

Most popular attacks, such as Projected Gradient Descent (PGD) or Fast Gradient Sign Method (FGSM), do not solve this problem directly. Instead, they attempt to maximize the model's loss within a fixed distance constraint. This serves as a proxy for misclassification rather than the goal itself. Other methods, like the Carlini-Wagner (CW) attack, are powerful but often targeted at specific classes. The LogBarrier attack fills the gap for a principled, untargeted attack that uses standard optimization techniques to find the absolute minimum distance to the nearest decision boundary.

Methodology

The LogBarrier Attack treats misclassification as a hard constraint in a minimization problem. The objective is to minimize the norm of the perturbation $m(\delta)$ subject to the constraint that the model's prediction for the new image is no longer the correct class $c$.

To enforce this, the authors utilize a logarithmic barrier function: $\phi(z) = -\lambda \log(z)$. As the image approaches the decision boundary from the "wrong" side, this function blows up to infinity, acting as a barrier that prevents the optimization from leaving the misclassified region.

Conceptual path of the LogBarrier attack starting from an adversarial point and moving toward the decision boundary.

Unlike most attacks that start with the clean image, LogBarrier starts with a misclassified image (often created by adding noise) and then moves it as close as possible to the original image while staying on the "wrong" side of the decision boundary. The algorithm uses a "central path" approach, solving the optimization for a fixed $\lambda$, then shrinking $\lambda$ and repeating to gradually allow the image to get closer to the boundary. While $L_2$ (Euclidean) distance is straightforward, the authors use a smooth, differentiable approximation of the max-norm to handle $L_\infty$ constraints.

Key Results and Insights

The method was evaluated on standard benchmarks: MNIST, CIFAR10, and ImageNet-1K. It was tested against both standard networks and "defended" networks that use adversarial training.

Quantitative performance and visual comparison of LogBarrier vs. IFGSM attacks on MNIST and CIFAR10.

Performance and Visual Quality

In $L_2$ tests, LogBarrier achieved similar or better mean perturbation distances compared to CW and PGD across all datasets. In $L_\infty$ tests on MNIST and CIFAR10, LogBarrier significantly outperformed Iterative FGSM (IFGSM). For example, on MNIST, it achieved a 94.8% misclassification rate at a distance where IFGSM only reached 73.4%. Qualitatively, LogBarrier perturbations are often less visually distorted than those from IFGSM, particularly when the attack must work harder to find a solution.

Advantages on Defended Models

Against adversarially trained models, LogBarrier found adversarial examples with much smaller perturbations than IFGSM. On MNIST, it required a distance of only 0.29 to flip 90% of images, whereas IFGSM needed 0.65. This efficiency stems from its ability to bypass "gradient obfuscation"—a common defense tactic where models have messy or zero gradients. Because the LogBarrier term is nearly zero when far from the boundary, the attack focuses entirely on minimizing distance until it is very close to the boundary.

Conclusion

The LogBarrier attack demonstrates that classical optimization techniques can significantly improve the efficiency and effectiveness of adversarial attacks. By starting from the "outside" and moving toward the boundary, it provides a tighter upper bound on model robustness than many existing methods. Future work may explore more sophisticated initializations and the use of this framework to develop more rigorous theoretical guarantees for model robustness.

Summary updated

BibTeX
@inproceedings{finlay2019logbarrier,
  author = {Chris Finlay and Aram-Alexandre Pooladian and Adam M. Oberman},
  title = {{The LogBarrier adversarial attack: making effective use of decision boundary information}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=CDabzgvblMF},
}
Figure