Abstract
Federated learning (FL) for embedding networks faces a significant hurdle when data is extremely non-IID, such as when each client possesses data from only a single class (e.g., biometric security). Effective embedding requires negative samples to learn discriminative features, but sharing class prototypes to serve as these anchors exposes users to privacy risks like gradient inversion attacks. We introduce FedHide, a framework that protects privacy by sharing "proxy" prototypes generated through a "hiding in the neighbors" strategy. By blending a client's true prototype with its nearest neighbors in the embedding space, FedHide enables robust discriminative learning while maintaining high utility and providing a strong defense against data reconstruction.
Introduction
In biometric applications like face or voice recognition, embedding models map high-dimensional data into a space where similar identities are clustered and different ones are separated. Training these models typically requires centralized datasets. While Federated Learning (FL) allows for decentralized training, it struggles with "one-class-per-client" scenarios. Without seeing "others," a local model cannot learn to push different classes apart.
The Challenge: Privacy vs. Discriminative Learning
To address the lack of negative samples, standard FL approaches share class "prototypes"—the average embedding of a class—with a central server. However, these prototypes are vulnerable. Attackers can use gradient inversion to reconstruct recognizable images from shared prototypes. The challenge lies in providing enough information for contrastive learning without compromising the privacy of the underlying data.
Methodology: FedHide
FedHide addresses this by introducing the Proxy Class Prototype. Instead of sharing the true center of their data ($w_c$), clients generate and share a "decoy" proxy ($\bar{w}_c$).
Proxy Prototype Generation
The core innovation is the "Hiding in the Neighbors" mechanism. To generate a proxy, a client performs the following steps:
- Find Neighbors: The client identifies the $K$-nearest neighbors among prototypes shared by other clients in previous rounds.
- Linear Combination: The proxy is created as a weighted average: $$\bar{w}_c = \alpha \cdot w_c + (1-\alpha) \cdot \text{Average}(\text{Neighbors})$$
- Privacy Tuning: The parameter $\alpha$ serves as a "privacy knob." A lower $\alpha$ moves the prototype closer to the "crowd," increasing privacy at a potential cost to accuracy.
Contrastive Learning
Clients utilize a contrastive loss function that pulls local data toward their own prototype (intra-class) while pushing it away from the shared proxies of other clients (inter-class). This ensures the model learns a discriminative embedding space even with limited local diversity.
Experimental Results
FedHide was evaluated on CIFAR-100, VoxCeleb1, and VGGFace2, where each client represented a unique identity.
- Utility and Privacy: On CIFAR-100, FedHide achieved approximately 58% accuracy with only 4% prototype leakage. In comparison, the baseline FedAwS (sharing true prototypes) suffered 100% leakage for similar accuracy.
- Visual Defense: Reconstruction attacks on FedHide proxies resulted in unrecognizable noise, whereas unprotected prototypes allowed for clear reconstruction of the original objects.
- Performance: On the VGGFace2 dataset, FedHide achieved an Equal Error Rate (EER) of 10.4%, outperforming noise-based (FedGN) and random-selection (FedCS) methods.
Conclusion
FedHide demonstrates that "blending" prototypes with neighbors is superior to "blurring" them with noise. By moving prototypes toward existing neighbors, the negative signals remain mathematically plausible, allowing for efficient convergence. While future work includes developing formal Differential Privacy guarantees and adaptive defense mechanisms, FedHide represents a significant step forward in private, decentralized biometric model training.
Summary updated