cs.LGMar 25, 2026

Why the Maximum Second Derivative of Activations Matters for Adversarial Robustness

Authors: Yunrui Yu, Hang Su, Jun Zhu

Organizations: 1Tsinghua University, Beijing, China.

Abstract

This work investigates the critical role of activation function curvature -- quantified by the maximum second derivative max⁡∣σ′′∣\max|σ''| -- in adversarial robustness. Using the Recursive Curvature-Tunable Activation Family (RCT-AF), which enables precise control over curvature through parameters αα and ββ, we systematically analyze this relationship. Our study reveals a fundamental trade-off: insufficient curvature limits model expressivity, while excessive curvature amplifies the normalized Hessian diagonal norm of the loss, leading to sharper minima that hinder robust generalization. This results in a non-monotonic relationship where optimal adversarial robustness consistently occurs when max⁡∣σ′′∣\max|σ''| falls within 4 to 10, a finding that holds across diverse network architectures, datasets, and adversarial training methods. We provide theoretical insights into how activation curvature affects the diagonal elements of the hessian matrix of the loss, and experimentally demonstrate that the normalized Hessian diagonal norm exhibits a U-shaped dependence on max⁡∣σ′′∣\max|σ''|, with its minimum within the optimal robustness range, thereby validating the proposed mechanism.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. How Learning Dynamics Drive Adversarially Robust Generalization?

    Oct 10, 2024Yuelin Xu, Xiao ZhangAdversarial TrainingPAC-Bayesian Generalization Bounds

  2. Adversarial Rademacher Complexity of Deep Neural Networks

    Nov 27, 2022Jiancong Xiao, Yanbo Fan, Ruoyu Sun +1Neural Network GeneralizationNeural Network Robustness

  3. S2O: Enhancing Adversarial Training with Second-Order Statistics of Weights

    Mar 1, 2026Gaojie Jin, Xinping Yi, Wei Huang +2Adversarial TrainingAdversarial Robustness