Do not be greedy, Think Twice: Sampling and Selection for Document-level Information Extraction
Organizations: HiTZ Center - Ixa, University of the Basque Country UPV/EHU
Abstract
Document-level Information Extraction (DocIE) aims to produce an output template with the entities, relations, and events of interest occurring in the given document. Standard practices include prompting decoder-only LLMs using greedy decoding to avoid output variability. Rather than treating this variability as a limitation, we show that sampling can produce substantially better solutions than greedy decoding, especially when using reasoning models. We thus propose ThinkTwice, a sampling and selection framework in which the LLM generates multiple candidate templates for a given document, and a selection module chooses the most suitable one. We introduce both an unsupervised method that exploits agreement across generated outputs, and a supervised selection method using reward models trained on labeled DocIE data. To address the scarcity of golden reasoning trajectories for DocIE, we propose a rejection-sampling-based method to generate silver training data that pairs output templates with reasoning traces. Our experiments show the validity of unsupervised and supervised ThinkTwice, consistently outperforming greedy baselines and the supervised state-of-the-art.
Figures & tables
| Method | Selector | MultiMUC | BETTER |
|---|---|---|---|
| GPT 5.5 | ✗ | 19.84 | 27.95 |
| Greedy Llama R1 | ✗ | 12.67 | 14.78 |
| ThinkTwice Llama R1 | Majority | 13.83 0.66 | 10.51 2.30 |
| F1 Voting | 14.41 0.33 | 15.29 0.88 | |
| (oracle) | 31.77 | 34.08 | |
| Greedy Qwen3 | ✗ | 14.65 | 16.12 |
| Method | Selector | MUC-4 |
| TempGen BART large | ✗ | 28.30 |
| GTT BERT base | ✗ | 32.30 |
| IterX T5-enc large | ✗ | 35.20 |
| Greedy Llama R1 | ✗ | 28.52 |
| ThinkTwice Llama R1 | Majority | 28.41 1.49 |
| F1 Voting | 36.56 0.22 |
| Method | Selector | English | Arabic | Farsi | Korean | Russian | Chinese | Average |
|---|---|---|---|---|---|---|---|---|
| GPT 5.5 | ✗ | 29.50 | 24.60 | 22.03 | 07.59 | 17.70 | 17.59 | 17.90 |
| Gantt et al. (2024) Supervised | ✗ | 35.20 | 21.46 | 20.66 | 23.91 | 23.77 | 21.93 | 22.35 |
| ThinkTwice Zero-shot | F1 Voting | 24.30 0.57 | 17.66 0.32 | 19.62 0.44 | 07.22 0.37 | 14.34 0.16 | 16.20 0.16 | 15.01 0.31 |
| Reward | 33.46 0.70 | 26.05 0.24 | 26.80 0.21 | 08.71 0.53 | 20.66 0.25 | 25.47 0.74 | 21.54 0.45 | |
| ThinkTwice English FT | F1 Voting | 40.77 0.53 | 22.66 0.44 | 23.61 0.77 | 08.73 0.75 | 20.53 1.18 | 22.15 0.92 | 19.54 0.85 |
| Reward | 42.51 0.72 | 30.27 0.49 | 30.16 0.66 | 09.62 0.14 | 29.95 1.23 | 29.75 0.75 | 25.95 0.74 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Reasoning | Non-Reasoning | |||
| Hyperparameter | Llama | Qwen | Llama | Qwen |
| Temperature | 0.7 | 0.6 | 0.6 | 0.7 |
| Top-p | 1 | 0.95 | 1 | 0.8 |
| Top-k | -1 | 20 | -1 | 20 |
| Min-p | 0 | 0 | 0 | 0 |
| Hyperparameter | Reasoning | Reward |
|---|---|---|
| Batch Size | 128 | 512 |
| Learning Rate | ||
| Epochs | 5 | 4 |
| Weight Decay |
| Model | F1 similarity |
|---|---|
| GPT 5.5 | 71.76 12.65 |
| Llama R1 | 23.20 10.03 |
| Qwen3 | 26.72 11.93 |
| MultiMUC | BETTER | ||||||
|---|---|---|---|---|---|---|---|
| Model | English | Arabic | Farsi | Korean | Russian | Chinese | English |
| Llama R1 Zero-shot | 364 146 | 368 127 | 379 125 | 364 132 | 560 221 | 485 140 | 447 138 |
| Llama R1 Fine-tuned | 466 505 | 456 554 | 452 531 | 433 501 | 454 504 | 433 487 | – |
| Qwen3 Zero-shot | 792 578 | 749 519 | 750 505 | 826 563 | 809 561 | 709 466 | 701 364 |
| Qwen3 Fine-tuned | 995 848 | 978 863 | 1005 868 | 1009 867 | 1013 855 | 994 873 | – |
| Method | Selector | BETTER |
| GPT 5.5 | ✗ | 27.95 |
| Greedy Llama 3.3 | ✗ | 3.20 |
| ThinkTwice Llama 3.3 | Majority | 1.72 0.42 |
| F1 | 1.60 0.22 | |
| (oracle) | 5.71 | |
| Greedy Llama R1 | ✗ | 14.78 |
| Method | Selector | English | Arabic | Farsi | Korean | Russian | Chinese | Average |
|---|---|---|---|---|---|---|---|---|
| Reference | ✗ | 35.2 | 21.46 | 20.66 | 23.91 | 23.77 | 21.93 | 24.49 |
| Greedy Llama R1 | ✗ | 28.52 | 3.57 | 1.30 | 3.07 | 0.51 | 4.21 | 6.86 |
| ThinkTwice Llama R1 | Majority | 28.41 1.49 | 2.69 0.50 | 0.53 0.57 | 2.29 0.15 | 0.06 0.11 | 4.72 0.84 | 6.45 0.77 |
| F1 Voting | 36.56 0.22 | 3.79 0.30 | 1.43 0.39 | 3.88 0.31 | 0.24 0.10 | 5.34 0.46 | 8.54 0.32 | |
| Reward | 41.11 0.48 | 5.65 0.15 | 2.43 0.34 | 5.08 0.21 | 1.36 0.21 | 10.98 0.27 | 11.10 0.30 | |
| (oracle) | 56.60 | 12.79 | 4.66 | 11.82 | 2.96 | 19.44 | 18.04 |
| Method | Selector | English | Arabic | Farsi | Korean | Russian | Chinese | Average |
|---|---|---|---|---|---|---|---|---|
| GPT 5.5 | ✗ | 29.50 | 24.60 | 22.03 | 7.59 | 17.70 | 17.59 | 19.84 |
| Greedy Llama 3.3 | ✗ | 18.27 | 14.52 | 14.57 | 5.55 | 10.84 | 11.02 | 12.46 |
| ThinkTwice Llama 3.3 | Majority | 18.69 0.19 | 14.62 0.63 | 15.09 0.18 | 5.69 0.12 | 11.27 0.43 | 11.68 0.27 | 12.84 0.35 |
| F1 Voting | 18.60 0.14 | 14.80 0.11 | 15.02 0.06 | 5.79 0.17 | 10.99 0.18 | 11.62 0.18 | 12.80 0.15 | |
| Reward | 22.84 0.36 | 18.83 0.13 | 18.60 0.62 | 7.26 0.20 | 15.04 0.28 | 17.01 0.03 | 16.60 0.33 | |
| (oracle) | 26.76 | 25.71 | 26.07 | 10.87 | 19.37 | 20.51 | 21.55 |