Shielding Collaborative Learning: Mitigating Poisoning Attacks Through Client-Side Detection

Lingchen Zhao, Shengshan Hu, Qian Wang, Jianlin Jiang, Chao Shen, Xiangyang Luo, Pengfei Hu · DOI

TL;DR

This paper introduces a novel client-side detection mechanism to safeguard collaborative learning against poisoning attacks. By having clients cross-validate each other's model updates, the system can effectively identify and mitigate malicious contributions, even in challenging non-IID data distributions, while also preserving client-level privacy.

What Problem Does This Paper Address?

Collaborative learning allows multiple clients to train a shared model without revealing their private data. This is highly beneficial for applications like federated learning on user devices. However, this decentralized nature creates a vulnerability: malicious clients can submit poisoned model updates to subtly corrupt the global model, often by introducing a "backdoor" that only affects specific inputs while maintaining good performance on the main task. Existing defense mechanisms struggle with these sophisticated attacks, especially when client data is not identically and independently distributed (non-IID). The challenge is to detect these poisoned updates without direct access to client data and while maintaining privacy.

Methods

The core innovation is client-side cross-validation. Instead of the server trying to detect anomalies, it delegates this task to the clients themselves. Here's how it works:

  • Delegated Detection: The server sends model updates (or aggregated "sub-models" to reduce communication overhead) to a subset of clients. These clients then evaluate the performance of these sub-models on their own local data.
  • IID Setting: In the ideal IID scenario, clients can directly evaluate updates. The server uses these evaluations to adjust the weights of updates during aggregation, down-weighting suspicious ones.
  • Non-IID Setting: To handle imbalanced data distributions, a dynamic client allocation mechanism is introduced. Clients report their data class distributions, allowing the server to assign sub-models for evaluation to clients who have sufficient data for those specific classes. This ensures that evaluations are meaningful even when data is highly skewed.
  • Privacy Protection: Differential privacy is integrated to protect client-level privacy. This means that even if a malicious client tries to infer which other clients participated in the detection process, their identity remains obscured. This is achieved by adding carefully calibrated noise to the sub-models before they are sent for evaluation.
  • Penalization Mechanism: Instead of outright discarding potentially poisoned updates, the system uses a penalizing coefficient. This coefficient, determined by the number of clients reporting an anomaly, reduces the weight of suspicious updates during aggregation, allowing the system to be more robust to false positives and less disruptive to honest clients.

Datasets

The paper evaluates its proposed scheme on three standard datasets:

  • MNIST: A well-known handwritten digit dataset, used for evaluating label-flipping attacks.
  • KDDCup: A dataset used for network intrusion detection, also used for evaluating label-flipping attacks.
  • CIFAR-10: A dataset of 32x32 color images in 10 classes, used for evaluating semantic backdoor attacks.

The authors note that these datasets are standard benchmarks for the types of attacks they investigate.

Key Insights and Ideas

  • Shifting Detection to the Edge: The most significant insight is moving the detection burden from the central server to the clients. This is a natural fit for collaborative learning, as clients possess the local data needed for validation.
  • Sub-models for Efficiency: Aggregating multiple updates into "sub-models" before client evaluation is crucial for managing communication and computation costs, making the system scalable.
  • Dynamic Allocation for Non-IID: The adaptive client selection strategy for non-IID data is key to ensuring that evaluations are relevant and effective, overcoming a major hurdle in federated learning defenses.
  • Privacy-Preserving Evaluation: Integrating differential privacy not only protects client identities but also demonstrates that privacy guarantees can coexist with robust attack detection.
  • Penalization over Exclusion: Using a penalizing coefficient rather than outright discarding updates offers a more nuanced approach, balancing detection with the need for model convergence and robustness.

Key Results

  • The proposed scheme is shown to be significantly robust to two representative poisoning attacks: label-flipping and semantic backdoor attacks.
  • The method maintains effectiveness in both IID and non-IID settings.
  • Experimental results indicate that the scheme can detect poisoned updates with high probability while causing a negligible impact on the accuracy of the global model.
  • The effectiveness of the attack is shown to decrease significantly as the size of the sub-model increases (more honest updates) and as the number of poisoned updates increases within a sub-model.
  • The paper demonstrates that client-level privacy protection (via differential privacy) has a negligible impact on detection accuracy when noise variance is kept low.

Limitations and Future Work

  • Assumption of Honest Clients: The defense relies on the existence of honest clients with sufficient data to perform reliable evaluations. If a large proportion of clients are malicious, the detection results themselves could be compromised. The paper investigates this by showing that even with a proportion of malicious clients, the detection probability remains significant.
  • Trade-off between Privacy and Detection: The paper acknowledges a trade-off between the granularity of sub-models (smaller sub-models offer better detection but potentially weaker privacy) and the privacy guarantee.
  • Computational and Communication Costs: While the scheme is designed to be efficient, the paper notes that the main limitations are the computation costs for clients to test updates and the communication costs for transmitting sub-models. They quantify these costs and deem them practical.
  • Future Work: The paper suggests that their framework can be combined with other defense solutions (e.g., those detecting sybil attacks or using cosine similarity) to further enhance robustness. They also highlight the need to further explore the privacy-detection trade-off.

Summary updated

BibTeX
@article{zhao2019shielding,
  author = {Lingchen Zhao and Shengshan Hu and Qian Wang and Jianlin Jiang and Chao Shen and Xiangyang Luo and Pengfei Hu},
  title = {{Shielding Collaborative Learning: Mitigating Poisoning Attacks Through Client-Side Detection}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2019},
  doi = {10.1109/tdsc.2020.2986205},
}
Figure