atlas

Research map / Federated learning and privacy / Differential privacy

Cape: Context-Aware Prompt Perturbation Mechanism with Differential Privacy

ICML 2025 · Federated learning and privacy › Differential privacy · approach: Differentially private synthetic data · 0 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 Cape, a black-box local differential privacy mechanism that perturbs prompt tokens using a hybrid context-aware utility (client-side MLM/LM logits plus embedding distance) and equal-width bucketized exponential sampling.

Problem

Protecting sensitive user information in prompts sent to black-box LLM inference services while keeping task utility; existing DP token-replacement methods trade privacy for utility and ignore context.

Approach

Combine client-side contextual logits from a small model (BERT or GPT-2) with embedding distance into a hybrid utility, and sample via an exponential mechanism over equal-width utility buckets (then uniform within a bucket) to mitigate the long-tail probability problem in large vocabularies.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Cape (BERT) instead of InferDPTSST-2 text classification · SST-2, ε=20accuracy: 79.70 -> 91.33Helped
use Cape (BERT) instead of InferDPTQNLI text classification · QNLI, ε=20accuracy: 72.18 -> 75.84Helped
use Cape (BERT) instead of InferDPTWikitext-103-v1 generation · Wikitext-103-v1, ε=20coherence: 56.04 -> 58.02Helped
use Cape (BERT) instead of InferDPTWikitext-103-v1 generation · Wikitext-103-v1, ε=20alignment: 60.33 -> 62.31Helped
add contextual logits to the distance-only utility (ablation)Cape (BERT) · SST-2classification accuracyHelped
increase logit importance to λL = 1.5 (ablation)Cape (BERT) · SST-2classification accuracyHurt
set bucket number to N_b=50 rather than N_b=20 or N_b=200 (ablation)Cape (BERT) · SST-2privacy-utility trade-offHelped
increase bucket number from N_b=50 to N_b=200 (ablation)Cape (BERT) · SST-2, ε=1.0privacy score: approximately 10% higherHelped
increase bucket number from N_b=50 to N_b=200 (ablation)Cape (BERT) · SST-2classification utilityHurt
replace BERT with DistilBERT (ablation)Cape · SST-2classification accuracy: 64.93 -> 63.50Hurt
replace BERT with DistilBERT (ablation)Cape · SST-2Top-10 privacy score: 80.54 -> 80.72Mixed
use the BERT context model instead of GPT-2Cape · SST-2, ε=20accuracy: 90.25 -> 91.33Helped

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 QNLI Wikitext-103-v1

Benchmarks: SST-2 QNLI Wikitext-103-v1

Metrics: accuracy coherence (cosine similarity) alignment (cosine similarity) KNN attack top-10 privacy score masked token inference attack Rouge-L privacy score effective mapping set size Rouge-L F1 runtime memory

Baselines: SANTEXT SANTEXT+ CUSTEXT CUSTEXT+ InferDPT

Builds on: exponential mechanism metric local differential privacy SANTEXT CUSTEXT InferDPT

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