Skip to main content
QUICK REVIEW

[Paper Review] Distributed Adversarial Training to Robustify Deep Neural Networks at Scale

Gaoyuan Zhang, Songtao Lu|arXiv (Cornell University)|Jun 13, 2022
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper proposes Distributed Adversarial Training (DAT), a scalable, general-purpose framework for large-batch adversarial training across multiple machines. It achieves convergence to first-order stationary points at rate $O(1/ extstyleackslashsqrt{T})$ under non-convex settings, while maintaining robust accuracy on ImageNet and enabling efficient training with gradient compression and semi-supervised learning.

ABSTRACT

Current deep neural networks (DNNs) are vulnerable to adversarial attacks, where adversarial perturbations to the inputs can change or manipulate classification. To defend against such attacks, an effective and popular approach, known as adversarial training (AT), has been shown to mitigate the negative impact of adversarial attacks by virtue of a min-max robust training method. While effective, it remains unclear whether it can successfully be adapted to the distributed learning context. The power of distributed optimization over multiple machines enables us to scale up robust training over large models and datasets. Spurred by that, we propose distributed adversarial training (DAT), a large-batch adversarial training framework implemented over multiple machines. We show that DAT is general, which supports training over labeled and unlabeled data, multiple types of attack generation methods, and gradient compression operations favored for distributed optimization. Theoretically, we provide, under standard conditions in the optimization theory, the convergence rate of DAT to the first-order stationary points in general non-convex settings. Empirically, we demonstrate that DAT either matches or outperforms state-of-the-art robust accuracies and achieves a graceful training speedup (e.g., on ResNet-50 under ImageNet). Codes are available at https://github.com/dat-2022/dat.

Motivation & Objective

  • Address the scalability limitations of adversarial training (AT) in large-scale deep learning due to high computational cost and data size.
  • Enable effective adversarial training in distributed settings where data or compute resources are partitioned across multiple machines.
  • Develop a general framework supporting supervised, semi-supervised, and compressed-gradient variants of AT in distributed environments.
  • Theoretically establish convergence guarantees for DAT under standard non-convex optimization conditions.
  • Empirically validate DAT's robustness and efficiency across diverse settings: ImageNet, randomized smoothing, unlabeled data, and varied hardware configurations.

Proposed method

  • Design a distributed min-max optimization framework that scales adversarial training across multiple machines using large-batch updates.
  • Integrate gradient compression and adaptive learning rates (e.g., LAMB optimizer) to reduce communication overhead in distributed training.
  • Formulate the algorithm to support multiple attack generation methods (e.g., PGD, FGSM) and data types (labeled, unlabeled) in a unified pipeline.
  • Theoretically analyze descent error from gradient estimation, quantization, adaptive learning rates, and inner maximization oracles.
  • Derive a convergence rate of $O(1/ extstyleackslashsqrt{T})$ to first-order stationary points in general non-convex settings.
  • Implement the framework with NCCL communication backend and support for HPC clusters using InfiniBand and NVLink interconnects.

Experimental results

Research questions

  • RQ1Can adversarial training be effectively scaled to large-batch settings using distributed computing without sacrificing robustness?
  • RQ2How do distributed optimization components—such as gradient compression and adaptive learning rates—affect convergence and robust accuracy in adversarial training?
  • RQ3What is the theoretical convergence rate of distributed adversarial training under non-convex, stochastic, and distributed settings?
  • RQ4Does the proposed framework maintain robust performance when training on large-scale datasets like ImageNet with mixed data types (labeled/unlabeled)?
  • RQ5How does the framework perform across different hardware configurations, including standard clusters and high-performance computing (HPC) systems?

Key findings

  • DAT achieves robust accuracy on ImageNet with ResNet-50 that matches or exceeds state-of-the-art methods, even at large batch sizes.
  • The framework maintains high standard accuracy while improving robustness, avoiding the performance degradation seen in conventional distributed AT.
  • Theoretical analysis confirms convergence to first-order stationary points at rate $O(1/ extstyleackslashsqrt{T})$, matching standard SGD in non-convex settings.
  • Empirical results show graceful speedup in training time with increasing number of computing nodes (1, 3, 6 nodes tested), with minimal accuracy drop.
  • DAT supports semi-supervised robust training and robust pretraining-finetuning, demonstrating generalization across diverse training paradigms.
  • Performance on HPC clusters with InfiniBand and NVLink shows reduced communication cost and improved scalability compared to standard distributed systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.