TensorX
返回文献探索

Paper · arXiv 2403.06634

Stealing Part of a Production Language Model

Nicholas Carlini, Daniel Paleka, Krishnamurthy Dj Dvijotham, Thomas Steinke, Jonathan Hayase, A. Feder Cooper, Katherine Lee, Matthew Jagielski, Milad Nasr, Arthur Conmy, Eric Wallace, David Rolnick, Florian Tramèr

90 upvotesMarch 11, 2024arXiv 预印本
AI 摘要

A model-stealing attack is introduced that can extract detailed information such as the embedding projection layer from black-box language models with minimal cost.

model-stealing attackembedding projection layertransformer modelAPI accessblack-box modelsOpenAI's AdaOpenAI's Babbagegpt-3.5-turbohidden dimensionprojection matrixpotential defensesmitigations

Abstract

We introduce the first model-stealing attack that extracts precise, nontrivial information from black-box production language models like OpenAI's ChatGPT or Google's PaLM-2. Specifically, our attack recovers the embedding projection layer (up to symmetries) of a transformer model, given typical API access. For under \20 USD, our attack extracts the entire projection matrix of OpenAI's Ada and Babbage language models. We thereby confirm, for the first time, that these black-box models have a hidden dimension of 1024 and 2048, respectively. We also recover the exact hidden dimension size of the gpt-3.5-turbo model, and estimate it would cost under 2,000 in queries to recover the entire projection matrix. We conclude with potential defenses and mitigations, and discuss the implications of possible future work that could extend our attack.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Stealing Part of a Production Language Model | TensorX