DeepInvert: Semi-Supervised Embedding Inversion Against Obfuscated Language Models
Not on the map. Why?
Abstract (arXiv)
Cloud-based language model services routinely process prompts containing sensitive information. Obfuscation-based defenses---including ObfusLM, SentinelLMs, TextObfuscator, and DPNR---mitigate this risk by transforming prompt representations before transmission, offering a lightweight alternative to cryptographic solutions. We show these defenses provide far less protection than previously believed. We present DeepInvert, a semi-supervised embedding inversion attack that recovers original tokens from obfuscated representations with higher accuracy than prior methods. The key insight is that unlabeled obfuscated embeddings retain exploitable semantic structure despite perturbation. DeepInvert combines supervised training on labeled shadow data with a novel unsupervised consistency objective over unlabeled target embeddings, alternating between the two via a mixed training pipeline. Defense-aware adaptations further extend the attack to diverse obfuscation mechanisms across encoder-based and autoregressive architectures. Experiments on nine defenses, five tasks, and four model architectures show that DeepInvert outperforms prior attacks on most defenses. Against ObfusLM, DeepInvert achieves 73.5% top-1 token recovery versus 26.2% for the previous best. Our results reveal a task-dependent tension: obfuscation schemes preserving enough signal for utility also retain sufficient structure for inversion, while schemes resisting inversion collapse utility. On simpler classification tasks, some DP-based defenses can maintain both. We call for a re-evaluation of this defense class.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 60 references that are in the map. First posted on arXiv 5 Aug 2026.
Builds on
33 of 60 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2023A Survey of Large Language Modelscited by 2,537
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
21 more
- 2020FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidencecited by 2,080
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
- 2020Gradient Surgery for Multi-Task Learningcited by 1,210
- 2018Exploiting Unintended Feature Leakage in Collaborative Learningcited by 509
- 2021A Survey of Transformerscited by 399
- 2021Curriculum Learning: A Surveycited by 257
- 2020Information Leakage in Embedding Modelscited by 199
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
- 2021Differential Privacy for Text Analytics via Natural Text Sanitizationcited by 74
- 2020Differentially Private Representation for NLP: Formal Guarantee and An Empirical Study on Privacy and Fairnesscited by 66
- 2023DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Passcited by 65
- 2021Natural Language Understanding with Privacy-Preserving BERTcited by 54
- 2022A Customized Text Sanitization Mechanism with Differential Privacycited by 51
- 2021CAPE: Context-Aware Private Embeddings for Private Language Learningcited by 22
- 2022Sentence-level Privacy for Document Embeddingscited by 15
- 2025Prompt Inversion Attack against Collaborative Inference of Large Language Modelscited by 14
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 14
- 2023SentinelLMs: Encrypted Input Adaptation and Fine-tuning of Language Models for Private and Secure Inferencecited by 9
- 2024Eguard: Defending LLM Embeddings Against Inversion Attacks via Text Mutual Information Optimizationcited by 8
- 2025ALGEN: Few-shot Inversion Attacks on Textual Embeddings using Alignment and Generationcited by 4
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)cited by 2
Built on by
Not cited yet.