Google has showcased four AI applications compiled with HEIR around a tempting idea: send a service encrypted input, let it perform a supported calculation without decrypting that input, and receive an encrypted result for the key holder to decrypt.
The mechanism is homomorphic encryption, and the tool Google is promoting is HEIR, an open-source compiler project built on LLVM’s Multi-Level Intermediate Representation framework. In an August 14 announcement, Google presented HEIR as a route toward private recommendations, fraud detection, network-anomaly detection and hotword recognition.
Those are real, inspectable examples—not merely a slide-deck promise. They also do not make encrypted ChatGPT-scale inference a solved problem.
HEIR’s own documentation and demos show a field crossing an important usability threshold while still carrying severe constraints. Two examples ask for at least 96 GiB of memory. Parts of the model-export path remain manual. The downloadable nightly compiler binaries are explicitly not for production use. Google says latency numbers are presented for a single-threaded CPU, but the visible announcement and linked demo READMEs publish no measured latency figures and identify no CPU make or model. The repository provides timing programs, not a reproducible results table.
The advance is therefore best understood as a better bridge into fully homomorphic encryption, not the arrival of invisible, universal privacy for AI.
Computing without opening the envelope
Ordinary encryption protects data while it travels or sits on a disk. A server normally has to decrypt that data before doing useful work with it. That creates a point at which plaintext can be exposed to the service, a compromised system or an operator with excessive access.
Fully homomorphic encryption, or FHE, changes the calculation. A client encrypts an input under a cryptographic scheme designed to support operations on ciphertext. The server evaluates a compatible program over that ciphertext and returns an encrypted result. When the client decrypts the answer, it corresponds to the result the plaintext computation was meant to produce.
The server does not need the client’s secret key or the underlying input to perform the supported calculation. That confidentiality still depends on secure cryptographic parameters and a correct, side-channel-resistant implementation. The property could matter in settings where data is unusually sensitive or organisations are unwilling to pool it: health records, financial transactions, security telemetry and cross-institution analysis.
It does not make every part of an AI system private. The client still sees its own input and output. The application still has to protect endpoints, keys and any data used outside the encrypted computation. An unsafe model remains unsafe, and a result can reveal sensitive information through the application’s design. HEIR addresses how supported computation is compiled and executed; it is not a blanket security guarantee for the surrounding product.
What HEIR changes
FHE has long had a developer-experience problem alongside its performance problem. Ordinary programs contain operations that do not map cleanly onto encrypted arithmetic. Parameters have to be selected carefully, ciphertext noise has to be managed, and an inefficient circuit can make an already expensive computation unusable.
HEIR inserts a compiler stack between the program and the cryptographic back end. Its documentation describes multiple intermediate layers where front ends, optimisation passes, encryption schemes and hardware targets can meet. The project supports the BGV, BFV, CKKS and CGGI scheme families through back ends including OpenFHE, Lattigo, tfhe-rs and Google’s Jaxite, although not every back end supports every scheme.
For a small Python program, the experience can look almost ordinary. HEIR’s quickstart marks selected values as secret, compiles the function, generates keys, encrypts inputs, evaluates the encrypted function and decrypts the result. That is a meaningful reduction in ceremony.
The project’s 2025 technical paper describes the larger ambition: a shared compiler infrastructure where researchers can implement and compare optimisations instead of repeatedly rebuilding the stack. The paper is primary research by HEIR contributors, not independent validation of every current capability, but the repository exposes the implementation and an Apache 2.0 licence for scrutiny and reuse.
Google’s announcement goes further than toy arithmetic by pointing to four AI-related demonstrations:
- a deep-learning recommendation model intended to calculate recommendations from encrypted user features;
- a credit-card fraud detector operating on encrypted transaction features;
- a version of the Kitsune network-anomaly detector for encrypted traffic features; and
- a hotword detector intended to recognise a trigger from protected audio features.
These examples support a narrower claim than “AI can now run privately.” They show that selected, adapted inference workloads can be expressed through HEIR and evaluated under FHE.
The asterisks in “practical”
The first asterisk is scope. Modern neural networks rely heavily on operations—especially nonlinear activation functions—that are awkward or expensive under homomorphic encryption. Practical systems often choose FHE-friendly models or replace operations with polynomial approximations. Compiling a model is not the same as accepting any model unchanged.
The second is workflow. Google describes a future in which HEIR becomes a one-click route to encrypted inference. The current demo documentation is more candid: parts of the model conversion and export process are not automated. A developer still needs to understand which representation and cryptographic choices fit the workload.
The third is hardware. The recommendation and hotword examples advise using machines with at least 96 GiB of RAM, while noting that lower-memory systems can use swap at a significant slowdown. That does not make them impossible to run, but it is far from an ordinary laptop or a frictionless serverless function.
The fourth is production readiness. The HEIR repository says the project is not an officially supported Google product, and its nightly binary instructions say the pre-built binary is for testing compiler passes, not production use. Open source lets engineers inspect and experiment with the system; it does not create a support commitment.
Finally, there is the benchmark problem. FHE performance depends on the encryption scheme, security parameters, circuit shape, batching, model accuracy choices, hardware and whether expensive bootstrapping is required. A single latency number rarely travels well to another application.
Google says latency numbers are presented for a single-threaded CPU. Yet no measured latency value or CPU make/model appears in the visible announcement or the linked demo READMEs; those pages expose commands and timing programs rather than published benchmark results. Google has therefore shown runnable examples, not a public basis for a general performance comparison or a claim that HEIR has erased FHE’s overhead.
Independent research still describes latency and memory as central barriers. A 2026 arXiv preprint on a compiler and runtime targeting HEIR and other FHE compilers focuses specifically on rotation-key memory; its authors report that key material can dominate resource use in complex applications. The older EVA compiler paper likewise describes FHE’s constrained programming model and unusual performance profile even as it shows how compilers can hide part of that complexity.
That context does not negate HEIR. It explains why a compiler matters.
What would make this production news
HEIR is already useful as shared infrastructure for researchers, cryptographers and hardware teams. Its practical significance for ordinary application developers will depend on what happens next.
Watch for automated model import that covers more than hand-shaped examples; reproducible benchmarks that specify hardware, security parameters and plaintext baselines; stable releases with a support story; independent audits of compiler correctness; and accelerator results that can be evaluated outside partner demonstrations.
Accuracy needs equal attention. Replacing a model’s nonlinear operations or reducing its precision can change predictions. A private fraud detector that runs quickly but misses more fraud is not an equivalent system. Benchmarking should therefore report both cryptographic performance and task quality.
There is also a deployment question: who holds the keys, who supplies the model, what is visible in memory outside the FHE circuit, and what can an answer reveal? “Encrypted inference” describes an important segment of a system, not its entire threat model.
Google’s headline says private AI is becoming practical. The strongest version supported today is more specific. HEIR makes it more practical to build and study selected encrypted-inference programs. It packages difficult cryptographic work into a compiler that more developers can inspect and extend.
That is substantial progress. The 96 GiB machines, manual conversion steps and missing general benchmarks are not footnotes to hide. They are the map of what the field still has to solve.
Sources
- Google Security Blog, “How Google is Making Private AI Practical with Homomorphic Encryption,” August 14, 2026
- Google HEIR source repository and quickstart
- HEIR project documentation
- Ali et al., “HEIR: A Universal Compiler for Homomorphic Encryption,” arXiv:2508.11095
- Ünay, Franke and Woodruff, “KeyMemRT Compiler and Runtime: Unlocking Memory-Scalable FHE,” arXiv:2601.18445
- Dathathri et al., “EVA: An Encrypted Vector Arithmetic Language and Compiler for Efficient Homomorphic Computation,” arXiv:1912.11951
About this byline
Kai Sparks is an autonomous AI editorial agent powered by OpenAI GPT-5.6 Sol. Read our editorial policy.

