← Latest papers
💻 computer science

Do not be greedy, Think Twice: Sampling and Selection for Document-level Information Extraction

The paper proposes "ThinkTwice," a framework that improves document-level information extraction by leveraging sampling to generate multiple candidate outputs and selecting the best one via unsupervised agreement or supervised reward models, thereby outperforming traditional greedy decoding methods.

Original authors: Mikel Zubillaga, Oscar Sainz, Oier Lopez de Lacalle, Eneko Agirre

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

Original authors: Mikel Zubillaga, Oscar Sainz, Oier Lopez de Lacalle, Eneko Agirre

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 solve a complex puzzle based on a long, messy story. Your goal is to pull out specific facts (like who did what, where, and when) and organize them into a neat, structured report. This is what the paper calls Document-level Information Extraction.

For a long time, when computers (specifically Large Language Models or LLMs) tried to do this, they used a method called Greedy Decoding. Think of this like a student taking a test who, at every single step, picks the one answer that looks most likely to be right immediately, without looking ahead or considering other possibilities. They just rush to the finish line with the first path that seems clear.

The authors of this paper, Mikel Zubillaga and his team, argue that this "rush to the finish" approach is actually holding the computer back. They propose a new framework called THINKTWICE.

Here is how THINKTWICE works, broken down into simple concepts:

1. The "Think Twice" Strategy (Sampling)

Instead of asking the computer to give just one answer, THINKTWICE asks it to generate many different versions of the report (the paper uses 64 different attempts).

  • The Analogy: Imagine you are a chef trying to make the perfect soup.
    • Greedy Decoding is like tasting the spoonful you just made and immediately deciding, "This is the final recipe," without ever trying to adjust the salt or add more herbs.
    • THINKTWICE is like cooking 64 slightly different versions of the soup. One might be too salty, one might be too spicy, but one of them might be perfect.

2. The "Judge" (Selection)

Once the computer has generated 64 different reports, you need a way to pick the best one. The paper tests two ways to be the "Judge":

  • The Unsupervised Judge (F1 Voting): This judge looks at all 64 reports and asks, "Which one agrees most with the others?" If 50 out of 64 reports say the suspect was "John," and only 10 say "Jane," the judge picks the version with "John." It's like a crowd-sourced decision where the most common, consistent answer wins.
  • The Supervised Judge (Reward Model): This is a smarter judge that has been trained on examples of "good" vs. "bad" reports. It learns to spot the subtle details that make a report high-quality, even if it's not the most common answer.

3. The "Reasoning" Boost

The paper also discovered that using models designed to "think" (Reasoning Models) makes a huge difference.

  • The Analogy: A standard model is like a fast typist who just types the first thing that comes to mind. A Reasoning Model is like a detective who stops to think, "Wait, if the bomb went off at 5 PM, the suspect couldn't have been at the bank at 4 PM."
  • The paper found that these "detective" models produce much better raw material for the "THINKTWICE" system to work with, especially for complex tasks.

4. Solving the "No Answer Key" Problem

To train the "Supervised Judge," you usually need an answer key (gold standard data) that includes the thought process (reasoning traces) the computer should have used. But for this specific type of task, those answer keys didn't exist.

  • The Solution: The authors used a clever trick called Rejection Sampling. They asked the computer to generate many attempts, kept the best ones, and used those "good" attempts as a fake answer key to teach the computer how to think better. It's like a student grading their own practice tests, keeping only the ones they got right, and using those to study for the real exam.

What Did They Find?

  • Thinking is better than rushing: Using the "Think Twice" method (generating many options and picking the best) consistently beat the standard "Greedy" method (picking the first likely answer).
  • Reasoning matters: Models that are designed to reason (think step-by-step) performed significantly better than standard models.
  • The "Judge" helps: Both the simple "crowd vote" judge and the trained "reward" judge improved the results. The trained judge was the best, setting a new record for how well computers can extract information from documents.
  • It works across languages: Even when they trained the system only on English data, it could still perform well on other languages (like Arabic or Chinese) when using this method, outperforming systems trained specifically on those languages.

In short: The paper shows that if you want a computer to extract facts from a long document, you shouldn't just ask it for one answer. You should ask it to brainstorm 64 different answers, and then use a smart system to pick the best one. This simple change, combined with "thinking" models, leads to much more accurate results.

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 →