NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Catching Leaked Answer Keys Inside the Retriever

Search-augmented language models can now "solve" benchmark questions by finding the answer key on the web. Search-Time Data Contamination showed that a commercial research agent scored 37.5% on Humanity's Last Exam questions whose test files were mirrored online, against 17.4% on questions that were not mirrored. The agent's reasoning traces show it finding the key and copying the label. That paper treated the search engine as a black box. We propose to open it up. Late-interaction retrievers score a query against a document by matching each query word separately, and they keep a record of which document word each query word matched and how strongly. We argue that this record contains a distinctive fingerprint of a leaked benchmark page, and that the fingerprint can be read at no extra retrieval cost.

The intuition is simple. A page that legitimately answers a question shares its rare content words with the question: names, numbers, technical terms. A page that copies the question also reproduces the ordinary connecting words ("which of the following", "what is the", "in the year"), and it reproduces them in the same order. We will measure two things. The first is whether late-interaction retrievers surface these copies more readily than single-vector retrievers do. The second is whether a filter built only from the retriever's own word-to-word alignments can remove copies, including reformatted ones, without discarding the real evidence the model needs.

Core Claim

A late-interaction retriever such as ColBERT encodes the query and every document into a bag of per-word vectors, one vector per word, each informed by its surrounding context. It scores a pair with the MaxSim rule: for each query word, take the highest similarity to any document word, then sum these maxima over the query. ColBERTv2 made this practical at web scale with compressed indexes. A White Box Analysis of ColBERT found that rare words act as "anchors" that demand near-exact matches, while frequent words act as "context sponges" that match only loosely. That finding supplies our mechanism. On legitimate evidence, frequent query words should rarely find near-identical partners. On a mirror of the test item, they should, and their matched positions should run in the same order as the question.

For a query with words $i$, let $s_i$ be the maximum similarity found by MaxSim and $a_i$ the position of the document word that attained it. Let $Q_f$ be the query's frequent, non-special words, meaning low inverse document frequency and excluding ColBERT's padding and mask tokens. We define a copy score

$$ K(Q,D) = \frac{1}{|Q_f|}\sum_{i \in Q_f} \mathbf{1}[s_i > \tau] \;\cdot\; \operatorname{KendallTau}\big(i, a_i\big)_{i \in Q_f}, $$

where $\tau$ is a similarity threshold calibrated on held-out legitimate evidence. The first factor asks how many connective words matched almost exactly. The second asks whether those matches preserve the question's word order. Both factors come from quantities the retriever already computes, so the check adds nothing to retrieval cost.

The claim makes two predictions. First, $K$ should separate mirrors from legitimate answer-bearing pages better than lexical overlap does once mirrors are reformatted, for example serialized as JSON or CSV rows, lightly paraphrased, merged with other items, or translated. Second, filtering top-$k$ results by $K$ should close most of the accuracy gap between contaminated and clean questions while leaving clean-question accuracy intact.

Research Program

The first component is a controlled contamination corpus, because open-web logs cannot tell us which pages are mirrors. We start from a distractor collection: MS MARCO and LoTTE passages, which come from web search results and StackExchange answers respectively. We add legitimate evidence pages for SimpleQA, HLE, and GPQA questions, and then inject mirrors of a held-out subset of test items. Each mirror is produced in one of six formats: verbatim, dataset-row serialization (JSON or CSV with answer fields), answer-key-only (question stem plus a letter), machine-paraphrased, translated, and multi-item dumps. We place mirrors on varied hosts, including dataset hubs, forum posts, blogs, and quiz-aggregator pages. Varying the host lets us test whether a filter generalizes beyond the HuggingFace and GitHub mirrors that Search-Time Data Contamination found.

The second component is a susceptibility study. Using the same corpus, we compare BM25, a single-vector dense retriever (BGE-M3, the dense text model used as a baseline in ColPali), and ColBERTv2 served through PLAID with PyLate. For each, we measure how often a mirror ranks in the top 1, 5, and 10. Gap 1 of the research file conjectures that late interaction is especially exposed, but no paper in the file tests this. We expect late interaction to rank mirrors higher than dense retrieval does, and BM25 to be at least as exposed on verbatim copies. Either outcome is informative. A retriever's contamination exposure is a property worth reporting alongside its effectiveness, and the comparison has not been made.

The third component is the filter itself. We calibrate $\tau$ and the frequency cut for $Q_f$ on one benchmark and test on the others. We then run an end-to-end evaluation with a fixed open reader model that answers from the top-$k$ passages. We measure accuracy on contaminated and clean questions with and without filtering.

A secondary arm tests rendered mirrors: test items screenshotted or exported to PDF and indexed by ColPali, which embeds page images as patch vectors. Here the "word order" factor becomes patch-reading order. Text-based checks only work in this arm if the page first goes through optical character recognition (OCR), the extraction of text from images. We keep this arm secondary because the patch analogue of the anchor/sponge distinction has not been established.

