arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.05381

Molecular Déjà Vu: Digit-Level Retrieval of Published Values in Frontier Language Models

Matthias Busch, Marius Tacke, Sviatlana V. Lamaka, Mikhail L. Zheludkevich, Christian J. Cyron, Roland C. Aydin, Christian Feiler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) are increasingly evaluated on molecular property benchmarks, but accuracy cannot distinguish a model that predicts a property from one that retrieves a published number. We audit 22 frontier models on 12 regression benchmarks for verbatim retrieval and find that it is widespread but relatively benchmark-specific: on five datasets more than 50% of the LLMs show verbatim retrieval, while on the remaining datasets it appears only in isolated cells. We run our experiments at two reasoning levels and find that reasoning changes retrieval. The same experiments, on the same molecules and with the same prompt, are flagged 89% more often at the higher reasoning level than at the lowest one. Finally, we test a way to interrupt retrieval in our most contaminated cases, and find that the strongest models in some cases still recognise a combination of transformed SMILES strings and original labels. Furthermore, suppressing retrieval moves the prediction errors of the different models closer together in relative terms, while their differing use of verbatim retrieval spreads them apart. This indicates that the general predictive capability of an LLM is not determined solely by the amount of memorised values. This work provides an overview of the amount and depth of verbatim retrieval in molecular regression benchmarks using LLMs.

Keywords: benchmark contamination · memorisation · molecular property prediction · large language models · evaluation

*Corresponding authors: matthias.busch@tuhh.de, roland.aydin@hereon.de, christian.feiler@hereon.de

1 Introduction

Large language models (LLMs) are increasingly used to predict molecular properties from a SMILES string, and in some settings they reach an accuracy comparable to trained baselines [6, 16, 18, 29]. Such reports rest on a benchmark score, and a benchmark score cannot distinguish prediction from retrieval. If the published value of a molecule is recoverable from the weights of the model, a low error measures exposure to the literature behind the benchmark rather than the ability to generalise to a molecule the model has not seen. The distinction has practical consequences. FreeSolv assigns a default experimental uncertainty of 0.6 kcal/mol to the majority of its entries, because their measurement error is not reported [14, 24]. In our main experiment, run at a controlled reasoning level, one model reproduces this benchmark with a median absolute error of 0.025 kcal/mol, far below the uncertainty of the measurements it is scored against. An error below the experimental uncertainty cannot reflect prediction of the underlying quantity; it reflects agreement with the reported numbers.

That neural language models retain training data and can be induced to emit it is established. Carlini et al. [8] introduced canary insertion to quantify unintended memorisation, Carlini et al. [9] extracted verbatim training sequences from a publicly released model under black-box query access, and Carlini et al. [10] showed that memorisation grows with model scale, with duplication in the corpus and with the length of the prompting context. Xiong et al. [37] survey the field along three questions: what drives memorisation (duplication, training dynamics, fine-tuning), how it is detected (prefix extraction, membership inference, adversarial prompting) and how it is mitigated (data cleaning, differential privacy, unlearning). Most detectors require gradients, logits or token probabilities, and the most sensitive requires canaries inserted before training [8]. Black-box detectors such as prefix extraction [9] require only a prompt. All of them assume that the memorised target is a string.

Benchmark contamination is the case of memorisation in which the retained data are evaluation data. Brown et al. [5] documented benchmark overlap in web-scale corpora by n-gram search, Dodge et al. [13] by normalised exact matching, and Magar and Schwartz [22] separated memorisation from exploitation by pretraining on deliberately contaminated corpora. Post-hoc detectors followed. Min-K% probability thresholds the average log-likelihood of the least probable tokens of a candidate and needs no reference model [32]. The exchangeability test of Oren et al. [26] asks whether a model prefers the canonical example order of a benchmark to a shuffled one. Golchin and Surdeanu [15] elicit near-verbatim completions of withheld parts of an instance, and Deng et al. [12] mask a wrong answer option and test whether the model can recover it. The problem has been surveyed [38], has prompted calls for per-benchmark contamination measurement [31] and has been documented for closed-source models [2]. Its effect on scores has been demonstrated at benchmark scale: a freshly written replica of GSM8k costs some model families up to 8 accuracy points [40], and rote reproduction accounts for about a fifth of the knowledge points that mainstream models appear to hold [39].

None of these methods transfers directly to a numerical regression benchmark. Likelihood-based detectors need token probabilities that frontier APIs do not expose. Exchangeability tests need an order to permute, and the rows of a molecular benchmark carry no canonical order. Completion tests need a string to complete. All of them further rest on an assumption that a numerical benchmark violates, namely that a correct answer is evidence of exposure. A competent chemist, and a competent model, can estimate the aqueous solubility of a small molecule approximately without having seen the benchmark. What prediction cannot deliver is the third significant figure of the published value, which for experimental data usually lies within the measurement noise. A detector for regression benchmarks therefore has to examine the digits of an answer rather than its likelihood or its error.

Contamination has been raised as a concern for chemistry benchmarks before. Mirza et al. [23] report that leading models outperform the human chemists in their study on ChemBench while failing basic tasks and remaining overconfident, a profile consistent with knowledge retrieval rather than reasoning. Our own blinding study [7] searched three legacy benchmarks for verbatim retrieval and found none. A systematic screen that establishes which benchmarks and which models are affected, and to what extent, has not been reported.

We say that a model retrieves a benchmark value when the published number is recoverable from its weights, whether by reproduction of a crawled benchmark file or by reconstruction from the primary literature the file was compiled from. The route matters for the remedy: a benchmark file can be removed from a training corpus, whereas a toxicology handbook or an encyclopaedia article is harder to exclude. It does not matter for the validity of the evaluation, because in both cases the benchmark ceases to measure prediction from chemical and physical principles. The score alone does not distinguish the two routes; Sections 3.1 and 4.1 examine which of them is the more likely source of the retrieval we observe.

References (34)