arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.09539cs.CLcs.AIcs.CRcs.LG
收藏

受API保护的LLM的Logits泄露专有信息

Logits of API-Protected LLMs Leak Proprietary Information

Thomas Lord Department of Computer Science(托马斯· lord计算机科学系);University of Southern California(南加利福尼亚大学)

Matthew Finlayson, Xiang Ren, Swabha Swayamdipta

AI总结:

本文揭示通过有限API查询可推断受保护LLM的专有信息,利用softmax瓶颈获取完整词汇输出、审计更新、识别源模型及估计隐藏大小,并探讨防御与透明度优势。

摘要:

大型语言模型(LLM)提供商通常通过限制公共访问到有限的API来隐藏其专有模型的架构细节和参数。在这项工作中,我们表明,仅需对模型架构做出一个保守的假设,就有可能从相对较少的API查询(例如,对于OpenAI的gpt-3.5-turbo,成本低于1000美元)中学习到关于受API保护的LLM的大量非公开信息。我们的发现围绕一个关键观察:大多数现代LLM存在softmax瓶颈,这限制了模型输出到完整输出空间的线性子空间。我们利用这一事实来解锁多种能力,包括(但不限于)获取廉价的完整词汇表输出、审计特定类型的模型更新、在给定单个完整LLM输出时识别源LLM,甚至高效地发现LLM的隐藏大小。我们的实证调查显示了我们的方法的有效性,这些方法使我们能够估计OpenAI的gpt-3.5-turbo的嵌入大小约为4096。最后,我们讨论了LLM提供商如何防御这些攻击,以及如何将这些能力视为一个特性(而非缺陷),以实现更大的透明度和问责制。

英文摘要:

Large language model (LLM) providers often hide the architectural details and parameters of their proprietary models by restricting public access to a limited API. In this work we show that, with only a conservative assumption about the model architecture, it is possible to learn a surprisingly large amount of non-public information about an API-protected LLM from a relatively small number of API queries (e.g., costing under $1000 USD for OpenAI's gpt-3.5-turbo). Our findings are centered on one key observation: most modern LLMs suffer from a softmax bottleneck, which restricts the model outputs to a linear subspace of the full output space. We exploit this fact to unlock several capabilities, including (but not limited to) obtaining cheap full-vocabulary outputs, auditing for specific types of model updates, identifying the source LLM given a single full LLM output, and even efficiently discovering the LLM's hidden size. Our empirical investigations show the effectiveness of our methods, which allow us to estimate the embedding size of OpenAI's gpt-3.5-turbo to be about 4096. Lastly, we discuss ways that LLM providers can guard against these attacks, as well as how these capabilities can be viewed as a feature (rather than a bug) by allowing for greater transparency and accountability.

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

↑