arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.13647cs.CLcs.LG
收藏

语言模型反演

Language Model Inversion

Cornell University(康奈尔大学)

John X. Morris, Wenting Zhao, Justin T. Chiu, Vitaly Shmatikov, Alexander M. Rush

AI总结:

本研究提出语言模型反演方法,通过模型输出的下一token概率分布恢复隐藏的提示文本,在Llama-2 7b上实现59 BLEU和78 F1,精确恢复27%提示。

摘要:

语言模型生成下一个token的分布;我们能否利用这一信息来恢复提示token?我们考虑了语言模型反演问题,并表明下一个token的概率包含了关于前文的大量信息。通常,在文本对用户隐藏的情况下,我们可以恢复该文本,这促使我们提出一种仅给定模型当前分布输出来恢复未知提示的方法。我们考虑了多种模型访问场景,并展示了即使没有词汇表中每个token的预测,我们也可以通过搜索恢复概率向量。在Llama-2 7b上,我们的反演方法以59的BLEU和78的token级F1重建提示,并精确恢复27%的提示。用于复现所有实验的代码可在http://github.com/jxmorris12/vec2text获取。

英文摘要:

Language models produce a distribution over the next token; can we use this information to recover the prompt tokens? We consider the problem of language model inversion and show that next-token probabilities contain a surprising amount of information about the preceding text. Often we can recover the text in cases where it is hidden from the user, motivating a method for recovering unknown prompts given only the model's current distribution output. We consider a variety of model access scenarios, and show how even without predictions for every token in the vocabulary we can recover the probability vector through search. On Llama-2 7b, our inversion method reconstructs prompts with a BLEU of $59$ and token-level F1 of $78$ and recovers $27\%$ of prompts exactly. Code for reproducing all experiments is available at http://github.com/jxmorris12/vec2text.

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

↑