English

TextHide: Tackling Data Privacy in Language Understanding Tasks

Computation and Language 2020-10-14 v1 Cryptography and Security Data Structures and Algorithms Machine Learning Machine Learning

Abstract

An unsolved challenge in distributed or federated learning is to effectively mitigate privacy risks without slowing down training or reducing accuracy. In this paper, we propose TextHide aiming at addressing this challenge for natural language understanding tasks. It requires all participants to add a simple encryption step to prevent an eavesdropping attacker from recovering private text data. Such an encryption step is efficient and only affects the task performance slightly. In addition, TextHide fits well with the popular framework of fine-tuning pre-trained language models (e.g., BERT) for any sentence or sentence-pair task. We evaluate TextHide on the GLUE benchmark, and our experiments show that TextHide can effectively defend attacks on shared gradients or representations and the averaged accuracy reduction is only 1.9%1.9\%. We also present an analysis of the security of TextHide using a conjecture about the computational intractability of a mathematical problem. Our code is available at https://github.com/Hazelsuko07/TextHide

Keywords

Cite

@article{arxiv.2010.06053,
  title  = {TextHide: Tackling Data Privacy in Language Understanding Tasks},
  author = {Yangsibo Huang and Zhao Song and Danqi Chen and Kai Li and Sanjeev Arora},
  journal= {arXiv preprint arXiv:2010.06053},
  year   = {2020}
}

Comments

Findings of EMNLP 2020

R2 v1 2026-06-23T19:17:40.543Z