Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentence

Haoran Li, Mingshi Xu, Yangqiu Song
5/4/2023
cs.CLcs.CR

No official code found. Best implementation: HKUST-KnowComp/GEIA (47 stars, MIT, last commit 2024-06-03).

Abstract

Sentence-level representations are beneficial for various natural language processing tasks. It is commonly believed that vector representations can capture rich linguistic properties. Currently, large language models (LMs) achieve state-of-the-art performance on sentence embedding. However, some recent works suggest that vector representations from LMs can cause information leakage. In this work, we further investigate the information leakage issue and propose a generative embedding inversion attack (GEIA) that aims to reconstruct input sequences based only on their sentence embeddings. Given the black-box access to a language model, we treat sentence embeddings as initial tokens' representations and train or fine-tune a powerful decoder model to decode the whole sequences directly. We conduct extensive experiments to demonstrate that our generative inversion attack outperforms previous embedding inversion attacks in classification metrics and generates coherent and contextually similar sentences as the original inputs.

View on arXivView PDF

Code Implementations(1)

HKUST-KnowComp/GEIACommunity100%
MIT

Code for Findings-ACL 2023 paper: Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentence

4715PythonMay 4, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023sentence,
  title  = {Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentence},
  author = {Haoran Li and Mingshi Xu and Yangqiu Song},
  year   = {2023},
  eprint = {2305.03010},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.03010v1}
}

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

Discussion