Homomorphic Encryption
Homomorphic encryption (HE) is a class of encryption schemes that allow computation directly on ciphertext, where the decrypted result matches computing on the plaintext. It turns "data usable but invisible" from a slogan into a cryptographic commitment, and is a key piece of the privacy computing landscape.
Core principles
In ordinary encryption, ciphertext is destroyed once computed on; homomorphic encryption is designed to support specific algebraic operations. By capability there are two classes: partially homomorphic encryption supports only one operation, most typically the additive homomorphism of the Paillier scheme and the multiplicative homomorphism of RSA, with high efficiency and practicality; fully homomorphic encryption supports addition and multiplication for any number of operations, and can in theory compute any function.
Constructing full homomorphism was long regarded as a hard problem. In 2009 Craig Gentry gave the first feasible construction in his doctoral thesis; the core idea is to "first build a somewhat homomorphic scheme with bounded depth, then refresh the ciphertext noise by bootstrapping". Each computation accumulates noise in the ciphertext, and once noise exceeds a threshold decryption fails; bootstrapping runs a decryption circuit on the ciphertext using the encrypted secret key and outputs a new low-noise ciphertext, thereby supporting unlimited depth.
Afterwards schemes such as BGV, BFV and CKKS appeared. CKKS supports approximate floating-point operations and suits machine learning inference and statistical computation, and is the mainstay of current engineering deployments. This family of schemes is based on lattice cryptography for security, resists quantum computer attacks, and is regarded as an important direction of post-quantum cryptography.
Key points
The advantages and costs are both stark. The advantage is that security rests on mathematical hard problems, needs no trusted third party, resists attackers including the server and achieves end-to-end protection. It especially suits scenarios where the data holder and the computing party distrust each other yet must work jointly. The cost is extremely high computation and storage overhead: ciphertext expansion can reach hundreds to thousands of times, bootstrapping is expensive, and full homomorphism in general scenarios remains orders of magnitude slower than plaintext operations.
Common engineering optimizations include batching (packing multiple data slots with SIMD), parameter selection and level depth design, and hybrid use with secure multi-party computation or federated learning. Noise management is the core engineering difficulty: multiplication consumes the noise budget and depth is limited by parameter settings. Parameter choice requires repeated trade-offs among security, depth and speed, and a wrong configuration may directly lead to being broken or to performance collapse. In addition, integer comparison and nonlinear activation functions are hard to express homomorphically and often need polynomial approximation, bringing accuracy loss. Engineering practice often requires operator substitution and circuit rewriting for a specific model, or even retraining the model to fit ciphertext computation.
Common misconceptions
One misconception is that fully homomorphic encryption can already replace plaintext computation at no cost, when in fact most scenarios still rely on partial homomorphism or hybrid protocols. Most current deployments are small in scale and narrow in scope, at the feasibility validation stage rather than large-scale replacement. A second is conflating homomorphic encryption with a trusted execution environment: the latter relies on a hardware root of trust, the former is a purely cryptographic guarantee. A third is believing homomorphic encryption inherently prevents leakage, but if the result itself may be decrypted, the information in it can still reveal the input. For example, a decrypted model output may itself reflect features of the training data.
Application scenarios
Privacy-preserving machine learning inference, multi-institution medical statistics with ciphertext aggregation of case counts, joint modeling for financial risk control, encrypted search and recommendation, electronic voting, and outsourced cloud computation.