← Lab /Security & privacy

Dynamic anonymization cuts recall loss to <35% and boosts generation quality up to 56%

TRIP-RAG reduces privacy risk while preserving utility better than full anonymization

Security & privacy arXiv 27 Mar 2026 Method Simulation evidence Threat model

Published as “Not All Entities are Created Equal: A Dynamic Anonymization Framework for Privacy-Preserving Retrieval-Augmented Generation”

Why it matters

The framework makes cloud-based RAG feasible for sensitive domains by preserving more useful content while still curbing entity-level privacy leaks.

Summary

TRIP-RAG reduces privacy leakage by up to 48% while keeping Recall@k within a 35% drop, and improves generation quality by up to 56% over prior baselines. It does this by dynamically selecting which entities to anonymize using a three-dimensional score (marginal privacy risk, knowledge divergence, topical relevance). Experiments on 170k real-world medical and business documents show higher BLEU/ROUGE-L scores than full redaction or paraphrasing, though some utility loss and residual leakage remain.

What they found 4

  1. Recall@k drops by less than 35% compared to the original data.

    “TRIP-RAG’s Recall@k decreases by less than 35% compared to the original data”

  2. Generation quality (BLEU/ROUGE-L) improves by up to 56% over existing baselines.

    “the generation quality improves by up to 56% over existing baselines”

  3. Privacy leakage on the ChatDoctor dataset is reduced by 26% relative to the original data.

    “we achieve the best results on the ChatDoctor dataset, reducing privacy leakage by 26% compared to the original data”

  4. BLEU improves between 3% and 56% and ROUGE-L between 5% and 53% relative to baselines.

    “improving BLEU by 3%-56% and ROUGE-L by 5%-53% relative to the baseline methods”

Caveats 3

  • Recall@k still falls up to 35%, indicating a non-trivial loss in retrieval performance.
  • Privacy leakage is not eliminated; TRIP-RAG still leaves 0.17 (ChatDoctor) and 0.33 (Enronqa) leakage rates.
  • we rely on the GLiNER model to extract private entities (Zaratiana et al. [2024]) for the experimental portion of the paper. Although our investigation indicates that this custom-labelbased extraction method is currently the and the most suitable approach for privacy protection scenarios, our manual audit of the extraction results reveals that this method still misses some entities that appear in uncommon positions.

What’s new here 4

  • Introduces a dynamic, context-aware entity selection rather than blanket anonymization.
  • Combines three quantitative dimensions (privacy risk, knowledge divergence, topical relevance) to rank entities.
  • Provides a tunable privacy-utility trade-off via a dynamic threshold.
  • Applies the framework to large-scale RAG pipelines with real-world medical and business datasets.

Threat model stated by the source

AdversaryAttacker A with polynomial-time computational capabilities
CapabilityWhite-box access to the knowledge database in the untrusted-server scenario; black-box access to the RAG system plus white-box knowledge of the anonymization mechanism in the trusted-server scenario
AssumesSensitive-domain data is hard to obtain, limiting attacker background knowledge; The attacker’s goal is entity inference and document reconstruction