谷歌正在利用同态加密技术使私有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 实用性与数据隐私之间传统的权衡取舍。

谷歌近期积极推广全同态加密(FHE)技术,旨在将其应用于人工智能工作负载。从理论上讲,FHE 允许服务器在不解密的情况下直接对加密数据进行运算,从而确保用户隐私。 然而,Hacker News 上的讨论反映出人们对其当前可行性的深度怀疑: * **性能开销:** FHE 的计算成本依然极高,许多人估计其开销是明文处理的 1,000 倍到 1,000,000 倍。尽管支持者认为定制 ASIC 和优化算法正在缩小这一差距,但怀疑者认为,对于有意义的商业 AI 应用而言,它依然过于缓慢。 * **信任与动机:** 许多用户对谷歌持怀疑态度,认为作为一家广告驱动型公司,其兴趣可能在于隐藏推理轨迹或规避隐私法规,而非真正保护用户数据。 * **实用替代方案:** 批评者指出,在本地硬件上运行模型已是一种行之有效且更高效的私密 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