STAMP: Selective Task-Aware Mechanism for Text Privacy
Organizations: University of Arizona · Oak Ridge National Laboratory · Duke University
Abstract
We present STAMP (Selective Task-Aware Mechanism for Text Privacy), a new framework for task-aware text privatization that achieves an improved privacy-utility trade-off. STAMP selectively allocates privacy budgets across tokens by jointly considering (i) each token's importance to the downstream task (as measured via a task- or query-specific representation), and (ii) its privacy sensitivity (e.g., names, dates, identifiers). This token-level partitioning enables fine-grained, group-wise control over the level of noise applied to different parts of the input, balancing privacy protection with task relevance. To privatize individual token embeddings, we introduce the polar mechanism, which perturbs only the direction of embeddings on the unit sphere while preserving their magnitude. Decoding is performed via cosine nearest-neighbor search, aligning the perturbation geometry with the decoding geometry. Unlike isotropic noise mechanisms, the polar mechanism maintains semantic neighborhoods in the embedding space and better preserves downstream utility. Experimental evaluations on SQuAD, Yelp, and AG News datasets demonstrate that STAMP, when combined with the normalized polar mechanism, consistently achieves superior privacy-utility trade-offs across varying per-token privacy budgets.
Figures & tables
| Group Privacy Budgets | SQuAD (Cosine similarity) | Non-Private Baseline | Yelp (Acc %) | Non-Private Baseline | AG News (Acc %) | Non-Private Baseline | |||
|---|---|---|---|---|---|---|---|---|---|
| Polar (vMF) | Laplace | Polar (vMF) | Laplace | Polar (vMF) | Laplace | ||||
| {150, 50, 450, 350} | 0.393 | 0.325 | 0.839 | 0.360 | 0.220 | 0.580 | 0.540 | 0.560 | 0.920 |
| {200, 100, 500, 400} | 0.470 | 0.334 | 0.839 | 0.380 | 0.140 | 0.580 | 0.640 | 0.580 | 0.920 |
| {250, 150, 550, 450} | 0.587 | 0.335 | 0.839 | 0.480 | 0.180 | 0.580 | 0.680 | 0.560 | 0.920 |
| {300, 200, 600, 500} | 0.654 | 0.341 | 0.839 | 0.560 | 0.200 | 0.580 | 0.760 | 0.520 | 0.920 |
| {350, 250, 650, 550} | 0.833 | 0.343 | 0.839 | 0.560 | 0.140 | 0.580 | 0.800 | 0.520 | 0.920 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Privacy-Utility Tradeoff
Privacy-utility tradeoffs study how to limit disclosure of sensitive information while preserving useful data, models, and services.
See all 71 papers