Privacy-Preserving Distributed Nonnegative Matrix Factorization

Ehsan Lari, Reza Arablouei, Stefan Werner · DOI

Abstract

Nonnegative Matrix Factorization (NMF) is a fundamental tool for parts-based representation and dimensionality reduction. However, applying NMF to distributed datasets in ad-hoc networks—such as healthcare or IoT environments—poses significant privacy risks, as intermediate updates can leak sensitive local data. This paper introduces PPDNMF, a novel algorithm that integrates the Paillier cryptosystem with the Alternating Direction Method of Multipliers (ADMM) and Block Coordinate Descent (BCD). By utilizing additive homomorphic encryption and a unique decoupled penalty parameter scheme, PPDNMF enables agents to collaboratively learn global features without exposing raw data or local estimates. Experimental results on synthetic and real-world face datasets demonstrate that PPDNMF achieves performance parity with centralized NMF while maintaining data confidentiality.

1. Introduction

Nonnegative Matrix Factorization (NMF) has become a staple in machine learning for its ability to decompose complex datasets into interpretable, parts-based representations. Unlike Principal Component Analysis (PCA), NMF’s nonnegativity constraints ensure that the resulting factors are additive, making it ideal for tasks such as facial feature extraction, document clustering, and hyperspectral imaging.

In the era of distributed computing, data is frequently siloed across multiple agents in an ad-hoc network. While distributed NMF algorithms exist, they typically require agents to exchange local factor estimates with neighbors. In privacy-sensitive domains—such as hospitals sharing patient records or smart grids sharing usage patterns—these exchanges can be exploited to reconstruct the original sensitive data. This paper addresses the critical challenge of performing collaborative NMF without compromising the privacy of local datasets.

2. Methodology

The proposed PPDNMF algorithm leverages three primary mathematical frameworks to balance optimization efficiency with data security.

2.1 Optimization Framework

The algorithm utilizes Block Coordinate Descent (BCD) to alternate between updating the global feature matrix (the "left" factor) and the local coefficient matrices (the "right" factor). To achieve consensus across the network, the authors employ the Alternating Direction Method of Multipliers (ADMM). ADMM allows agents to iteratively update their local estimates of the global features until the entire network converges on a unified representation.

2.2 Privacy via Homomorphic Encryption

To secure the communication between agents, PPDNMF incorporates the Paillier cryptosystem. Paillier is an asymmetric encryption scheme characterized by its additive homomorphic properties, allowing agents to perform additions on encrypted values without decryption.

A significant innovation in this work is the use of decoupled penalty parameters. In standard ADMM, a shared penalty parameter $\rho$ is used. PPDNMF decomposes this into secret, edge-specific components ($g_{i \to j}$). This ensures that even if an agent is "honest-but-curious," they cannot isolate their neighbor's private information from the encrypted messages, as they lack the specific components required to reverse-engineer the local data from the consensus updates.

2.3 Quantization

Because the Paillier cryptosystem operates on integers and NMF involves floating-point calculations, the authors implement a quantization strategy. By using a quantization factor ($N_{max}$), decimal values are mapped to an integer space. The research demonstrates that as the resolution of $N_{max}$ increases, the distributed algorithm's accuracy converges to that of a centralized, non-encrypted model.

3. Experimental Evaluation

The authors evaluated PPDNMF using two primary datasets to test both convergence and practical utility.

3.1 Synthetic Data

A $30 \times 200$ matrix was generated using exponential distributions with 20dB Signal-to-Noise Ratio (SNR) Gaussian noise. This controlled environment allowed the researchers to verify that the privacy-preserving constraints did not hinder the algorithm's ability to reach a mathematical optimum.

3.2 MIT-CBCL Face Database

To test real-world applicability, the algorithm was deployed across 10 agents to factorize the MIT-CBCL face database, which contains 2,429 monochromatic images ($19 \times 19$ pixels). The goal was to collaboratively learn the "parts" of a face (eyes, noses, mouths) without any single agent seeing the full dataset.

4. Key Results and Discussion

The experiments yielded several critical insights:

  • Accuracy: PPDNMF achieves a Normalized Mean-Square Error (NMSE) nearly identical to centralized NMF, proving that the encryption and quantization processes do not degrade the quality of the factorization.
  • Convergence: The ADMM-based updates reached a steady-state error within 40–60 BCD iterations. This suggests that the consensus mechanism is robust and efficient for distributed environments.
  • Robustness: Even with relatively low quantization resolution ($N_{max} = 10$), the algorithm successfully reconstructed facial features, indicating high tolerance for the approximations required by the cryptosystem.

5. Limitations and Future Work

While PPDNMF provides a robust framework for privacy, it introduces computational overhead due to the nature of homomorphic encryption. Future research is needed to optimize the CPU and latency costs per node. Additionally, the current model assumes a static network topology; extending the algorithm to handle dynamic networks where nodes join or leave is a necessary step for real-world ad-hoc deployment. Finally, the authors aim to provide a formal theoretical privacy analysis to quantify the system's resilience against sophisticated adversarial attacks.

6. Conclusion

PPDNMF represents a significant step forward in secure collaborative machine learning. By combining ADMM with the Paillier cryptosystem and decoupled penalty parameters, the authors have created a method that allows for the extraction of global insights from distributed data while maintaining strict local privacy. This approach is particularly valuable for decentralized networks where a trusted central server is unavailable.

Summary updated

BibTeX
@inproceedings{lari2024privacy,
  author = {Ehsan Lari and Reza Arablouei and Stefan Werner},
  title = {{Privacy-Preserving Distributed Nonnegative Matrix Factorization}},
  booktitle = {EUSIPCO},
  year = {2024},
  url = {https://openreview.net/forum?id=icE0Gjt9zp},
}
Figure