cs.CLNov 9, 2025

Rep2Text: Decoding Full Text from a Single LLM Token Representation

Authors: Haiyan Zhao, Zirui He, Yiming Tang, Fan Yang, Ali Payani, Dianbo Liu, Mengnan Du

Organizations: New Jersey Institute of Technology · National University of Singapore · Wake Forest University · Cisco Research · 

Abstract

Large language models represent text as hidden numerical patterns, but what information these representations actually contain remains a mystery. Can we recover the original text from just one of them? In this paper, we introduce Rep2Text, a method designed to answer this question by reconstructing text from a single hidden representation. We find that these representations preserve much more information than we might expect. For short texts of about 16 words, Rep2Text can recover roughly half of the original words while preserving their overall meaning. As the text gets longer, recovering the exact wording becomes harder, but the main ideas can still be recovered. These findings offer a new way to understand what language models store internally and highlight potential privacy risks, as hidden representations may reveal parts of the original input.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. GPT, But Backwards: Exactly Inverting Language Model Outputs

    Jul 2, 2025Adrians Skapars, Edoardo Manino, Youcheng Sun +1Privacy Leakage in Language ModelsLLM Security

  2. Do LLMs Really Forget? Hidden-State Leakage in Model Unlearning and How to Fix it

    Sep 29, 2026Hadi Reisizadeh, Jiajun Ruan, Sijia Liu +1Machine UnlearningLLM Unlearning

  3. Recovering Input Text from Hidden States: Study of Gradient-Based Inversion of Decoder-Only Language Models

    Jul 1, 2026Mikołaj Słowikowski, Maciej Witold MajewskiDecoder-Only Language ModelsPrivacy Leakage in Language Models