跳到主内容
@wquguru
精选80Hacker News Best(web_list)产品发布/更新

谷歌开源HEIR编译器,用同态加密实现私有AI推理

谷歌用同态加密让私有AI实用化

原文
发到 X
推荐理由

做隐私计算或AI推理的开发者值得关注,HEIR开源编译器让同态加密落地AI推理成为可能,建议去GitHub看示例代码,评估能否接入你的场景。

Security

安全

How Google is Making Private AI Practical with Homomorphic Encryption

谷歌如何利用同态加密实现实用型私有AI

Aug 14, 2026

2026年8月14日

|

|

  • x.com
  • Facebook
  • LinkedIn
  • Mail
  • Copy link
  • x.com
  • Facebook
  • LinkedIn
  • 邮件
  • 复制链接

Jeremy Kun

Jeremy Kun

Staff Software Engineer

高级软件工程师

Share

分享

  • x.com
  • Facebook
  • LinkedIn
  • Mail
  • Copy link
  • x.com
  • Facebook
  • LinkedIn
  • 邮件
  • 复制链接

Today we're excited to showcase HEIR, the latest powerful tool added to our Private Computing Toolkit. HEIR is an open source compiler that unlocks cryptographically-secure private AI inference.

今天,我们很高兴向大家展示HEIR,这是我们私有计算工具包中新增的最强大工具。HEIR是一个开源编译器,能够实现密码学安全的私有AI推理。

Homomorphic encryption

同态加密

As new benefits emerge with the growth of AI, balancing privacy and security is top of mind. Standard protections like end-to-end encryption present a trade-off: user-data can be protected from data breaches, but then the service provider cannot provide features that depend on the data, such as spam or virus detection. Critical sectors like healthcare and finance are even more averse to these risks, and strict regulations limit data sharing across institutions. Alternative mechanisms to provide the same features, like local processing, are limited by the capabilities of the local device and the sensitivity of the service provider's IP. Shipping proprietary AI to a device risks leaking the model.

随着AI的发展带来新的益处,平衡隐私与安全成为首要考虑。端到端加密等标准保护措施存在权衡:用户数据可以免受数据泄露的影响,但服务提供商无法提供依赖数据的特性,如垃圾邮件或病毒检测。医疗和金融等关键行业更厌恶这些风险,严格的法规限制了跨机构的数据共享。提供相同功能的替代机制,如本地处理,受限于本地设备的能力和服务提供商知识产权的敏感性。将专有AI部署到设备上存在模型泄露的风险。

A solution to these issues is homomorphic encryption, a rapidly maturing technology that fundamentally alters this trade-off by allowing computations to be performed directly on encrypted data. Servers can process ciphertexts and return encrypted results without exposing any underlying information. For example, a cloud service can provide content recommendations without being able to see the user's features. This is no exaggeration: one of the demos featured in this post does exactly this. But while homomorphic encryption has a nontrivial cost overhead, it shifts the capability/privacy trade-off to a question of cost. And the cost of homomorphic encryption is rapidly decreasing.

解决这些问题的一个方案是同态加密,这是一项快速成熟的技术,通过允许直接在加密数据上执行计算,从根本上改变了这种权衡。服务器可以处理密文并返回加密结果,而不暴露任何底层信息。例如,云服务可以提供内容推荐,而无需看到用户的特征。这并非夸大其词:本文展示的一个演示正是如此。但虽然同态加密有非平凡的成本开销,它将能力/隐私权衡转变为成本问题。而同态加密的成本正在迅速下降。

Google’s history of innovations in privacy technology—from differential privacy and private set membership to private information retrieval and secure enclaves on Google Cloud—has always focused on securing user data. Homomorphic encryption is another powerful tool we're adding to our private computing toolkit. Like private information retrieval, and in contrast to hardware-based solutions, homomorphic encryption's strong security and privacy guarantees are purely cryptographic. However, manually converting an existing program to use homomorphic encryption efficiently requires a team of cryptographers.

谷歌在隐私技术方面的创新历史——从差分隐私和私有集合成员关系到私有信息检索和Google Cloud上的安全飞地——一直专注于保护用户数据。同态加密是我们添加到私有计算工具包中的另一个强大工具。与私有信息检索类似,与基于硬件的解决方案相比,同态加密的强安全性和隐私保证纯粹是密码学上的。然而,手动将现有程序高效转换为使用同态加密需要密码学家团队。

About HEIR

关于HEIR

