Federated Learning of User Authentication Models

Hossein Hosseini, Sungrack Yun, Hyunsin Park, Christos Louizos, Joseph Soriaga, Max WellingarXiv 2020

Abstract

User authentication (UA) on smart devices typically requires mapping biometric inputs to unique embeddings. Traditional centralized training and standard Federated Learning (FL) approaches often compromise user privacy by exposing raw data or identity signatures to a central server. We present Federated User Authentication (FedUA), a framework that enables joint training of authentication models without sharing sensitive information. By employing user-generated random binary vectors as target embeddings, FedUA ensures high security and scalability. Evaluation on the VoxCeleb dataset shows that FedUA achieves a False Positive Rate (FPR) of 0.16% for unseen imposters while maintaining a fixed model architecture regardless of the user base size.

Introduction

Modern user authentication systems, such as voice or face ID, rely on deep learning models to map biometric inputs into a high-dimensional embedding space. For effective authentication, the model must ensure that embeddings for different users are well-separated. However, traditional training methods face significant privacy hurdles. Uploading raw biometric data to a central server is a major privacy risk. Even in standard Federated Learning, where data remains local, the server typically assigns unique identifiers or "one-hot" vectors to users. This centralized identity management allows the server to potentially perform poisoning or evasion attacks and creates scalability issues as the output layer grows linearly with the number of users.

Methodology

FedUA addresses these challenges by decentralizing the identity assignment process. Instead of a server-assigned ID, each user locally generates a random binary vector of length $n_e$ to serve as their private identity signature.

Random Binary Embeddings

In high-dimensional spaces, random vectors are statistically likely to be nearly orthogonal, ensuring high Hamming distance between different users without central coordination. This allows for "zero coordination" where new users can join the system at any time by simply generating their own bitstring.

Model Architecture

The system utilizes a 1D Convolutional Neural Network (CNN) to process biometric signals. The architecture is designed to map input sequences to the fixed-length embedding $n_e$.

Table 1: Architecture of the 1D-CNN used for speaker verification in FedUA.

As shown in Table 1, the model consists of several convolutional blocks followed by a flattening layer and a fully connected layer that outputs a vector of size $n_e$. A sigmoid activation function is applied to the final output to match the binary nature of the target embeddings.

Training and Calibration

Users train the model using a correlation loss function that maximizes the alignment between the model's output and their private random vector. Training follows the Federated Averaging (FedAvg) protocol, where only model weight updates are shared with the server. To account for variations in user data, FedUA includes a local "warm-up" phase where each device determines its own optimal distance threshold to achieve a target True Positive Rate (TPR).

Experimental Setup

The framework was evaluated using the VoxCeleb dataset, a benchmark for speaker identification. The study utilized data from 658 speakers, each providing at least 20 samples. The model was trained on a subset of users and tested against both known users and "new" users (unseen during training) to evaluate its ability to reject imposters.

Results

Experiments demonstrated that FedUA is highly effective at distinguishing between authorized users and imposters.

  • Accuracy and Scalability: With an embedding length ($n_e$) of 512, the system achieved an FPR of 0.16% at an 80% TPR. Performance improved as $n_e$ increased, confirming the benefits of higher dimensionality for user separation.
  • Robustness: The model successfully generalized features of human speech, reliably rejecting unseen users without having been explicitly trained on their data.
  • Efficiency: Because the output layer size $n_e$ is fixed, the model remains computationally efficient even as the number of users scales to millions.

Discussion and Conclusion

FedUA provides a scalable and privacy-preserving alternative to traditional user authentication. By shifting identity management to the user via random binary embeddings, it mitigates risks associated with centralized identity tracking. While the current implementation focuses on voice verification, the principles are applicable to other biometric modalities. Future work may explore adaptive embeddings to better reflect data distributions and the integration of Differential Privacy to further protect against gradient leakage attacks.

Summary updated

BibTeX
@misc{hosseini2020federated,
  author = {Hossein Hosseini and Sungrack Yun and Hyunsin Park and Christos Louizos and Joseph Soriaga and Max Welling},
  title = {{Federated Learning of User Authentication Models}},
  year = {2020},
  eprint = {2007.04618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.04618},
}
Figure