Documented Exercise · OBS.EX0103

Stealing Embedding Projection Layers from Black-Box Production LLMs

Carlini et al. (ICML 2024) executed the first black-box parameter-recovery attack against commercial production LLMs, recovering exact hidden dimensions and full embedding projection matrices (up to linear symmetries) via standard API logit queries. For under $20 USD in API calls, the team extracted complete projection layers for OpenAI Ada (hidden dimension 1024) and Babbage (2048) and recovered GPT-3.5-Turbo’s hidden dimension while estimating full projection recovery under $2,000. Responsible disclosure prompted providers to alter logit-bias and probability-reporting behaviors before publication. Exposing uncompressed logprobs or logit-bias controls leaks proprietary architectural weights at negligible attacker cost.

Exercise dossier metadata

Case ID
OBS.EX0103
Classification
Exercise
Date
Evaluation scope
OpenAI Ada, Babbage, GPT-3.5-Turbo & Google PaLM-2 · Logit-Bias Weight Recovery
Reference URI
https://arxiv.org/abs/2403.06634

Inspect OBS.EX0103 in Interactive Incidents & Cases Hub

Mapped AI security techniques

Mapped defensive controls

Source citation records