arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.13299cs.CLcs.AIcs.LG
收藏

用于异构文本分类的联邦分裂BERT

Federated Split BERT for Heterogeneous Text Classification

Ping An Technology (Shenzhen) Co., Ltd.(平安科技(深圳)有限公司)

Zhengyang Li, Shijing Si, Jianzong Wang, Jing Xiao

摘要:

预训练的BERT模型在许多自然语言处理(NLP)任务中取得了令人印象深刻的性能。然而,在许多现实情况下,文本数据通常分散在许多客户端上,并且由于隐私保护和法规而无法上传到中央服务器。联邦学习(FL)使多个客户端协作训练一个全局模型,同时保持本地数据的隐私。一些研究已经在联邦学习环境中研究了BERT,但是异构(例如,非IID)数据仍然未被充分探索。为了解决这个问题,我们提出了一个框架,FedSplitBERT,它处理异构数据,并通过将BERT编码器层分为局部部分和全局部分来降低通信成本。局部部分参数仅由局部客户端训练,而全局部分参数通过聚合多个客户端的梯度来训练。由于BERT的庞大规模,我们探索了一种量化方法,以进一步降低通信成本,以最小的性能损失。我们的框架是现成的,并兼容许多现有的联邦学习算法,包括FedAvg,FedProx和FedAdam。我们的实验验证了该框架的有效性,它优于基线方法的显着保证金,而量化的FedSplitBERT可以减少$11.9\times$的通信成本。

英文摘要:

Pre-trained BERT models have achieved impressive performance in many natural language processing (NLP) tasks. However, in many real-world situations, textual data are usually decentralized over many clients and unable to be uploaded to a central server due to privacy protection and regulations. Federated learning (FL) enables multiple clients collaboratively to train a global model while keeping the local data privacy. A few researches have investigated BERT in federated learning setting, but the problem of performance loss caused by heterogeneous (e.g., non-IID) data over clients remain under-explored. To address this issue, we propose a framework, FedSplitBERT, which handles heterogeneous data and decreases the communication cost by splitting the BERT encoder layers into local part and global part. The local part parameters are trained by the local client only while the global part parameters are trained by aggregating gradients of multiple clients. Due to the sheer size of BERT, we explore a quantization method to further reduce the communication cost with minimal performance loss. Our framework is ready-to-use and compatible to many existing federated learning algorithms, including FedAvg, FedProx and FedAdam. Our experiments verify the effectiveness of the proposed framework, which outperforms baseline methods by a significant margin, while FedSplitBERT with quantization can reduce the communication cost by $11.9\times$.

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

↑