Differentially Private Attention Computation

Yeqi Gao, Zhao Song, Xin Yang, Yufa Zhou
5/8/2023
cs.LGcs.CR

No confident code implementation found for this paper.

Abstract

Large language models (LLMs), especially those based on the Transformer architecture, have had a profound impact on various aspects of daily life, such as natural language processing, content generation, research methodologies, and more. Nevertheless, a crucial concern regarding the inference results of large language models is the issue of security and privacy. Given that large language models can generate results that may leak sensitive confidential or copyright information in many scenarios, it is crucial to compute the attention matrix with provable privacy guarantees, as attention is all you need. In this work, we propose a novel and efficient algorithm for approximating the attention matrix while providing differential privacy (DP) guarantees. To achieve this, we build on recent advancements in fast attention computation and differentially private matrix publishing.

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{gao2023differentially,
  title  = {Differentially Private Attention Computation},
  author = {Yeqi Gao and Zhao Song and Xin Yang and Yufa Zhou},
  year   = {2023},
  eprint = {2305.04701},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.04701v2}
}

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.04701.svg)](https://codeofpaper.com/paper/2305.04701)

Discussion