联邦学习(Federated Learning, FL)已成为多方协作学习的主流范式。它被认为是隐私友好的,因为本地数据保留在个人设备上,仅共享中间参数(如梯度或模型更新)。尽管梯度反演被广泛视为 FL 中的常见攻击方法,但关于从共享梯度中重构输入训练样本的分析研究仍然有限,且通常局限于小批量等受限设置。本文旨在通过从密码学视角解决该问题来克服这些限制。我们将 FL 中共享的梯度信息所对应的输入重构问题数学形式化为隐藏子集和问题(Hidden Subset Sum Problem, HSSP),它是著名的 NP 完全问题子集和问题(Subset Sum Problem, SSP)的扩展。利用该形式化,我们实现了完美的输入重构,从而缓解了依赖标签多样性以及在大批量下表现不佳等阻碍现有经验性梯度反演攻击的问题。此外,我们的分析揭示了经验性输入重构攻击为何会随批量增大而退化。通过将问题建模为 HSSP,我们证明批量大小 B 显著影响攻击复杂度,时间复杂度达到 O(B^9)。我们进一步表明,应用安全数据聚合技术(如全同态加密和安全多方计算)可提供强防御,将时间复杂度增至 O(N^9 B^9),其中 N 为 FL 中的本地客户端数量。据我们所知,这是首个通过将 FL 隐私问题建模为 HSSP 来进行严格分析的工作,为防御策略的进一步探索与开发提供了具体的分析基础。
英文摘要:
Federated Learning (FL) has emerged as a popular paradigm for collaborative learning among multiple parties. It is considered privacy-friendly because local data remains on personal devices, and only intermediate parameters -- such as gradients or model updates -- are shared. Although gradient inversion is widely viewed as a common attack method in FL, analytical research on reconstructing input training samples from shared gradients remains limited and is typically confined to constrained settings like small batch sizes. In this paper, we aim to overcome these limitations by addressing the problem from a cryptographic perspective. We mathematically formulate the input reconstruction problem using the gradient information shared in FL as the Hidden Subset Sum Problem (HSSP), an extension of the well-known NP-complete Subset Sum Problem (SSP). Leveraging this formulation allows us to achieve perfect input reconstruction, thereby mitigating issues such as dependence on label diversity and underperformance with large batch sizes that hinder existing empirical gradient inversion attacks. Moreover, our analysis provides insights into why empirical input reconstruction attacks degrade with larger batch sizes. By modeling the problem as HSSP, we demonstrate that the batch size \( B \) significantly affects attack complexity, with time complexity reaching \( \mathcal{O}(B^9) \). We further show that applying secure data aggregation techniques -- such as homomorphic encryption and secure multiparty computation -- provides a strong defense by increasing the time complexity to \( \mathcal{O}(N^9 B^9) \), where \( N \) is the number of local clients in FL. To the best of our knowledge, this is the first work to rigorously analyze privacy issues in FL by modeling them as HSSP, providing a concrete analytical foundation for further exploration and development of defense strategies.
A New Federated Learning Framework Against Gradient Inversion Attacks
The University of Hong Kong(香港大学);Beijing University of Technology(北京工业大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));UC Santa Cruz(加州大学圣克鲁兹分校)
Exploring the Vulnerabilities of Federated Learning: A Deep Dive into Gradient Inversion Attacks
School of Computing and Data Science, The University of Hong Kong(计算与数据科学学院,香港大学);Department of Mathematics, The University of Hong Kong(数学系,香港大学);Thrust of Artificial Intelligence, The Hong Kong University of Science and Technology (Guangzhou)(人工智能推动学院,香港科学与技术大学(广州));Department of Electronic and Electrical Engineering, Southern University of Science and Technology(电子与电气工程系,南方科技大学);Department of Biomedical Data Science, Stanford University(生物医学数据科学系,斯坦福大学);Department of Computer Science and Engineering, University of California, Santa Cruz(计算机科学与工程系,加州大学圣克鲁兹分校);Department of Electrical and Electronic Engineering, The University of Hong Kong(电子与电气工程系,香港大学);Materials Innovation Institute for Life Sciences and Energy (MILES), HKU-SIRI(生命科学与能源材料创新研究所(MILES),HKU-SIRI)
Breaching FedMD: Image Recovery via Paired-Logits Inversion Attack
The University of Tokyo(东京大学);Institute for AI Industry Research, Tsinghua University(清华大学人工智能产业研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
本文发现 FedMD 范式存在隐私泄露风险,提出 PLI 攻击,恶意服务器通过训练反演神经网络利用模型间的置信度差距,仅用配对 logits 即可高成功率重建私有图像。
Shadow defense against gradient inversion attack in federated learning
Bioengineering Department, Imperial College London, London W12 0BZ, UK;School of Computer Engineering;Science, Shanghai university, Shanghai 200444, China;Bioengineering Department;Imperial-X, Imperial College London, London W12 7SL, UK;Lung Institute, Imperial College London, London SW7 2AZ, UK;Cardiovascular Research Centre, Royal Brompton Hospital, London SW3 6NP, UK;School of Biomedical Engineering \& Imaging Sciences, King's College London, London WC2R 2LS, UK
Extracting Spatiotemporal Data from Gradients with Large Language Models
Tokyo Institute of Technology(东京工业大学);The University of Tokyo(东京大学);Xidian University(西安电子科技大学);National Institute of Information and Communications Technology(日本信息通信研究机构);Osaka Seikei University(大阪成蹊大学)