Coward: Toward Practical Proactive Federated Backdoor Defense via Collision-based Watermark

Wenjie Li, Siying Gu, Yiming Li, Kangjie Chen, Zhili Chen, Tianwei Zhang, Shu-Tao Xia, Dacheng TaoarXiv 2025 · DOI · arXiv

Abstract

Federated Learning (FL) is vulnerable to backdoor attacks where malicious clients inject triggers into the global model. Existing passive defenses struggle with data heterogeneity (non-i.i.d. data), while proactive defenses are often misled by Out-of-Distribution (OOD) bias. We present Coward (Collision-based Watermark for Proactive Federated Backdoor Detection), a novel defense that leverages the "multi-backdoor collision effect." Instead of detecting the presence of an attacker's pattern, Coward identifies malicious clients who inadvertently erase a server-injected forensic watermark while planting their own backdoors. Experimental results show Coward achieves nearly 100% detection rates with significantly lower false positives than state-of-the-art methods.

Introduction

Federated Learning (FL) enables collaborative model training without centralizing private data. However, this decentralized nature allows malicious participants to perform poisoning attacks, specifically injecting "backdoors" that cause the model to misclassify specific inputs containing a trigger.

Current defenses are categorized into passive and proactive approaches. Passive defenses attempt to identify attackers by treating their model updates as statistical outliers. However, in real-world scenarios with non-i.i.d. (non-independent and identically distributed) data, honest updates often appear as outliers due to local data skewness, leading to high false-positive rates.

Analysis of non-i.i.d. data distributions and their impact on model gradients.

Proactive defenses involve the server injecting specific patterns to monitor client behavior. However, these methods suffer from Out-of-Distribution (OOD) bias, where deep neural networks naturally assign high confidence to unrelated data. This bias causes benign clients to appear as if they are preserving the server's pattern, resulting in misjudgment.

The Coward Framework

Coward introduces a paradigm shift by exploiting the multi-backdoor collision effect. Empirical evidence suggests that when a model is optimized to learn a new backdoor, it tends to suppress or "collide" with existing ones. Coward uses this to its advantage: it flags clients who lose a server-injected watermark rather than those who gain a pattern.

The workflow consists of three main stages:

  1. Watermark Injection: The server injects a forensic watermark into the global model using OOD data (e.g., EMNIST letters for a CIFAR-10 task). This includes a "base mapping" to stabilize the OOD space and a "targeted watermark mapping."
  2. Client Interaction: Clients train locally. Benign clients preserve the watermark. Malicious clients, while injecting their own backdoor, accidentally trigger the collision effect, erasing the server's watermark.
  3. Detection: Upon receiving updates, the server evaluates each model's accuracy on the watermark. Models with significantly degraded watermark performance are excluded.

To ensure the watermark does not interfere with the primary task, Coward employs BatchNorm (BN) switching, isolating task-specific statistics from the OOD space.

Experimental Evaluation

Coward was evaluated on CIFAR-10 and CIFAR-100 datasets using EMNIST as OOD data. Key findings include:

  • High Precision: Coward achieved a True Positive Rate (TPR) of nearly 100% across various attack scenarios.
  • Robustness to Heterogeneity: Unlike previous proactive methods, Coward maintained a False Positive Rate (FPR) below 10.5%, even in extreme non-i.i.d. settings where competitors reached 50% FPR.
  • Stealth Resistance: The defense remained effective against advanced attacks like Neurotoxin and Chameleon.
  • Adaptive Attack Resilience: Even if attackers attempt to preserve the server's watermark (a "guessing attack"), the interference between multiple watermarks still allows for detection.

Conclusion

Coward represents a significant step toward practical proactive defense in FL. By inverting the detection logic to focus on watermark erasure, it effectively mitigates the impact of OOD bias and data heterogeneity. Future work will explore sample-specific watermarks and dynamic rotation strategies to further enhance security against evolving adaptive threats.

Summary updated

Abstract

Backdoor detection is currently the mainstream defense against backdoor attacks in federated learning (FL), where a small number of malicious clients can upload poisoned updates to compromise the federated global model. Existing backdoor detection techniques fall into two categories, passive and proactive, depending on whether the server proactively intervenes in the training process. However, both of them have practical limitations: passive detection methods are disrupted by common non-i.i.d. data distributions and random participation of FL clients, whereas current proactive detection methods are misled by an inevitable out-of-distribution (OOD) bias because they rely on backdoor coexistence effects. To address these issues, we introduce a novel proactive detection method dubbed Coward, inspired by our discovery of multi-backdoor collision effects, in which consecutively planted, distinct backdoors significantly suppress earlier ones. Correspondingly, we modify the federated global model by injecting a carefully designed backdoor-collided watermark, implemented via regulated dual-mapping learning on OOD data. This design not only enables an inverted detection paradigm compared to existing proactive methods, thereby naturally counteracting the adverse impact of OOD prediction bias, but also introduces a low-disruptive training intervention that inherently limits the strength of OOD bias, leading to significantly fewer misjudgments. Extensive experiments on benchmark datasets show that Coward achieves state-of-the-art performance and effectively alleviates OOD bias.
BibTeX
@misc{li2025coward,
  author = {Wenjie Li and Siying Gu and Yiming Li and Kangjie Chen and Zhili Chen and Tianwei Zhang and Shu-Tao Xia and Dacheng Tao},
  title = {{Coward: Toward Practical Proactive Federated Backdoor Defense via Collision-based Watermark}},
  year = {2025},
  eprint = {2508.02115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02115},
}
Figure