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

DPFormer:在长尾数据上学习差分隐私Transformer

DPFormer: Learning Differentially Private Transformer on Long-Tailed Data

Shenzhen University(深圳大学);Rutgers University(罗格斯大学);WeBank(微众银行)

Youlong Ding, Xueyang Wu, Hao Wang, Weike Pan

AI总结:

本文提出DPFormer,通过幻影裁剪和重注意力机制解决差分隐私Transformer训练中的计算开销大和注意力分散问题,并在长尾数据上验证了其有效性和效率。

摘要:

Transformer已成为一种通用且有效的架构,应用广泛。然而,如何在差分隐私保证下高效训练高实用性的Transformer模型仍是一个未决问题。本文指出了学习差分隐私Transformer的两个关键挑战:逐样本梯度裁剪带来的沉重计算开销,以及注意力机制中非有意的注意力分散。为此,我们提出DPFormer,配备幻影裁剪(Phantom Clipping)和重注意力机制(Re-Attention Mechanism)来解决这些挑战。理论分析表明,DPFormer能够降低梯度裁剪过程中的计算成本,并有效缓解注意力分散(注意力分散可能阻碍训练过程并导致显著的性能下降,尤其是在长尾数据存在的情况下)。该分析进一步通过在两个真实世界数据集上的实证结果得到验证,证明了所提出的DPFormer的效率和有效性。

英文摘要:

The Transformer has emerged as a versatile and effective architecture with broad applications. However, it still remains an open problem how to efficiently train a Transformer model of high utility with differential privacy guarantees. In this paper, we identify two key challenges in learning differentially private Transformers, i.e., heavy computation overhead due to per-sample gradient clipping and unintentional attention distraction within the attention mechanism. In response, we propose DPFormer, equipped with Phantom Clipping and Re-Attention Mechanism, to address these challenges. Our theoretical analysis shows that DPFormer can reduce computational costs during gradient clipping and effectively mitigate attention distraction (which could obstruct the training process and lead to a significant performance drop, especially in the presence of long-tailed data). Such analysis is further corroborated by empirical results on two real-world datasets, demonstrating the efficiency and effectiveness of the proposed DPFormer.

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

↑