The mathematics of adversarial attacks in AI - Why deep learning is unstable despite the existence of stable neural networks

Alexander Bastounis, Anders C. Hansen, Verner Vlacic · OpenReview

Abstract

The unprecedented success of deep learning (DL) makes it unchallenged when it comes to classification problems. However, it is well established that the current DL methodology produces universally unstable neural networks (NNs). This paper addresses why there has been no solution to the problem, proving a mathematical paradox: any training procedure based on training neural networks for classification problems with a fixed architecture will yield neural networks that are either inaccurate or unstable (if accurate)—despite the provable existence of both accurate and stable neural networks for the same classification problems. The key is that stable and accurate neural networks must have variable dimensions depending on the input. Furthermore, even when such networks exist as approximate minimizers to standard optimization problems, no randomized algorithm can compute them with probability better than 1/2.

Introduction: The Instability Problem

The "instability problem"—where tiny, human-imperceptible perturbations to an input (adversarial attacks) cause a neural network to misclassify—is one of the most significant hurdles in modern AI. Despite a vast literature on "defenses," no universal solution has emerged. This research investigates whether the instability of deep learning is a temporary engineering hurdle or a fundamental mathematical barrier, framing the issue within the context of Smale’s 18th problem regarding the limits of AI.

The Fixed Architecture Trap

A core finding of this work is the "Methodological Barrier." The authors prove that if the architecture (the number of layers and neurons) is fixed, any training procedure will yield a network that is either inaccurate or unstable. Modern deep learning is "efficient" at picking up features that correlate with labels, but these features are often the most mathematically unstable.

Comparison between standard fixed-dimension training procedures and the theoretical existence of stable, variable-dimension neural networks.

As illustrated in Figure 1, standard training procedures with fixed dimensions result in networks ($\phi$) that perform well on clean data but are susceptible to universal adversarial attacks. Conversely, stable and accurate networks ($\psi$) provably exist, but they require variable dimensions. This suggests that the current paradigm of fixed-size models is mathematically forced to pick up "unstable correlating features."

Existence vs. Computability

In many mathematical fields, proving a solution exists implies it can be found. However, this paper demonstrates that neural networks are a "pathological" case. Utilizing the Solvability Complexity Index (SCI) Hierarchy and Generalized Hardness of Approximation (GHA), the authors show that even when a stable, accurate network is proven to exist as an approximate minimizer of a cost function, no randomized algorithm can compute it with a probability better than 1/2. This establishes a "breakdown epsilon"—a threshold below which it becomes mathematically impossible to compute a more accurate or stable approximation.

Key Results

  • Theorem 2.2 (The Methodological Barrier): Formally proves that for many simple classification problems, ReLU networks with fixed architectures are doomed to instability if they are accurate.
  • Theorem 3.5 (The Non-Computability Result): Demonstrates that there are scenarios where "good" neural networks provably exist, but no algorithm (deterministic or randomized) can actually find them.
  • Variable Dimensions are Necessary: The discovery that for a ReLU network to be both stable and accurate, its dimensions must be able to vary depending on the input.

Conclusion and Future Directions

The research suggests that the AI community must move beyond simply trying to "fix" current training loops. Instead, the focus should shift toward investigating which classes of neural networks are actually computable. While the paper focuses on ReLU activations, the techniques likely apply to others like Leaky ReLU. The ultimate goal is to find the boundary between what we can prove exists and what we can actually build, potentially leading to new "dynamic" architectures that are inherently more robust.

Summary updated

BibTeX
@inproceedings{bastounis2025mathematics,
  author = {Alexander Bastounis and Anders C. Hansen and Verner Vlacic},
  title = {{The mathematics of adversarial attacks in AI - Why deep learning is unstable despite the existence of stable neural networks}},
  booktitle = {European},
  year = {2025},
  doi = {10.1017/s0956792525100193},
}
Figure