Home Knowledge Base Homomorphic Encryption (HE)

Homomorphic Encryption (HE) is a cryptographic technique that enables arbitrary computations to be performed directly on encrypted data — producing an encrypted result that, when decrypted, equals the result of performing the same computation on the original plaintext, allowing a cloud server to run ML inference, database queries, or statistical analyses on sensitive data it can never decrypt, providing the strongest possible privacy guarantee for outsourced computation: the server learns nothing about either the inputs or the outputs.

The Core Privacy Guarantee

Standard encryption protects data at rest and in transit but requires decryption before computation — the server must see plaintext to process it. This creates a fundamental dilemma for cloud computing with sensitive data:

HE resolves this dilemma: Enc(f(x)) = f(Enc(x)). The server computes f on Enc(x), never seeing x, and returns Enc(f(x)) for the data owner to decrypt.

Historical Development

SchemeYearCapabilityPractical?
Partial HE (RSA, ElGamal)1978-1985Multiplication OR addition, unlimitedYes
Somewhat HE (BGN)2005Multiplication AND addition, limited depthLimited
Fully HE (Craig Gentry)2009Arbitrary circuitsNo (hours per gate)
BGV / BFV schemes2011-2012Batched integer/fixed-point opsResearch
CKKS scheme2017Approximate real-number arithmetic, batchedML applications
TFHE / FHEW2016-2020Fast bootstrapping for arbitrary Boolean gatesPractical for Boolean

Craig Gentry's 2009 PhD thesis proved that Fully Homomorphic Encryption was possible — previously considered impossible — using a "bootstrapping" operation that refreshes the noise accumulated during computation. This was a landmark theoretical result.

The Noise Problem

All practical HE schemes are based on the Learning With Errors (LWE) problem — a hard lattice problem believed resistant to quantum computers. Encryption introduces structured noise into the ciphertext. Homomorphic operations (addition, multiplication) accumulate this noise:

After a circuit of depth D (D sequential multiplications), the noise may overwhelm the ciphertext, making decryption incorrect. Bootstrapping evaluates the decryption circuit homomorphically, reducing the noise — but at high computational cost.

CKKS: HE for Machine Learning

The Cheon-Kim-Kim-Song (CKKS) scheme enables approximate arithmetic on encrypted real numbers:

This makes CKKS ideal for ML inference:

Performance and Practical Gap

Current overhead for CKKS-based ML inference:

Active research reduces overhead through:

Libraries and Ecosystem

HE represents the long-term trajectory for privacy-preserving cloud computing — the computational overhead reduction from millions-to-one (2009) to practical deployment for specific use cases (2024) has been dramatic, with hardware acceleration promising order-of-magnitude further improvements.

homomorphic encryptionprivacy

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.