REVIEW 4 major objections 4 minor 23 references
Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
T0 review · 4 major / 4 minor · reviewed 2026-08-05 · deepseek-v4-flash
Pith's one-line read This paper claims that a black-box LLM whose API returns top-k logits can be functionally cloned with fewer than 10,000 queries, by SVD-recovering the output projection matrix and distilling the rest into a smaller student model.
desk verdict Reasonable steal-and-distill pipeline, but the core top-k SVD step is unsubstantiated: the paper assumes full logits while claiming top-k access, so the headline 97.6% clone claim cannot be trusted as written. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing object is the logit matrix Q formed by stacking the API's top-k logit responses. Because the teacher's output projection W is low-rank, with hidden dimension d much smaller than vocabulary size V, the top d left singular vectors of Q span the same column space as W, so the estimate W_hat = U_{:,1:d} Sigma_{1:d,1:d} approximates W up to an unknown invertible matrix G; the spectral drop after d also estimates the hidden dimension. The second mechanism is temperature-scaled distillation, L(p) = tau^2 KL(softmax(z_T/tau) || softmax(z_S/tau)) + lambda CE(z_S, y), applied while the recovered projection and embedding layers stay frozen, which transfers the teacher's token-level beh
What would settle it
Take the same 6-layer teacher, return exactly k = d top logits per query or round all returned logits to one decimal place, run the described SVD extraction, and compare the column space of the recovered projection with the true one; if the two are essentially uncorrelated, the pipeline's first stage fails and the clone claim collapses.
Extended reading notes
Core claim
The paper claims that a black-box large language model can be functionally replicated through its API using only the top-k logits it returns. In the first stage, fewer than 10,000 queries are stacked into a logit matrix; a singular value decomposition of that matrix yields an estimate of the output projection matrix, correct up to an unknown invertible linear map, and the sharp drop in the singular-value spectrum reveals the hidden dimension. In the second stage, the recovered projection and embedding are frozen and a compact transformer student is trained to match the teacher's softened output distribution on public text. Reported results on distilGPT-2, a 6-layer model with roughly 81M par
Load-bearing premise
Everything rests on the unstated assumption that the logits the API does not return can be ignored or filled in without destroying the underlying structure that the SVD is supposed to recover.
Editorial extensions
If this is right
- A deployment that exposes unrounded top-k logits with k at least one more than the hidden dimension should be treated as having already lost its final layer.
- A 4-layer student clone can cut inference cost by 17.1% and parameter count by 18.1% while remaining within about 10.5% perplexity of the teacher, so the same recipe doubles as a compression method.
- Because clones evaluated on WikiText-103 stay within a 10.5% perplexity gap, the attack captures transferable behavior, not just memorized prompts.
- The full attack uses fewer than 10k queries and under 24 GPU-hours, putting high-fidelity cloning within reach of a cost-limited adversary and inside typical API rate limits.
- The recovered projection is only determined up to an unknown invertible transform, so any downstream student must be invariant to that transform; the cosine-similarity metric used here is exactly such an invariant.
Reading between the lines
- The SVD stage could be isolated as a cheap reconnaissance tool: even without distillation, the singular-value spectrum of the collected logit matrix reveals the teacher's hidden dimension, which an attacker could use to plan a larger steal.
- If the pipeline is robust to logit noise and quantization, it extends to real commercial APIs; a simple test would be to add small Gaussian noise to the returned logits and watch whether the recovered column space degrades gracefully or snaps.
- The 4- to 8-layer sweep suggests the method doubles as architecture discovery: student depth can be chosen by fitting a curve of perplexity versus parameter count, effectively probing how much of the teacher's capacity is redundant.
- A cheap defense is implied by the k >= d+1 assumption: truncating top-k logits to fewer than d+1 entries, or applying a randomized linear perturbation to logits before returning them, may break projection recovery while leaving sampling behavior intact.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a two-stage black-box LLM replication pipeline. Stage 1 (Sec. IV-A) claims to recover the output projection matrix W of a teacher transformer by collecting top-k logits from fewer than 10,000 API queries, stacking them into a full logit matrix Q, and applying SVD; the top-d left singular vectors scaled by singular values yield W_hat. Stage 2 (Sec. IV-B) then distills the teacher's behavior into student transformers of 4-8 layers, with the recovered projection layer frozen, using a KL+CE distillation loss on WikiText-2. The headline results are that a 6-layer student achieves 97.6% cosine similarity with the teacher's hidden-state geometry, a 7.31% perplexity increase, and 7.58 NLL, while a 4-layer variant gives 17.1% speedup and 18.1% parameter reduction. The authors evaluate on distilGPT-2 as teacher and report in-distribution (WikiText-2) and out-of-distribution (WikiText-103) metrics.
Significance. If the central claim were valid, the paper would demonstrate a practically important attack: a cost-limited adversary with only top-k logit access could produce a deployable functional clone of a black-box LLM under realistic query budgets. The paper has a clear threat model, uses public data, and compares multiple student depths, which are useful features. However, the load-bearing SVD step is not justified under the stated top-k threat model, the embedding-recovery assumption is unstated, and the empirical evaluation lacks the error bars and ablations needed to attribute the reported fidelity to the proposed method. As presented, the evidence does not support the headline claims, despite the topical significance.
major comments (4)
- [Sec. IV-A, Eqs. (2)-(3), Algorithm 1 line 4] The method defines Q ∈ R^{V×n} as a matrix of full logit vectors and applies SVD to recover W's column space. But the threat model (Sec. III-B.3) grants only top-k logits with k ≥ d+1, so each column has V-k unobserved entries. The paper never states how missing entries are filled, masked, or completed before SVD. Filling them with a constant contaminates the recovered column space with the missingness pattern; leaving them missing makes Eq. (2) undefined. The sentence 'Although partial, these responses contain enough information pattern to recover W' is an assertion, not a derivation. Since W_hat is frozen in Stage 2, this invalidates the 'under 10k queries' claim and the entire pipeline.
- [Sec. IV-B] The text states 'The clone keeps the stolen embedding and projection layers fixed,' but no embedding-recovery procedure is described anywhere; only W is reconstructed. If the student is initialized with the public distilGPT-2 embedding/vocabulary, this must be stated as an explicit assumption, as it is not part of the black-box capabilities in Sec. III-B.2. Without this clarification, the attack does not actually clone the full model and the 'deployable clone' claim is unsupported.
- [Sec. V, Tables I-III] No standard errors, confidence intervals, or multiple-seed results are reported, and no direct reconstruction error for W_hat (e.g., subspace distance to the true W) is given. There is also no ablation separating the contribution of the SVD stage from ordinary distillation with a randomly initialized projection. As a result, the reported 97.6% cosine similarity and perplexity gaps cannot be attributed to the proposed projection recovery, and the necessity of the recovered W is not established.
- [Sec. V-A, Table I] The metric 'Cos-sim' is not defined. Which internal representations are compared, at which layer(s), and how the student's hidden states are aligned with the teacher's under black-box access? Without a precise definition, the central 'hidden-state geometry' claim is not checkable or falsifiable.
minor comments (4)
- [Throughout] Grammar and wording issues: 'combining combine', 'enough information pattern to recover W', 'ground of our threat model'. A careful proofread is needed.
- [Algorithm 2] The temperature schedule 'Update temperature τ based on epoch' is unspecified; Eqs. (4)-(5) treat τ as a fixed hyperparameter. Please clarify how τ changes and report the values used.
- [Figures and Tables] Several figures have rendering artifacts such as '/uni000...' sequences and missing axis labels (Figs. 4-8). Please replace with clean, readable plots.
- [References [20], [21]] WikiText-2 and WikiText-103 are cited via Kaggle URLs. Please cite the original Merity et al. dataset papers and report the exact train/validation splits, tokenizer, and the number of queries n and top-k value used in the experiments.
Circularity Check
No significant circularity. The derivation is self-contained; the main weakness is an unproven partial-logit recovery assumption, not a circular argument.
full rationale
The paper's derivation chain is not circular. Stage 1 (Sec. IV-A, Eqs. 2-3) recovers W_hat by SVD of the logit matrix Q = W·g(p); this is a standard linear-algebra column-space recovery argument with stated assumptions (full-rank hidden states, unrounded logits), and W_hat is not defined in terms of the student model. Stage 2 (Sec. IV-B, Eqs. 4-5) trains the student to minimize KL(s_T || s_S) + λ·CE; the reported fidelity metrics (PPL gap, KL, cosine similarity) are measured after training, not fitted constants, so the results are empirical outcomes of distillation rather than tautologies. There are no load-bearing self-citations: reference [6] is Carlini et al., not the present authors, and is used only as inspiration for the SVD approach. The paper does contain an unsupported assertion in Sec. IV-A: 'Although partial, these responses contain enough information pattern to recover W.' Under the threat model (Sec. III-B.3), the API returns only top-k logits with k ≥ d+1, so the V×n matrix Q in Eq. (2) cannot be fully populated; the paper never specifies how missing logits are handled before SVD. This is a significant correctness/rigor gap, but it is not circularity—no equation reduces to its own input, no fitted parameter is relabeled as a prediction, and no self-citation chain forces the conclusion.
Assumptions & free parameters
free parameters (6)
- hidden dimension d_est =
nominally 768 (distilGPT-2)
- top-k count k =
k >= d+1, exact k not reported
- query count n =
under 10k, exact value not reported
- distillation temperature tau =
scheduled by epoch, formula and values omitted
- loss weight lambda =
0.1
- student depth =
4 to 8 layers; headline results use 6 and 4
assumptions (5)
- domain assumption API returns at least k >= d+1 top-k logits, unrounded and unperturbed
- ad hoc to paper Each prompt's full logit vector can be treated as observed even though only top-k entries are returned
- standard math The n sampled prompts produce hidden states whose span is full rank d
- domain assumption The student can use the same token embedding as the teacher, recovered as the transpose of the output projection
- domain assumption Cosine similarity of hidden states is a meaningful fidelity measure across different depths
Cite this review
Pith. "Pith review of Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation." pith.science (2026). https://pith.science/paper/A2JBS44P
@misc{pith2026250900973,
author = {Pith},
title = {Pith review of: Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation},
year = {2026},
howpublished = {\url{https://pith.science/paper/A2JBS44P}},
note = {Machine review of arXiv:2509.00973}
}
read the original abstract
Large Language Models (LLMs) are increasingly deployed in mission-critical systems, facilitating tasks such as satellite operations, command-and-control, military decision support, and cyber defense. Many of these systems are accessed through application programming interfaces (APIs). When such APIs lack robust access controls, they can expose full or top-k logits, creating a significant and often overlooked attack surface. Prior art has mainly focused on reconstructing the output projection layer or distilling surface-level behaviors. However, regenerating a black-box model under tight query constraints remains underexplored. We address that gap by introducing a constrained replication pipeline that transforms partial logit leakage into a functional deployable substitute model clone. Our two-stage approach (i) reconstructs the output projection matrix by collecting top-k logits from under 10k black-box queries via singular value decomposition (SVD) over the logits, then (ii) distills the remaining architecture into compact student models with varying transformer depths, trained on an open source dataset. A 6-layer student recreates 97.6% of the 6-layer teacher model's hidden-state geometry, with only a 7.31% perplexity increase, and a 7.58 Negative Log-Likelihood (NLL). A 4-layer variant achieves 17.1% faster inference and 18.1% parameter reduction with comparable performance. The entire attack completes in under 24 graphics processing unit (GPU) hours and avoids triggering API rate-limit defenses. These results demonstrate how quickly a cost-limited adversary can clone an LLM, underscoring the urgent need for hardened inference APIs and secure on-premise defense deployments.
Figures
Figures from the paper (3 more)
Reference graph
Works this paper leans on
-
[1]
Fine-tuning and evaluating open-source large lan- guage models for the army domain,
D. C. Ruiz and J. Sell, “Fine-tuning and evaluating open-source large lan- guage models for the army domain,” arXiv preprint arXiv:2410.20297 , 2024
arXiv 2024
-
[2]
S. Javaid, R. A. Khalil, N. Saeed, B. He, and M.-S. Alouini, “Leveraging large language models for integrated satellite-aerial-terrestrial networks: recent advances and future directions,” IEEE Open Journal of the Communications Society, 2024
work page 2024
-
[3]
Fine-tuned language models as space systems con- trollers,
E. M. Zucchelli, D. Wu, J. Briden, C. Hofmann, V . Rodriguez-Fernandez, and R. Linares, “Fine-tuned language models as space systems con- trollers,” arXiv preprint arXiv:2501.16588 , 2025
arXiv 2025
-
[4]
A. Koksal and A. A. Alatan, “Milchat: Introducing chain of thought reasoning and grpo to a multimodal small language model for remote sensing,” arXiv preprint arXiv:2505.07984 , 2025
arXiv 2025
-
[5]
Pllm- cs: Pre-trained large language model (llm) for cyber threat detection in satellite networks,
M. Hassanin, M. Keshk, S. Salim, M. Alsubaie, and D. Sharma, “Pllm- cs: Pre-trained large language model (llm) for cyber threat detection in satellite networks,” Ad Hoc Networks , vol. 166, p. 103645, 2025
work page 2025
-
[6]
Stealing part of a production language model,
N. Carlini, D. Paleka, K. Dvijotham, T. Steinke, J. Hayase, A. F. Cooper, K. Lee, M. Jagielski, M. Nasr, A. Conmy et al. , “Stealing part of a production language model,” in Proceedings of the 41st International Conference on Machine Learning , 2024, pp. 5680–5705
work page 2024
-
[7]
Teach llms to phish: Stealing private information from language mod- els,
A. Panda, C. A. Choquette-Choo, Z. Zhang, Y . Yang, and P. Mittal, “Teach llms to phish: Stealing private information from language mod- els,” in The Twelfth International Conference on Learning Representa- tions, 2024
work page 2024
-
[8]
Model stealing for any low-rank language model,
A. Liu and A. Moitra, “Model stealing for any low-rank language model,” arXiv preprint arXiv:2411.07536 , 2024
arXiv 2024
Show all 23 references
-
[9]
I know what you trained last summer: A survey on stealing machine learning models and defences,
D. Oliynyk, R. Mayer, and A. Rauber, “I know what you trained last summer: A survey on stealing machine learning models and defences,” ACM Computing Surveys , vol. 55, no. 14s, pp. 1–41, 2023
2023
-
[10]
Privacy backdoors: stealing data with corrupted pretrained models,
S. Feng and F. Tram `er, “Privacy backdoors: stealing data with corrupted pretrained models,” in Proceedings of the 41st International Conference on Machine Learning , 2024, pp. 13 326–13 364
2024
-
[11]
Can’t steal? cont-steal! contrastive stealing attacks against image encoders,
Z. Sha, X. He, N. Yu, M. Backes, and Y . Zhang, “Can’t steal? cont-steal! contrastive stealing attacks against image encoders,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023, pp. 16 373–16 383
2023
-
[12]
Large language models for link stealing attacks against graph neural networks,
F. Guan, T. Zhu, H. Sun, W. Zhou, and P. S. Yu, “Large language models for link stealing attacks against graph neural networks,” IEEE Transactions on Big Data , 2024
2024
-
[13]
Forensic analysis of indirect prompt injection attacks on llm agents,
M. Chernyshev, Z. Baig, and R. Doss, “Forensic analysis of indirect prompt injection attacks on llm agents,” in 2024 IEEE 6th International Conference on Trust, Privacy and Security in Intelligent Systems, and Applications (TPS-ISA), 2024, pp. 409–411
2024
-
[14]
Llm-sentry: A model-agnostic human-in-the-loop framework for securing large language models,
S. Irtiza, K. A. Akbar, A. Yasmeen, L. Khan, O. Daescu, and B. Thurais- ingham, “Llm-sentry: A model-agnostic human-in-the-loop framework for securing large language models,” in 2024 IEEE 6th International Conference on Trust, Privacy and Security in Intelligent Systems, and A...
2024
-
[15]
Data stealing attacks against large language models via backdooring,
J. He, G. Hou, X. Jia, Y . Chen, W. Liao, Y . Zhou, and R. Zhou, “Data stealing attacks against large language models via backdooring,” Electronics, vol. 13, no. 14, p. 2858, 2024
2024
-
[16]
Efficient llm jailbreak via adaptive dense-to-sparse constrained optimization,
K. Hu, W. Yu, Y . Li, T. Yao, X. Li, W. Liu, L. Yu, Z. Shen, K. Chen, and M. Fredrikson, “Efficient llm jailbreak via adaptive dense-to-sparse constrained optimization,” Advances in Neural Information Processing Systems, vol. 37, pp. 23 224–23 245, 2024
2024
-
[17]
Multi-turn context jailbreak attack on large language models from first principles,
X. Sun, D. Zhang, D. Yang, Q. Zou, and H. Li, “Multi-turn context jailbreak attack on large language models from first principles,” arXiv preprint arXiv:2408.04686, 2024
2024 arXiv
-
[18]
Harmbench: A standardized evaluation framework for automated red teaming and robust refusal,
M. Mazeika, L. Phan, X. Yin, A. Zou, Z. Wang, N. Mu, E. Sakhaee, N. Li, S. Basart, B. Li et al. , “Harmbench: A standardized evaluation framework for automated red teaming and robust refusal,” in ICML, 2024
2024
-
[19]
Distilling the knowledge in a neural network,
G. Hinton, O. Vinyals, and J. Dean, “Distilling the knowledge in a neural network,” arXiv preprint arXiv:1503.02531 , 2015
2015 arXiv
-
[20]
Wikitext-2 data,
V . Mettu, “Wikitext-2 data,” https://www.kaggle.com/datasets/ vivekmettu/wikitext2-data, 2022, accessed: 2025-05-31
2022
-
[21]
Wikitext103,
L. D, “Wikitext103,” https://www.kaggle.com/datasets/dekomposition/ wikitext103, 2022, accessed: 2025-05-31
2022
-
[22]
Scalable extraction of training data from (production) language models,
M. Nasr, N. Carlini, J. Hayase, M. Jagielski, A. F. Cooper, D. Ippolito, C. A. Choquette-Choo, E. Wallace, F. Tram `er, and K. Lee, “Scalable extraction of training data from (production) language models,” arXiv preprint arXiv:2311.17035, 2023
2023 arXiv
-
[23]
Quantile-based cumulative kullback-leibler divergence in past lifetime: Some properties and applications,
S. Sunoj and P. Saranya, “Quantile-based cumulative kullback-leibler divergence in past lifetime: Some properties and applications,” Commu- nications in Statistics-Theory and Methods , vol. 54, no. 6, pp. 1880– 1894, 2025
2025
Reviewed August 5, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.