NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Rep2Text: Decoding Full Text from a Single LLM Token Representation

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

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › LLM Internal Representation Bottlenecks · Type: new method · Keywords: LLM interpretability, text reconstruction, representation inversion, information bottleneck, clinical generalization

Summary

Rep2Text is a framework that decodes full input text from a single LLM last-token representation using an adapter and a decoding language model, recovering roughly half the tokens while preserving semantic coherence.

Explained to a 5-year-old

A big computer brain reads a short story and makes a secret note after the last word. We try to guess the story just from that secret note. We use a tiny helper that changes the secret note into a new note that looks like a story. The helper can then read the new note and write down the words it thinks were in the original story. The helper can recover about half of the words while keeping the meaning of the story, and it works better for short notes and still works on new kinds of stories.

Explained to a 5-year-old, longer

A big computer brain is like a super smart robot that can read and write words. When it reads a short story, it stores a tiny secret note after the last word. Scientists want to know how much of the story they can get back just from that secret note. They built a small helper that takes the secret note and turns it into a new note that looks like a story. The helper can then read the new note and write down the words it thinks were in the original story. On average, the helper can get back about half of the words from a 16-word story. Even though some words are missing, the meaning of the story stays mostly the same. When the story is longer, fewer words can be recovered, but the overall idea is still clear. The helper works well on many different computer brains, like Llama, Gemma, and Mistral. It also works on new kinds of stories, like medical reports, that it has never seen before. This shows that a lot of information is hidden in a single note, and we can peek at it. The findings help us understand how much knowledge is kept in the inner parts of big AI models.

For a technical reader

Rep2Text is a framework that attempts to reconstruct the original input text from a single last-token representation of a large language model. It does this by inserting a trainable adapter that projects the target model’s representation into the embedding space of a decoding language model, which then autoregressively generates the text. Experiments across several popular LLMs (Llama-3.1-8B, Gemma-7B, Mistral-7B, etc.) show that roughly 50 % of tokens in 16-token sequences are recovered while preserving semantic coherence. The study also identifies an information bottleneck: token-level recovery drops as sequence length grows, but higher-level meaning remains stable. Finally, the approach generalizes to out-of-distribution clinical data, indicating its robustness for real-world scenarios.

Problem

It is unclear how much of the original input text can be reconstructed from a single last-token representation of a large language model.

Method

The approach uses a trainable adapter to map a target model's last-token representation into the embedding space of a decoding language model, which then autoregressively reconstructs the input text. Experiments across multiple LLM architectures evaluate token recovery and semantic preservation.

Results

The approach recovers on average about half of the tokens in 16-token sequences while preserving semantic coherence, and token recovery declines with longer sequences but semantic information remains relatively stable. Scaling effects are less pronounced in inversion tasks, and the framework generalizes to out-of-distribution clinical data.

Contributions

The work quantifies how much input text can be recovered from a single LLM token representation, reveals an information bottleneck effect, and shows that semantic information is preserved even when token recovery drops. It also demonstrates robust generalization to clinical data.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction