arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.14717cs.LGcs.AIcs.CR
收藏

可证明的差分隐私交叉注意力机制计算

Provable Differentially Private Computation of the Cross-Attention Mechanism

The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);The Simons Institute for the Theory of Computing at the University of California, Berkeley(伯克利大学计算理论研究所)

Yekun Ke, Yingyu Liang, Zhenmei Shi, Zhao Song, Jiahao Zhang

AI总结:

本文提出了一种可证明差分隐私的交叉注意力机制计算方法,通过新颖的数据结构实现隐私保护,同时保证计算效率和安全性。

摘要:

交叉注意力机制已成为现代人工智能中的核心模块,支撑着检索增强生成(RAG)、系统提示和引导稳定扩散等关键应用。然而,这一机制的安全性受到关注,因为底层的键值矩阵经常编码敏感数据或私有用户信息。在本文中,我们引入了一种新的数据结构,旨在对交叉注意力机制实施差分隐私(DP),并提供可证明的理论保证。具体而言,令n表示输入序列长度,d表示特征维度,R表示查询和键矩阵的最大幅度,R_w表示值矩阵的最大幅度,r、s、ε_s为多项式核方法的参数,我们提出的方法实现了O~(n d r²)的空间和初始化复杂度,每个token的查询时间为O~(d r²)。此外,我们证明了我们的机制满足(ε,δ)-DP,产生加性误差O~((1-ε_s)⁻¹ n⁻¹ ε⁻¹ R²s R_w r²)和相对于真实值的相对误差2ε_s/(1-ε_s)。关键的是,我们的框架对自适应查询具有鲁棒性,确保在对抗性设置中也能保持安全。据我们所知,这是首个提供可证明差分隐私的交叉注意力机制的方法,为未来在大规模生成模型(LGMs)中的隐私保护算法奠定了基础。

英文摘要:

Cross-attention has emerged as a cornerstone module in modern artificial intelligence, underpinning critical applications such as retrieval-augmented generation (RAG), system prompting, and guided stable diffusion. However, this is a rising concern about securing the privacy of cross-attention, as the underlying key and value matrices frequently encode sensitive data or private user information. In this work, we introduce a novel data structure designed to enforce differential privacy (DP) for cross-attention mechanisms, accompanied by provable theoretical guarantees. Specifically, letting $n$ denote the input sequence length, $d$ the feature dimension, $R$ the maximum magnitude of query and key matrices, $R_w$ the maximum magnitude of the value matrix, and $r, s, ε_s$ the parameters for polynomial kernel methods, our proposed structure achieves $\widetilde{O}(ndr^2)$ space and initialization complexity, with a query time of $\widetilde{O}(d r^2)$ per token. Moreover, we demonstrate that our mechanism satisfies $(ε, δ)$-DP, incurring an additive error of $\widetilde{O}((1-ε_s)^{-1} n^{-1} ε^{-1} R^{2s} R_w r^2)$ and a relative error of $2ε_s/(1-ε_s)$ with respect to the ground truth. Crucially, our framework maintains robustness against adaptive queries, ensuring security even in adversarial settings. To the best of our knowledge, this constitutes the first approach providing provable differential privacy for cross-attention, establishing a foundation for future privacy-preserving algorithms in large generative models (LGMs).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