On the Impact of Anonymization on the Performance of Large Language Models

As large language models are increasingly deployed in sensitive domains, anonymizing input data to protect personally identifiable information has become a critical practice. However, the impact of this anonymization on model utility is not well understood. This paper presents a systematic empirical study of the trade-off between privacy and performance. We evaluate five prominent language models across eleven diverse benchmarks, comparing their performance on original versus pseudonymized inputs. Our results reveal that while anonymization generally degrades performance, the effect is highly nuanced. We find that more capable models, such as Qwen2.5-72B and {GPT}-4o mini, suffer the largest performance drops, suggesting a stronger reliance on specific entity information. The impact is also task-dependent: performance on {TruthfulQA} improves with anonymization, while retrieval-focused tasks like {RGB} experience a catastrophic decline. Further experiments show that reversible anonymization techniques that preserve entity uniqueness significantly outperform irreversible ones like redaction, and that explicitly prompting models about anonymization offers no discernible benefit. We conclude that anonymization is not a one-size-fits-all solution and must be co-designed with the model and task in mind to balance privacy and utility effectively. Our findings provide a crucial baseline for developing more robust, privacy-aware {AI} systems.

  • Published in:
    arXiv
  • Type:
    Article
  • Authors:
    Deußer, Tobias; Hahnbück, Max; Sparrenberg, Lorenz; Uelwer, Tobias; Bauckhage, Christian; Sifa, Rafet
  • Year:
    2026
  • Source:
    http://arxiv.org/abs/2609.11335

Citation information

Deußer, Tobias; Hahnbück, Max; Sparrenberg, Lorenz; Uelwer, Tobias; Bauckhage, Christian; Sifa, Rafet: On the Impact of Anonymization on the Performance of Large Language Models, arXiv, 2026, {arXiv}:2609.11335, September, {arXiv}, http://arxiv.org/abs/2609.11335, Deusser.etal.2026a,

Associated Lamarr Researchers

Kopie von LAMARR Person 500x500 1 - Lamarr Institute for Machine Learning (ML) and Artificial Intelligence (AI)

Prof. Dr. Christian Bauckhage

Member of Directorate to the profile
Prof. Dr. Rafet Sifa

Prof. Dr. Rafet Sifa

Principal Investigator Hybrid ML to the profile