TL;DR
The paper introduces INTACT, a two-stage framework that uses Large Language Models (LLMs) to sanitize sensitive text by replacing private information with truthful generalizations. By simulating "inference attacks" to test if an adversary can guess the original data, the system selects the most informative replacement that remains privacy-safe, significantly outperforming traditional redaction and synthetic replacement methods.
What Problem Does This Paper Address?
When sharing sensitive documents—like medical records or legal rulings—we face a classic "privacy-utility trade-off." If you simply redact sensitive spans (the "black bar" approach), the document becomes hard to read and loses its analytical value. If you replace names with generic labels like [PERSON], you lose even more context.
Recent attempts to use LLMs for this task often generate "synthetic" replacements (e.g., replacing a specific city with a random one). However, these are often untruthful, which can lead to disastrous misinterpretations in fields like law or medicine. The challenge is: How do we hide specific identities while keeping the text truthful and useful?
Methods
The authors propose INTACT (INference-guided Truthful sAnitization for Clear Text), which operates in two distinct stages:
- Candidate Generation: For a detected sensitive span (e.g., "Catholic"), the LLM generates a list of five generalizations (hypernyms) sorted by specificity (e.g., 1. Christian, 2. Monotheist, 3. Believer). These are "truth-preserving" because they logically encompass the original term.
- Inference Attack Selection: To ensure privacy, the system then acts as its own adversary. It performs an "inference attack" by asking the LLM to guess the original span based on the replacement and the surrounding document context. The system iterates through the candidates, starting with the most specific, and selects the first one that the LLM cannot successfully guess back.
The authors also introduce a new metric, Text Preserved Similarity (TPS). This metric uses BERT-based embeddings to measure how much semantic information is retained, weighted by the "Information Content" (predictability) of the original text spans.
Datasets
The primary evaluation was conducted on the Text Anonymization Benchmark (TAB). This dataset consists of 1,268 English documents from court cases of the European Court of Human Rights (ECHR), manually annotated by law students for personally identifiable information (PII). To test re-identification risk, they used a larger corpus of 13,759 ECHR rulings as background knowledge for simulated attacks.
Key Insights and Ideas
- The LLM as Adversary: The most clever part of INTACT is using the LLM to simulate a "worst-case" adversary. If a smart model can't guess the original word given the context, a human attacker likely can't either.
- Truthfulness Matters: Unlike Microsoft Presidio’s synthetic replacements, which might change a defendant's nationality from "Turkish" to "Mexican," INTACT focuses on abstraction (e.g., "Turkish" to "Middle Eastern"). This ensures that high-level statistical analysis remains valid.
- Small Models are Enough: The researchers achieved these results using relatively small, open-weights models like Mistral 7B and Llama 3.1 8B. This is crucial for privacy, as it allows organizations to run the sanitization locally without sending sensitive data to a third-party API like OpenAI.
Key Results
- Utility Preservation: INTACT achieved a TPS of 88.9%, significantly higher than simple suppression (78.1%) or entity type replacement (85.2%).
- Downstream Performance: In a document clustering task (measured by Normalized Mutual Information or NMI), INTACT scored 62.7%, nearly tripling the performance of suppression (20.9%) and outperforming all other LLM-based baselines.
- Privacy Safety: The re-identification risk (TRIR) for INTACT was only 8.7%, which is comparable to the risk of full suppression (8.4%). This means the utility gains come at almost no cost to privacy.
- Human Validation: Manual evaluation confirmed that 93.2% of INTACT's replacements were truthful and 81.3% were successfully abstracted.
Limitations and Future Work
- Computational Cost: Running multiple inference attacks for every single sensitive span is computationally expensive. The authors note that the selection step takes 15-20 times longer than the generation step.
- Grammar Issues: Occasionally, inserting a generalization into a sentence creates minor grammatical hiccups (like double prepositions), as the model doesn't always perfectly blend the new word into the old sentence structure.
- Language and Domain: The current study is limited to English and the legal domain. The authors suggest that future work should explore multilingual LLMs and different sectors, like healthcare, where terminology is even more specialized.
- Context-Aware Metrics: While TPS is a step forward, it still assesses terms somewhat in isolation. The authors aim to develop more holistic, context-aware similarity metrics in the future.
Summary updated