BayAreaSecure
All research

Can AI Make Fully Homomorphic Encryption Practical?

We want to improve the encryption algorithms with AI and adapt language models to the encryption we already have.

In this essayA private answer that takes too longFirst: ask AI to improve the encryption algorithmsSecond: make models fit existing encryptionA faster answer must still be secure and usefulSources

A private answer that takes too long

Imagine asking an AI a private question and receiving a useful encrypted answer—but only after an unacceptable wait. The privacy works in principle, yet the service is too slow or costly to use. How do we close that gap?

Gentry’s construction established that fully homomorphic computation was possible. One key technique, bootstrapping, refreshes a ciphertext so further encrypted calculations can continue. It manages the noise that accumulates during computation; it does not make later operations costless or noise-free.[1]

This is why we are optimistic about optimization. We have a demonstrated capability to improve, rather than only a wish for an unknown kind of encryption. We want to pursue two routes together.

First: ask AI to improve the encryption algorithms

Give a language model a working encrypted calculation and a clear objective: find a mathematically valid way to perform it with fewer expensive operations. Let it propose changes, test them, examine failures and try again.

For example, can the same polynomial be evaluated with fewer sequential multiplications? Can an algorithm refresh ciphertexts less often without making decryption fail? The search should include new algorithmic ideas, not just faster code for an unchanged method.

AlphaEvolve provides an example of language models improving algorithms through repeated proposals and automated feedback.[2] It does not establish that the same approach will produce a breakthrough in Fully Homomorphic Encryption. But patient, repeated improvement is itself a useful capability to test.

Second: make models fit existing encryption

We can also change the model. Some operations that are convenient in ordinary neural networks are expensive in encrypted computation. Could we replace them with cheaper approximations, then train or fine-tune the model to work well with those replacements?

EncryptedLLM studied approximations of language-model activation functions alongside accelerated encrypted computation.[3] Our question is how far that approach can go while preserving useful answers.

The whole inference process matters: handling context, reusing earlier calculations, moving encrypted data and deciding which work stays on the client. A fast isolated operation is valuable only if the complete task becomes better.

A faster answer must still be secure and useful

For each proposed improvement, check the calculation, cryptographic security assumptions, answer quality, latency, memory and communication cost. Reducing encryption strength or silently replacing a useful model with a weak one would not count as solving the original problem.

Start with one model and one bounded task. Evaluate algorithm changes and model adaptation separately, then combine them. Keep some correctness and quality checks outside the optimization loop so the system cannot succeed merely by fitting its own tests.

We have not demonstrated these improvements. Our proposal is to use AI’s capacity for sustained search on a problem whose usefulness is already clear: private computation that people can afford to use.

Sources

  1. A Fully Homomorphic Encryption Scheme (opens in a new tab)Craig Gentry · 2009
  2. AlphaEvolve: A coding agent for scientific and algorithmic discovery (opens in a new tab)Novikov et al. · 2025
  3. EncryptedLLM: Privacy-Preserving Large Language Model Inference via GPU-Accelerated Fully Homomorphic Encryption (opens in a new tab)de Castro et al. · ICML · 2025