NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Poisoning with a Pill: Circumventing Detection in Federated Learning

Hanxi Guo, Hao Henry Wang, Tao Song, Tianhang Zheng, Yang Hua, Haibing Guan, Xiangyu Zhang

Abstract

Federated learning (FL) protects data privacy by enabling distributed model training without direct access to client data. However, its distributed nature makes it vulnerable to model and data poisoning attacks. While numerous defenses filter malicious clients using statistical metrics, they overlook the role of model redundancy, where not all parameters contribute equally to the model and attack performance. Current attacks manipulate all model parameters uniformly, making them more detectable, while defenses focus on the overall statistics of client updates, leaving gaps for more sophisticated attacks. We propose an attack-agnostic augmentation method to enhance the stealthiness and effectiveness of existing poisoning attacks in FL, exposing flaws in current defenses and highlighting the need for fine-grained FL security. Our three-stage methodology, including pill construction, pill poisoning, and pill injection, injects poison into a compact subnet (i.e., pill) of the global model during the iterative FL training. Experimental results show that FL poisoning attacks enhanced by our method can bypass 8 state-of-the-art (SOTA) defenses, gaining an up to 7x error rate increase, as well as on average a more than 2x error rate increase on both IID and non-IID data, in both cross-silo and cross-device FL systems.

Introduction

Federated Learning (FL) allows multiple parties to train a shared model without sharing their raw data. However, this decentralized nature is a security challenge: malicious clients can send poisoned updates to the central server to degrade model accuracy or insert backdoors. To counter this, "robust aggregation" defenses act as statistical filters, identifying "outlier" updates that deviate significantly from the norm.

Current poisoning attacks are often detectable because they manipulate all model parameters uniformly, creating a distinct statistical signature. This paper identifies a critical oversight in these defenses: model redundancy. Not all parameters in a neural network are equally important. By exploiting the fact that a small "lottery ticket" subnetwork often drives most of a model's performance, an attacker can be surgical and stealthy. The proposed "Poison Pill" framework concentrates malicious updates into a tiny, critical subnetwork—the "pill"—allowing attackers to bypass state-of-the-art filters.

Methodology

The Poison Pill method is an attack-agnostic pipeline that can be applied to various existing poisoning attacks. It consists of three primary stages:

  1. Pill Construction: The attacker identifies a "pill"—a tiny subnetwork (often just one neuron or channel per layer) within the global model. A dynamic "approximate max pill search" algorithm finds the most influential parameters based on weight magnitude.
  2. Pill Poisoning: A standard poisoning attack (e.g., Sign-Flipping or Min-Max) is applied only to the parameters within the identified pill, keeping the overall attack volume low.
  3. Pill Injection: The attacker blends the poisoned pill into an update that mimics a benign client. This involves a two-step adjustment process—balancing cosine similarity and Euclidean distance—to ensure the final update is statistically indistinguishable from legitimate ones.
Overview of the Poison Pill framework: Construction, Poisoning, and Injection.

Experimental Setup

The framework was evaluated on three standard benchmarks: MNIST, Fashion-MNIST, and CIFAR-10. The researchers tested across both IID and non-IID data distributions, as well as in cross-silo and cross-device FL environments. The method was tested against 9 aggregation rules, including SOTA defenses like FLTrust, Multi-Krum, Bulyan, and Flame, and 4 baseline attacks.

Results and Analysis

The "Poison Pill" method demonstrated significant effectiveness in bypassing defenses and degrading model performance:

  • Bypassing Defenses: Attacks enhanced by the "Pill" bypassed defenses in over 90% of tested cases.
  • Performance Degradation: On Fashion-MNIST, the method increased the model error rate by an average of 2x, with some scenarios reaching a 7x increase compared to non-augmented attacks.
  • Stealthiness: Distance score analysis reveals that malicious updates using the "Pill" method remain statistically close to benign updates. While original attacks often show a sharp spike in distance scores (indicating detection), Pill-enhanced attacks overlap significantly with the "normal" range of benign updates.
Distance score analysis comparing benign updates with original and Pill-enhanced attacks.

Key insights include the discovery that model redundancy acts as a security hole. Attackers only need to compromise approximately 0.1% of the model to cause significant damage. Furthermore, a "heterogeneous-width" pill blueprint—narrow in early layers but matching output classes in the final layers—was found to be most effective.

Discussion and Conclusion

While the "Pill" search adds some computational overhead, it remains efficient for attackers. The results highlight a "cat-and-mouse" game in FL security. Current defenses, which rely on global update statistics, are insufficient against surgical subnetwork attacks.

Future work should focus on "fine-grained" FL security that accounts for parameter importance rather than treating model updates as monolithic blocks. This study exposes critical flaws in current robust aggregation rules and underscores the need for more sophisticated, parameter-aware defense mechanisms in federated learning systems.

Summary updated

BibTeX
@inproceedings{guo2026poisoning,
  author = {Hanxi Guo and Hao Henry Wang and Tao Song and Tianhang Zheng and Yang Hua and Haibing Guan and Xiangyu Zhang},
  title = {{Poisoning with a Pill: Circumventing Detection in Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i26.39290},
}
Figure