arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.03010cs.CLcs.CR
收藏

句子嵌入泄露的信息比你预想的更多:用于还原完整句子的生成式嵌入反转攻击

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

Hong Kong University of Science and Technology(香港科技大学)

Haoran Li, Mingshi Xu, Yangqiu Song

AI总结:

本研究针对大语言模型句子嵌入的信息泄露问题,提出生成式嵌入反转攻击GEIA,通过将嵌入作为初始词元表示训练解码器,在黑盒条件下即可从句子嵌入还原完整句子,性能优于现有方法。

摘要:

句子级表示对多种自然语言处理任务均有裨益。人们普遍认为向量表示能够捕捉丰富的语言学特性。当前,大语言模型(large language models, LMs)在句子嵌入任务上取得了最优(state-of-the-art)性能。然而,近期部分研究表明,大语言模型输出的向量表示可能引发信息泄露问题。在本研究中,我们进一步探究了这一信息泄露问题,并提出一种生成式嵌入反转攻击(generative embedding inversion attack, GEIA),该攻击旨在仅依据句子嵌入重建输入序列。在仅能黑盒访问语言模型的条件下,我们将句子嵌入作为初始词元的表示,训练或微调一个高性能解码器模型以直接解码出完整序列。我们开展了大量实验,结果表明,我们的生成式反转攻击在分类指标上优于以往的嵌入反转攻击,且生成的句子与原始输入语义连贯、语境相似。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