Characterizing Model Robustness via Natural Input Gradients

Adri'an Rodr'iguez-Munoz, Tongzhou Wang, Antonio Torralba
2/14/2026

No official code found. Best implementation: adrianrm99/robustness_input_gradients (13 stars, last commit 2026-03-06).

Abstract

Adversarially robust models are locally smooth around each data sample so that small perturbations cannot drastically change model outputs. In modern systems, such smoothness is usually obtained via Adversarial Training, which explicitly enforces models to perform well on perturbed examples. In this work, we show the surprising effectiveness of instead regularizing the gradient with respect to model inputs on natural examples only. Penalizing input Gradient Norm is commonly believed to be a much inferior approach. Our analyses identify that the performance of Gradient Norm regularization critically depends on the smoothness of activation functions, and are in fact extremely effective on modern vision transformers that adopt smooth activations over piecewise linear ones (eg, ReLU), contrary to prior belief. On ImageNet-1k, Gradient Norm training achieves>90% the performance of state-of-the-art PGD-3 Adversarial Training} (52% vs.~56%), while using only 60% computation cost of the state-of-the-art without complex adversarial optimization. Our analyses also highlight the relationship between model robustness and properties of natural input gradients, such as asymmetric sample and channel statistics. Surprisingly, we find model robustness can be significantly improved by simply regularizing its gradients to concentrate on image edges without explicit conditioning on the gradient norm.

View on arXivView PDF

Code Implementations(1)

[ECCV 2024] Characterizing Robustness via Natural Input Gradients

130Shell, PythonJul 15, 20247 months ago
adversarial-robustnesscomputer-visioneccv2024gradient-norm

Similar Papers

Cite this paper

@article{rodriguezmunoz2026characterizing,
  title  = {Characterizing Model Robustness via Natural Input Gradients},
  author = {Adri'an Rodr'iguez-Munoz and Tongzhou Wang and Antonio Torralba},
  year   = {2026},
  eprint = {2409.20139},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.20139},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.20139.svg)](https://codeofpaper.com/paper/2409.20139)

Discussion