Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 16 of its 23 references that are in the map. First posted on arXiv 31 Aug 2025.
Builds on
16 of 23 references.
References · 16
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2024Stealing Part of a Production Language Modelcited by 159
- 2022I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defencescited by 75
- 2024Multi-Turn Context Jailbreak Attack on Large Language Models From First Principlescited by 56
- 2024Teach LLMs to Phish: Stealing Private Information from Language Modelscited by 32
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoderscited by 31
- 2024Privacy Backdoors: Stealing Data with Corrupted Pretrained Modelscited by 22
- 2024Efficient LLM Jailbreak via Adaptive Dense-to-sparse Constrained Optimizationcited by 18
- 2024PLLM-CS: Pre-trained Large Language Model (LLM) for Cyber Threat Detection in Satellite Networkscited by 10
- 2024Leveraging Large Language Models for Integrated Satellite-Aerial-Terrestrial Networks: Recent Advances and Future Directionscited by 10
4 more
- 2024Model Stealing for Any Low-Rank Language Modelcited by 9
- 2024Fine-Tuning and Evaluating Open-Source Large Language Models for the Army Domaincited by 6
- 2025Fine-Tuned Language Models as Space Systems Controllerscited by 4
- 2024Large Language Models for Link Stealing Attacks Against Graph Neural Networkscited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.