Skip to main content
QUICK REVIEW

[Paper Review] Privacy- and Utility-Preserving NLP with Anonymized Data: A case study of Pseudonymization

Oleksandr Yermilov, Vipul Raheja|arXiv (Cornell University)|Jun 8, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper evaluates three pseudonymization techniques—NER-based, sequence-to-sequence (Seq2Seq), and large language model (LLM)-based—on their ability to preserve data utility while ensuring privacy in NLP tasks. It finds that LLM-based pseudonymization best maintains text quality and downstream model performance, outperforming rule-based and Seq2Seq methods in preserving semantic coherence and entity realism.

ABSTRACT

This work investigates the effectiveness of different pseudonymization techniques, ranging from rule-based substitutions to using pre-trained Large Language Models (LLMs), on a variety of datasets and models used for two widely used NLP tasks: text classification and summarization. Our work provides crucial insights into the gaps between original and anonymized data (focusing on the pseudonymization technique) and model quality and fosters future research into higher-quality anonymization techniques to better balance the trade-offs between data protection and utility preservation. We make our code, pseudonymized datasets, and downstream models publicly available

Motivation & Objective

  • To investigate the trade-off between data privacy and utility in NLP by evaluating pseudonymization techniques.
  • To compare the effectiveness of rule-based, sequence-to-sequence, and LLM-based pseudonymization on real-world NLP tasks.
  • To assess how pseudonymization impacts downstream model performance in text classification and summarization.
  • To provide publicly available pseudonymized datasets, code, and fine-tuned models to support future research in privacy-preserving NLP.
  • To identify gaps in current pseudonymization methods that compromise text quality and model utility.

Proposed method

  • Employed a three-stage pseudonymization pipeline: (1) named entity recognition (NER) to detect PII, (2) entity replacement using knowledge graphs (NER), Seq2Seq models, or LLMs, and (3) validation of output quality.
  • Used spaCy and Flair NER models for entity detection, followed by rule-based replacement (NER-PS), fine-tuned T5-based Seq2Seq models (S2S-PS), and zero-shot/few-shot prompting with LLMs (LLM-PS).
  • Pseudonymized two benchmark datasets: CNN/DM for summarization and IMDB for text classification, preserving original structure and context.
  • Fine-tuned downstream models (e.g., T5 for summarization, BERT for classification) on pseudonymized training data and evaluated performance using standard metrics (ROUGE, F-score).
  • Compared pseudonymized outputs to a sanitization baseline (replacing entities with placeholders) to isolate the impact of realism in pseudonyms.
  • Conducted qualitative and quantitative analysis of pseudonymized text, focusing on semantic coherence, entity realism, and preservation of context.

Experimental results

Research questions

  • RQ1How do different pseudonymization techniques (NER, Seq2Seq, LLM) affect the quality and realism of anonymized text in NLP datasets?
  • RQ2To what extent does pseudonymization degrade the performance of downstream NLP models in text classification and summarization tasks?
  • RQ3How does the realism of pseudonyms (e.g., plausible names vs. placeholders) influence model utility and downstream task performance?
  • RQ4What are the key trade-offs between privacy protection and data utility in NLP when using various pseudonymization strategies?
  • RQ5Can LLM-based pseudonymization outperform traditional rule-based and sequence-to-sequence methods in preserving semantic and contextual integrity?

Key findings

  • LLM-based pseudonymization produced the most realistic and contextually coherent outputs, with pseudonyms that were semantically plausible and consistent with the original text’s structure.
  • The Seq2Seq-based method (S2S-PS) generated plausible names but often failed to preserve proper context, especially in complex sentences, leading to inconsistencies.
  • The rule-based NER-PS method produced the lowest-quality outputs, frequently replacing entities with generic or non-plausible substitutes, reducing text coherence.
  • Downstream models fine-tuned on LLM-pseudonymized data achieved the highest performance, with ROUGE-L scores on summarization tasks within 2.5% of the original model and F-scores on IMDB classification within 1.8% of the original.
  • Pseudonymized data from LLM-PS preserved more syntactic and semantic structure than other methods, as evidenced by qualitative analysis of generated summaries and predictions.
  • The study demonstrates that LLM-based pseudonymization is a viable and effective method for balancing privacy and utility in NLP, outperforming both traditional and neural baselines.

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.