Multi-Agent Adversarial Training Using Diffusion Learning

Ying Cao, Elsa Rizk, Stefan Vlaski, Ali H. Sayed · DOI

Abstract

This paper introduces a decentralized framework for adversarial training in multi-agent networks using a diffusion learning strategy. By integrating local minimax optimization with neighbor-to-neighbor communication, the proposed method enables a network of agents to collaboratively converge to a robust global model without a central coordinator. The framework addresses the challenges of optimization and convergence in decentralized environments where data privacy is paramount. Theoretical analysis and empirical results on MNIST and CIFAR-10 demonstrate that local interactions are sufficient for achieving global robustness, maintaining high performance even under significant adversarial perturbations.

Introduction: The Challenge of Decentralized Robustness

Adversarial attacks—small, often imperceptible perturbations to input data—can easily trick machine learning models into making incorrect predictions. While adversarial training is a well-established defense for single-agent systems, it becomes significantly more complex in decentralized environments like sensor networks or IoT fleets. In these scenarios, data is distributed across many agents who must learn a shared model without sending raw data to a central server.

Visualizing adversarial attacks (DeepFool and FGM) on CIFAR-10 images of planes and cars.

This paper addresses two primary challenges:

  1. Optimization: How to solve a minimax problem (minimizing loss while an adversary maximizes it) across a graph.
  2. Convergence: Guaranteeing that the network reaches a stable, robust solution when the problem landscape shifts due to adversarial perturbations.

Methodology: Adversarial Diffusion Learning

The authors propose an adversarial extension of the Adapt-Then-Combine (ATC) diffusion strategy. The algorithm operates in three steps at each iteration for every agent:

  1. Adversarial Generation (The "Max" step): Each agent calculates the worst-case perturbation for its current local data, turning standard samples into adversarial ones.
  2. Adaptation: Each agent performs a local stochastic gradient update using this adversarial sample to improve its local model. To handle the non-differentiability of the maximum function, the authors employ Danskin’s Theorem to find appropriate subgradients.
  3. Combination (The "Diffusion" step): Agents share their intermediate model states with immediate neighbors and calculate a weighted average. This "diffuses" information across the network, allowing agents to benefit from global data patterns without direct access to other agents' raw datasets.

Key Insights and Theoretical Contributions

A technical highlight of the research is the discovery that under adversarial perturbations, risk functions are no longer simply Lipschitz continuous; they become affine Lipschitz. This required the development of new adjustments to standard convergence proofs for decentralized learning.

The authors chose diffusion learning over other decentralized strategies (like consensus) due to its wider stability range and superior performance in adapting to changing environments. They prove that even with only local interactions, the entire network converges to an $O(\mu)$ neighborhood of the global robust minimizer, where $\mu$ is the step size.

Experimental Results

The framework was evaluated using a simulated network of 20 agents on a random graph, performing binary classification on MNIST (digits 0 vs. 1) and CIFAR-10 (airplanes vs. automobiles).

Empirical Robustness

The proposed adversarial diffusion model demonstrated significant resilience compared to standard models. As shown in the MNIST experiments, as the perturbation size ($\epsilon$) increased, the error rate of a non-robust model skyrocketed toward 70%. In contrast, the robust diffusion model maintained an error rate below 25%.

Average test error vs. perturbation size (epsilon) on MNIST, comparing robust diffusion models to non-robust baselines.

Cross-Attack Defense

Interestingly, models trained against one type of attack (Fast Gradient Method or FGM) also showed improved resilience against different, unseen attack types like DeepFool. This suggests that the learned robustness generalizes well across various adversarial strategies.

Limitations and Future Directions

While the theoretical analysis confirms exponential convergence for strongly convex loss functions, the current proofs are limited to convex optimization. Extending these formal guarantees to non-convex landscapes, such as deep neural networks, remains a subject for future work. Additionally, scaling the framework to multi-class problems and optimizing the communication-computation trade-offs for expensive "max" steps are key areas for further exploration.

Summary updated

BibTeX
@inproceedings{cao2023multi,
  author = {Ying Cao and Elsa Rizk and Stefan Vlaski and Ali H. Sayed},
  title = {{Multi-Agent Adversarial Training Using Diffusion Learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095963},
}
Figure