In traditional cryptography, data is protected while it is stored (at rest) or transmitted (in transit). However, to perform any meaningful analysis—such as training a neural network or querying a database—the data must typically be decrypted. This "decryption gap" creates a significant security vulnerability, exposing sensitive information to the server or cloud provider performing the computation.
Homomorphic Encryption (HE) solves this by enabling mathematical operations to be performed directly on ciphertexts. The result of these operations is a new ciphertext which, when decrypted, matches the result of the operations as if they had been performed on the original plaintext. As Kristin E. Lauter et al. describe in ML Confidential: Machine Learning on Encrypted Data, this allows cloud providers to offer powerful analytics without ever seeing the underlying user data.
The Mechanism of Encrypted Processing
The core intuition behind HE is the preservation of algebraic structure. If an encryption function is homomorphic with respect to addition, then $E(a) + E(b) = E(a + b)$. Fully Homomorphic Encryption (FHE) extends this to both addition and multiplication, allowing for the evaluation of any arbitrary circuit.
In practice, different schemes are used based on the required operations:
- Additive Schemes: The Paillier cryptosystem is frequently used for secure data aggregation. Ruiyang Gao et al. demonstrate in Improved Scheme for Data Aggregation of Distributed Oracle for Intelligent Internet of Things how this allows IoT oracles to aggregate sensor data while maintaining end-to-end privacy.
- Lattice-Based Schemes: Schemes like Brakerski/Fan-Vercauteren (BFV) or CKKS support more complex operations. Yuris Mulya Saputra et al. utilize the BFV scheme in Federated Learning Framework with Straggling Mitigation and Privacy-Awareness for AI-based Mobile Application Services to allow mobile devices to offload training data to a central server securely.
Scaling Machine Learning on Ciphertexts
Performing machine learning on encrypted data is computationally expensive due to the "noise" that accumulates in ciphertexts during multiplications. If the noise grows too large, decryption fails.
To handle this, researchers focus on two areas: efficiency and specialized architectures. Han Xuanyuan et al. achieved a two-fold speedup for CNN inference in Efficient Privacy-Preserving Inference for Convolutional Neural Networks by reducing the number of expensive HE operations. Similarly, for non-linear models like decision trees, Anselme Tueno et al. proposed a non-interactive protocol in Non-Interactive Private Decision Tree Evaluation that leverages FHE to evaluate depth-10 trees in seconds by optimizing for multiplicative depth.
For Random Forests, XinRan Xie et al. show in On the Gini-impurity Preservation For Privacy Random Forests that by isolating HE operations to categorical labels rather than features, one can preserve the Gini impurity metric and train models with virtually no loss in accuracy compared to plaintext training.
Collaborative and Multiparty Computation
HE is particularly powerful in decentralized settings like Federated Learning (FL). In Vertical Federated Learning, where different parties hold different features of the same users, Shuowei Cai et al. introduce "removable masks" using HE in Secure Forward Aggregation for Vertical Federated Neural Networks. These masks protect data during aggregation but are mathematically canceled out in the final output, ensuring precision without leakage.
In high-stakes fields like oncology, Ravit Geva et al. demonstrate in Collaborative Privacy-Preserving Analysis of Oncological Data using Multiparty Homomorphic Encryption that Multiparty FHE can achieve near-perfect statistical accuracy. By distributing the decryption key across multiple institutions, the system ensures that no single entity can access the raw patient records, even while they collaborate on global research.
Addressing Security and Performance Bottlenecks
Despite its promise, HE faces challenges regarding information leakage and overhead. The CKKS scheme, which supports approximate arithmetic, was found to have vulnerabilities that Baiyu Li et al. addressed in Securing Approximate Homomorphic Encryption Using Differential Privacy by post-processing decryption outputs with a differentially private mechanism.
Furthermore, the computational cost of "bootstrapping"—the process of refreshing a noisy ciphertext—remains a hurdle. However, recent optimizations in Arbitrary-Threshold Fully Homomorphic Encryption with Lower Complexity by Songze Li et al. suggest that wrapping secret shares in a secondary homomorphic layer can offload the heavy lifting of aggregation to untrusted third parties, streamlining the workflow for resource-constrained devices.
By shifting the security focus from protecting physical hardware to protecting the mathematical operations themselves, HE enables a new paradigm of "Trustworthy AI" where data integrity and privacy are maintained throughout the entire model lifecycle (Richa Singh et al., Trustworthy AI).