Baselines

The naive reference is no filtering. We report the reader's accuracy on contaminated versus clean questions with unmodified top-$k$ retrieval for each retriever. The gap this produces is the quantity every method must shrink. As an external anchor for its size, Search-Time Data Contamination reports 37.5% versus 17.4% accuracy on HLE for Sonar Deep Research, and 100% accuracy on contaminated SimpleQA samples. Those figures come from a commercial agent on the open web, so we use them to calibrate the realism of our corpus, not as a number to beat directly.

The strongest simple competitor is lexical overlap between the question and each retrieved passage. We score each passage by the fraction of the question's 8-grams and 13-grams it contains, after normalizing case and punctuation, and threshold that fraction. This is the decontamination tool practitioners actually use, and it has the same information our method has, namely the question text at search time. It receives the same calibration split and the same threshold-search budget as $K$. To beat it, $K$ must reach higher AUROC for separating mirrors from legitimate evidence on the reformatted, paraphrased, and translated mirror formats. On verbatim mirrors, $K$ need only match it. Under a fixed budget of 1% legitimate evidence wrongly removed, $K$ must also yield a smaller contaminated-minus-clean accuracy gap. For this baseline we found no reported result on Lacuna for detecting search-time contamination by n-gram overlap. The closest evidence is that Towards Data Contamination Detection for Modern Large Language Models found token-overlap tests nearly blind to leaked data inside model weights, which is a different setting.

The second competitor is a domain blocklist that drops results from dataset hubs and code hosts. It gets no tuning. We report it separately on mirrors inside and outside those domains.

The third competitor is a learned classifier: a cross-encoder fine-tuned to label (question, passage) pairs as mirror or legitimate, trained on the same calibration split. It represents what extra compute buys. We also report its cost per passage, since $K$ adds essentially no cost on top of retrieval.

Two ablations isolate the key ingredients. The first computes $K$ over all query words instead of only frequent ones, which tests whether the anchor/sponge distinction matters. The second drops the order factor, which tests whether alignment order adds information beyond exact-match coverage. Finally, to show the signal is not merely lexical, we compute the same two factors from exact string matches. If this lexical version matches the embedding version, our contribution narrows to the susceptibility study.

Why not just…?

Why not just check n-gram overlap between the question and each snippet? This is the real threat. On verbatim mirrors it will probably work as well as $K$. Our bet is that it breaks under two conditions. One is answer-key-only and serialized formats, where field names and line breaks interrupt the n-grams. The other is paraphrased and translated mirrors, where contextual vectors still align connective words that no longer match as strings. The per-format AUROC comparison settles this directly. If n-gram overlap holds up across formats, we will say so and drop the filter as a contribution.

Why not just block HuggingFace and GitHub? The mirrors found in Search-Time Data Contamination lived on those hosts, so a blocklist would have caught them. Copies on forums, blogs, and quiz sites would get through, and blocking code hosts would also discard legitimate evidence for technical questions. Reporting the in-domain and out-of-domain split shows how much of the problem the blocklist actually solves.

Why not just use a single-vector retriever, whose compression might bury verbatim copies? That would cost real effectiveness. ColBERTv2 reports up to 8% relative gains on LoTTE, and ColPali reports 81.3 versus 66.1 nDCG@5 over an OCR pipeline with BGE-M3 on ViDoRe. It is also unclear whether dense retrieval is actually less exposed. Our susceptibility study measures exposure directly, rather than assuming it.

Why not run perplexity or Min-K% detectors on the reader? Those detectors ask whether the model's weights memorized the test item. Search-time contamination happens in the context window, so a clean model reading a leaked page would pass them. In addition, On The Fragility of Benchmark Contamination Detection in Reasoning Models shows they fall to roughly 50–58% AUROC after distillation.

Decisive Checks

We will first reproduce ColBERTv2's reported 39.7 MRR@10 on MS MARCO, to confirm the index is faithful before injecting mirrors. The central test is per-format AUROC for $K$ versus n-gram overlap, computed on SimpleQA, HLE, and GPQA mirrors with calibration on one benchmark and testing on the other two. The end-to-end test is whether filtering by $K$ cuts the contaminated-minus-clean accuracy gap by at least half, while clean-question accuracy drops by less than one point. We also check whether the frequent-word restriction matters, as the white-box analysis of ColBERT predicts. If it does not, the anchor/sponge mechanism is not what drives detection.

A negative result is still useful. If late interaction ranks mirrors no higher than dense retrieval does, and simple overlap filters suffice, then retriever architecture is not the right place to fight search-time contamination. Future evaluations would then need only that simple check.