You Don't Know My Favorite Color: Preventing Dialogue Representations from Revealing Speakers' Private Personas

Haoran Li, Yangqiu Song, Lixin Fan
4/26/2022
cs.CLcs.CRcs.LG

Official code: HKUST-KnowComp/Persona_leakage_and_defense_in_GPT-2 (6 stars, Python, last commit 2022-04-11).

Abstract

Social chatbots, also known as chit-chat chatbots, evolve rapidly with large pretrained language models. Despite the huge progress, privacy concerns have arisen recently: training data of large language models can be extracted via model inversion attacks.

Show full abstract

On the other hand, the datasets used for training chatbots contain many private conversations between two individuals. In this work, we further investigate the privacy leakage of the hidden states of chatbots trained by language modeling which has not been well studied yet. We show that speakers' personas can be inferred through a simple neural network with high accuracy. To this end, we propose effective defense objectives to protect persona leakage from hidden states. We conduct extensive experiments to demonstrate that our proposed defense objectives can greatly reduce the attack accuracy from 37.6% to 0.5%. Meanwhile, the proposed objectives preserve language models' powerful generation ability.

View on arXivView PDF

Code Implementations(1)

Code for NAACL 2022 paper "You Don’t Know My Favorite Color: Preventing Dialogue Representations from Revealing Speakers’ Private Personas"

61Python, ShellApr 11, 20224 years ago

Similar Papers

Cite this paper

@article{li2022dont,
  title  = {You Don't Know My Favorite Color: Preventing Dialogue Representations from Revealing Speakers' Private Personas},
  author = {Haoran Li and Yangqiu Song and Lixin Fan},
  year   = {2022},
  eprint = {2205.10228},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10228}
}

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/2205.10228.svg)](https://codeofpaper.com/paper/2205.10228)

Discussion