atlas

Research map / Adversarial robustness and security / Black-box and transfer attacks

Stealing part of a production language model

ICML 2024 · Adversarial robustness and security › Black-box and transfer attacks · approach: Data-free substitute training · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that black-box production LLM APIs leak their final embedding projection layer via logit/logprob and logit-bias queries, recovering the hidden dimension and the full projection matrix (up to affine/orthogonal symmetries) of OpenAI ada and babbage for under $20.

Problem

How much information about a production language model's internals can an adversary extract through a black-box API that exposes logprobs and logit bias, specifically its embedding projection layer and hidden dimension.

Approach

A top-down attack: the final projection W (l x h) has low rank h, so SVD of many collected full logit vectors reveals the hidden dimension and the column space of W, recovering W up to an h x h linear transform. Full logit vectors are reconstructed from top-K logprobs by forcing different tokens into the top-K via logit bias, using a reference token or a linear-system formulation; logprob-free bin

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply hidden-dimension extraction to black-box production models with logit-bias and logprob accessOpenAI production models · ada, babbage, babbage-002, GPT-3.5-turbo-instruct, GPT-3.5-turbo-1106hidden-dimension extraction success: exactly correctHelped
Recover the projection matrix using the embedding-projection extraction attackOpenAI ada and babbage · ada and babbageweight-matrix RMS: 5 · 10^{-4}; 7 · 10^{-4}Helped
Use logprob-5 instead of logprob-4 to recover five rather than four logits per queryTop-5 logit-bias logit recovery · Top-5 logit-bias APIbits of precision: 23.0 -> 11.5Hurt
Use logprob-5 instead of logprob-4 to recover five rather than four logits per queryTop-5 logit-bias logit recovery · Top-5 logit-bias APIqueries per logit: 0.25 -> 0.64Hurt
Use logprob-free one-of-n attack instead of the top-5 logprob methodLogit recovery · Logit-free APIbits of precision: 18.0Helped
Use logprob-free one-of-n attack instead of the top-5 logprob methodLogit recovery · Logit-free APIqueries per logit: 3.7Mixed
Recover the effective rank rather than nominal widthGPT-2 Small hidden-dimension extraction · GPT-2 Smallstolen hidden dimension: 768 -> 757Mixed

Surprising findings

Limitations

Experimental setup

Metrics: RMS error of recovered projection matrix numerical rank / stolen hidden dimension bits of logit precision queries per logit USD cost

Baselines: logprob-1 binary search hyperrectangle one-of-n

Builds on: Carlini et al. ReLU model stealing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy