Nemesis: Noise-randomized Encryption with Modular Efficiency and Secure Integration in Machine Learning Systems
Dongfang Zhao
TL;DR
Nemesis tackles the high computational cost of Fully Homomorphic Encryption in privacy-preserving ML by introducing a caching-based framework for multi-slot FHE, integrating precomputation, reconstruction, and randomization to boost throughput without sacrificing security or accuracy. Built on CKKS and extending prior work like Rache, Nemesis provides formal IND-CPA security guarantees and demonstrates substantial end-to-end speedups in federated settings using OpenFHE and PFLlib on standard datasets. The approach achieves near-constant precomputation costs, while reconstruction remains the dominant runtime factor, guiding future optimization efforts. The practical impact is a more scalable path to deploying privacy-preserving ML at scale in real-world applications.
Abstract
Machine learning (ML) systems that guarantee security and privacy often rely on Fully Homomorphic Encryption (FHE) as a cornerstone technique, enabling computations on encrypted data without exposing sensitive information. However, a critical limitation of FHE is its computational inefficiency, making it impractical for large-scale applications. In this work, we propose \textit{Nemesis}, a framework that accelerates FHE-based systems without compromising accuracy or security. The design of Nemesis is inspired by Rache (SIGMOD'23), which introduced a caching mechanism for encrypted integers and scalars. Nemesis extends this idea with more advanced caching techniques and mathematical tools, enabling efficient operations over multi-slot FHE schemes and overcoming Rache's limitations to support general plaintext structures. We formally prove the security of Nemesis under standard cryptographic assumptions and evaluate its performance extensively on widely used datasets, including MNIST, FashionMNIST, and CIFAR-10. Experimental results show that Nemesis significantly reduces the computational overhead of FHE-based ML systems, paving the way for broader adoption of privacy-preserving technologies.
