English

Differentially Private n-gram Extraction

Machine Learning 2021-08-09 v1 Cryptography and Security Data Structures and Algorithms

Abstract

We revisit the problem of nn-gram extraction in the differential privacy setting. In this problem, given a corpus of private text data, the goal is to release as many nn-grams as possible while preserving user level privacy. Extracting nn-grams is a fundamental subroutine in many NLP applications such as sentence completion, response generation for emails etc. The problem also arises in other applications such as sequence mining, and is a generalization of recently studied differentially private set union (DPSU). In this paper, we develop a new differentially private algorithm for this problem which, in our experiments, significantly outperforms the state-of-the-art. Our improvements stem from combining recent advances in DPSU, privacy accounting, and new heuristics for pruning in the tree-based approach initiated by Chen et al. (2012).

Keywords

Cite

@article{arxiv.2108.02831,
  title  = {Differentially Private n-gram Extraction},
  author = {Kunho Kim and Sivakanth Gopi and Janardhan Kulkarni and Sergey Yekhanin},
  journal= {arXiv preprint arXiv:2108.02831},
  year   = {2021}
}
R2 v1 2026-06-24T04:52:26.839Z