Depth Gives a False Sense of Privacy: LLM Internal States Inversion
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly integrated into daily routines, yet they raise significant privacy and safety concerns. Recent research proposes collaborative inference, which outsources the early-layer inference to ensure data locality, and introduces model safety auditing based on inner neuron patterns. Both techniques expose the LLM's Internal States (ISs), which are traditionally considered irreversible to inputs due to optimization challenges and the highly abstract representations in deep layers. In this work, we challenge this assumption by proposing four inversion attacks that significantly improve the semantic similarity and token matching rate of inverted inputs. Specifically, we first develop two white-box optimization-based attacks tailored for low-depth and high-depth ISs. These attacks avoid local minima convergence, a limitation observed in prior work, through a two-phase inversion process. Then, we extend our optimization attack under more practical black-box weight access by leveraging the transferability between the source and the derived LLMs. Additionally, we introduce a generation-based attack that treats inversion as a translation task, employing an inversion model to reconstruct inputs. Extensive evaluation of short and long prompts from medical consulting and coding assistance datasets and 6 LLMs validates the effectiveness of our inversion attacks. Notably, a 4,112-token long medical consulting prompt can be nearly perfectly inverted with 86.88 F1 token matching from the middle layer of Llama-3 model. Finally, we evaluate four practical defenses that we found cannot perfectly prevent ISs inversion and draw conclusions for future mitigation design.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 40 of its 64 references that are in the map. First posted on arXiv 22 Jul 2025.
Builds on
40 of 64 references.
References · 40
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2015Deep Learning and the Information Bottleneck Principlecited by 802
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 456
28 more
- 2021Dataset Condensation with Distribution Matchingcited by 365
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 323
- 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
- 2020Information Leakage in Embedding Modelscited by 203
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
- 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden Statescited by 98
- 2022Petals: Collaborative Inference and Fine-tuning of Large Modelscited by 87
- 2024Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Modelscited by 86
- 2024LLM Internal States Reveal Hallucination Risk Faced With a Querycited by 82
- 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2023Language Model Inversioncited by 68
- 2023DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Passcited by 67
- 2021TAG: Gradient Attack on Transformer-based Language Modelscited by 63
- 2024SplitLoRA: A Split Parameter-Efficient Fine-Tuning Framework for Large Language Modelscited by 62
- 2024Learn What You Want to Unlearn: Unlearning Inversion Attacks against Machine Unlearningcited by 48
- 2024Authorship Attribution in the Era of LLMs: Problems, Methodologies, and Challengescited by 47
- 2024Extracting Prompts by Inverting LLM Outputscited by 41
- 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 37
- 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 23
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLcited by 21
- 2024Unveiling the Vulnerability of Private Fine-Tuning in Split-Based Frameworks for Large Language Models: A Bidirectionally Enhanced Attackcited by 18
- 2025Prompt Inversion Attack against Collaborative Inference of Large Language Modelscited by 15
- 2025Prompt Inference Attack on Distributed Large Language Model Inference Frameworkscited by 14
- 2024A First Look At Efficient And Secure On-Device LLM Inference Against KV Leakagecited by 8
- 2023Input Reconstruction Attack against Vertical Federated Large Language Modelscited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 15.
17 papers.
Sort:
By area:
- 2025Rep2Text: Decoding Full Text from a Single LLM Token Representationcited by 7
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inferencecited by 4
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deploymentcited by 2
- 2026KUDA: Knowledge Unlearning by Deviating Representation for Large Language Modelscited by 2
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)cited by 2
- 2026LatentDx: Latent Multi-Agent Communication for Cross-Hospital Rare-Disease Diagnosiscited by 2
- 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAGcited by 1
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuningcited by 1
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoyscited by 1
- 2026Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarizationcited by 0
- 2026PromptPET: Privacy-Utility Optimized Prompt Obfuscationcited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
5 more
- 2026DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Modelscited by 0
- 2026Inferring Hidden User Models from the Behavior of Personalized LLM Agentscited by 0
- 2026SpliTEE: Fast and Private LLM Inference by Coupling GPU-Assisted Trusted Execution Environments with Differential Privacycited by 0
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agentscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agents11 Oct 2026
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEs27 Sep 2026
- 2026SpliTEE: Fast and Private LLM Inference by Coupling GPU-Assisted Trusted Execution Environments with Differential Privacy14 Sep 2026
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoys3 Sep 2026
- 2026Inferring Hidden User Models from the Behavior of Personalized LLM Agents3 Sep 2026
- 2026DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Models5 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026PromptPET: Privacy-Utility Optimized Prompt Obfuscation3 Jul 2026
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuning18 Jun 2026
- 2026LatentDx: Latent Multi-Agent Communication for Cross-Hospital Rare-Disease Diagnosis11 Jun 2026
- 2026Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarization26 May 2026
- 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAG25 May 2026
5 more
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)2 Mar 2026
- 2026KUDA: Knowledge Unlearning by Deviating Representation for Large Language Models22 Feb 2026
- 2025Rep2Text: Decoding Full Text from a Single LLM Token Representation9 Nov 2025
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deployment22 Oct 2025
- 2026LatentDx: Latent Multi-Agent Communication for Cross-Hospital Rare-Disease Diagnosiscited by 2
- 2026Inferring Hidden User Models from the Behavior of Personalized LLM Agentscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agentscited by 0
- 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agents11 Oct 2026
- 2026Inferring Hidden User Models from the Behavior of Personalized LLM Agents3 Sep 2026
- 2026LatentDx: Latent Multi-Agent Communication for Cross-Hospital Rare-Disease Diagnosis11 Jun 2026
- 2025Rep2Text: Decoding Full Text from a Single LLM Token Representationcited by 7
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inferencecited by 4
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deploymentcited by 2
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)cited by 2
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoyscited by 1
- 2026Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarizationcited by 0
- 2026PromptPET: Privacy-Utility Optimized Prompt Obfuscationcited by 0
- 2026DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Modelscited by 0
- 2026SpliTEE: Fast and Private LLM Inference by Coupling GPU-Assisted Trusted Execution Environments with Differential Privacycited by 0
- 2026SpliTEE: Fast and Private LLM Inference by Coupling GPU-Assisted Trusted Execution Environments with Differential Privacy14 Sep 2026
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoys3 Sep 2026
- 2026DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Models5 Aug 2026
- 2026PromptPET: Privacy-Utility Optimized Prompt Obfuscation3 Jul 2026
- 2026Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarization26 May 2026
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)2 Mar 2026
- 2025Rep2Text: Decoding Full Text from a Single LLM Token Representation9 Nov 2025
- 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deployment22 Oct 2025