# HEIR compiler: 4,000x slowdown for encrypted ML inference, but GPUs cut it to 50x

Original title: Updates on HEIR, the Homomorphic Encryption Compiler Project

> Hacker News story 49570328 · language: en · submitted 2026-09-04
> Web version: https://zeli.app/story/49570328
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 51 · by [turtleyacht](<https://news.ycombinator.com/user?id=turtleyacht>) · 💬 0
[original](<https://www.jeremykun.com/2026/09/04/updates-on-heir-homomorphic-encryption/>) · [HN discussion](<https://news.ycombinator.com/item?id=49570328>)

## Summary

Jeremy Kun, a Google engineer, provides an honest, technical update on HEIR, the homomorphic encryption compiler project. He shares concrete runtime benchmarks from a demo repo: a credit card fraud detector takes 2 seconds for encrypted inference versus 0.5 ms for cleartext, a 4,000x slowdown, while a recommender model takes 5 minutes on CPU but ~500 ms on a GPU (50x slowdown). He discusses the compiler's MLIR-based design, its current limitations (manual annotations, incomplete operator coverage), and his perspective on HE's 'killer app', arguing that private LLM inference is still far from practical and that lower-hanging fruit should be pursued.

## Key quote

> The central point here is that the evaluation of the model on encrypted inputs took about 2 seconds on a single-threaded CPU.

---

## Cite

- Page: https://zeli.app/story/49570328
- Date: 2026-09-04
- Source: jeremykun.com (https://www.jeremykun.com/2026/09/04/updates-on-heir-homomorphic-encryption/)
- Hacker News: https://news.ycombinator.com/item?id=49570328

## Other languages

- zh: https://zeli.app/zh/story/49570328 · markdown: https://zeli.app/zh/story/49570328.md
- ja: https://zeli.app/ja/story/49570328 · markdown: https://zeli.app/ja/story/49570328.md
- ko: https://zeli.app/ko/story/49570328 · markdown: https://zeli.app/ko/story/49570328.md
- de: https://zeli.app/de/story/49570328 · markdown: https://zeli.app/de/story/49570328.md
- es: https://zeli.app/es/story/49570328 · markdown: https://zeli.app/es/story/49570328.md
- ru: https://zeli.app/ru/story/49570328 · markdown: https://zeli.app/ru/story/49570328.md
