Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentence
Haoran Li, Mingshi Xu, Yangqiu Song
TL;DR
The paper addresses privacy leakage from sentence embeddings produced by large language models by introducing GEIA, a generative, black-box inversion attack that reconstructs ordered sentences from embeddings using a decoder seeded with $Align(f(x))$. GEIA demonstrates superiority over prior embedding inversion methods by producing coherent sequences and recovering informative content, including named entities, across multiple embedding models and datasets. The work provides extensive experiments on PersonaChat and QNLI, showing improved classification and generation metrics and highlighting practical privacy risks. The findings motivate the development of defenses to protect sentence-level representations in real-world applications.
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.
