Federated Singular Vector Decomposition

Di Chai, Leye Wang, Lianzhi Fu, Junxue Zhang, Kai Chen, Qiang Yang

Introduction

Singular Vector Decomposition (SVD) is a cornerstone of modern data science, powering algorithms for Principal Component Analysis (PCA), recommendation systems, and latent semantic analysis. Traditionally, SVD requires centralized access to data. However, in an era of strict privacy regulations like GDPR, centralizing sensitive datasets is often prohibited or legally risky.

Existing Federated SVD approaches face a significant "privacy-utility" trade-off. Differential Privacy (DP) methods introduce random noise that degrades accuracy, while Homomorphic Encryption (HE) methods, though accurate, are computationally prohibitive—potentially taking years to process moderately sized datasets. FedSVD breaks this dilemma by introducing a lossless, highly efficient framework capable of handling billion-scale datasets.

The FedSVD Framework: Lossless Matrix Masking

The technical core of FedSVD is a novel matrix masking scheme. Instead of adding noise or encrypting values, the framework masks the private data matrix $X$ using two random orthogonal matrices, $P$ and $Q$, resulting in a masked matrix $X' = PXQ$.

The four-stage workflow of FedSVD: Initialization, Masking, SVD computation, and Mask Removal.

Because $P$ and $Q$ are orthogonal, they preserve the singular values of the original matrix. A Computation Service Provider (CSP) performs standard SVD on $X'$, and the users subsequently "unmask" the results locally to retrieve the exact singular vectors. This approach ensures that the CSP never sees the raw data, while the final output remains mathematically identical to a centralized SVD.

Scaling to Billions of Elements

To move from theoretical masking to practical "billion-scale" performance, the authors implemented several critical system-level optimizations:

  • Block-based Masking: Generating large random orthogonal matrices is typically $O(n^3)$. FedSVD uses a block-diagonal structure to reduce this complexity to $O(n)$, making it feasible for massive matrices.
  • Mini-batch Secure Aggregation: To protect individual user data during the masking phase, the system employs secure aggregation in small batches, optimizing memory usage.
  • Custom Disk Offloading: Billion-scale matrices (e.g., 100K x 1M) can exceed 700GB, far surpassing typical RAM capacities. The authors developed a disk-loading strategy tailored to SVD's data access patterns, outperforming standard OS swap memory by nearly 45%.

Key Results

The researchers evaluated FedSVD against standard benchmarks (MNIST, MovieLens) and synthetic datasets scaled to 100 billion elements.

Unrivaled Accuracy

Unlike DP-based methods where accuracy drops as privacy ($\epsilon$) increases, FedSVD is truly lossless. Its projection distance error is approximately 10 orders of magnitude lower than DP methods, limited only by standard computer floating-point precision.

Accuracy comparison: FedSVD maintains near-zero projection distance (lossless) compared to Differential Privacy (DP) methods.

Massive Speedups

FedSVD demonstrates a 10,000x speedup over encryption-based methods. A computation that would take 15.1 years using Homomorphic Encryption is completed by FedSVD in just 16 hours. Furthermore, in practical applications like Federated Linear Regression, FedSVD outperformed established frameworks like FATE and SecureML by 10x to 100x.

Conclusion

FedSVD represents a significant leap in privacy-preserving machine learning. By leveraging the mathematical properties of orthogonal matrices rather than noise or heavy encryption, it provides a scalable, lossless solution for distributed SVD. While the current model assumes a semi-honest environment and requires a Trusted Authority for initial setup, it sets a new standard for high-performance federated analytics on a global scale.

Summary updated

BibTeX
@inproceedings{chai2022federated,
  author = {Di Chai and Leye Wang and Lianzhi Fu and Junxue Zhang and Kai Chen and Qiang Yang},
  title = {{Federated Singular Vector Decomposition}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539402},
}
Figure