To overcome the usability challenges and advance the opportunity homomorphic encryption provides, researchers and engineers at Google built the HEIR compiler project. HEIR (Homomorphic Encryption Intermediate Representation) is an open-source compiler toolchain and development platform for homomorphic encryption. In particular, HEIR can convert pre-trained AI models that operate on unencrypted data to operate on encrypted inputs. Our vision is to make HEIR a one-click solution to enable non-experts to incorporate encrypted inference into production applications.

为了克服可用性挑战并推进同态加密提供的机会,谷歌的研究人员和工程师构建了 HEIR 编译器项目。HEIR(同态加密中间表示)是一个用于同态加密的开源编译器工具链和开发平台。特别是,HEIR 可以将对未加密数据运行的预训练 AI 模型转换为对加密输入运行。我们的愿景是让 HEIR 成为一键式解决方案,使非专家能够将加密推理集成到生产应用中。

Since announcing our intentions in 2023, we’ve seen the homomorphic encryption community embrace HEIR. We have partnered with companies developing hardware accelerators for homomorphic encryption, including Belfort, Niobium, Cornami, and Optalysys. The fruits of those efforts are shown in our demos below, and we plan to demonstrate the latency benefits of these accelerators in the near future. HEIR has also become a productive research platform. By building on HEIR, cryptographers can focus on their specific optimization and use the existing infrastructure for testing, benchmarking, and comparisons. This has resulted in collaborations with Georgia Tech, Carnegie Mellon, UC Santa Barbara, Illinois Institute of Technology, Purdue, the University of Edinburgh, Tsinghua University, and others. To date, four peer-reviewed publications were built on HEIR, with more in preparation, and HEIR has accumulated numerous citations.

自 2023 年宣布我们的意图以来,我们看到同态加密社区已经接受了 HEIR。我们与开发同态加密硬件加速器的公司合作,包括 Belfort、Niobium、Cornami 和 Optalysys。这些努力的成果在我们的演示中展示,我们计划在不久的将来展示这些加速器的延迟优势。HEIR 也已成为一个高效的研究平台。通过基于 HEIR 构建,密码学家可以专注于他们的特定优化,并使用现有基础设施进行测试、基准测试和比较。这导致了与佐治亚理工学院、卡内基梅隆大学、加州大学圣巴巴拉分校、伊利诺伊理工学院、普渡大学、爱丁堡大学、清华大学等的合作。迄今为止,已有四篇同行评审的出版物基于 HEIR,还有更多正在准备中,HEIR 已积累了众多引用。

Applications of HEIR

HEIR 的应用

To demonstrate how far homomorphic encryption has come, we’re sharing four private inference applications. Each application was compiled with HEIR, and latency numbers are presented for a single-threaded CPU. The source code for all examples is available in our GitHub repository.

为了展示同态加密已经取得的进展,我们分享了四个私有推理应用。每个应用都使用 HEIR 编译,延迟数据在单线程 CPU 上呈现。所有示例的源代码可在我们的 GitHub 仓库中获取。

  • A Deep Learning Recommendation Model unlocks serving private content recommendations, joint work with Belfort Labs, LG, and New York University.
  • Credit card fraud detection: Together with Niobium and hardshell.ai, we compiled a credit card fraud detector.
  • Threat intrusion: Together with Niobium we compiled the Kitsune system for anomaly detection of encrypted network traffic. This allows a service provider to detect anomalies without revealing the contents of network packets to the service provider.
  • Hotword Detector: Together with Belfort Labs we compiled a hotword detection model, which could allow an audio-triggered AI agent to recognize hotwords while protecting the privacy of the audio recordings.
  • 深度学习推荐模型解锁了提供私有内容推荐的服务,与 Belfort Labs、LG 和纽约大学合作完成。
  • 信用卡欺诈检测:与 Niobium 和 hardshell.ai 合作,我们编译了一个信用卡欺诈检测器。
  • 威胁入侵检测:与 Niobium 合作,我们编译了 Kitsune 系统,用于对加密网络流量进行异常检测。这允许服务提供商在不向服务提供商泄露网络数据包内容的情况下检测异常。
  • 热词检测器:我们与Belfort Labs合作构建了一个热词检测模型,该模型可使音频触发的AI代理在保护音频录制隐私的同时识别热词。

As the software industry adapts to security and privacy changes amid AI, our research team is working to make homomorphic encryption, easy to develop, fast to run, and ubiquitous across industry.

随着软件行业在AI浪潮中适应安全与隐私的变化,我们的研究团队正致力于使同态加密易于开发、运行快速,并在行业中无处不在。

POSTED IN:

发布于:

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近