[Paper Review] Investigating Decision Boundaries of Trained Neural Networks
This paper proposes computing exact flip points—points on the decision boundary of a trained neural network—to accurately measure the closest adversarial perturbation and assess model robustness. By solving a non-convex optimization problem to find the nearest flip point, the method reveals the true weakest vulnerability of a model, outperforming distance-constrained adversarial attack methods that may fail or miss the closest adversarial example.
Deep learning models have been the subject of study from various perspectives, for example, their training process, interpretation, generalization error, robustness to adversarial attacks, etc. A trained model is defined by its decision boundaries, and therefore, many of the studies about deep learning models speculate about the decision boundaries, and sometimes make simplifying assumptions about them. So far, finding exact points on the decision boundaries of trained deep models has been considered an intractable problem. Here, we compute exact points on the decision boundaries of these models and provide mathematical tools to investigate the surfaces that define the decision boundaries. Through numerical results, we confirm that some of the speculations about the decision boundaries are accurate, some of the computational methods can be improved, and some of the simplifying assumptions may be unreliable, for models with nonlinear activation functions. We advocate for verification of simplifying assumptions and approximation methods, wherever they are used. Finally, we demonstrate that the computational practices used for finding adversarial examples can be improved and computing the closest point on the decision boundary reveals the weakest vulnerability of a model against adversarial attack.
Motivation & Objective
- To address the intractability of computing exact points on decision boundaries in deep neural networks with nonlinear activations.
- To challenge common simplifying assumptions in interpretability, generalization error, and adversarial robustness studies that rely on linear approximations or indirect distance estimates.
- To provide a direct, computationally feasible method for identifying the closest adversarial example via exact flip point computation.
- To demonstrate that current adversarial attack methods using distance constraints may fail or miss the true minimal perturbation, undermining robustness evaluation.
Proposed method
- Formulate the problem of finding the closest flip point as a non-convex optimization task: minimize the Euclidean distance between a data point and a point on the decision boundary.
- Impose constraints that at the unknown point, the softmax outputs for the original and target class are equal, and no other class has a higher output.
- Use numerical optimization techniques to solve the constrained non-convex problem, with computational cost comparable to standard adversarial attack methods.
- Apply a bisection algorithm to efficiently compute the closest flip point along a given direction.
- Validate the method on models trained on both pixel and wavelet coefficient inputs, demonstrating applicability to multi-class and discrete feature problems.
Experimental results
Research questions
- RQ1Can exact points on the decision boundary of a trained deep neural network be computed despite the non-convexity of the problem?
- RQ2How do linear approximations of decision boundaries perform when the true boundaries are highly nonlinear, particularly with ReLU and other nonlinear activations?
- RQ3To what extent do current adversarial attack methods that use distance constraints fail to identify the true minimal perturbation due to infeasibility or suboptimality?
- RQ4How does the distance to the closest flip point vary across images in a dataset, and what are the implications for robustness evaluation using fixed distance constraints?
- RQ5Can computing the closest flip point provide more reliable and informative measures of model confidence, feature influence, and adversarial vulnerability than derivative-based or margin-based approximations?
Key findings
- The closest flip point method consistently identifies adversarial examples that are significantly closer to the original input than those found by distance-constrained optimization, as demonstrated in Figure 10 where the adversarial example crossed the boundary at a distance much less than 0.494.
- Distance-constrained adversarial attack methods can fail to find any solution when the constraint radius is too small, as shown in Figure 11, where a 0.5-radius constraint failed for an image with a closest flip point at 2.14 distance.
- The angle between the direction to the closest flip point and the direction to the adversarial example found via loss minimization was only 12.7 degrees in one case, indicating that the closest flip point provides a more accurate and informative direction for adversarial vulnerability.
- The distance to the closest flip point varies widely across images in a dataset, as shown in Figure 12, making a single fixed distance constraint ineffective for assessing robustness across all inputs.
- The computational cost of finding the closest flip point is comparable to that of standard adversarial attack methods, making it a practical and superior alternative for robustness evaluation.
- The method reveals that approximations like the softmax margin or gradient-based distance estimates can be misleading, as they may overestimate the true distance to the decision boundary, especially in nonlinear regions.
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.