← Latest papers
🤖 machine learning

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

This paper demonstrates that mean pooling across autoregressively generated tokens yields superior semantic representations compared to individual token states, revealing that information is distributed throughout the generation process rather than localized to a single position.

Original authors: Sophie L. Wang, Phillip Isola, Brian Cheung

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Sophie L. Wang, Phillip Isola, Brian Cheung

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to understand the "soul" or the true meaning of a story that a robot is telling you. The robot (an AI language model) doesn't just spit out the whole story at once; it builds the story word by word, like a painter adding one brushstroke after another.

For a long time, researchers thought that to understand the story, you only needed to look at the very last word the robot wrote, or perhaps the very first word of the prompt. They treated the robot's internal "thoughts" (hidden states) as if the most important information was locked in a single moment.

This paper argues that the truth is actually spread out across the entire story.

Here is the breakdown of their discovery using simple analogies:

1. The "Soup" vs. The "Single Ingredient"

Imagine the robot is making a soup.

  • The Old Way: Researchers used to taste just the very last spoonful of soup (the last token) to decide if it was a "chicken soup" or a "beef soup."
  • The New Discovery: The authors found that if you take every single spoonful of the soup the robot made and mix them together (this is called "mean pooling"), the resulting flavor is much clearer and more accurate than any single spoonful.

The paper shows that the robot's understanding of a topic isn't locked in one specific word. Instead, the meaning is like a mosaic. Each word the robot generates holds a tiny, complementary piece of the puzzle. When you average them all together, the full picture becomes sharp and clear.

2. The "Tour Guide" Analogy

Think of the robot as a tour guide taking you through a museum (the topic you asked about).

  • The Prompt: You tell the guide, "Show me the paintings of birds."
  • The Generation: The guide starts walking and talking.
    • First few steps: "Okay, I'm thinking about birds..." (Generic thinking).
    • Middle steps: "Let me recall what a sanderling looks like..." (Recall phase).
    • Later steps: "Here is a picture of a sanderling pecking at the sand..." (Specific details).

The paper found that if you only looked at the guide's face when they said "Okay," you wouldn't understand the tour. If you only looked at the end, you'd miss the context. But if you average the guide's entire journey, you get a perfect summary of the tour.

Surprisingly, the guide's own words (the generated text) actually help them understand the topic better than the original instructions you gave them. By talking through the answer, the robot "thinks" its way into a clearer understanding.

3. Mixing Different Versions (The "Chorus" Effect)

The researchers also tested a fun idea: What if the robot tells the same story three different times (using three different random "seeds")?

  • Version A might say, "The bird is blue."
  • Version B might say, "The bird has blue feathers."
  • Version C might say, "It's a blue sanderling."

If you take the "thoughts" from all three versions and mix them together, the result is even better than any single version. It's like a choir: a single singer might be slightly off-key, but when you blend three different singers, the harmony is perfect. This proves that the information is distributed; no single word or single version holds the whole truth.

4. The "Mirror" Effect

The paper also discovered something weird about how robots see themselves.

  • If Robot A writes a story, and Robot A reads its own story, it understands it perfectly.
  • But if Robot B reads Robot A's story, the "understanding" gets messy. The specific rhythm of how Robot A thought about the topic is lost.

This means the "meaning" isn't just in the words on the page; it's in the specific path the robot took to get there. The robot's internal state changes as it generates, and those changes are unique to that specific robot.

The Big Takeaway

The paper concludes that to get the best "summary" of what an AI is thinking, you shouldn't just grab the last word it said. Instead, you should take the average of everything it said while it was thinking.

It's like trying to understand a person's mood. You don't judge them by the one sentence they just said; you judge them by the average of their entire conversation. The "truth" lies somewhere in the middle of all those generated tokens, not at the very end.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →