Large Language Models are Advanced Anonymizers

Robin Staab, Mark Vero, Mislav Balunović, Martin Vechev
2/21/2024
cs.AIcs.CLcs.CR

No official code found. Best implementation: eth-sri/llm-anonymization (23 stars, MIT, last commit 2025-05-23).

Abstract

Recent privacy research on large language models (LLMs) has shown that they achieve near-human-level performance at inferring personal data from online texts. With ever-increasing model capabilities, existing text anonymization methods are currently lacking behind regulatory requirements and adversarial threats. In this work, we take two steps to bridge this gap: First, we present a new setting for evaluating anonymization in the face of adversarial LLM inferences, allowing for a natural measurement of anonymization performance while remedying some of the shortcomings of previous metrics. Then, within this setting, we develop a novel LLM-based adversarial anonymization framework leveraging the strong inferential capabilities of LLMs to inform our anonymization procedure. We conduct a comprehensive experimental evaluation of adversarial anonymization across 13 LLMs on real-world and synthetic online texts, comparing it against multiple baselines and industry-grade anonymizers. Our evaluation shows that adversarial anonymization outperforms current commercial anonymizers both in terms of the resulting utility and privacy. We support our findings with a human study (n=50) highlighting a strong and consistent human preference for LLM-anonymized texts.

View on arXivView PDF

Code Implementations(1)

MIT
234Shell, PythonFeb 3, 20251 years agoMIT

Similar Papers

Cite this paper

@article{staab2024large,
  title  = {Large Language Models are Advanced Anonymizers},
  author = {Robin Staab and Mark Vero and Mislav Balunović and Martin Vechev},
  year   = {2024},
  eprint = {2402.13846},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13846v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.13846.svg)](https://codeofpaper.com/paper/2402.13846)

Discussion