谷歌正在利用同态加密技术使私有AI成为现实
Google is making private AI practical with homomorphic encryption

原始链接: https://blog.google/security/how-google-is-making-private-ai-practical-with-homomorphic-encryption/

Google 推出了 **HEIR(同态加密中间表示)**,这是一个开源编译器,旨在让加密安全的私有 AI 推理变得触手可及。 同态加密(HE)允许服务器在数据保持加密的状态下进行处理,从而实现内容推荐或欺诈检测等服务,同时服务提供商无需查看底层的用户数据。过去,实施同态加密需要专门的密码学专业知识;HEIR 通过自动将预训练的 AI 模型转换为可在加密输入上运行的模型,解决了这一难题。 作为通用的开发平台,HEIR 正在培育一个不断增长的生态系统。Google 正与硬件加速器开发人员合作以提升性能,并与学术机构合作以推动隐私研究。为了展示其功能,Google 分享了四个实际应用案例,包括威胁检测和关键词识别,所有这些应用均已成功使用 HEIR 运行私有推理。 通过简化开发流程并提高性能,HEIR 旨在使保护隐私的计算成为生产应用中一种标准的一键式解决方案,从而从根本上改变 AI 实用性与数据隐私之间传统的权衡取舍。

最近的一场 Hacker News 讨论聚焦于谷歌利用全同态加密(FHE)进行私密 AI 推理的计划。FHE 允许在无需解密的情况下对加密数据进行计算,理论上消除了用户必须信任服务提供商才能处理敏感输入的必要性。 尽管支持者认为 FHE 通过消除“请信任我”的需求,代表了数据隐私领域的一项技术突破,但讨论帖中的怀疑论者并不买账。许多评论者表示,无论该技术在数学上多么稳健,他们都对谷歌持根深蒂固的不信任态度,并引用了该公司过往的隐私记录以及将数据存储在第三方服务器上的固有风险。另一些人则批评缺乏可供查阅的技术白皮书,指出目前的信息仅限于高层级的演示文稿。归根结底,这场辩论凸显了“无需信任”的加密技术承诺与大众对大型科技公司监管用户数据时所持普遍怀疑态度之间的冲突。
相关文章

原文

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.

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.

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.

About 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.

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.

Applications of 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.

  • 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.

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.

联系我们 contact @ memedata.com