NeurIPS 2026QuestionsPapersAreasAboutMarkdown

GOLD PANNING: Strategic Context Shuffling for Needle-in-Haystack Reasoning

Adam Byerly, Daniel Khashabi

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Reasoning, Memory & RAG › Personalized Recommendation · Type: new method · Keywords: position bias, needle-in-haystack retrieval, Bayesian active search, document reordering, multi-document QA, query efficiency

Areas: LLM Reasoning › Efficient Reasoning › Attention Mechanisms; Long Context › Long-context mechanisms › Long-context attention mechanisms

Summary

GOLD PANNING is a Bayesian inference-time active search framework that reorders documents to exploit position bias, achieving needle-in-haystack retrieval with fewer queries than prior methods.

Explained to a 5-year-old

Big computer programs called language models sometimes pick the wrong answer because they like things that appear early. The researchers made a simple plan that moves important clues to the front so the program can find them faster. They use a rule that says once something looks promising, they keep looking at it. This helps the program answer questions from many documents using far fewer tries than before. It shows that even the program's habits can be used to help it work better.

Explained to a 5-year-old, longer

Language models are smart computer programs that can answer questions. They sometimes look at where the answer is placed instead of what the answer actually says. This can make them take a lot of time to find the right answer. The researchers noticed this problem and wanted to help the models work faster. They created a new method that moves the most promising pieces of information to the front of the list. The method also keeps watching the promising pieces so they are not forgotten. It uses a simple rule: if something looks good, keep checking it. This rule helps the model find the answer in fewer steps, like searching a treasure map. The researchers proved that this rule will almost always find the answer after only a few tries. They tested it on many different models and on questions that need information from many documents. The new method works as well as older methods but uses 30 to 65 percent fewer tries. This shows that even the model's own habits can be turned into a helpful tool.

For a technical reader

The paper addresses the issue that large language models often retrieve information based on its position rather than its relevance, which can be inefficient in long contexts. In settings where the model cannot be modified (e.g., black-box APIs), the authors introduce a Bayesian active search that reorders documents to place high-confidence items in diagnostic positions and updates beliefs from model outputs. By exploiting an anchoring principle-once a document appears promising, it is kept in view-the method preserves weak signals that would otherwise be ignored. A greedy assignment based on diagnosticity provably finds the target in O(log N) queries, and experiments show it matches existing baselines while using 30-65% fewer queries. The results demonstrate that inherent model biases can be turned into exploitable signals for more efficient retrieval.

Problem

Large language models often retrieve information based on its position rather than its relevance, leading to inefficient long-context retrieval. This problem is especially acute in output-only deployments where positional encoding modifications are not possible.

Method

The approach uses a Bayesian active search that reorders documents to place high-belief items in diagnostic positions and updates relevance beliefs from model outputs, employing a greedy assignment based on diagnosticity to locate the target in O(log N) steps.

Results

The approach matches Permutation Self-Consistency's F1 while using 30-65% fewer queries across both open-weight and closed-source models, and it remains effective under calibration mismatch.

Contributions

A Bayesian inference-time active search framework that leverages position bias via signal anchoring, a provable O(log N) query bound, and empirical validation on multi-document QA showing reduced query usage.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction