arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.11706cs.LGcs.CR
收藏

Trustformer:一种可信的联邦Transformer

Trustformer: A Trusted Federated Transformer

University of Windsor(温莎大学)

Ali Abbasi Tadi, Dima Alhadidi, Luis Rueda

AI总结:

本文提出Trustformer,一种基于联邦学习的Transformer训练方法,通过k-means聚类传输质心并利用Intel SGX保护安全,在降低通信开销的同时保持模型效用。

摘要:

Transformer作为处理序列数据的深度学习架构的基石,已在自然语言处理(NLP)等任务中取得了最先进的成果。诸如BERT和GPT-3等模型体现了其成功,并推动了大型语言模型(LLM)的兴起。然而,一个关键挑战依然存在:保护用于LLM训练的数据隐私。联邦学习(FL)等隐私保护技术提供了潜在的解决方案,但实际限制阻碍了其在Transformer训练中的有效性。主要存在两个问题:(I)由于FedAvg或FedSGD等聚合方法,存在敏感信息泄露的风险;(II)由于Transformer模型规模庞大,导致通信开销过高。本文提出了一种新颖的联邦学习方法,在降低通信开销的同时保持具有竞争力的效用。我们的方法通过本地模拟全局模型来避免共享完整的模型权重。我们对每个Transformer层应用k-means聚类,在本地计算质心,并仅将这些质心传输到服务器,而非完整的权重或梯度。为了增强安全性,我们利用Intel SGX进行质心的安全传输。在翻译任务上的评估表明,我们的方法在显著降低通信成本的同时,实现了与最先进基线相当的效用。这为Transformer模型提供了一种更高效且保护隐私的联邦学习解决方案。

英文摘要:

Transformers, a cornerstone of deep-learning architectures for sequential data, have achieved state-of-the-art results in tasks like Natural Language Processing (NLP). Models such as BERT and GPT-3 exemplify their success and have driven the rise of large language models (LLMs). However, a critical challenge persists: safeguarding the privacy of data used in LLM training. Privacy-preserving techniques like Federated Learning (FL) offer potential solutions, but practical limitations hinder their effectiveness for Transformer training. Two primary issues are (I) the risk of sensitive information leakage due to aggregation methods like FedAvg or FedSGD, and (II) the high communication overhead caused by the large size of Transformer models. This paper introduces a novel FL method that reduces communication overhead while maintaining competitive utility. Our approach avoids sharing full model weights by simulating a global model locally. We apply k-means clustering to each Transformer layer, compute centroids locally, and transmit only these centroids to the server instead of full weights or gradients. To enhance security, we leverage Intel SGX for secure transmission of centroids. Evaluated on a translation task, our method achieves utility comparable to state-of-the-art baselines while significantly reducing communication costs. This provides a more efficient and privacy-preserving FL solution for Transformer models.

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

↑