Rep2Text: Decoding Full Text from a Single LLM Token Representation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable progress across diverse tasks, yet their internal mechanisms remain largely opaque. In this work, we investigate a fundamental question: to what extent can the original input text be recovered from a single last-token representation in an LLM? To this end, we propose Rep2Text, a novel framework for decoding text from last-token representations. Rep2Text employs a trainable adapter that maps a target model's last-token representation into the token embedding space of a decoding language model, which then autoregressively reconstructs the input text. Experiments across various model combinations (Llama-3.1-8B, Gemma-7B, Mistral-7B-v0.1, Llama-3.2-3B, etc.) show that, on average, roughly half of the tokens in 16-token sequences can be recovered from this compressed representation while preserving strong semantic coherence. Further analysis reveals a clear information bottleneck effect: as sequence length increases, token-level recovery declines, while semantic information remains relatively well preserved. We also find that scaling effects are less pronounced in inversion tasks. Finally, our framework demonstrates robust generalization to out-of-distribution clinical data.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 21 of its 32 references that are in the map. First posted on arXiv 9 Nov 2025.
Builds on
21 of 32 references.
References · 21
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Visual Instruction Tuningcited by 7,869
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2024The Platonic Representation Hypothesiscited by 382
- 2023Language Models Represent Space and Timecited by 316
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2020Information Leakage in Embedding Modelscited by 203
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
9 more
- 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
- 2025A Survey on Sparse Autoencoders: Interpreting the Internal Mechanisms of Large Language Modelscited by 76
- 2024SelfIE: Self-Interpretation of Large Language Model Embeddingscited by 67
- 2024LatentQA: Teaching LLMs to Decode Activations Into Natural Languagecited by 51
- 2024Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model Queriescited by 25
- 2023Localizing Lying in Llama: Understanding Instructed Dishonesty on True-False Questions Through Prompting, Probing, and Patchingcited by 24
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 17
- 2024InversionView: A General-Purpose Method for Reading Information from Neural Activationscited by 7
- 2025InverseScope: Scalable Activation Inversion for Interpreting Large Language Modelscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025A Unified Theory of Sparse Dictionary Learning in Mechanistic Interpretability: Piecewise Biconvexity and Spurious Minimacited by 3
- 2026When Language Overwrites Vision: Over-Alignment and Geometric Debiasing in Vision-Language Modelscited by 1
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representationscited by 1
- 2026Emergent Hierarchical Monosemantic Neurons from the Group-Contrastive Forward-Forward Algorithmcited by 0
- 2026Understanding and Exploiting Anisotropy in Post-Trainingcited by 0
- 2026Faithful Activation Verbalization: Reducing Hallucinations in LLM Representation Interpretationcited 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
- 2026Faithful Activation Verbalization: Reducing Hallucinations in LLM Representation Interpretation27 Sep 2026
- 2026Understanding and Exploiting Anisotropy in Post-Training26 Sep 2026
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representations4 Sep 2026
- 2026Emergent Hierarchical Monosemantic Neurons from the Group-Contrastive Forward-Forward Algorithm13 Jul 2026
- 2026When Language Overwrites Vision: Over-Alignment and Geometric Debiasing in Vision-Language Models7 May 2026
- 2025A Unified Theory of Sparse Dictionary Learning in Mechanistic Interpretability: Piecewise Biconvexity and Spurious Minima5 Dec 2025