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

Poisoning with A Pill: Circumventing Detection in Federated Learning

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

Abstract

Federated Learning (FL) enables collaborative model training without sharing raw data, yet its distributed architecture remains susceptible to poisoning attacks. Traditional defenses detect these attacks by identifying statistical anomalies in model updates. This paper presents a novel attack augmentation method, "Poisoning with a Pill," which targets a minimal, strategically selected sub-network—the "pill." By concentrating malicious updates within this sub-network and employing sophisticated adjustment techniques, attackers can bypass state-of-the-art defenses while significantly degrading model performance.

Introduction: The Vulnerability of Distributed Learning

Federated Learning (FL) is designed to provide privacy by keeping data on local devices. However, this decentralization allows malicious clients to submit "poisoned" updates intended to corrupt the global model. Current defenses, such as Krum, FLTrust, and Bulyan, rely on the assumption that malicious updates will appear as statistical outliers because they typically manipulate the entire model. These "loud" attacks are relatively easy to filter. The core challenge addressed here is whether a more surgical, stealthy approach can circumvent these robust defenses.

The "Pill" Attack Framework

The researchers propose a three-stage pipeline to augment existing poisoning attacks (e.g., sign-flipping or Trim attacks), making them both more effective and harder to detect.

Overview of the "Poisoning with a Pill" attack pipeline, showing construction, poisoning, and injection stages.

1. Pill Construction

The attacker identifies a "pill"—a tiny sub-network consisting of approximately one neuron or channel per layer. Using an "approximate max pill search" algorithm, the attacker finds the parameters with the highest influence on the current global model.

Detailed steps of the Pill Construction process, including layer-wise searching and mask construction.

2. Pill Poisoning

Instead of applying poisoning techniques to the whole model, the attacker targets only the parameters within the identified pill. This concentrates the malicious impact on the most critical parts of the network architecture.

3. Pill Injection and Stealth Adjustment

The poisoned pill is integrated into a benign-looking update. To evade detection, the update undergoes two adjustments:

  • Similarity-based Adjustment: Maximizes cosine similarity with the server's expected update.
  • Distance-based Adjustment: Ensures the Euclidean distance remains within the range of normal, benign updates.

Experimental Evaluation

The method was evaluated using standard benchmarks: MNIST, Fashion-MNIST, and CIFAR-10. Tests covered both IID and non-IID data distributions across cross-silo and cross-device FL configurations.

Key Results

  • Defense Circumvention: The "Pill" method successfully bypassed all nine tested baseline defenses, including FedAvg, FLTrust, Multi-Krum, Bulyan, and Flame.
  • Increased Impact: The method increased model error rates by an average of 2x, reaching up to 7x in specific scenarios compared to non-augmented attacks.
  • High Stealth: Statistical visualizations confirmed that "Pill" updates are virtually indistinguishable from benign updates, rendering global anomaly detection ineffective.

Insights and Future Directions

The success of the "Pill" method highlights a fundamental flaw in current FL security: defenses focus on global statistical features ("the forest") while overlooking surgical manipulations of critical sub-networks ("the poisoned tree"). Even an adaptive defense, DSTrust, failed to reliably catch these targeted updates.

Future research must shift toward fine-grained analysis of parameter roles within neural networks. While computationally demanding, such an approach is necessary to defend against surgical poisoning attempts that exploit model redundancy and critical path influence.

Summary updated

BibTeX
@inproceedings{guo2026poisoning,
  author = {Hanxi Guo and Hao 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