← Latest papers
💬 NLP

Agreement in Representation Space for Open-Ended Self-Consistency

This paper introduces Embedding-Based Agreement (EBA), a training-free method that extends self-consistency to open-ended generation tasks by leveraging geometric clustering in representation space to identify high-quality outputs, demonstrating that semantic concentration in embedding space is a more robust and scalable signal for reliability than exact symbolic matching or recent LLM-based selection approaches.

Original authors: Paula Ontalvilla, Gorka Azkune, Aitor Ormazabal

Published 2026-06-11
📖 5 min read🧠 Deep dive

Original authors: Paula Ontalvilla, Gorka Azkune, Aitor Ormazabal

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

The Big Problem: Asking for a Second Opinion

Imagine you ask a very smart but sometimes chatty AI to solve a math problem or write a piece of code. To get the best answer, you ask it the same question 100 times. This is called "sampling."

In simple tasks with one right answer (like "What is 2+2?"), you can just count the votes. If 90 times it says "4" and 10 times it says "5," you pick "4." This is the old way of doing things, called Self-Consistency.

But what if the task is open-ended?

  • Code: You ask for a function to sort a list. One answer uses Python, another uses JavaScript, and a third uses a different sorting algorithm. They all work, but they look totally different. You can't just "count votes" because no two answers are exactly the same word-for-word.
  • Summarization: You ask to summarize a news article. One summary is short and punchy; another is long and detailed. Both are good, but they don't match.

The old method fails here because it looks for exact matches (like finding identical twins). The authors of this paper wanted to find a way to measure agreement even when the answers look different on the surface.

The New Idea: The "Crowded Room" Analogy

The authors propose a new way to think about agreement. Instead of looking at the words the AI generates, they look at the meaning behind them.

Imagine the AI's "brain" (its internal representation space) is a giant, invisible room.

  • The Hypothesis: When the AI generates many different answers that are actually correct and similar in meaning, they don't scatter randomly. Instead, they tend to huddle together in a specific, crowded corner of the room.
  • The Noise: When the AI generates wrong or weird answers, they tend to wander off into the empty, isolated corners of the room, far away from the crowd.

So, "agreement" isn't about everyone saying the exact same sentence. It's about everyone standing in the same geometric neighborhood.

The Solution: EBA (Embedding-Based Agreement)

To test this, the authors created a tool called EBA. Here is how it works, step-by-step:

  1. Ask the AI: Generate 100 different answers to the same question.
  2. Map the Answers: Turn every single answer into a coordinate point in that giant invisible room (using something called an "embedding").
  3. Find the Crowd: Look for the biggest cluster of points. Where are most of the answers gathering?
  4. Pick the Leader: Choose the answer that is closest to the center of that biggest crowd.

The Analogy: Imagine you are at a party and you want to know what the "main topic" of conversation is.

  • Old Method: You listen for people shouting the exact same phrase. If no one shouts the exact same phrase, you give up.
  • EBA Method: You look at the room. You see a big group of people standing in a circle, laughing and talking. Even if they are saying different words, their body language and location show they are all agreeing on the same topic. You pick the person standing right in the middle of that circle as the "best" answer.

What They Found

The authors tested this on three types of tasks: Math, Coding, and Summarization.

  1. It Works Better Than Random: Just picking a random answer from the 100 generated is like picking a random person in the whole building. EBA picks someone from the "smart crowd," and it consistently gets better results.
  2. More Samples = Better Results: The more answers you ask the AI to generate, the clearer the "crowd" becomes. It's like if you only have 5 people in a room, it's hard to tell where the group is. If you have 200 people, the crowd is obvious. EBA gets smarter as you give it more data.
  3. It's Stable: Other methods that try to solve this problem (like asking a second AI to judge the answers) often get confused or run out of memory if you ask for too many answers. EBA stays steady and reliable even with huge numbers of samples.
  4. The "Center" is King: They discovered something fascinating: The answers that are located near the center of the geometric cluster are almost always the best, most reliable answers. The answers that are far out on the edges (the "peripheral" ones) are usually the bad or inaccurate ones.

Why This Matters

This paper changes how we view AI consistency.

  • Before: We thought consistency meant "saying the same thing."
  • Now: We know consistency is a geometric property. It means "standing in the same neighborhood of meaning."

This allows us to use the "Self-Consistency" trick (asking many questions and picking the best one) for complex tasks like writing code or summarizing books, not just simple math problems. It proves that even when AI answers look different on the outside, their "inner geometry" reveals which ones are truly in agreement.

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 →