TL;DR
QuanText is a training-free, large-language-model-agnostic framework designed to protect dataset-level global secrets (such as demographic proportions or disease prevalence) when sharing textual data. By strategically perturbing the joint distribution of correlated attributes and using an LLM to rewrite text samples based on original snippets, it prevents property inference attacks while preserving data utility.
What Problem Does This Paper Address?
When organizations share natural-language datasets, they typically remove individual identifiers to protect privacy. However, a major loophole remains: the dataset as a whole can still leak sensitive global properties, such as the exact proportion of patients with a specific diagnosis or the fraction of users holding a certain political stance. Attackers can exploit these global properties via property inference attacks.
Standard defense mechanisms like Differential Privacy (DP) are designed to protect individual records, but they fail here. Because DP adds zero-mean noise independently to individual samples, the noise cancels out in aggregate, leaving global proportions virtually unchanged. Furthermore, simply hiding the sensitive attribute itself is insufficient because textual attributes are highly correlated; an attacker can easily infer a hidden secret from seemingly non-sensitive words, phrases, or semantic cues.
Methods
The authors introduce QuanText (Randomized Quantization for Text), a three-stage data release mechanism that operates without needing to retrain any underlying models:
- Approximating the Joint Distribution: Using an auxiliary public dataset, QuanText applies the Chow–Liu algorithm to model the joint distribution of attributes (both secret and non-secret) as a tree-structured probabilistic graphical model.
- Randomized Quantization: It generates a set of alternative candidate joint distributions. Given the private dataset's true empirical distribution, QuanText identifies the top-$k$ closest candidate distributions (measured by total variation distance) and selects one uniformly at random. This step introduces the necessary privacy-preserving distortion.
- LLM-Based Rewriting: To match the newly selected distribution, private text samples are mapped to synthetic attribute combinations using the Hungarian matching algorithm. Finally, a large language model (LLM) extracts attribute-relevant snippets from the original text and rewrites the sample to express the newly assigned attributes, preserving local semantics while altering the global statistics.
The framework is theoretically grounded in the Statistic Maximal Leakage (SML) framework, bounding the information an attacker can gain even when accounting for the correlation between textual content and style.
Datasets
The authors evaluated QuanText on two real-world datasets:
- Tweet Stance Dataset: Contains 4,870 tweets annotated with Target (five political topics), Stance (Favor, Against, Neither), and Sentiment (Positive, Negative, Neither). 3,000 tweets were used as the private dataset, and 1,870 served as the auxiliary dataset.
- ChatDoctor Dataset: A collection of patient-doctor dialogues. The authors tested two types of secrets on this dataset: the proportion of female patients and the proportions of specific medical diagnoses (mental disorder, digestive disorder, and childbirth).
Key Insights and Ideas
- The DP Cancellation Effect: A key realization is that DP's sample-level independence is its downfall for aggregate privacy. Because the noise cancels out over large datasets, a new paradigm like SML is required to explicitly bound global property leakage.
- Perturbing Correlations is Mandatory: Defending against property inference requires modifying not just the secret attribute, but the entire web of correlated attributes. If you only change the "disease status" label but leave the correlated "symptoms" or "age" distributions intact, the secret remains vulnerable.
- Snippet Reuse Preserves Utility: Instead of generating entirely synthetic text from scratch, QuanText extracts and reuses original text snippets. This hybrid approach allows the LLM to retain the specific semantic flavor and quality of the original dataset while successfully altering its high-level statistical properties.
Key Results
QuanText was compared against strong differentially private synthetic data generation baselines, including Private Evolution (PE) and DP Fine-Tuning (DP-FT). Performance was measured using the Mean Absolute Error (MAE) of an attacker trying to guess the secret property (higher MAE means better privacy).
- Superior Privacy-Utility Trade-off: Across both datasets, QuanText consistently achieved higher attack MAE (stronger privacy) and higher aggregate utility scores than PE and DP-FT across various privacy budgets ($\epsilon \in \{1, 2, 3, 4\}$).
- The Power of Candidate Dilution: By tuning the "candidate dilution" ratio ($\gamma/k$, the number of candidate distributions over the selection size), the authors showed that decreasing this ratio substantially improves privacy (increasing attack MAE from ~0.01 to 0.1) with only a minor penalty to data utility.
- Model Robustness: The defense proved robust against attacks powered by different backend LLMs (Llama3.1-8B, Mistral-7B, and Qwen3-4B), maintaining consistent protection rankings.
Limitations and Future Work
- Dependence on LLM Capability: QuanText relies heavily on the assumption that the LLM can faithfully and accurately rewrite text to match assigned attributes without hallucinating or failing to express the target attributes.
- Auxiliary Data Requirement: The mechanism requires a public auxiliary dataset from a similar domain to construct the initial Chow–Liu tree, which may not always be readily available for highly specialized or sensitive domains.
- Style-Content Correlation Estimation: While the theoretical proof accounts for text style leaking secrets (quantified by a parameter $l$), estimating this correlation parameter accurately in practical, real-world text settings remains a challenge.
Summary updated