Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Text Anonymization: Learning Privacy-Utility Trade-offs via Prompt Optimization

Gabriel Loiseau, Damien Sileo|arXiv (Cornell University)|Feb 24, 2026
Privacy-Preserving Technologies in DataComputer Science0 citations
TL;DR

The paper presents adaptive text anonymization that automatically learns domain- and task-specific privacy–utility trade-offs via evolutionary prompt optimization, enabling open-source models to match or exceed closed models on diverse benchmarks.

ABSTRACT

Anonymizing textual documents is a highly context-sensitive problem: the appropriate balance between privacy protection and utility preservation varies with the data domain, privacy objectives, and downstream application. However, existing anonymization methods rely on static, manually designed strategies that lack the flexibility to adjust to diverse requirements and often fail to generalize across domains. We introduce adaptive text anonymization, a new task formulation in which anonymization strategies are automatically adapted to specific privacy-utility requirements. We propose a framework for task-specific prompt optimization that automatically constructs anonymization instructions for language models, enabling adaptation to different privacy goals, domains, and downstream usage patterns. To evaluate our approach, we present a benchmark spanning five datasets with diverse domains, privacy constraints, and utility objectives. Across all evaluated settings, our framework consistently achieves a better privacy-utility trade-off than existing baselines, while remaining computationally efficient and effective on open-source language models, with performance comparable to larger closed-source models. Additionally, we show that our method can discover novel anonymization strategies that explore different points along the privacy-utility trade-off frontier.

Motivation & Objective

  • Address the context-sensitivity of text anonymization by enabling adaptive, task-conditioned privacy–utility trade-offs.
  • Eliminate reliance on manual prompt engineering and fixed trade-offs through automatic prompt evolution.
  • Enable local, open-source model-based anonymization with competitive performance against API-based solutions.

Proposed method

  • Formulates anonymization as adaptive, task-conditioned rewriting via prompts.
  • Introduces a two-stage GEPA-based evolutionary prompt optimization pipeline with a warm-start phase and a refinement phase.
  • Uses a Pareto-based selection over privacy and utility to maintain diverse operating points.
  • Implements rich feedback and adaptive validation sampling to improve search efficiency and guidance.
  • Operates on medium-sized open-source LLMs with a locally deployable anonymization agent and a proposer agent.
  • Represents each trade-off point as a natural-language instruction rather than a fixed model checkpoint.
Figure 1: Overview of our approach. We perform reflective prompt optimization using the GEPA algorithm Agrawal et al. ( 2025 ) . Our method adapts a base seed prompt into an optimized prompt defining the privacy and utility task requirements. The optimization operates in a strict fixed budget enviro
Figure 1: Overview of our approach. We perform reflective prompt optimization using the GEPA algorithm Agrawal et al. ( 2025 ) . Our method adapts a base seed prompt into an optimized prompt defining the privacy and utility task requirements. The optimization operates in a strict fixed budget enviro

Experimental results

Research questions

  • RQ1Can adaptive prompt optimization discover multiple Pareto-optimal privacy–utility trade-offs for text anonymization across domains?
  • RQ2How does open-source model-based anonymization, guided by task-specific prompts, compare to closed-source or traditional methods in privacy and utility?
  • RQ3Does the framework effectively generalize anonymization strategies to diverse domains and threat models?

Key findings

  • Optimized prompts consistently improve privacy scores while preserving or improving utility across open-source models and tasks.
  • The framework discovers multiple Pareto-optimal anonymization strategies within a single optimization run, spanning high-privacy to high-utility operating points.
  • Optimized Qwen3-30B-A3B achieves competitive performance with GPT-5-based methods on several tasks, narrowing the gap with closed models.
  • Trade-offs vary by model and task, with distinct frontiers visible for TAB, SynthPAI, and MedQA datasets.
  • The approach enables open-source models to reach performance comparable to or surpassing some API-based baselines on multiple benchmarks.
Figure 4: A comparison of learning behavior of our modified GEPA implementation against each separated component and a state-of-the-art prompt optimizer reference (MIPROv2). Results are measures with Gemma-3-27b-it on SynthPAI (top) and Mistral-Small-3.2-24B on TAB (bottom).
Figure 4: A comparison of learning behavior of our modified GEPA implementation against each separated component and a state-of-the-art prompt optimizer reference (MIPROv2). Results are measures with Gemma-3-27b-it on SynthPAI (top) and Mistral-Small-3.2-24B on TAB (bottom).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.