Identified-Set Geometry of Distributional Model Extraction under Top-K Censored API Access
Abstract
Some LLM serving interfaces return, for each position of a supplied text, only the top-K token scores and censor the rest of the vocabulary. We study what one such observation identifies about the next-token distribution, an access mode we call prompt-only single-pass logit access; we do not assume that the attacker lacks generation access. This access mode arises mainly in self-hosted, vLLM-style serving; major commercial APIs that expose log-probabilities return them only at generated positions. The teacher distributions compatible with an observation form an identified set whose total-variation diameter is exactly UK = (V-K)e^τ / (ZA + (V-K)e^τ), where τ is the K-th returned score and ZA is the sum of the exponentiated returned scores. For worst-case KL recovery we prove a two-sided bound that holds at every UK: the lower bound uses the two extreme compatible distributions (no hidden mass and maximal uniform hidden mass), the upper bound uses an estimator that respects the per-token cap on hidden probabilities, and both equal UK/e to first order as UK → 0. At the diameters we measure on a WikiText-fine-tuned Qwen3-0.6B teacher, the bracket is finite but not tight (0.54–1.15 nats at the mean diameter for K = 20), so the exact finite-U_K minimax value remains open. Experiments on a GSM8K-fine-tuned Qwen3-0.6B teacher separate distribution fidelity from capability transfer: trained on the same GSM8K prompts, on-task top-K distillation recovers 11.8% of the teacher's private GSM8K capability and on-task full-logit distillation 56.5%, while both close 98–99% of the teacher–baseline KL gap on held-out WikiText; fine-tuning on teacher-generated solutions recovers 96.1%. Top-K censoring therefore limits per-position distribution recovery but does not by itself prevent capability extraction. Our capability-transfer results are within a single model family and scale.