PIAT: Parameter Interpolation based Adversarial Training for Image Classification

Kun He, Xin Liu, Yichen Yang, Zhou Qin, Weigao Wen, Hui Xue', John E. Hopcroft

TL;DR

Adversarial Training (AT) is notorious for early-stage performance oscillations and severe late-stage robust overfitting. This paper introduces PIAT (Parameter Interpolation based Adversarial Training), a plug-and-play technique that smoothly interpolates model parameters between successive training epochs alongside NMSE (Normalized Mean Square Error), a regularization loss that aligns relative logit directions rather than rigid absolute values. Together, they smooth the optimization landscape, eliminate training volatility, and boost robustness across multiple models and benchmarks.

What Problem Does This Paper Address?

Standard deep networks are fragile: adding tiny, imperceptible perturbations to images can trick them into high-confidence misclassifications. Adversarial Training (AT)—generating adversarial attacks on the fly and including them in training batches—is the standard defense, but it suffers from two major training pathologies:

  1. Early-Stage Oscillations: High initial learning rates cause large parameter swings epoch-to-epoch. Consequently, the adversarial perturbations generated by attacks like Projected Gradient Descent (PGD) vary drastically, destabilizing the decision boundary and causing volatile accuracy.
  2. Late-Stage Robust Overfitting: As learning rates decay, the model starts memorizing the specific training perturbations. While training loss keeps decreasing, robust accuracy on unseen test data degrades sharply.

Existing methods discard historical model checkpoint information during training. The authors ask: Can we leverage historical weights across training epochs to stabilize the decision boundary and curb robust overfitting without incurring additional compute overhead?

Methods

The authors tackle these challenges with two complementary components:

  1. Parameter Interpolation (PIAT):
    At the end of each epoch $t$, instead of keeping the newly optimized parameters $\theta_t$, PIAT updates the model via an interpolation with the previous epoch’s post-interpolation parameters $\theta'_{t-1}$: $$\theta'_t = \lambda \cdot \theta'_{t-1} + (1 - \lambda) \cdot \theta_t$$ Crucially, $\lambda$ is dynamic: $$\lambda = g(n) = \frac{n + 1}{n + 10}$$ where $n$ is the epoch index. Early on, $\lambda$ is small to ensure fast exploration and convergence. Later, as parameters become more informative, $\lambda \to 1$, which smooths the decision boundary and prevents the network from fitting brittle, high-frequency artifacts.

  2. Normalized Mean Square Error (NMSE) Regularization:
    Prior consistency techniques like Adversarial Logit Pairing (ALP) enforce identical absolute logits between clean and perturbed inputs via mean squared error. Because clean and adversarial distributions inherently differ, strict absolute alignment over-constrains optimization. NMSE instead aligns normalized logits ($\ell_2$-normalized direction vectors) and weights each sample by $(1 - p_{\text{clean}})$ so the loss focuses more heavily on vulnerable clean samples: $$\mathcal{L}_{\text{NMSE}} = (1 - p_{\text{clean}}) \cdot \left\| \frac{f_\theta(x)}{\|f_\theta(x)\|_2} - \frac{f_\theta(x')}{\|f_\theta(x')\|_2} \right\|_2^2$$

Datasets

The authors evaluate their approach on three standard image classification benchmarks:

  • CIFAR-10
  • CIFAR-100
  • SVHN (Street View House Numbers)

No new datasets were introduced. Experiments were conducted using ResNet-18 and Wide ResNet (WRN-32-10) architectures evaluated under standard $\ell_\infty$ attacks ($\epsilon = 8/255$), including PGD-20, PGD-100, MIM, Carlini-Wagner (CW), and AutoAttack (AA).

Key Insights and Ideas

  • Dynamic weight averaging prevents over-smoothing early and overfitting late: Fixed interpolation rates either slow down initial learning (if historical weight is too high) or fail to stop late-stage overfitting (if historical weight is too low). Scheduling $\lambda$ monotonically stabilizes training across all regimes.
  • Flatter loss landscapes: 3D visualizations demonstrate that interpolating weights between epochs pushes the model into broader, flatter minima compared to standard PGD-AT, directly explaining the improved generalization to unseen attacks.
  • Direction beats magnitude in logit pairing: Clean and adversarial images occupy slightly shifted feature geometries. Forcing the network to match the relative direction of logits preserves class confidence patterns without artificially suppressing prediction scale.
  • Universal compatibility: PIAT acts as an outer parameter update wrapper, meaning it can readily combine with other defenses (e.g., TRADES, MART, GAIRAT) without adding gradient computations.

Key Results

  • Superior Defense against AutoAttack (AA):
    On ResNet-18, PIAT + NMSE outperformed the best baseline defenses on AA robust accuracy:

  • CIFAR-10: 48.80% (vs. TRADES at 48.04% and PGD-AT at 46.33%)

  • CIFAR-100: 25.79% (vs. TRADES at 24.72% and PGD-AT at 23.85%)
  • SVHN: 51.29% (vs. TRADES at 46.59% and PGD-AT at 43.02%—a +4.70% boost)
  • Scaling to WRN-32-10:
    On CIFAR-10, PIAT + NMSE reached 53.83% AA accuracy (up from 47.78% for PGD-AT). On CIFAR-100, it reached 30.07% (up from 23.99%).

  • Plug-and-Play Gains:
    Adding PIAT directly to existing defenses consistently improved their AA performance (e.g., boosting TRADES by +3.35% on CIFAR-10 and +2.49% on CIFAR-100 on WRN-32-10).

Limitations and Future Work

  • Evaluation Scale: Experiments were restricted to small-resolution image datasets (CIFAR and SVHN); performance on large-scale datasets such as ImageNet remains untested.
  • Heuristic Interpolation Schedule: The schedule $\lambda = (n + 1) / (n + 10)$ is an empirical rational function. Adaptive scheduling conditioned on validation loss or gradient drift was not explored.
  • Accuracy Trade-off: While robust accuracy improves markedly, clean accuracy occasionally incurs a minor drop compared to vanilla cross-entropy baselines—a known challenge throughout adversarial defense literature.

Summary updated

BibTeX
@inproceedings{he2023piat,
  author = {Kun He and Xin Liu and Yichen Yang and Zhou Qin and Weigao Wen and Hui Xue' and John E. Hopcroft},
  title = {{PIAT: Parameter Interpolation based Adversarial Training for Image Classification}},
  booktitle = {AdvML-Frontiers @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=ueppWoFKCp},
}
Figure