Hybrid Framework for Approximate Computation over Encrypted Data

Jihoon Cho, Jincheol Ha, Seongkwang Kim, Joohee Lee, Jooyoung Lee, Dukjae Moon, Hyojin YoonIACR ePrint 2020

Abstract

Homomorphic Encryption (HE) is a transformative technology for privacy-preserving computation, yet its practical adoption is hindered by massive ciphertext expansion and heavy client-side computational requirements. This paper introduces the Real-to-Finite-field (RtF) framework, a hybrid system that enables clients to encrypt real-world data using efficient symmetric ciphers while allowing servers to perform approximate computations via the CKKS scheme. Central to this framework is HERA, a novel HE-friendly stream cipher. Experimental results demonstrate that RtF with HERA reduces client-side latency by over 9,000x and ciphertext size by 23x compared to standard CKKS encryption, paving the way for HE in mobile and IoT applications.

Introduction: The Practical Hurdles of Homomorphic Encryption

Homomorphic Encryption (HE) allows a cloud server to process encrypted data without ever accessing the underlying plaintext. The CKKS (Cheon-Kim-Kim-Song) scheme has emerged as the industry standard for HE because it supports approximate arithmetic on real numbers—a requirement for modern AI, machine learning, and financial modeling.

Despite its potential, CKKS faces two significant barriers to widespread deployment:

  1. Ciphertext Expansion: Encrypting even small data points results in ciphertexts that are hundreds of times larger than the original data, creating a massive bandwidth bottleneck.
  2. Client-Side Overhead: The mathematical complexity of HE encryption is often too taxing for low-power devices like smartphones or IoT sensors.

A promising solution is "transciphering," where the client uses a fast, lightweight symmetric cipher, and the server homomorphically executes the decryption algorithm to convert the data into an HE-compatible format. However, designing secure symmetric ciphers that work seamlessly with the approximate nature of CKKS has remained a challenge.

The RtF Framework and HERA Cipher

To address these challenges, the authors propose the RtF (Real-to-Finite-field) framework. This hybrid approach acts as a bridge between the efficiency of symmetric encryption and the analytical power of HE.

The RtF Workflow

The RtF framework splits the process into distinct stages to optimize performance:

  • Client-Side: Instead of encrypting real numbers directly with HE, the client scales them into integers and encrypts them using a stream cipher over a finite field ($\mathbb{Z}_t$). This drastically reduces the computational load on the device.
  • Server-Side Transciphering: The server receives the lightweight ciphertext and uses the FV scheme—which excels at exact integer arithmetic—to homomorphically evaluate the cipher's decryption.
  • The Bridge (HalfBoot): A novel procedure called HalfBoot is then used to convert the data from the exact FV format into the approximate CKKS format, enabling complex analytics on the server.
The transciphering framework for homomorphic evaluation.

HERA: An HE-Friendly Cipher

The efficiency of the server-side decryption depends heavily on the choice of symmetric cipher. The authors designed HERA, a stream cipher optimized specifically for HE evaluation. HERA utilizes a Randomized Key Schedule (RKS), which allows the cipher to maintain a low multiplicative depth—the primary bottleneck in HE performance. By injecting randomness into the key schedule for every round, HERA can use a simple "Cube" function ($x \to x^3$) for its non-linear layer while remaining secure against algebraic attacks.

Performance and Results

The RtF framework was evaluated using the Lattigo and HElib libraries, comparing HERA against existing HE-friendly ciphers like LowMC and Rasta. At the 128-bit security level, the results were transformative:

  • Efficiency: Client-side latency was reduced to just 1.6 $\mu$s, making it 9,085 times faster than native CKKS encryption.
  • Bandwidth: The ciphertext expansion ratio was lowered to 1.23–1.54, a 23x reduction in data size compared to standard CKKS.
  • Throughput: Client throughput reached 21.7 MB/s, representing a nearly 18-fold improvement.

Conclusion and Future Directions

The RtF framework successfully shifts the computational burden from the resource-constrained client to the powerful server, making privacy-preserving computation viable for edge devices. While the server-side "HalfBoot" and homomorphic decryption still introduce significant latency, the massive gains in bandwidth and client speed represent a major step forward. Future work will focus on optimizing the linear layers of HERA and extending the RtF framework to support other HE schemes beyond CKKS.

Summary updated

BibTeX
@article{cho2020hybrid,
  author = {Jihoon Cho and Jincheol Ha and Seongkwang Kim and Joohee Lee and Jooyoung Lee and Dukjae Moon and Hyojin Yoon},
  title = {{Hybrid Framework for Approximate Computation over Encrypted Data}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
}
Figure