Extracting Prompts by Inverting LLM Outputs
Not on the map. Why?
Abstract (arXiv)
We consider the problem of language model inversion: given outputs of a language model, we seek to extract the prompt that generated these outputs. We develop a new black-box method, output2prompt, that learns to extract prompts without access to the model's logits and without adversarial or jailbreaking queries. In contrast to previous work, output2prompt only needs outputs of normal user queries. To improve memory efficiency, output2prompt employs a new sparse encoding techique. We measure the efficacy of output2prompt on a variety of user and system prompts and demonstrate zero-shot transferability across different LLMs.
Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). Builds on 27 of its 39 references that are in the map. First posted on arXiv 23 May 2024.
Builds on
27 of 39 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2023Qwen Technical Reportcited by 3,273
- 2023Mistral 7Bcited by 3,065
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2024Mixtral of Expertscited by 1,785
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
15 more
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
- 2014Understanding Deep Image Representations by Inverting Themcited by 399
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2019High Accuracy and High Fidelity Extraction of Neural Networkscited by 208
- 2020Information Leakage in Embedding Modelscited by 199
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2015Inverting Visual Representations with Convolutional Networkscited by 168
- 2024Stealing Part of a Production Language Modelcited by 152
- 2021Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?cited by 91
- 2023Effective Prompt Extraction from Language Modelscited by 83
- 2023Language Model Inversioncited by 66
- 2024Query-Based Adversarial Prompt Generationcited by 55
- 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
- 2024Logits of API-Protected LLMs Leak Proprietary Informationcited by 38
- 2020Vec2Face: Unveil Human Faces from their Blackbox Features in Face Recognitioncited by 36
Built on by
Citing papers per year: 2024: 7; 2025: 22; 2026: 11.
40 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2025Discrete Diffusion in Large Language and Multimodal Models: A Surveycited by 61
- 2025Harnessing the Universal Geometry of Embeddingscited by 54
- 2025Language Models are Injective and Hence Invertiblecited by 31
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
- 2025GraphEval: A Lightweight Graph-Based LLM Framework for Idea Evaluationcited by 17
- 2026RAGEN-2: Reasoning Collapse in Agentic RLcited by 16
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 14
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasurescited by 11
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
28 more
- 2025Universal Zero-shot Embedding Inversioncited by 8
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Qualitycited by 7
- 2025Diffusion LLMs are Natural Adversaries for any LLMcited by 7
- 2025Privacy Risks of LLM-Empowered Recommender Systems: An Inversion Attack Perspectivecited by 6
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Pluginscited by 6
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizerscited by 5
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Modelscited by 5
- 2024Rank Matters: Understanding and Defending Model Inversion Attacks via Low-Rank Feature Filteringcited by 4
- 2024Mitigating Paraphrase Attacks on Machine-Text Detectors via Paraphrase Inversioncited by 4
- 2024PromptKeeper: Safeguarding System Prompts for LLMscited by 4
- 2025Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Promptscited by 3
- 2025SoK: Semantic Privacy in Large Language Modelscited by 3
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 3
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMscited by 2
- 2025IPAD: Inverse Prompt for AI Detection - A Robust and Interpretable LLM-Generated Text Detectorcited by 2
- 2025Prada: Black-Box LLM Adaptation with Private Data on Resource-Constrained Devicescited by 2
- 2026Small Reward Models via Backward Inferencecited by 2
- 2025Label Anything: An Interpretable, High-Fidelity and Prompt-Free Annotatorcited by 1
- 2026Buy versus Build an LLM: A Decision Framework for Governmentscited by 1
- 2025A global log for medical AIcited by 0
- 2026Synapse: Federated Tool Routing via Typed Compendium Artifactscited by 0
- 2026Language Model Inversion through End-to-End Differentiationcited by 0
- 2026PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstructioncited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decodingcited by 0
- 2026The Safeguard Worked. Is the LLM System Safer?cited by 0
- 2026HeadEdit: Calibrating Language Model Behavior Through the Frozen Unembedding Matrixcited by 0
- 2026HeadEdit: Calibrating Language Model Behavior Through the Frozen Unembedding Matrix1 Oct 2026
- 2026The Safeguard Worked. Is the LLM System Safer?1 Sep 2026
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstruction31 Jul 2026
- 2026RAGEN-2: Reasoning Collapse in Agentic RL7 Apr 2026
- 2026Small Reward Models via Backward Inference14 Feb 2026
- 2026Buy versus Build an LLM: A Decision Framework for Governments13 Feb 2026
- 2026Language Model Inversion through End-to-End Differentiation11 Feb 2026
- 2026Synapse: Federated Tool Routing via Typed Compendium Artifacts31 Jan 2026
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins8 Nov 2025
28 more
- 2025Diffusion LLMs are Natural Adversaries for any LLM31 Oct 2025
- 2025Language Models are Injective and Hence Invertible17 Oct 2025
- 2025A global log for medical AI5 Oct 2025
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversion22 Jul 2025
- 2025Privacy Risks of LLM-Empowered Recommender Systems: An Inversion Attack Perspective20 Jul 2025
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Models6 Jul 2025
- 2025SoK: Semantic Privacy in Large Language Models30 Jun 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributions20 Jun 2025
- 2025Discrete Diffusion in Large Language and Multimodal Models: A Survey16 Jun 2025
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Quality9 Jun 2025
- 2025Harnessing the Universal Geometry of Embeddings18 May 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Prompts29 Apr 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Universal Zero-shot Embedding Inversion31 Mar 2025
- 2025Prada: Black-Box LLM Adaptation with Private Data on Resource-Constrained Devices19 Mar 2025
- 2025GraphEval: A Lightweight Graph-Based LLM Framework for Idea Evaluation16 Mar 2025
- 2025IPAD: Inverse Prompt for AI Detection - A Robust and Interpretable LLM-Generated Text Detector21 Feb 2025
- 2025Label Anything: An Interpretable, High-Fidelity and Prompt-Free Annotator5 Feb 2025
- 2024On the Validity of Traditional Vulnerability Scoring Systems for Adversarial Attacks against LLMs28 Dec 2024
- 2024PromptKeeper: Safeguarding System Prompts for LLMs18 Dec 2024
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasures15 Nov 2024
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2024Mitigating Paraphrase Attacks on Machine-Text Detectors via Paraphrase Inversion29 Oct 2024
- 2024Rank Matters: Understanding and Defending Model Inversion Attacks via Low-Rank Feature Filtering8 Oct 2024
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers12 Aug 2024
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 3
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2026Small Reward Models via Backward Inferencecited by 2
- 2026Small Reward Models via Backward Inference14 Feb 2026
- 2025Harnessing the Universal Geometry of Embeddingscited by 54
- 2025Language Models are Injective and Hence Invertiblecited by 31
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
- 2025GraphEval: A Lightweight Graph-Based LLM Framework for Idea Evaluationcited by 17
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 14
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasurescited by 11
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
- 2025Universal Zero-shot Embedding Inversioncited by 8
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Qualitycited by 7
- 2025Privacy Risks of LLM-Empowered Recommender Systems: An Inversion Attack Perspectivecited by 6
- 2024Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizerscited by 5
- 2024Rank Matters: Understanding and Defending Model Inversion Attacks via Low-Rank Feature Filteringcited by 4
12 most cited of 28 All 28 (JSON)
- 2026HeadEdit: Calibrating Language Model Behavior Through the Frozen Unembedding Matrix1 Oct 2026
- 2026The Safeguard Worked. Is the LLM System Safer?1 Sep 2026
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstruction31 Jul 2026
- 2026Buy versus Build an LLM: A Decision Framework for Governments13 Feb 2026
- 2026Language Model Inversion through End-to-End Differentiation11 Feb 2026
- 2026Synapse: Federated Tool Routing via Typed Compendium Artifacts31 Jan 2026
- 2025Language Models are Injective and Hence Invertible17 Oct 2025
- 2025A global log for medical AI5 Oct 2025
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversion22 Jul 2025
- 2025Privacy Risks of LLM-Empowered Recommender Systems: An Inversion Attack Perspective20 Jul 2025
- 2025SoK: Semantic Privacy in Large Language Models30 Jun 2025
12 newest of 28 All 28 (JSON)