DPFormer: Learning Differentially Private Transformer on Long-Tailed Data

Youlong Ding, Xueyang Wu, Hao Wang, Weike Pan
5/28/2023
cs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ding2023dpformer,
  title  = {DPFormer: Learning Differentially Private Transformer on Long-Tailed Data},
  author = {Youlong Ding and Xueyang Wu and Hao Wang and Weike Pan},
  year   = {2023},
  eprint = {2305.17633},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17633v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.17633.svg)](https://codeofpaper.com/paper/2305.17633)

Discussion