Logits of API-Protected LLMs Leak Proprietary Information
Not on the map. Why?
Abstract (arXiv)
Large language model (LLM) providers often hide the architectural details and parameters of their proprietary models by restricting public access to a limited API. In this work we show that, with only a conservative assumption about the model architecture, it is possible to learn a surprisingly large amount of non-public information about an API-protected LLM from a relatively small number of API queries (e.g., costing under 1000 USD for OpenAI's gpt-3.5-turbo). Our findings are centered on one key observation: most modern LLMs suffer from a softmax bottleneck, which restricts the model outputs to a linear subspace of the full output space. We exploit this fact to unlock several capabilities, including (but not limited to) obtaining cheap full-vocabulary outputs, auditing for specific types of model updates, identifying the source LLM given a single full LLM output, and even efficiently discovering the LLM's hidden size. Our empirical investigations show the effectiveness of our methods, which allow us to estimate the embedding size of OpenAI's gpt-3.5-turbo to be about 4096. Lastly, we discuss ways that LLM providers can guard against these attacks, as well as how these capabilities can be viewed as a feature (rather than a bug) by allowing for greater transparency and accountability.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 24 of its 27 references that are in the map. First posted on arXiv 14 Mar 2024.
Builds on
24 of 27 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
- 2015Inverting Visual Representations with Convolutional Networkscited by 168
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 164
12 more
- 2024Stealing Part of a Production Language Modelcited by 152
- 2017Breaking the Softmax Bottleneck: A High-Rank RNN Language Modelcited by 147
- 2019Thieves on Sesame Street! Model Extraction of BERT-based APIscited by 136
- 2023Auditing large language models: a three-layered approachcited by 135
- 2023Language Model Inversioncited by 66
- 2023CodeFusion: A Pre-trained Diffusion Model for Code Generationcited by 31
- 2023Closing the Curious Case of Neural Text Degenerationcited by 30
- 2021Models In a Spelling Bee: Language Models Implicitly Learn the Character Composition of Tokenscited by 26
- 2020Stolen Probability: A Structural Weakness of Neural Language Modelscited by 21
- 2022Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practicecited by 14
- 2023Towards Publicly Accountable Frontier LLMs: Building an External Scrutiny Ecosystem under the ASPIRE Frameworkcited by 11
- 2019Distilling BERT into Simple Neural Networks with Unlabeled Transfer Datacited by 3
Built on by
Citing papers per year: 2024: 12; 2025: 17; 2026: 9.
38 papers.
Sort:
By area:
- 2024Large Language Models for Education: A Survey and Outlookcited by 185
- 2024From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Modelscited by 136
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024Aligning LLMs with Individual Preferences via Interactioncited by 63
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
- 2025Are You Getting What You Pay For? Auditing Model Substitution in LLM APIscited by 35
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025SimMark: A Robust Sentence-Level Similarity-Based Watermarking Algorithm for Large Language Modelscited by 13
- 2025Scalable Fingerprinting of Large Language Modelscited by 11
- 2025Predicting the Performance of Black-box LLMs through Follow-up Queriescited by 9
- 2025Mining Intrinsic Rewards from LLM Hidden States for Efficient Best-of-N Samplingcited by 9
26 more
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
- 2024A Middle Path for On-Premises LLM Deployment: Preserving Privacy Without Sacrificing Model Confidentialitycited by 8
- 2025Sequences of Logits Reveal the Low Rank Structure of Language Modelscited by 8
- 2024Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Modelscited by 6
- 2024UniOQA: A Unified Framework for Knowledge Graph Question Answering with Large Language Modelscited by 5
- 2026Channel Location Constrains the Auditability of Subliminal Learningcited by 5
- 2025Approximating Language Model Training Data from Weightscited by 4
- 2024A Survey on Privacy Attacks Against Digital Twin Systems in AI-Roboticscited by 3
- 2025Every Language Model Has a Forgery-Resistant Signaturecited by 3
- 2024An Efficient Matrix Multiplication Algorithm for Accelerating Inference in Binary and Ternary Neural Networkscited by 2
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Userscited by 2
- 2026Disentangling Geometry, Performance, and Training in Language Modelscited by 2
- 2024Preserving Knowledge in Large Language Model with Model-Agnostic Self-Decompressioncited by 1
- 2025Beyond Release: Access Considerations for Generative AI Systemscited by 1
- 2025Distribution Prompting: Understanding the Expressivity of Language Models Through the Next-Token Distributions They Can Producecited by 1
- 2025A Rose by Any Other Name Would Smell as Sweet: Categorical Homotopy Theory for Large Language Modelscited by 1
- 2025Provably Extracting the Features from a General Superpositioncited by 1
- 2026Identified-Set Geometry of Distributional Model Extraction under Top-K Censored API Accesscited by 1
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Servicescited by 0
- 2025FiMMIA: scaling semantic perturbation-based membership inference across modalitiescited by 0
- 2026SCoOP: Semantic Consistent Opinion Pooling for Uncertainty Quantification in Multiple Vision-Language Model Systemscited by 0
- 2026The Geometry of Last-Layer Model Stealingcited by 0
- 2026Black-Box Inference of LLM Architectural Properties with Restrictive API Accesscited by 0
- 2026Jagged Judges: Epistemic Stability Under Perturbation, Pressure, and Persistencecited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decodingcited by 0
- 2026CUSP: Decomposable Collective Uncertainty for Multi-Agent Multimodal Reasoningcited by 0
- 2026CUSP: Decomposable Collective Uncertainty for Multi-Agent Multimodal Reasoning4 Sep 2026
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026Jagged Judges: Epistemic Stability Under Perturbation, Pressure, and Persistence12 Aug 2026
- 2026Black-Box Inference of LLM Architectural Properties with Restrictive API Access1 Jul 2026
- 2026Channel Location Constrains the Auditability of Subliminal Learning20 Jun 2026
- 2026The Geometry of Last-Layer Model Stealing5 Jun 2026
- 2026Identified-Set Geometry of Distributional Model Extraction under Top-K Censored API Access11 May 2026
- 2026SCoOP: Semantic Consistent Opinion Pooling for Uncertainty Quantification in Multiple Vision-Language Model Systems25 Mar 2026
- 2026Disentangling Geometry, Performance, and Training in Language Models24 Feb 2026
- 2025Provably Extracting the Features from a General Superposition17 Dec 2025
- 2025FiMMIA: scaling semantic perturbation-based membership inference across modalities2 Dec 2025
- 2025Sequences of Logits Reveal the Low Rank Structure of Language Models28 Oct 2025
26 more
- 2025Every Language Model Has a Forgery-Resistant Signature15 Oct 2025
- 2025A Rose by Any Other Name Would Smell as Sweet: Categorical Homotopy Theory for Large Language Models7 Aug 2025
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users3 Jul 2025
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributions20 Jun 2025
- 2025Approximating Language Model Training Data from Weights18 Jun 2025
- 2025Distribution Prompting: Understanding the Expressivity of Language Models Through the Next-Token Distributions They Can Produce18 May 2025
- 2025Mining Intrinsic Rewards from LLM Hidden States for Efficient Best-of-N Sampling18 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Are You Getting What You Pay For? Auditing Model Substitution in LLM APIs7 Apr 2025
- 2025Beyond Release: Access Considerations for Generative AI Systems23 Feb 2025
- 2025Auditing Prompt Caching in Language Model APIs11 Feb 2025
- 2025Scalable Fingerprinting of Large Language Models11 Feb 2025
- 2025SimMark: A Robust Sentence-Level Similarity-Based Watermarking Algorithm for Large Language Models5 Feb 2025
- 2025Predicting the Performance of Black-box LLMs through Follow-up Queries2 Jan 2025
- 2024Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Models12 Nov 2024
- 2024An Efficient Matrix Multiplication Algorithm for Accelerating Inference in Binary and Ternary Neural Networks10 Nov 2024
- 2024A Middle Path for On-Premises LLM Deployment: Preserving Privacy Without Sacrificing Model Confidentiality15 Oct 2024
- 2024Aligning LLMs with Individual Preferences via Interaction4 Oct 2024
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Services5 Aug 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 2024
- 2024A Survey on Privacy Attacks Against Digital Twin Systems in AI-Robotics27 Jun 2024
- 2024From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Models24 Jun 2024
- 2024Preserving Knowledge in Large Language Model with Model-Agnostic Self-Decompression17 Jun 2024
- 2024UniOQA: A Unified Framework for Knowledge Graph Question Answering with Large Language Models4 Jun 2024
- 2024Extracting Prompts by Inverting LLM Outputs23 May 2024
- 2024Large Language Models for Education: A Survey and Outlook26 Mar 2024
- 2024Aligning LLMs with Individual Preferences via Interactioncited by 63
- 2025Mining Intrinsic Rewards from LLM Hidden States for Efficient Best-of-N Samplingcited by 9
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Userscited by 2
- 2026Jagged Judges: Epistemic Stability Under Perturbation, Pressure, and Persistencecited by 0
- 2026Jagged Judges: Epistemic Stability Under Perturbation, Pressure, and Persistence12 Aug 2026
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users3 Jul 2025
- 2025Mining Intrinsic Rewards from LLM Hidden States for Efficient Best-of-N Sampling18 May 2025
- 2024Aligning LLMs with Individual Preferences via Interaction4 Oct 2024
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2026SCoOP: Semantic Consistent Opinion Pooling for Uncertainty Quantification in Multiple Vision-Language Model Systemscited by 0
- 2026CUSP: Decomposable Collective Uncertainty for Multi-Agent Multimodal Reasoningcited by 0
- 2026CUSP: Decomposable Collective Uncertainty for Multi-Agent Multimodal Reasoning4 Sep 2026
- 2026SCoOP: Semantic Consistent Opinion Pooling for Uncertainty Quantification in Multiple Vision-Language Model Systems25 Mar 2026
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2025SimMark: A Robust Sentence-Level Similarity-Based Watermarking Algorithm for Large Language Modelscited by 13
- 2025FiMMIA: scaling semantic perturbation-based membership inference across modalitiescited by 0
- 2024Large Language Models for Education: A Survey and Outlookcited by 185
- 2024From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Modelscited by 136
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
- 2025Are You Getting What You Pay For? Auditing Model Substitution in LLM APIscited by 35
- 2025Auditing Prompt Caching in Language Model APIscited by 19
- 2025Scalable Fingerprinting of Large Language Modelscited by 11
- 2025Predicting the Performance of Black-box LLMs through Follow-up Queriescited by 9
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
- 2024A Middle Path for On-Premises LLM Deployment: Preserving Privacy Without Sacrificing Model Confidentialitycited by 8
- 2025Sequences of Logits Reveal the Low Rank Structure of Language Modelscited by 8
- 2024UniOQA: A Unified Framework for Knowledge Graph Question Answering with Large Language Modelscited by 5
- 2026Channel Location Constrains the Auditability of Subliminal Learningcited by 5
12 most cited of 27 All 27 (JSON)
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026Black-Box Inference of LLM Architectural Properties with Restrictive API Access1 Jul 2026
- 2026Channel Location Constrains the Auditability of Subliminal Learning20 Jun 2026
- 2026The Geometry of Last-Layer Model Stealing5 Jun 2026
- 2026Identified-Set Geometry of Distributional Model Extraction under Top-K Censored API Access11 May 2026
- 2026Disentangling Geometry, Performance, and Training in Language Models24 Feb 2026
- 2025Provably Extracting the Features from a General Superposition17 Dec 2025
- 2025Sequences of Logits Reveal the Low Rank Structure of Language Models28 Oct 2025
- 2025Every Language Model Has a Forgery-Resistant Signature15 Oct 2025
- 2025A Rose by Any Other Name Would Smell as Sweet: Categorical Homotopy Theory for Large Language Models7 Aug 2025
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributions20 Jun 2025
- 2025Approximating Language Model Training Data from Weights18 Jun 2025
12 newest of 27 All 27 (JSON)