The Truth Lies Somewhere in the Middle (of the Generated Tokens)

Sophie L. Wang, Phillip Isola, Brian Cheung
5/11/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

How should hidden states generated autoregressively be collapsed into a representation that reflects a language model's internal state? Despite tokens being generated under causal masking, we find that mean pooling across their hidden states yields more semantic representations than any individual token alone.

Show full abstract

We quantify this through kernel alignment to reference spaces in language, vision, and protein domains. The improvement through mean pooling is consistent with information being distributed across generated tokens rather than localized to a single position. Furthermore, representations derived from generated tokens outperform those from prompt tokens, and alignment across generation reveals interpretable dynamics in model behavior.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026truth,
  title  = {The Truth Lies Somewhere in the Middle (of the Generated Tokens)},
  author = {Sophie L. Wang and Phillip Isola and Brian Cheung},
  year   = {2026},
  eprint = {2605.09969},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.09969v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.09969.svg)](https://codeofpaper.com/paper/2605.09969)

Discussion