Skip to main content
QUICK REVIEW

[Paper Review] DP-Rewrite: Towards Reproducibility and Transparency in Differentially Private Text Rewriting

Timour Igamberdiev, Thomas Arnold|arXiv (Cornell University)|Aug 22, 2022
Privacy-Preserving Technologies in DataComputer Science4 citations
TL;DR

DP-Rewrite is an open-source, modular framework for reproducible and transparent differentially private text rewriting, enabling rigorous evaluation of privacy-utility trade-offs. It detects privacy leaks in ADePT's pre-training phase, revealing that memorization of training data compromises utility and privacy even after fixing theoretical DP flaws.

ABSTRACT

Text rewriting with differential privacy (DP) provides concrete theoretical guarantees for protecting the privacy of individuals in textual documents. In practice, existing systems may lack the means to validate their privacy-preserving claims, leading to problems of transparency and reproducibility. We introduce DP-Rewrite, an open-source framework for differentially private text rewriting which aims to solve these problems by being modular, extensible, and highly customizable. Our system incorporates a variety of downstream datasets, models, pre-training procedures, and evaluation metrics to provide a flexible way to lead and validate private text rewriting research. To demonstrate our software in practice, we provide a set of experiments as a case study on the ADePT DP text rewriting system, detecting a privacy leak in its pre-training approach. Our system is publicly available, and we hope that it will help the community to make DP text rewriting research more accessible and transparent.

Motivation & Objective

  • To address the lack of transparency and reproducibility in differentially private (DP) text rewriting systems, which often lack public code or validation mechanisms.
  • To develop a modular, extensible, and customizable open-source framework for DP text rewriting experiments.
  • To detect and demonstrate privacy leaks in existing DP text rewriting systems, particularly in pre-training procedures.
  • To improve accountability in DP NLP by enabling empirical validation of privacy claims through standardized evaluation pipelines.

Proposed method

  • DP-Rewrite implements a correct reimplementation of ADePT as a baseline, ensuring proper application of local differential privacy with Laplace noise.
  • It supports pre-training on multiple datasets (e.g., ATIS, Snips) using autoencoders with $ε$-DP guarantees via clipping and noise injection.
  • The framework allows downstream text rewriting with adjustable privacy budgets $varepsilon$, enabling systematic evaluation across $varepsilon \in \{\infty, 1000, 100, 10, 1\}$.
  • It integrates multiple evaluation metrics, including macro-averaged F1 scores, to assess utility of rewritten text on downstream NLU tasks.
  • It uses $ell_1$-norm clipping to ensure theoretical privacy guarantees during pre-training and rewriting.
  • The system enables controlled experiments comparing pre-training and rewriting on same vs. different datasets to detect memorization and privacy leakage.

Experimental results

Research questions

  • RQ1Can a modular, open-source framework improve transparency and reproducibility in differentially private text rewriting research?
  • RQ2Does the pre-training procedure of ADePT lead to memorization of training data, even after fixing its theoretical DP flaw?
  • RQ3How does the choice of pre-training dataset affect the utility and privacy of rewritten downstream text?
  • RQ4What is the impact of varying the privacy budget $varepsilon$ on the utility of rewritten text in DP text rewriting systems?
  • RQ5To what extent do privacy-preserving claims in existing DP text rewriting systems hold under empirical validation?

Key findings

  • Rewriting with a model pre-trained on the same dataset yields significantly better F1 scores (e.g., 0.94 at $varepsilon=1000$) compared to using a model pre-trained on a different dataset (e.g., 0.20 for Snips rewritten with ATIS-pretrained model).
  • Even at $varepsilon=\infty$ (no noise), models pre-trained on a dataset memorize its examples, leading to rewritten outputs that closely resemble training data rather than the input.
  • At low privacy budgets ($varepsilon=10$ and $1$), utility drops drastically across all configurations due to excessive noise in latent representations.
  • Downstream performance on rewritten Snips using a Snips-pretrained model matches original Snips performance ($F_1=0.94$ vs. $0.95$ at $varepsilon=\infty$), indicating high utility when pre-training and rewriting datasets align.
  • The ATIS dataset shows lower performance ($F_1=0.73$) when rewritten with an ATIS-pretrained model compared to original ($F_1=0.87$), likely due to its smaller size limiting effective pre-training.
  • The framework successfully detects that ADePT’s pre-training strategy leaks information, as rewritten outputs strongly resemble pre-training data rather than input texts, even after correcting the theoretical DP flaw.

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.