mlsanityData to 14 Oct 2026

Depth Gives a False Sense of Privacy: LLM Internal States Inversion

arXiv 2507.16372 ↗First posted 22 Jul 2025cs.CR cs.AIcited by 17

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  5. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  7. 2021Measuring Coding Challenge Competence With APPScited by 902
  8. 2015Deep Learning and the Information Bottleneck Principlecited by 802
  9. 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
  10. 2023The Internal State of an LLM Knows When It's Lyingcited by 659
  11. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  12. 2021Large Dual Encoders Are Generalizable Retrieverscited by 456
28 more
  1. 2021Dataset Condensation with Distribution Matchingcited by 365
  2. 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 323
  3. 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
  4. 2020Information Leakage in Embedding Modelscited by 203
  5. 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
  6. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
  7. 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
  8. 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden Statescited by 98
  9. 2022Petals: Collaborative Inference and Fine-tuning of Large Modelscited by 87
  10. 2024Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Modelscited by 86
  11. 2024LLM Internal States Reveal Hallucination Risk Faced With a Querycited by 82
  12. 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
  13. 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
  14. 2023Language Model Inversioncited by 68
  15. 2023DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Passcited by 67
  16. 2021TAG: Gradient Attack on Transformer-based Language Modelscited by 63
  17. 2024SplitLoRA: A Split Parameter-Efficient Fine-Tuning Framework for Large Language Modelscited by 62
  18. 2024Learn What You Want to Unlearn: Unlearning Inversion Attacks against Machine Unlearningcited by 48
  19. 2024Authorship Attribution in the Era of LLMs: Problems, Methodologies, and Challengescited by 47
  20. 2024Extracting Prompts by Inverting LLM Outputscited by 41
  21. 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 37
  22. 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 23
  23. 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLcited by 21
  24. 2024Unveiling the Vulnerability of Private Fine-Tuning in Split-Based Frameworks for Large Language Models: A Bidirectionally Enhanced Attackcited by 18
  25. 2025Prompt Inversion Attack against Collaborative Inference of Large Language Modelscited by 15
  26. 2025Prompt Inference Attack on Distributed Large Language Model Inference Frameworkscited by 14
  27. 2024A First Look At Efficient And Secure On-Device LLM Inference Against KV Leakagecited by 8
  28. 2023Input Reconstruction Attack against Vertical Federated Large Language Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 15.

17 papers.

Sort:

By area:

  1. 2025Rep2Text: Decoding Full Text from a Single LLM Token Representationcited by 7
  2. 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inferencecited by 4
  3. 2025SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deploymentcited by 2
  4. 2026KUDA: Knowledge Unlearning by Deviating Representation for Large Language Modelscited by 2
  5. 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)cited by 2
  6. 2026LatentDx: Latent Multi-Agent Communication for Cross-Hospital Rare-Disease Diagnosiscited by 2
  7. 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAGcited by 1
  8. 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuningcited by 1
  9. 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoyscited by 1
  10. 2026Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarizationcited by 0
  11. 2026PromptPET: Privacy-Utility Optimized Prompt Obfuscationcited by 0
  12. 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
5 more
  1. 2026DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Modelscited by 0
  2. 2026Inferring Hidden User Models from the Behavior of Personalized LLM Agentscited by 0
  3. 2026SpliTEE: Fast and Private LLM Inference by Coupling GPU-Assisted Trusted Execution Environments with Differential Privacycited by 0
  4. 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEscited by 0
  5. 2026From Acoustic Sensing to Physical Actions: A Comprehensive Survey of Security Risks in Edge-Deployed Audio LLM-Based Agentscited by 0