← all news

Google's HEIR aims to make AI on encrypted data practical

AI · · · source (blog.google)

Google has released HEIR, an open-source compiler toolchain for homomorphic encryption, the technique that lets a server compute on data it never decrypts. The idea has been understood for years, but turning a trained model into an efficient encrypted program by hand is slow and error-prone. HEIR tries to remove that step. It takes a pre-trained model and compiles it into a form that runs directly on encrypted inputs, so the server returns an encrypted answer without ever seeing the underlying data. Google frames this as a software path to private inference, in contrast to hardware approaches that keep data inside a protected enclave.

To show it is more than a research demo, the team compiled four workloads with HEIR and ran them on a single-threaded CPU: a deep-learning recommendation model, credit-card fraud detection, the Kitsune network-intrusion detector, and hotword detection for voice agents, each built with outside partners such as Belfort Labs, LG, and NYU. The announcement is short on latency figures, and homomorphic encryption is still slow next to plaintext compute, so the real question is how much overhead these compiled pipelines carry. Google says the project has already produced four peer-reviewed papers, with more work underway with Georgia Tech, Carnegie Mellon, and UC Santa Barbara.

Why it matters

If you build AI features on sensitive data such as health records, financial history, or private messages, encrypted inference is the difference between processing data on your servers and never being able to read it at all. HEIR lowers the engineering cost of trying that, so it is worth prototyping to see whether the latency fits your workload before you assume plaintext is the only option.

GooglePrivacyCryptography