The Truth Lies Somewhere in the Middle (of the Generated Tokens)
Sophie Wang, Phillip Isola, Brian Cheung
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. 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5373f4a1-c8f6-4eac-beaa-ce0045b5e4e0Builds on17
- Let's Verify Step by StepHunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards et al.ICLR 2024 · 3,045 citations
- Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and DepthThao Nguyen, Maithra Raghu, Simon KornblithICLR 2021 · 323 citations
- Language Models Represent Space and TimeWes Gurnee, Max TegmarkICLR 2024 · 303 citations
- Soft Thinking: Unlocking the Reasoning Potential of LLMs in Continuous Concept SpaceZhen Zhang, Xuehai He, Weixiang Yan, Ao Shen et al.NeurIPS 2025 · 130 citations
- Demystifying Reasoning Dynamics with Mutual Information: Thinking Tokens are Information Peaks in LLM ReasoningChen Qian, Dongrui Liu, Haochen Wen, Zhen Bai et al.NeurIPS 2025 · 63 citations
Related papers
- Follow the Flow: On Information Flow Across Textual Tokens in Text-to-Image ModelsGuy Kaplan, Michael Toker, Yuval Reif, Yonatan Belinkov et al.ACL 2026 · 4 citations
- Why Mean Pooling Works: Quantifying Second-Order Collapse in Text EmbeddingsTomomasa Hara, Hiroto Kurita, Masaaki Imaizumi, Kentaro Inui et al.ACL 2026 · 2 citations
- Rethinking Causal Mask Attention for Vision-Language InferenceXiaohuan Pei, Tao Huang, Yanxiang Ma, Chang XuICLR 2026 · 7 citations
- Efficient Transformers with Dynamic Token PoolingPiotr Nawrot, Jan Chorowski, Adrian Lancucki, Edoardo Maria PontiACL 2023 · 14 citations
- CaTok: Taming Mean Flows for One-Dimensional Causal Image TokenizationYitong Chen, Zuxuan Wu, Xipeng Qiu, Yu-Gang JiangCVPR 2026 · 6 citations
