Researchers Show LLM Token Representations Leak Recoverable Text, Raising Privacy Concerns
A new method reconstructs original text from a single hidden layer representation in language models, revealing both the richness of model internals and potential security vulnerabilities.
Researchers have developed a technique called Rep2Text that reconstructs full text passages from a single hidden representation buried deep within a large language model. The work exposes how much sensitive information can be extracted from what was thought to be opaque model internals.
How the Technique Works#
The method operates on the hidden numerical patterns that language models use to encode and process text. Rather than treating these intermediate representations as black boxes, Rep2Text attempts to reverse-engineer the original input by decoding what a model has stored at a single point in its neural network.
Key Findings#
The results reveal substantial leakage of input content:
- For brief texts around 16 words, the technique recovers approximately half of the original words while maintaining semantic integrity
- Longer passages become progressively harder to reconstruct verbatim, though the core message often remains recoverable
- The representations contain far more information than previously understood
Implications for Privacy and Security#
These findings carry dual significance. On one hand, they illuminate what language models actually learn and store internally—a longstanding question in AI interpretability research. On the other hand, they expose a previously underestimated privacy risk: if attackers can access these hidden representations, they may be able to retrieve fragments of sensitive input data, including personal information, proprietary content, or confidential conversations fed into the model.
The work published on arXiv in November 2025 demonstrates that the boundary between what we consider private model weights and recoverable user data is far more porous than many assumed.