Fast, Lagre Scale Dimensionality Reduction Schemes Based on CKKS

Haonan Yuan, Wenyuan Wu, Jingwei ChenIACR ePrint 2024

Abstract

Collaborative data analysis across organizations is often hindered by privacy and legal constraints, especially in high-dimensional domains like genomics and finance. This paper presents HE-DR, a novel dimensionality reduction scheme leveraging the CKKS homomorphic encryption system. HE-DR enables two parties to collaboratively compute a compressed representation of their combined data without ever sharing raw or even full encrypted matrices. By optimizing Rank-Revealing methods and implementing a peer-to-peer protocol with encrypted termination criteria, the proposed scheme achieves a 60–200x speedup over existing state-of-the-art methods while reducing communication overhead by two-thirds.

Introduction

Dimensionality reduction techniques, such as Principal Component Analysis (PCA) and Singular Value Decomposition (SVD), are essential preprocessing steps for analyzing high-dimensional datasets. However, when data is distributed across multiple entities, traditional methods require centralizing raw data, which is often prohibited by privacy regulations.

While Fully Homomorphic Encryption (FHE) offers a theoretical solution by allowing computation on encrypted data, it has historically been too slow for "Big Data" scales. Existing privacy-preserving schemes often rely on trusted third parties or suffer from massive communication costs and numerical instability due to noise accumulation in encrypted floating-point arithmetic. HE-DR addresses these challenges by providing a practical, high-performance, and peer-to-peer framework for secure dimensionality reduction.

The HE-DR Framework

The core of HE-DR is the CKKS cryptosystem, which supports approximate arithmetic on real numbers, making it uniquely suited for the iterative matrix operations required in dimensionality reduction.

Two-Party Protocol and Rank-Revealing

Unlike standard SVD, which is computationally prohibitive under encryption, HE-DR utilizes a modified Rank-Revealing (RR) method based on the iterative "Larank" algorithm. The protocol is designed for a two-party scenario where each party holds a portion of the data (e.g., vertically or horizontally partitioned).

Overview of the two-party collaborative dimensionality reduction protocol.

Crucially, the parties never exchange their full high-dimensional matrices. Instead, they interactively compute intermediate results. To ensure security, random perturbations (smudging) are applied to intermediate vectors, which are subsequently cancelled out during the final calculation steps, preventing either party from reconstructing the other's private data.

Algorithmic Innovations

A key technical hurdle in FHE is the inability to perform conditional branching (e.g., if statements) on encrypted values. HE-DR introduces a novel "Stop Criteria" protocol that allows parties to detect convergence or reach an information threshold without decrypting sensitive data or involving a third party.

Protocol 1: Iterative algorithm for finding the principal orthogonal basis.

Experimental Evaluation

The authors evaluated HE-DR using a mix of synthetic and real-world datasets to test scalability and accuracy:

  • Synthetic Data: Matrices with up to 40,000 samples and 8,192 features (exceeding 80 million elements).
  • Real-World Data: Datasets from the UCI Repository, including Wine Quality, Air Quality, Parkinson’s Telemonitoring, and Breast Cancer Diagnostic data.
  • Accuracy: The CRANFIELD dataset was used to measure the distance between subspaces computed via HE-DR versus plaintext SVD.

Key Insights and Results

The evaluation revealed several significant advantages of the HE-DR scheme:

  1. Performance Breakthrough: HE-DR is approximately 60 times faster than previous benchmarks like Homomorphic PCA (HPCA). For instance, processing the Air Quality dataset took only ~5.3 seconds with HE-DR, compared to ~290 seconds for HPCA.
  2. Scalability and Efficiency: The system processed 80 million elements in under 30 seconds per orthogonal basis. Remarkably, the computational overhead ratio between ciphertext and plaintext stabilizes at around 5x as dimensionality increases, a very low margin for FHE applications.
  3. Communication Efficiency: By only transmitting low-dimensional basis vectors rather than full encrypted matrices, HE-DR reduces communication costs to one-third of previous methods.
  4. High Precision: Despite the approximate nature of CKKS, the computational error remained extremely low (around $10^{-11}$), ensuring that privacy does not compromise scientific validity.

Conclusion and Future Work

HE-DR demonstrates that large-scale, privacy-preserving dimensionality reduction is practical without a trusted third party. While currently optimized for a semi-honest two-party model, future work aims to extend the protocol to multi-party scenarios and harden it against malicious actors. Additionally, further optimizations in ciphertext packing and parallelization within libraries like TenSEAL could yield even greater performance gains.

Summary updated

BibTeX
@article{yuan2024fast,
  author = {Haonan Yuan and Wenyuan Wu and Jingwei Chen},
  title = {{Fast, Lagre Scale Dimensionality Reduction Schemes Based on CKKS}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure