Stealing Part of a Production Language Model
2024/03/11 by Nicholas Carlini, Carlini, Nicholas, Daniel Paleka +26 · 11 voices · 26 citations
Computer Science · #Natural Language Processing Techniques #cs.CR
paper · pdf · doi:10.48550/arxiv.2403.06634
openalex publication_date 2024/03/11 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28
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.
Cited by
Discussions
- Stealing Part of a Production Language Model [hn, 218 points, 51 comments]
- Stealing Part of a Production Language Model (2024) [lobsters, 6 points, 0 comments]
- LLMのAPIコールだけでモデルの最終層をシステムから盗み出す実験らしい。ワロタ arxiv.org/abs/2403.06634 [bsky, 3 points, 0 comments]
- arxiv.org/pdf/2403.066... I’m sorry what?! 😂 [bsky, 2 points, 2 comments]
- 'We introduce the first model-stealing attack that extracts precise, nontrivial information from black-box production language models like OpenAI's ChatGPT' arxiv.org/abs/2403.06634 #llms #chatgpt [bsky, 1 points, 0 comments]
- Google shows how to look inside the model black box with their paper: "Stealing Part of a Production Language Model". Their model-stealing attack extracts precise, nontrivial information from black-b [bsky, 1 points, 0 comments]
- Stealing Part of a Production Language Model (2024) https://lobste.rs/s/agrmoo #api #math #ai [bsky, 0 points, 0 comments]
- あとで読む arxiv.org/abs/2403.06634 [bsky, 0 points, 0 comments]
- Stealing Part of a Production Language Model https://arxiv.org/abs/2403.06634 [bsky, 0 points, 0 comments]
- arxiv.org/abs/2403.06634 interesting [bsky, 0 points, 0 comments]
- Google wrote a paper on how an attack can reveal details of an LLM architecture, like the unreleased size of internal GPT-4 embeddings arxiv.org/abs/2403.06634 [bsky, 0 points, 0 comments]
Related