Interpreting Robust Optimization via Adversarial Influence Functions

Zhun Deng, Cynthia Dwork, Jialiang Wang, Linjun Zhang

Introduction

Robust optimization, such as adversarial training, is a primary defense mechanism for improving a model's security against adversarial attacks. It frames the learning process as an optimization problem that minimizes loss against the worst-case small perturbations (adversaries) of the input data. However, quantifying its exact impact on standard prediction loss is notoriously difficult. Finding the worst-case adversary is often NP-hard, creating a computational bottleneck. Consequently, it is theoretically challenging to measure how robust optimization alters final model parameters and degrades prediction loss on clean data—a degradation defined as model sensitivity.

This paper introduces the Adversarial Influence Function (AIF), a computationally efficient, closed-form mathematical tool that approximates these changes, revealing counterintuitive insights about model complexity and robustness without the need to run highly expensive adversarial training.

The Adversarial Influence Function (AIF)

Inspired by influence functions in robust statistics, which measure how predictions change if a single training point is modified, AIF provides a tractable alternative to solving the full NP-hard robust optimization problem for a given perturbation budget, $\varepsilon$.

Instead of training from scratch, AIF calculates the derivative of the robust optimizer with respect to $\varepsilon$, evaluated at $\varepsilon = 0$. This approach yields a closed-form expression relying only on the standard empirical Hessian matrix and gradients of the loss function. By utilizing a Taylor expansion, AIF can approximate model sensitivity analytically. The authors also extend this mathematical framework beyond simple parametric models to Distributionally Robust Optimization (DRO) and Kernel Regressions, specifically Neural Tangent Kernels (NTK), which approximate infinitely wide neural networks.

Key Insights and Theoretical Findings

By bypassing the NP-hardness of adversarial training, AIF allows researchers to estimate the "tax" of adversarial robustness analytically. This framework uncovers several critical insights:

  • More capacity does not strictly mean less sensitivity: Counterintuitively, simply increasing a model's capacity (e.g., moving from a linear to a more flexible quadratic model) does not strictly decrease model sensitivity. The relationship is non-monotonic and highly dependent on the data distribution.
Non-monotonic relationship between model sensitivity and capacity/features.
  • Overparameterization helps in high-complexity regimes: For linear models, when the number of features is already large, adding more features—even redundant ones—actually reduces model sensitivity. This provides theoretical backing for why overparameterization often aids adversarial robustness.
  • Randomized smoothing improves sensitivity: The authors theoretically prove that randomized smoothing (adding isotropic noise to inputs during training) actively reduces model sensitivity, bridging a gap between empirical success and theoretical understanding.

Experimental Validation

The authors validated their theoretical claims using synthetic datasets (e.g., 2D Gaussian inputs for linear/quadratic regression) and the MNIST dataset for high-dimensional image classification using NTK.

Experiments demonstrate that as the perturbation budget $\varepsilon$ shrinks, the AIF-based approximation of the parameter shift and model sensitivity tightly converges to the true values obtained via computationally heavy Projected Gradient Descent (PGD). Furthermore, the authors established asymptotic normality for AIF, meaning researchers can construct standard statistical confidence intervals for a model's sensitivity.

Effect of perturbation budget on parameter shift and sensitivity approximations.

Limitations and Future Directions

Because AIF relies on a first-order Taylor approximation ($\varepsilon \to 0$), it is most accurate for small adversarial perturbation budgets. Additionally, the core theorems assume the empirical risk is strongly convex or that the global minimum is well-separated. For highly non-convex deep learning models, surrogate losses or early-stopping approximations are required to satisfy these mathematical constraints.

Looking forward, the authors suggest using AIF as a highly efficient metric for model selection. Because it is cheap to compute, AIF could be used to tune hyperparameters or select neural network architectures that naturally resist adversarial degradation before any robust training occurs. They also propose using AIF to investigate why low-dimensional representation learning often yields better adversarial robustness—a phenomenon empirically observed but theoretically under-explored.

Summary updated

BibTeX
@inproceedings{deng2020interpreting,
  author = {Zhun Deng and Cynthia Dwork and Jialiang Wang and Linjun Zhang},
  title = {{Interpreting Robust Optimization via Adversarial Influence Functions}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure