谷歌推出可证明隐私洞察系统 PPI
谷歌发布首个“可证明隐私洞察”(PPI)系统,结合大模型、差分隐私与可信执行环境分析生成式 AI 使用数据。该系统在确保个体数据不可见且聚合结果匿名的前提下,帮助开发者识别应用模式与故障点。
报道正文
本文目录4 个章节
生成式 AI(GenAI)能够实现个性化体验,并推动非结构化数据(如摘要、转录文本等)的创建。对现实世界中 AI 使用情况的洞察 [1, 2] 可以帮助 GenAI 开发者通过了解常见应用场景和识别故障模式来改进其工具。特别是当这些工具应用于设备端数据时,我们的目标是在生成洞察的过程中提供日益强大的隐私保障。本文介绍了“可证明隐私洞察”(Provably Private Insights, PPI),这是生成关于人们如何使用 LLM 和 GenAI 工具的动态洞察的新标杆,同时保证个人数据不可被查看,且聚合后的洞察保持匿名性。
今天,我们宣布推出首个此类 PPI 系统,该系统利用大型语言模型(LLM)、差分隐私 (DP) 和 可信执行环境 (TEE) 的强大功能来分析非结构化的 GenAI 数据。该系统证明服务器端的处理仅限于隐私保护计算,并且可以完全接受外部审查。借助我们的系统,GenAI 工具开发者可以使用一个“数据专家”LLM 来分析交互过程,该模型负责回答诸如“正在讨论什么主题?”或“用户是否感到沮丧?”等问题。LLM 的回答通过 DP 进行聚合,从而在不暴露未聚合数据的情况下,提供跨用户群体的 GenAI 功能使用情况的全景视图。“数据专家”LLM 本身驻留在 TEE 中。PPI 由 机密联邦分析 (CFA) 技术实现,这是一种最初在 Gboard 中部署的技术,其中开源分析软件在 TEE 中运行,为服务器端数据处理机制及其隐私属性提供了完全的透明度。我们在 Pixel 手机的 Recorder 应用中部署了 PPI,利用 Google 最新的开源 Gemma 模型 作为“数据专家”,以提供有关 Recorder 使用情况的洞察。
为了鼓励外部社区验证我们的主张,我们已将 LLM 驱动的隐私保护洞察 作为 Google Parfait 中机密联邦分析的一部分开源,并连同其余托管在 TEE(可信执行环境)中的机密联邦分析技术栈一并发布。
可证明的隐私洞察是如何实现的
谷歌的 CFA(机密联邦分析)利用 机密计算 在处理过程中保护未聚合的用户数据,并且仅输出具有正式(用户级)差分隐私(DP)保证的结果。无论分析师运行何种查询,CFA 都能提供强大的数据隔离和匿名化保证。
在此技术中,用户设备首先决定应上传哪些数据进行分析。设备对这些数据进行加密并上传,同时附上服务器被授权用于解密的处理步骤。上传的数据由托管在 TEE 中的密钥管理服务所管理的加密密钥进行保护,该服务仅向经设备批准的处理步骤释放解密密钥。设备可以验证该密钥管理服务是否为预期的开源代码(已包含在公共防篡改透明度日志 Rekor 中),以及该代码是否正在配置正确且对谷歌不可访问的 TEE 中运行。反过来,密钥管理服务会验证经批准的公开处理步骤是否正在 TEE 中运行。无法对数据执行其他任何分析,任何人都无法访问来自单个设备的数据。
私有洞察是通过将数据经过一系列明确定义的处理步骤生成的。首先,由 LLM 对非结构化的原始数据进行分析,以提取特定问题的答案,例如输入内容的类别或主题(即“结构化摘要”)。处理流程始于使用 开源的 Gemma 3 模型 将转录文本分类到感兴趣的类别中。随后对这些类别进行汇总,计算带有 差分隐私 噪声的主题直方图,从而确保输出结果不会因任何单个用户而受到显著影响。LLM 的提示词可以频繁更改,因为无论 LLM 提示词如何变化,差分隐私保证始终适用于聚合算法。即使开发者提出了旨在识别特定用户的问题,差分隐私统计量也不会泄露相关信息。
我们系统中所有与隐私相关的部分均为开源且可 可复现构建 —— 从 私有聚合算法 到 TEE 技术栈 —— 并且 LLM 本身也是开源的。用于分析数据的工作流 签名 同样公开。结合 TEE 对运行软件的系统状态进行证明的能力,数据处理流水线的每个环节都可以可验证地关联到已发布的代码。这使得外部各方能够验证我们的隐私声明。这种对端到端可验证性的承诺是系统向“可证明性”迈进的关键——我们以这一能力为锚点,允许第三方检查开源代码并确认其与我们声称运行的代码完全一致,从而向客户证明他们的数据仅会由该代码进行处理,尽管当前一代 TEE 存在 已知弱点。
简而言之,在机密联邦分析中,通过由 LLM 驱动的结构化摘要工作流,可以生成可证明隐私保护的洞察。结构化摘要与差分隐私直方图生成的结合,使得我们能够更深入地理解 GenAI 工具在现实世界中的使用情况,同时保证用户隐私。系统的技术细节可在白皮书中找到。
Recorder 如何利用可证明隐私保护的洞察
Pixel 手机上的 Google Recorder 应用提供了强大的 AI 功能,例如转录、摘要和说话人标记。对于应用开发人员而言,一个关键挑战是了解用户如何与这些功能交互。例如,用户是在创建“个人笔记”、“提醒事项”,还是录制“商务会议”?传统的基于计数的分析方法不足以分析此类数据,除非借助结构化摘要或其他形式的分类。在传统设置中,系统会将这些转录文本记录到中央服务器进行分类,然后对结果运行(差分)私有计数查询。PPI 以类似的方式运作,但消除了数据被用于其他任何目的的风险。
在 Recorder 应用中,一部分转录文本(来自在设置中启用了“为所有人改进”功能的用户)使用由中央 TEE 托管的密钥库管理的公钥进行加密。该密钥库通过运行在 AMD Secure Encrypted Virtualization-Secure Nested Paging (SEV-SNP) CPU 上的 Google Project Oak 认证栈受到保护。密钥库确保上传的数据只能由预先批准的处理步骤解密,而这些处理步骤本身经过认证,确认其在 TEE 中执行了预期的处理操作。在 AMD SEV-SNP TEE 内运行的 Gemma 3 4B 模型将转录文本分类为主题,随后通过差分隐私进行聚合。外部各方可以验证原始转录文本从未离开 TEE 的安全环境,只有摘要输出类别的私有总和才会释放给 Google。
[注:本文篇幅超长,以上为核心前篇精译,后续内容保留原文呈现]
PPI can also help evaluate the performance of on-device GenAI features, such as the accuracy of summaries generated by Recorder. Instead of relying solely on synthetic data, which may not accurately represent real-world use, CFA can run an LLM auto-rater as a part of the structured summarization component. This auto-rater LLM also resides within the TEE and can assess the results of the on-device model, ensuring a more accurate and privacy-preserving evaluation. This allows developers to fine-tune the on-device model based on real user interactions without compromising individual privacy.
The configuration we’re running in Recorder is available in our GitHub repository which can be connected to the specific code paths and privacy guarantees by following these instructions. The Recorder configuration guarantees that whatever LLM query is run, it is passed through the auto-tuned DP histogram aggregator with strict privacy guarantees (user-level ε = 1 used in the figure above).
What’s next?
This work demonstrates that provably private insights are possible: real-world GenAI tool use is analyzed with LLMs and then aggregated into differentially private statistics, all with full transparency into the server-side processing steps. Every step of the insight generation process has been designed to offer state-of-the-art data isolation and anonymization, and external verifiers can check the source code of the methods and the proof that we run them.
Moreover, we’ve shared LLM-powered structured summarization as a first application. We expect others, including differentially private clustering and synthetic data generation to follow, all with the same level of verifiability and confidentiality. And with future work to enable confidential use of higher-throughput accelerators such as Google TPUs, richer analyses will become possible, including detailed transcript analysis and auto-rating. Insight generation is now possible without exposing sensitive user data outside of the confidential computation boundary, and with strong user-level DP guarantees for generated insights. We are excited that the technology for provably private insights is maturing just as GenAI tools are beginning to apply to on-device and sensitive-data experiences.
Acknowledgements
We thank the teams at Google that helped with algorithm design, infrastructure implementation, and production maintenance of this system, in particular teams led by Marco Gruteser, Peter Kairouz, and Timon Van Overveldt, with product manager Prem Eruvbetine, including: Albert Cheu, Brett McLarnon, Chunxiang (Jake) Zheng, Edo Roth, Emily Glanz, Grace Ni, James Bell-Clark, Kassem Fawaz, Katharine Daly, Krzysztof Ostrowski, Maya Spivak, Mira Holford, Nova Fallen, Rakshita Tandon, Ren Yi, Stanislav Chiknavaryan, Stefan Dierauf, Steve He, and Zoe Gong. We also thank close partners who supported this system through technologies and the Recorder integration, including: Allen Su, Austin Hsu, Console Chen, Daniel Minare Ho, Dennis Cheng, Jan Wassenberg, Kristi Bradford, Ling Li, Mina Askari, Miranda Huang, Tam Le, Yao-Nan Chen, and Zhimin Yao. This work was supported by Corinna Cortes, Jay Yagnik, Ramanan Rajeswaran, Seang Chau, and Yossi Matias. We additionally thank Peter Kairouz, Marco Gruteser, Mark Simborg, and Kimberly Schwede for feedback and contributions to the writing of this post.