Concept-Aware Privacy Mechanisms for Defending Embedding Inversion Attacks
Yu-Che Tsai, Hsiang Hsiao, Kuan-Yu Chen, Shou-De Lin
TL;DR
This paper tackles embedding inversion risks in text representations by moving beyond uniform noise injections to concept-aware privacy protection. It introduces SPARSE, a two-part framework that first learns a differentiable neuron-mask to identify privacy-sensitive embedding dimensions tied to user-defined concepts, and then perturbs those dimensions with a Mahalanobis mechanism that injects elliptical noise calibrated to dimension sensitivity. The approach yields strong privacy protection with preserved downstream utility across six datasets, three embedding models, and multiple attack models, outperforming state-of-the-art local DP baselines and approaching a white-box upper bound. The work demonstrates the existence of privacy neurons and shows that targeted, sensitivity-guided perturbation can significantly reduce leakage while maintaining semantic integrity, offering a practical path toward controllable, concept-aware privacy in NLP embeddings.
Abstract
Text embeddings enable numerous NLP applications but face severe privacy risks from embedding inversion attacks, which can expose sensitive attributes or reconstruct raw text. Existing differential privacy defenses assume uniform sensitivity across embedding dimensions, leading to excessive noise and degraded utility. We propose SPARSE, a user-centric framework for concept-specific privacy protection in text embeddings. SPARSE combines (1) differentiable mask learning to identify privacy-sensitive dimensions for user-defined concepts, and (2) the Mahalanobis mechanism that applies elliptical noise calibrated by dimension sensitivity. Unlike traditional spherical noise injection, SPARSE selectively perturbs privacy-sensitive dimensions while preserving non-sensitive semantics. Evaluated across six datasets with three embedding models and attack scenarios, SPARSE consistently reduces privacy leakage while achieving superior downstream performance compared to state-of-the-art DP methods.
