[2403.06634] Stealing Part of a Production Language Model
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.
Stealing Part of a Production Language Model Nicholas Carlini 1 Daniel Paleka 2 Krishnamurthy (Dj) Dvijotham 1 Thomas Steinke 1 Jonathan Hayase 3 A. Feder Cooper 1 Katherine Lee 1 Matthew Jagielski 1 Milad Nasr 1 Arthur Conmy 1 Itay Yona 1 Eric Wallace 4 David Rolnick 5 Florian Tramèr 2 Abstract In this paper we ask: how…
related reading
- Transformer Explainer: LLM Transformer Model Visually Explainedpoloclub.github.io
- [2608.09867] Stealing Reasoning Traces from Proprietary LLM APIsarxiv.org
- [2603.07267] How to Steal Reasoning Without Reasoning Tracesarxiv.org
- interpreting GPT: the logit lens — LessWronglesswrong.com
- Stolen Thoughtsstolen-thoughts.com
- Extracting Training Data from ChatGPTnot-just-memorization.github.io
- Nicholas Carlininicholas.carlini.com
- Stealing Reasoning Traces from Proprietary LLM APIsarxiv.org
- [2606.04071] Covert Influence Between Language Modelsarxiv.org
- Getting Caught Up to Modern LLM Research | Samarth Goeldev.samarthgoel.com
- Large Language Model: world models or surface statistics?thegradient.pub
- Mechanistically Eliciting Latent Behaviors in Language Models — AI Alignment Forumalignmentforum.org