Nanyang Technological University
Attack and defense in collaborative machine learning systems
Abstract
dc:description.abstractMachine Learning (ML) has become widely integrated into human society nowadays, attributed to advancements in ML algorithms, the vast amount of data generated by digital activities and the availability of powerful computing resources. As the amount of data increases, individuals and governments across the globe start to pay attention to the importance of data privacy. This results in multiple privacy regulations committed to prevent unauthorized usage of personal data, which inevitably restricts access to high-quality data needed to train more intelligent and accurate ML models and slows down artificial intelligence advancements. To circumvent the limitations of traditional, centralized ML in handling private data, Federated Learning (FL) is gaining traction as a powerful collaborative ML approach. FL, which enables multiple collaborating parties to train a joint ML model without exchanging their private raw data, finds application in privacy-critical fields like finance, healthcare and recommendation systems. In the era of foundation models (FMs), FL also flourishes in creating adaptable domain-specific FMs by collaborative learning from diverse and private datasets. Though promising, FL still faces critical vulnerabilities in both privacy and security. Privacy risks arise because the exchange of model updates may inadvertently reveal sensitive characteristics or even facilitate the reconstruction of raw training data. On the other hand, the collaborative nature of FL makes it vulnerable to security threats, where compromised participants can deliberately manipulate shared updates to undermine the global model. This thesis focuses on addressing the privacy and security problems within the contexts of horizontal FL (HFL) and vertical FL (VFL), where participants in HFL share common features and those in VFL share common sample entities. In HFL, privacy is commonly protected through homomorphic encryption, secure multi-party computation, or perturbation-based techniques. However, while the first two solutions incur heavy computational and communication costs, the latter often degrades model accuracy due to added noise. In defending against poisoning attacks, anomaly detection and filtering are widely adopted by examining model updates or activations, but these methods become ineffective once updates are encrypted or perturbed for privacy. As a result, current solutions address privacy and security largely in isolation, creating a gap where a unified framework that effectively balances both without hindering efficiency or performance is lacking. There is a need to close this gap by solutions that adapt well to the complex technological landscape. In VFL, the active party holds labels while passive parties provide complementary features, making label information a prime privacy target. Attacks such as label inference and adversarial embedding manipulation have shown that malicious participants can bias or control model outputs. More recent poisoning-based attacks attempt to embed triggers or inject poisoned samples, but their effectiveness is limited by weak trigger associations or dilution from benign data. This highlights an open challenge in developing more practical and stealthier VFL attacks, which is essential for fully evaluating and improving VFL security. To address these challenges, this thesis first conducts a literature review on the attacks and defenses of HFL and VFL systems by systematizing existing works according to their general principles. This is followed by three original contributions, covering topics of evaluation of robustness of knowledge distillation (KD) based HFL algorithms against targeted poisoning attacks, a novel self-purified HFL algorithm leveraging attention-based self-distillation technique, and a practical and effective hijacking attack against VFL enhanced by self-supervised learning. The first contribution investigates the potential of KD to enhance robustness in FL through an evaluation of seven state-of-the-art KD-based algorithms against targeted poisoning attacks on vision recognition tasks. It is observed that algorithms employing logits-sharing or local co-distillation exhibit strong resilience, even without being explicitly designed for defense, whereas KD regularization provides limited or even adverse effects under full parameter sharing. A security-utility trade-off is further identified, determined by the nature of knowledge transfer, and insights are provided into how KD can inform the balance among security, privacy, and efficiency in FL. The second contribution presents a self-purified HFL (SPFL) algorithm to defend against targeted poisoning attack. In SPFL, benign clients rely on purified historical knowledge to supervise the global model across training rounds. This is achieved through an attention-guided self-distillation process that jointly optimizes task, distillation, and attention-based objectives, enabling local purification without additional assumptions on the server. SPFL operates independently of the underlying aggregation protocol, making it easily compatible with existing secure aggregation schemes. Extensive experiments show that SPFL consistently achieves the lowest attack success rates across a variety of poisoning scenarios, while simultaneously improving accuracy on benign data compared to the baseline FedAvg. The third contribution involves a hijacking attack framework, HASSLE, against VFL systems. HASSLE combines a gradient-direction-based label inference module with an adversarial embedding generation algorithm enhanced by self-supervised learning. By formally analyzing the relationship between gradient directions and sample labels, private samples of a targeted label could be precisely identified using only a single known instance. Adversarial embeddings were then iteratively optimized with the returned gradients and substituted for target-label embeddings during training, driving predictions toward attacker-specified outputs. Self-supervised initialization of the attacker's bottom model further increased feature saliency and strengthened its impact on the VFL model. Experiments on five datasets, spanning image and tabular tasks, showed that HASSLE achieved 100\% label inference precision and over 85\% attack success rate in two-party VFL, including more than 99\% ASR on four datasets and strong results on CIFAR-100. Sensitivity analyses confirmed its stable performance under different hyperparameters, and its robustness was demonstrated against eight defense strategies.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- He, Weiyang
- Advisor dc:contributor.supervisor
-
- Chang Chip Hong
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/10356/210722