TextHide: Tackling Data Privacy in Language Understanding Tasks

Yangsibo Huang, Zhao Song, Danqi Chen, Kai Li, Sanjeev Arora
10/12/2020
cs.CLcs.CRcs.DS

Official code: Hazelsuko07/TextHide (29 stars, Python, MIT, last commit 2021-04-19).

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.

Show full abstract

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\%$. 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

View on arXivView PDF

Code Implementations(1)

MIT

TextHide: Tackling Data Privacy in Language Understanding Tasks

293Python, ShellOct 2, 20205 years agoMIT

Similar Papers

Cite this paper

@article{huang2020texthide,
  title  = {TextHide: Tackling Data Privacy in Language Understanding Tasks},
  author = {Yangsibo Huang and Zhao Song and Danqi Chen and Kai Li and Sanjeev Arora},
  year   = {2020},
  eprint = {2010.06053},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.06053}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.06053.svg)](https://codeofpaper.com/paper/2010.06053)

Discussion