Robust Federated Learning with Attack-Adaptive Aggregation

Ching Pui Wan, Qifeng ChenarXiv 2021

Introduction

Federated Learning (FL) allows multiple participants to collaboratively train a global model without sharing their raw data. While this paradigm offers significant privacy benefits, it is highly vulnerable to poisoning attacks. Malicious clients can submit corrupted model updates to degrade global performance (model poisoning) or inject "backdoors" that cause the model to misclassify specific inputs.

Existing defenses often rely on static geometric rules, such as taking the median of updates or clustering. However, these methods frequently fail due to the "curse of dimensionality," where malicious updates can remain mathematically close to benign ones. Furthermore, data heterogeneity (non-IID data) makes it difficult to distinguish unique, honest users from subtle attackers. Static rules are also easily bypassed by adaptive attackers who evolve their strategies.

Attack-Adaptive Aggregation via Attention

This paper introduces a data-driven aggregation approach that replaces hard-coded formulas with a learnable neural network. The core of this system is an attention mechanism designed to identify and filter out malicious updates based on their specific "traits."

The Attention Mechanism

The aggregator uses a self-supervised attention module where the current global model serves as a "Query" and incoming client updates act as "Keys" and "Values." The model learns to assign low attention weights to updates that exhibit characteristics of known vulnerabilities.

Architecture of the robust estimation module using an attention mechanism.

Key Methodological Features

  • Attack Simulation: To train the aggregator, the server uses a small, clean auxiliary dataset to simulate various plausible attacks, such as label flipping or gradient negation. This allows the model to learn the "fingerprints" left by different poisoning strategies.
  • Layer-wise PCA: To manage the high dimensionality of modern neural networks, the authors perform Principal Component Analysis (PCA) on a per-layer basis. This reduces noise and prevents attackers from hiding their influence within specific layers.
  • Permutation Invariance: The attention mechanism is inherently permutation-invariant, meaning it processes the set of updates as a whole regardless of the order in which they are received.

Experimental Results

The proposed method was evaluated on several benchmarks, including MNIST, CIFAR-10, Tiny-ImageNet, and IMDb. The results consistently show that the attention-based approach achieves a superior balance between high global accuracy (ACC) and a low Attack Success Rate (ASR).

Defense Against Backdoor and Omniscient Attacks

In experiments with backdoor attacks on CIFAR-10 and Tiny-ImageNet, traditional defenses like Krum or standard FedAvg often saw an ASR exceeding 90%. The proposed method successfully kept the ASR below 15% while maintaining high accuracy.

Comparison of the proposed method against traditional defenses under Omniscient and Backdoor attacks.

Against "omniscient" attackers who negate their gradients to stall training, the proposed method was often the only defense that allowed the model to converge successfully.

Discussion and Conclusion

A significant advantage of this data-driven defense is its adaptability. If a new type of attack is discovered, the server can simulate it, retrain the aggregator, and deploy the update as a "security patch."

While the method requires a small server-side dataset and adds some computational overhead, these are manageable trade-offs for the significant gains in robustness. Future work may address performance in scenarios where the fraction of attackers is very high (near 50%), potentially by providing more specific supervision on backdoor patterns.

In summary, by leveraging an attention mechanism to learn the traits of malicious updates, this approach provides a robust and adaptive defense for Federated Learning in adversarial environments.

Summary updated

BibTeX
@misc{wan2021robust,
  author = {Ching Pui Wan and Qifeng Chen},
  title = {{Robust Federated Learning with Attack-Adaptive Aggregation}},
  year = {2021},
  eprint = {2102.05257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.05257},
}
Figure