Abstract: Federated Learning is expected to provide strong privacy guarantees, as only gradients or model parameters but no plain text training data is ever exchanged either between the clients or between the clients and the central server. In this paper, we challenge this claim by introducing a simple but still very effective membership inference attack algorithm, which relies only on a single training step. In contrast to the popular honest-but-curious model, we investigate a framework with a dishonest central server. Our strategy is applicable to models with ReLU activations and uses the properties of this activation function to achieve perfect accuracy. Empirical evaluation on visual classification tasks with MNIST, CIFAR10, CIFAR100 and CelebA datasets show that our method provides perfect accuracy in identifying one sample in a training set with thousands of samples. Occasional failures of our method lead us to discover duplicate images in the CIFAR100 and CelebA datasets.
Introduction
Federated Learning (FL) has gained significant traction as a "privacy-first" machine learning paradigm. By ensuring that raw training data remains on the user's device and only model updates (gradients or parameters) are shared with a central server, FL aims to mitigate the risks associated with centralized data collection. However, this paper demonstrates that the privacy guarantees of FL are more fragile than previously assumed, particularly when facing a dishonest central server.
While most existing research focuses on the "honest-but-curious" threat model—where the server follows the protocol but attempts to infer information from legitimate updates—this work explores a more aggressive adversary. A dishonest server can manipulate the model parameters it sends to clients, effectively setting a "trap" to determine if a specific, sensitive data point exists in a client's local dataset.
The Attack Mechanism
The proposed attack leverages the mathematical properties of the Rectified Linear Unit (ReLU) activation function, which is ubiquitous in modern deep learning architectures. The server crafts a specific set of model parameters ($\theta$) that embeds a tiny identification sub-network within the global model.
The sub-network is designed such that its output and its gradient are zero for almost all possible inputs, except for a very narrow window centered on the features of the target image. When the client performs a single training step (e.g., using FedAvg or FedSGD) with these poisoned parameters, the gradient of a specific parameter, denoted as $\epsilon$, acts as a binary indicator. If the target image is present, the gradient for $\epsilon$ will be non-zero; if absent, it remains zero. This allows the server to achieve perfect membership inference with a single communication round.
Experimental Evaluation
The effectiveness of the attack was rigorously evaluated using four standard computer vision benchmarks: MNIST, CIFAR10, CIFAR100, and CelebA. Across all datasets, the attack achieved 100% accuracy in identifying target samples, even when those samples were hidden among thousands of other images in the client's local set.
The method proved remarkably robust, maintaining perfect accuracy regardless of the client's choice of optimizer (e.g., standard SGD vs. Adam). Furthermore, the attack's performance did not degrade as the local dataset size ($N$) increased, successfully identifying targets in sets of over 8,000 samples. Unlike previous reconstruction-based attacks, this method is computationally efficient for the attacker and requires no auxiliary training data.
Dataset Integrity and Duplicates
A compelling finding of this research was the discovery of undocumented duplicate images in widely used datasets. During evaluation, the method occasionally produced what appeared to be false positives. Upon closer inspection, the authors found that these were not errors in the attack, but rather instances where the "different" images in the dataset were actually pixel-perfect duplicates.
The attack was so precise that it flagged these duplicates as the target image. This investigation revealed 14 exact duplicates in CIFAR100 and 82 in CelebA. This discovery underscores the sensitivity of the ReLU-based trap and highlights potential issues in the curation of standard machine learning benchmarks.
Conclusion and Future Work
This paper presents a significant challenge to the perceived privacy of Federated Learning. By exploiting ReLU activations, a dishonest server can bypass traditional privacy assumptions with minimal effort.
However, the attack has limitations. It currently requires the server to have knowledge of the client's training hyperparameters and assumes a model architecture with at least two layers and ReLU activations. Future research could explore how to adapt these "traps" for other activation functions or how clients might detect such malicious parameters. While defensive measures like Differential Privacy (DP) could mitigate the threat by adding noise to the gradients, they often involve a trade-off with model performance, leaving the door open for more sophisticated, stealthy attacks.
Summary updated