Source-linked AI summary
How do we measure privacy in text? A survey of text anonymization metrics
Yaxuan Ren, Krithika Ramesh, Yaxing Yao, Anjalie Field
TL;DR
Evaluating privacy in text anonymization is difficult because existing metrics reflect different privacy notions and provide limited guidance about practical protection. This survey manually reviews 47 papers, organizes their metrics into six objectives, and compares them with legal and social expectations. It identifies gaps in current evaluation practices and calls for clearer alignment between goals, metrics, adversarial risks, contextual risks, and human-centered perspectives.
Problem
Text anonymization privacy evaluation remains difficult because studies use divergent privacy notions and metrics that are poorly connected to legal and social privacy concepts.
Source: §1 · p. 1Method
The authors systematically survey 47 papers reporting privacy metrics, categorize them into six privacy notions, and examine their legal and social alignment.
Source: §1 · p. 1Results
The survey identifies gaps between current privacy evaluations and broader legal, social, and practical standards for meaningful protection.
Source: §7 · p. 9Takeaways & Limitations
More rigorous evaluation should align stated privacy goals with metrics while addressing adversarial, contextual, and human-centered risks.
Source: §7 · p. 9The survey covers post hoc privacy metrics and does not assess anonymization effectiveness or thoroughly review other privacy paradigms.
Source: Limitations · p. 9
Abstract
from arXiv · showhide
In this work, we aim to clarify and reconcile metrics for evaluating privacy protection in text through a systematic survey. Although text anonymization is essential for enabling NLP research and model development in domains with sensitive data, evaluating whether anonymization methods sufficiently protect privacy remains an open challenge. In manually reviewing 47 papers that report privacy metrics, we identify and compare six distinct privacy notions, and analyze how the associated metrics capture different aspects of privacy risk. We then assess how well these notions align with legal privacy standards (HIPAA and GDPR), as well as user-centered expectations grounded in HCI studies. Our analysis offers practical guidance on navigating the landscape of privacy evaluation approaches further and highlights gaps in current practices. Ultimately, we aim to facilitate more robust, comparable, and legally aware privacy evaluations in text anonymization.
1 Introduction
Text anonymization supports responsible use of sensitive data, but evaluating whether it protects privacy remains difficult because studies measure divergent privacy notions with inconsistent metrics. This survey organizes those metrics, compares six privacy objectives, and examines their alignment with legal and social expectations.
Motivation
- Evaluating text anonymization remains challenging because studies adopt divergent privacy notions and metrics that often connect poorly to legal and social concepts of privacy.This leaves limited guidance about which risks an evaluation measures and what level of protection is sufficient in practice.Source: §1 · p. 1
Approach
- The survey manually identifies 47 papers published since 2019 that report quantitative privacy metrics for anonymized text, using keyword searches and citation links.It targets metrics rather than surveys of anonymization techniques and also considers relevance to privacy in models trained on text.Source: §1 · p. 1
Contributions
- The analysis identifies six privacy notions: identifier removal, dataset membership, attribute inference, reconstruction attacks, semantic inference, and theoretical privacy bounds.These notions are examined in relation to HIPAA, GDPR, user-centered research, model privacy, and open evaluation challenges.Source: §1 · pp. 1–2
- The survey structures what existing metrics capture and overlook, offering guidance for metric selection while revealing gaps in legal alignment, social relevance, and evaluation consistency.It aims to support more consistent evaluation and development of standardized metrics.Source: §1 · p. 2
2.1 Scope and Methodology
The survey covers quantitative metrics for privacy in anonymized or synthetic English text, focusing on exposed sensitive information when original and anonymized outputs are available. It searches recent literature and manually retains 47 papers meeting explicit scope and reporting criteria.
Scope
- The review evaluates privacy in anonymized text outputs by asking how much sensitive information remains exposed after modification or generation.The scope generally assumes that original and anonymized versions are available for comparison.Source: §2.1 · p. 2
Search and screening
- The authors search ACL Anthology and Google Scholar using keywords and backward citation tracking, then manually screen thousands of results and retain 47 relevant papers.The review includes papers published from 2019 onward that explicitly report quantitative privacy metrics.Source: §2.1 · p. 2
Inclusion criteria
- Included studies must use natural-language text, contain anonymized or privatized outputs, report a privacy metric beyond utility measures, and primarily use English-language data.Papers focused exclusively on non-English datasets are excluded because of differing annotation schemes and accessibility.Source: §2.1 · p. 2
2.2 Survey of Evaluation Metrics
The survey groups text privacy metrics into six objectives spanning direct identifier removal, membership, inference, reconstruction, semantic leakage, and theoretical guarantees. These metrics capture complementary risks, but individual measures have important scope and interpretability limits.
Overview
- The survey identifies six privacy objectives: identifier removal, dataset membership, attribute inference, reconstruction attacks, semantic inference, and theoretical bounds.Each objective corresponds to distinct metric families, and some studies evaluate multiple categories.Source: §2.2 · p. 2
2.2.1 Identifier Removal Effectiveness
- Identifier-removal metrics commonly use token- or span-level precision, recall, and F1, while newer edit-distance, lexical-divergence, entailment, and human-judgment measures assess deeper obfuscation.Span-level F1 remains common, but semantic or corpus-level assessments may better capture residual risk when anonymization rewrites text.Source: §2.2.1 · pp. 2–3
2.2.2 Dataset Membership
- Dataset-membership metrics test whether an adversary can determine whether a record contributed to training or generation, commonly using attack accuracy, F1, AUC, or canary-injection leakage tests.Membership attacks are fragile and context-sensitive, depending strongly on attack design, dataset construction, and reference data; empirical leakage is sometimes paired with (ε, δ) budgets.Source: §2.2.2 · pp. 3–4
2.2.3 Attribute Inference Risk
- Attribute-inference metrics measure whether anonymized text still reveals sensitive traits, typically by comparing classifiers’ predictions on original and anonymized text.They expose leakage missed by identifier masking, but reduced inference accuracy alone does not ensure protection against reconstruction or membership disclosure.Source: §2.2.3 · pp. 4–5
2.2.4 Reconstruction Attacks
- Reconstruction attacks range from coarse retrieval to fine-grained recovery of verbatim or near-verbatim content, with metric choice depending on the target party and the recovery concern.The relevant risk may involve linking recovered content to the author, mentioned individuals, or both.Source: §2.2.4 · p. 5
2.2.6 Theoretical Privacy Bounds
- Theoretical privacy bounds provide mathematical upper limits on leakage, but they require correct implementation and assumptions, do not replace empirical testing, and are often difficult to interpret for human privacy risk.For example, ε = 4 indicates stronger protection than ε = 8 without specifying what either value means in practice.Source: §2.2.6 · p. 6
3 Are current metrics sufficient to meet legal standards?
Current text-privacy metrics align unevenly with HIPAA and GDPR: identifier removal supports HIPAA Safe Harbor, while broader expert and contextual identifiability requirements remain insufficiently assessed.
HIPAA
- Identifier-removal metrics align well with HIPAA Safe Harbor, appearing in 15 reviewed papers and directly measuring detection and masking of identifiable tokens.Source: §3.1 · p. 6
- Current datasets rarely follow HIPAA annotations, so generic entity labels miss quasi-identifiers such as geographic information and dates.Entity-level recall can better quantify compliance than span-level metrics, but few evaluations use it.Source: §3.1 · p. 6
- HIPAA Expert Determination calls for holistic, adversary-aware risk modeling, yet few studies simulate re-identification or compare attack models with real experts.Human-in-the-loop motivated-intruder tests are an exception.Source: §3.1 · pp. 6–7
GDPR
- Reconstruction metrics are among the most legally aligned with GDPR because they simulate adversarial behavior, but fixed attackers and narrow background assumptions limit their evidentiary robustness.Source: §3.2 · p. 7
- Attribute-inference metrics address GDPR concerns by testing recovery of sensitive traits, although few evaluations test multiple attributes.Source: §3.2 · p. 7
- Semantic-similarity proxies capture residual information indirectly but do not directly test whether an attacker can infer private information, as GDPR requires.GDPR compliance therefore requires contextual identifiability and diversified adversarial evaluation beyond identifier removal.Source: §3.2 · p. 7
4 User-Centered Privacy and Contextual Integrity
User-centered privacy research treats privacy as contextually appropriate information flow shaped by expectations, agency, and coherence, whereas text metrics usually focus on narrow leakage or attack measures.
- HCI research indicates that privacy perceptions depend on information context, user agency, and whether privatized text remains coherent, not only on masking names or attributes.Source: §4 · p. 7
- Contextual Integrity defines privacy as appropriate information flows among senders, recipients, content, conditions, and purposes rather than secrecy or control alone.Source: §4 · p. 7
- User-facing systems such as Rescriber, CLEAR, and Contextual Privacy Policies adapt disclosure or data handling to user judgments and situational factors.Source: §4 · pp. 7–8
- Text-privacy evaluations could incorporate context, user control, and acceptability because current benchmarks may score well while failing to earn trust or meet real-world privacy expectations.Future metrics could define the applicable scenario or use context and user preferences as inputs.Source: §4 · p. 8
5 Discussion
Text anonymization and model-privacy research target different objects but share privacy notions and attack paradigms, creating opportunities to transfer benchmarks, adversaries, and contextual approaches between them.
- The survey argues that reconciling text and model privacy could advance both areas, despite their differing evaluation targets.Source: §5 · p. 8
- Both fields study membership inference and reconstruction, while model-privacy work also uses canary attacks and membership-inference success rates on generated or trained outputs.Source: §5 · p. 8
- LLM attribute-inference risks overlap with anonymization metrics and suggest using language models as strong adversaries for reconstruction and attribute-inference evaluations.Source: §5 · p. 8
- Model-privacy benchmarks and probes provide standardized tasks for contextual expectations, PII exposure, attribute inference, and black-box leakage assessment.Source: §5 · p. 8
6 Recommendations and Open Challenges
The paper recommends privacy evaluations that match stated goals, support cross-method comparison, incorporate human and contextual evidence, and connect technical metrics to legal standards.
- Metrics should match intended privacy guarantees: re-identification goals require more than identifier-removal F1, while semantic-inference goals need task-specific probes or classifiers.Source: §6 · pp. 8–9
- Standardized, use-case-grounded pipelines are needed because redaction and synthetic-generation methods are often evaluated under different privacy notions, hindering practical comparison.Source: §6 · p. 9
- Human-centered methods such as motivated-intruder tests, contextual judgments, and scenario-based probing can reveal violations missed by token-level scores, despite their expense.Source: §6 · p. 9
- Technical evaluations should be interpretable against legal identifiability and risk definitions through adversarial simulations, auxiliary-knowledge tests, and plausibility-based linkage metrics.Source: §6 · p. 9
- Human-in-the-loop studies need annotation protocols, intruder-test guidelines, hybrid automation, and reporting norms to become more reproducible and scalable.Source: §6 · p. 9
- Addressing these issues could produce a more comprehensive, reliable, and socially grounded framework for evaluating privacy in text anonymization.Source: §6 · p. 9
7 Conclusion
The survey identifies six privacy objectives in text anonymization metrics and highlights gaps between current evaluation practices and broader legal, social, and practical standards. It calls for evaluations that better align privacy goals with metrics while accounting for adversarial, contextual, and human-centered risks.
- Six privacy objectives underlie existing metrics, but current practices remain misaligned with broader legal, social, and practical standards for meaningful privacy protection.Source: §7 · p. 9
- More rigorous evaluation should align stated privacy goals with chosen metrics and incorporate adversarial, contextual, and human-centered perspectives.The survey connects these priorities to responsible data sharing and model deployment as privacy risks grow with increasingly powerful generative models.Source: §7 · p. 9
Limitations
The survey is limited to post hoc privacy metrics for text anonymization and does not evaluate anonymization methods themselves. Its sample may favor quantifiable evaluation practices, and its discussion of legal and social privacy notions is interpretive rather than formal legal guidance.
- The survey reviews post hoc privacy evaluation metrics but does not assess the effectiveness of anonymization methods themselves.Source: Limitations · p. 9
- Requiring explicit privacy metrics may bias the surveyed sample toward works using quantifiable evaluation practices.Source: Limitations · p. 9
- The legal and social privacy analysis is interpretive and does not constitute formal legal guidance.Source: Limitations · p. 9