cs.CLMar 17, 2026

Anonymous-by-Construction: An LLM-Driven Framework for Privacy-Preserving Text

Authors: Federico Albanese, Pablo Ronco, Nicolás D'Ippolito

Organizations: Veritran, Buenos Aires, Argentina · University of Buenos Aires, Argentina · University of San Andrés, Buenos Aires, Argentina

Abstract

Responsible use of AI demands that we protect sensitive information without undermining the usefulness of data, an imperative that has become acute in the age of large language models. We address this challenge with an on-premise, LLM-driven substitution pipeline that anonymizes text by replacing personally identifiable information (PII) with realistic, type-consistent surrogates. Executed entirely within organizational boundaries using local LLMs, the approach prevents data egress while preserving fluency and task-relevant semantics. We conduct a systematic, multi-metric, cross-technique evaluation on the Action-Based Conversation Dataset, benchmarking against industry standards (Microsoft Presidio and Google DLP) and a state-of-the-art approach (ZSTS, in redaction-only and redaction-plus-substitution variants). Our protocol jointly measures privacy, semantic utility, and trainability under privacy via a lifecycle-ready criterion obtained by fine-tuning a compact encoder (BERT+LoRA) on sanitized text. In addition, we assess agentic Q&A performance by inserting an on-premise anonymization layer before the answering LLM and evaluating the quality of its responses. This intermediate, type-preserving substitution stage ensures that no sensitive content is exposed to third-party APIs, enabling responsible deployment of Q&A agents without compromising confidentiality. Our method attains state-of-the-art privacy, minimal topical drift, strong factual utility, and low trainability loss, outperforming rule-based approaches and named-entity recognition (NER) baselines and ZSTS variants on the combined privacy--utility--trainability frontier. These results show that local LLM substitution yields anonymized corpora that are both responsible to use and operationally valuable: safe for agentic pipelines and suitable for downstream fine-tuning with limited degradation.

Figures & tables

Explore similar work

CardsList
  1. LLM Anonymization Against Agentic Re-Identification

    May 29, 2026Ziwen Li, Jianing Wen, Tianshi LiPrivacy-Preserving Language ModelsPrivacy-Utility Tradeoff

  2. Redakto - The Incognito Tab for LLMs

    Aug 18, 2026Saurav Kumar Saha, Tom Röhr, Felix BießmannPrivacy Protection for LLM AgentsPrivacy-Preserving Language Models

  3. Veil-Then-Reveal: Protecting PII Privacy via Reversible Pseudo-Anonymization in Zero-Trust User--LLM Interaction

    Oct 16, 2026Mohamed Shaaban, Mohamed Elmahallawy, Thomas E. CarrollPrivacy-Preserving Language Models