atlas

Research map / Federated learning and privacy / Privacy attacks and secure learning

MERGE: Fast Private Text Generation

AAAI 2024 · Federated learning and privacy › Privacy attacks and secure learning · approach: Encryption-based private learning · 8 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 MERGE, a two-party MPC private text generation framework that reuses output hidden states as next-token embeddings and merges Transformer linear ops with constant attention, achieving large speedups on GPT-2 and T5.

Problem

Private inference for Transformer language models in natural language generation is slow under secure multi-party computation, because existing approximations target NLU and ignore embedding lookup and token sampling costs in auto-regressive decoding; prior methods also suffer convergence failures o

Approach

Embedding resending feeds the output hidden state directly as the next input embedding, bypassing embedding table queries, combined with a merge module that replaces dynamic self-attention with constant attention and fuses linear layers into precomputed matrices, trained with cosine alignment, embedding augmentation, and weighted distillation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply embedding resending and the merge module togetherGPT-2 private generation · GPT-2, sequence length 128speedup: 1x -> 7.75xHelped
Apply embedding resending and the merge module togetherT5 private generation · T5, sequence length 128speedup: 1x -> 10.89xHelped
Apply embedding resending and the merge module togetherMERGE · GPT-2, sequence length 128communication fraction: 100.00% -> 37.75%Helped
Apply embedding resending and the merge module togetherMERGE · T5, sequence length 128communication fraction: 100.00% -> 25.77%Helped
Apply MERGE instead of MPCformer (sf2relu)GPT-2 private text generation · MultiWoz NLGBERTscore: 0.9287 -> 0.8984Hurt
Apply MERGE instead of MPCformer (sf2relu)GPT-2 private text generation · CommonGenBERTscore: 0.8943 -> 0.8821Hurt
Apply MERGE instead of MPCformer (sf2relu)GPT-2 private text generation · DailyDialogBERTscore: 0.8161 -> 0.8213Helped
Add the merge module (ablation)MERGE · GPT-2, sequence length 128speedup: 1.59x -> 7.75xHelped
Add embedding resending (ablation)MERGE · GPT-2, sequence length 128speedup: 1.78x -> 7.75xHelped
Add the merge module (ablation)MERGE · T5, sequence length 128speedup: 1.79x -> 10.89xHelped
Add embedding resending (ablation)MERGE · T5, sequence length 128speedup: 2.26x -> 10.89xHelped
Add the merge module (ablation)MERGE · MultiWoz NLGBERTscore: 0.9155 -> 0.8984Hurt

Surprising findings

Limitations

Experimental setup

Datasets: MultiWOZ 2.1 DailyDialog CommonGen E2E

Benchmarks: MultiWOZ 2.1 NLG CommonGen DailyDialog

Metrics: BERTscore BARTscore NIST Rouge-L METEOR CHRF++ inference time communication cost

Baselines: CrypTen MPCformer (sm2relu) MPCformer (sm2quad) THE-X

Builds on: MPCformer THE-X CrypTen

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