arXiv:2610.10666cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.10666

Explaining the Saliency Map Sparsity of Adversarially-Trained Neural Networks

Yannick Lunk, Atell Yehor Krasnopolsky, Damien Garreau, Leon Bungert

Yannick Lunk

Institute of Mathematics

University of Würzburg, Germany

yannick.lunk@uni-wuerzburg.de

Damien Garreau

Institute of Computer Science, CAIDAS

University of Würzburg, Germany

damien.garreau@uni-wuerzburg.de

Atell Yehor Krasnopolsky

Technical University of Munich, Germany

atell.krasnopolskyi@tum.de

Leon Bungert

Institute of Mathematics, CAIDAS

University of Würzburg, Germany

leon.bungert@uni-wuerzburg.de

ABSTRACT

Understanding why deep neural networks make a given prediction is of great importance for their safe deployment. In computer vision, saliency maps, which highlight the image region most influential for a prediction, remain a widely-used form of explanation. An empirical observation is the apparent sparsity of gradient saliency maps of adversarially-trained neural networks. In this paper, we propose a theoretical explanation of this phenomenon for two-layer ReLU networks. We build on the established equivalence of adversarial training to the minimization of the empirical risk with weight-decay penalization and an added adversarial total variation term – valid for certain loss functions. As the number of data points and neurons grows and the regularization parameters are sent to zero at appropriate rates, we prove that minimizers converge to a Bayes classifier with minimal gradient and Barron norm. Sparsity appears since for adversarial training with ℓ∞\ell_{\infty}-attacks the gradient norm is anisotropic and favors axis-aligned / sparse gradients. We illustrate our theoretical findings experimentally by evaluating the gradient ℓ1\ell_{1}-norm and thresholded sparsity of naturally versus adversarially trained models.

1 INTRODUCTION

Despite the immense success of deep neural networks, two fundamental challenges continue to limit their deployment in high-stakes domains: their vulnerability to small, imperceptible adversarial perturbations (Goodfellow et al., 2015), and the “black-box” nature of their decision-making. Addressing the former, adversarial training (Madry et al., 2018), which mitigates the problem by incorporating adversarial examples in the training, has emerged as one of the most successful defenses and maintained its relevance even in the era of large language models (Xhonneux et al., 2024).

To address the latter, a wide range of methods have been proposed in recent years under the umbrella of Explainable AI (XAI) (Linardatos et al., 2020). Among them, local feature importance methods aim to identify the input features that are the most influential for a model's decision at a given point. In computer vision, a prominent example is given by saliency maps based on the gradient ∇fθ(x)\nabla f_{\theta}(x) of the model with respect to the input. The most important features can then be easily visualized as an image overlay, see Figure 1. Motivated by the observation that plain input gradients are often noisy and visually hard to interpret, a number of extension have been proposed, notably gradient times input (Shrikumar et al., 2017), integrated gradient (Sundararajan et al., 2017), and SmoothGrad (Smilkov et al., 2017). A line of work also developed around specific architecture, such as GradCAM for convolutional neural networks (Selvaraju et al., 2017).

Previous work has shown empirically that adversarial training not only increases robustness of the trained model but also leads to sparse, perceptually aligned, and hence more interpretable gradient saliency maps (Zhang & Zhu, 2019; Etmann et al., 2019; Chalasani et al., 2020); see Figure 1. This observation is surprising, since adversarial training was introduced to improve robustness.

Figure

(a) Original

(b) Natural training

(c) ε=0.5/255\varepsilon = 0.5/255

(d) ε=1/255\varepsilon = 1/255

(e) ε=2/255\varepsilon = 2/255

Figure 1: Comparison of saliency maps for a naturally trained ResNet50 on ImageNet versus adversarially trained models across varying ℓ∞\ell_{\infty} perturbation budgets ε\varepsilon. As predicted by Theorem 1, with decreasing adversarial budget ε\varepsilon the gradient saliency maps converge to a sparse one whereas natural training (corresponding to ε=0\varepsilon = 0) produces a noisy saliency map.

ness against worst-case perturbations, with no explicit objective related to interpretability, or even the gradient structure of the predictor.

In this paper, we provide a theoretical explanation for this phenomenon. The starting point of our journey is to notice that adversarial training (with the ℓ1\ell_1-loss) can be reformulated as empirical risk minimization with an additional total variation (TV) term depending on the adversarial budget ε\varepsilon (Bungert et al., 2023). Focusing on two-layer neural networks, we show that, in the limit of infinite width and vanishing ε\varepsilon, the limiting optimization problem reduces to finding a Bayes classifier which minimizes a balance of the average dual norm of the classifier's input gradients and a measure of its complexity. In particular, for the ℓ∞\ell_\infty-bounded perturbations typically used in adversarial training, this yields an ℓ1\ell_1-norm penalty of the input gradients. Informally, adversarial training in this regime selects a Bayes classifier that balances accuracy, complexity, and average ℓ1\ell_1-norm of its gradients. Since ℓ1\ell_1-type regularization is well-known to promote sparsity, this provides a mathematical explanation for the sparse saliency maps observed in adversarially trained models. We illustrate this result in a simple setting in Figure 2, see Appendix F for more details.

Our main technical tool is Gamma-convergence (see Braides (2002) for an introduction), which is key in showing that the empirical risk minimizers converge to minimizers of the limit problem. Existing results which we review in Section 4 are obtained in an unrealistic non-parametric setting with a population risk, whereas in practice one uses neural networks trained on finite datasets. In this work, we bridge this gap by embedding our problem into the homogeneous Barron space (Park et al., 2023) and deriving generalization bounds and quantitative approximation results to transition from the idealized and continuous theory to the empirical and parametric setting.

Our main contributions are as follows:

  • Theorem 1 states that as the number of data points and the width of the neural networks go to infinity and the adversarial budget and the weight decay coefficient go to zero at specific coupled rates, every sequence of empirical minimizers admits a subsequence that converges to a Bayes classifier with optimal balance of its Barron semi-norm with a TV functional of the form ∫∥∇f(x)∥⋆ dμ(x)\int \|\nabla f(x)\|_{\star} \, \mathrm{d}\mu(x), where ∥⋅∥⋆\|\cdot\|_{\star} is the dual norm to the one restricting adversarial attacks. From this, we deduce an explanation for the observed sparsity of saliency maps.

• We support our theoretical findings with numerical experiments, demonstrating that adversarial training systematically reduces the average ℓ1\ell_{1}-norm of the input gradients. Furthermore, by evaluating thresholded gradient sparsity, we provide a quantitative empirical validation of the observations of Zhang & Zhu (2019); Etmann et al. (2019) and confirm that this implicit ℓ1\ell_{1}-regularization translates to the sparse saliency maps.

References (37)