Robust Utility-Preserving Text Anonymization Based on Large Language Models

Tianyu Yang, Xiaodan Zhu, Iryna Gurevych
7/16/2024
cs.CL

Official code: UKPLab/acl2025-rupta (11 stars, Apache-2.0, last commit 2025-07-07).

Abstract

Anonymizing text that contains sensitive information is crucial for a wide range of applications. Existing techniques face the emerging challenges of the re-identification ability of large language models (LLMs), which have shown advanced capability in memorizing detailed information and reasoning over dispersed pieces of patterns to draw conclusions. When defending against LLM-based re-identification, anonymization could jeopardize the utility of the resulting anonymized data in downstream tasks. In general, the interaction between anonymization and data utility requires a deeper understanding within the context of LLMs. In this paper, we propose a framework composed of three key LLM-based components: a privacy evaluator, a utility evaluator, and an optimization component, which work collaboratively to perform anonymization. Extensive experiments demonstrate that the proposed model outperforms existing baselines, showing robustness in reducing the risk of re-identification while preserving greater data utility in downstream tasks. We provide detailed studies on these core modules. To consider large-scale and real-time applications, we investigate the distillation of the anonymization capabilities into lightweight models. All of our code and datasets will be made publicly available at https://github.com/UKPLab/acl2025-rupta.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the official code for the paper: Robust Utility-Preserving Text Anonymization Based on Large Language Models

114CSS, HTMLJul 2, 20241 years agoApache-2.0

Cite this paper

@article{yang2024robust,
  title  = {Robust Utility-Preserving Text Anonymization Based on Large Language Models},
  author = {Tianyu Yang and Xiaodan Zhu and Iryna Gurevych},
  year   = {2024},
  eprint = {2407.11770},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.11770v2}
}

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/2407.11770.svg)](https://codeofpaper.com/paper/2407.11770)

Discussion