atlas

Research map / Federated learning and privacy / Differential privacy

Delving into Differentially Private Transformer

ICML 2024 · Federated learning and privacy › Differential privacy · approach: Private training with public data · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Re-Attention Mechanism and Phantom Clipping to make DP-SGD training of Transformers accurate and efficient, evaluated with small Transformers on MovieLens and Amazon Games recommendation.

Problem

Training Transformer models with differential privacy suffers from attention distraction (noise-induced variance inflates attention scores of rarely seen tokens) and from incompatibility of efficient per-sample gradient clipping with embedding sharing.

Approach

Reduce DP Transformer training to DP vanilla neural net training by (1) correcting attention scores using tracked variance of embedding/key distributions via Bayesian-style error propagation (Re-Attention), and (2) extending Ghost Clipping to shared input/output embeddings with a closed-form per-sample norm (Phantom Clipping).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply Re-Attention Mechanism to correct attention distractionDifferentially private Transformer · MovieLens and Amazontraining stabilityHelped
Apply Re-Attention Mechanism to correct attention distractionDifferentially private Transformer · Amazon, especially at ε=5model accuracyHelped
Use shared rather than unshared embedding parameters (ablation)Differentially private Transformer · MovieLens, ε=5NDCG@10Helped
Use Phantom Clipping instead of Ghost ClippingSmall Transformer models · Real-world recommendation datasetstraining speed: 4-100$\times$ fasterHelped
Use Phantom Clipping instead of Ghost ClippingSmall Transformer models · Real-world recommendation datasetsmemory efficiency: 10-400$\times$ more memory efficientHelped

Surprising findings

Limitations

Experimental setup

Datasets: MovieLens-1M Amazon Games

Benchmarks: MovieLens-1M Amazon Games

Metrics: NDCG@10 HIT@10

Baselines: vanilla Transformer Transformer without parameter sharing GRU LSTM Ghost Clipping

Builds on: DP-SGD Ghost Clipping fastDP Bayesian deep learning error propagation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy