Language models are often far better at English than at other languages on structured tasks such as turning a question into a database query. Two explanations compete for that gap. The first is that the training data for these skills is mostly English, so the skill is genuinely weaker elsewhere. The second is that English benchmarks, and their translations, have leaked into web-scale training data, so part of the English score is memorization. Today nobody can say how much of a reported text-to-SQL score in any language comes from memorization. The tools that detect leaked test data either answer only "yes or no," or work only for multiple-choice questions.
We propose to measure that inflation directly, in accuracy points, for open-ended query generation in several languages. For each public benchmark item we build a "twin," a freshly generated item that has the same query structure but a new database, new values, and a newly written question. Each twin is checked by running the queries, so its answer is known to be correct. The score gap between a public item and its twin estimates memorization plus a difficulty offset. We then remove the offset using "sentinel" items we write ourselves and never publish. We validate the estimator by deliberately contaminating models at known doses and checking that it recovers the injected inflation.
Core Claim
The paired, execution-verified twin construction gives a quantitative estimate of contamination inflation for generated outputs. We claim it stays accurate when the leak happened through translation, the case that defeats string-overlap filters. We further claim that a two-factor design, crossing public versus fresh content with English versus native-language schemas, separates two effects that current evaluations blur together. One is genuine cross-lingual weakness in matching question words to table and column names. The other is a memorization-driven English advantage.
Several papers motivate this. Data Contamination Can Cross Language Barriers fine-tuned models on translated MMLU, ARC and MathQA and showed large hidden inflation that n-gram and perplexity checks miss. On MathQA, LLaMA3-8B accuracy rose from 42.01% to over 95% after French contamination. Its detector, Choice Confusion, swaps answer options, so it only works for multiple choice. Contamination Report for Multilingual Benchmarks found contamination across XCOPA, PAWS-X and other multilingual sets using an ordering-based permutation test. That test reports only significance, and it cost roughly 362 hours on 8 H100s. MultiSpider documented an absolute drop of about 6.1% moving text-to-SQL out of English and attributed it to schema-linking failures. Spider and MultiSpider are themselves static public datasets, so part of that 6.1% could be memorization rather than linguistic difficulty. Nobody has checked.
Other work supplies the method. DyVal generates reasoning problems on the fly from graphs. A²RBench enforces round-trip correctness by executing code and showed a 17.7% drop when symbols were remapped. Both are English or purely symbolic; we carry their execution-checked generation into multilingual schema-grounded parsing. MCEval showed 10–30% drops under counterfactual rephrasing of cultural questions, but it does not separate memorization from difficulty shift. Our sentinel correction is designed to do exactly that.
One finding constrains the design. A²RBench reports that LLM generators simplify the logic when asked for complex items. We therefore fix the query structure symbolically and let a language model write only the surface question.
Research Program
Twin construction. Each gold SQL query in Spider and MultiSpider is parsed into a skeleton. The skeleton keeps the joins, nesting, aggregations and conditions and abstracts away all table, column and value identifiers. For each target language (English plus MultiSpider's languages, emphasizing French, German, Chinese and Japanese), we sample a new schema of matching shape. Table and column names come from native-language domain lexicons rather than translations of Spider names, and the database is filled with synthetic values. We instantiate the skeleton on that schema and use a language model to write a natural question in the target language.
Verification. A twin is kept only if it passes two checks. First, an independent model must parse the question back into SQL that returns the same execution result as the instantiated gold query on two differently populated databases. Second, a native speaker must spot-check a sample of twins for fluency. This verification step corresponds to MultiSpider's finding that checking augmented data raised its accuracy from 33.2% to 74.5%.
Schema conditions. Every item exists in three schema conditions: an English schema, a native schema, and MultiSpider's mixed setting of a native question over an English schema.
Sentinels. We write about 300 new items with domain experts that resemble Spider in style. These are never released; only hashes are published. Each sentinel gets its own twins.
The estimator. For model $m$ and language $\ell$, let $G^{\text{pub}}_{m,\ell}$ be mean execution accuracy on public items minus their twins, and $G^{\text{sen}}_{m,\ell}$ the same gap on sentinels. The inflation estimate is
$$\hat{I}_{m,\ell} = G^{\text{pub}}_{m,\ell} - G^{\text{sen}}_{m,\ell}.$$
The sentinel gap captures whatever systematic difficulty difference the twin generator introduces for that model and language. What remains is attributable to prior exposure. We bootstrap over items to give confidence intervals.
Separating weakness from memorization. The language-by-content interaction then answers the question in Gap 3. If the English–native gap shrinks on twins, part of the "English advantage" was memorized. If it persists on twins, the monolingual training data is the cause.
Baselines
The naive reference point is simply reporting accuracy on public MultiSpider and calling the English-to-target gap a language effect. For context we cite MultiSpider's reported absolute drop of about 6.1% and the 1.8% gain of its SAVE augmentation method. Our proposal beats this reference only if it shows that a nonzero, statistically resolved share of that gap is inflation for at least some model and language.
The strongest existing quantitative detector is Choice Confusion from Data Contamination Can Cross Language Barriers. On MMLU it reports a +26.25 point change for clean LLaMA3 versus a drop of about 17 points for contaminated versions. It does not apply natively to SQL generation. We adapt it as faithfully as possible by recasting text-to-SQL as selecting among candidate queries, where the distractors are gold queries from other items. We run it on the same items and the same contaminated checkpoints.
The strongest existing detector for naturally trained models is the exchangeability test from Contamination Report for Multilingual Benchmarks. We run it with the same permutation budget on the open checkpoints we evaluate. It gives a binary verdict, so we compare at the level of decisions: does it flag the same models and languages where $\hat{I}$ is significantly positive? We also compare compute cost.
The ablation that isolates our key ingredient is surface remapping alone, in the spirit of A²RBench. It keeps the public question and database structure but renames identifiers and resamples values, with no new question text and no sentinel correction. A second ablation drops the sentinel correction from the full twin method.
All estimators see identical items, decoding settings, and a single prompt template fixed on a development split before any contaminated checkpoint is scored. Our method counts as beating a baseline if it recovers known injected inflation with lower absolute error across doses and languages. In particular, it should succeed on translated leaks, where Choice Confusion's adapted form or remapping fails.
Why not just…?
Why not just translate Spider into more languages and evaluate there? Translation inherits the leak. Data Contamination Can Cross Language Barriers shows that exposure to translated tests inflates scores across languages, and Cultivar shows that translated items keep US-centric entities, which account for over 80% of locale-specific errors. A translated Spider would therefore measure neither clean ability nor native schema linking. We include machine-translated Spider as an extra condition to show that its scores follow the contaminated public items rather than the twins.
Why not just rename identifiers and resample values, as A²RBench does with symbols? This is the real threat. It is cheap, needs no generator, and may capture most of the memorization signal if models memorize question–query pairs mainly through identifiers. However, it leaves the question wording intact, and translated leaks may be memorized through wording. It also has no correction for the difficulty change that renaming itself introduces. The dose-controlled experiment settles this. If remapping alone recovers injected inflation as well as full twins, we will report that the simpler method suffices, and the contribution narrows to the sentinel correction and the language decomposition.
Why not just run the exchangeability test on MultiSpider? It answers whether leakage happened, not how much, and its cost limited it to models of about 9B parameters. We run it as a baseline. Our method needs one pass over twins and sentinels, so we can also evaluate a 70B model such as Llama-3.3-70B.
Why not just evaluate on items released after the training cutoff? That approach underlies the drops reported in Unveiling Causal Reasoning in Large Language Models. But there is no steady stream of new multilingual text-to-SQL items, and later items differ in style from Spider. Our sentinels are the controlled version of this idea: fresh items written to match the style of the public ones.
Proposed Experiments
Dose-controlled validation. We take LLaMA3-8B and Qwen1.5-7B, the models used in the cross-language contamination study, and continue training them on random halves of Spider and MultiSpider dev items translated into French, Chinese or Japanese. We use doses of zero, one and three epochs; the untouched half serves as a within-model control. Ground-truth inflation for each checkpoint is accuracy on the contaminated half minus accuracy on the untouched half. Each estimator is scored by its error against this ground truth, measured in execution accuracy and exact match. Exact match lets us compare against the 65.2% Spider dev figure that TaBERT reports for an older non-LLM parser. The decisive checks are threefold. $\hat{I}$ should be near zero at dose zero. It should grow monotonically with dose. It should track ground truth for translated leaks, where remapping-only is expected to underestimate.
Natural models. We then apply the validated estimator to Llama-3.1-8B, Gemma-2-9B and Aya-23-8B, which Contamination Report for Multilingual Benchmarks characterized on other benchmarks, and to Llama-3.3-70B. We report $\hat{I}$ per language and the language-by-content interaction. The headline result is the fraction of MultiSpider's English-to-target gap that survives on twins. If that fraction is near one, the monolingual-training explanation holds for structured parsing. If it is substantially below one, published cross-lingual gaps on static text-to-SQL benchmarks overstate the linguistic deficit.
Language distance. A final analysis asks whether inflation from translated leaks is larger for European than for East Asian languages, as the cross-language paper found for multiple choice. We relate $\hat{I}$ to tokenizer overlap between each language and English.
References
- Data Contamination Can Cross Language Barriers
- Contamination Report for Multilingual Benchmarks
- MultiSpider: Towards Benchmarking Multilingual Text-to-SQL Semantic Parsing
- DyVal: Dynamic Evaluation of Large Language Models for Reasoning Tasks
- A²RBench: An Automatic Paradigm for Formally Verifiable Abstract Reasoning Benchmark Generation
- MCEval: A Dynamic Framework for Fair Multilingual Cultural Evaluation of LLMs
- Cultivar: A Contrastive and Locale-Oriented Translation Benchmark for Investigating Contamination and Localisation Robustness
- Unveiling Causal Reasoning in Large Language Models: Reality or Mirage?
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data