Was the test in the training data? Contamination and memorization
A benchmark score means skill only if the test wasn't in the training data. Learn the checks, from searching open training data to time splits and Min-K% Prob, run Min-K% in CodeSplash, and keep your own evaluations clean.
What runs in CodeSplash
- LNG043OLMo model family Runs as a notebook
- LNG033GPT autoregressive language-model family Partly runs in CodeSplash
- EVA057Benchmark contamination and Min-K% likelihood diagnostics Runs in CodeSplash
- N-gram language model perplexity Not verified yet
You will be able to
- Explain how contamination inflates scores, including near-duplicates and paraphrases
- Choose a contamination check that fits what the model's maker disclosed
- Read Min-K% Prob as a hint, never a verdict
- Keep your own training and test data apart by document, source and time
Memory looks like skill
ReadLanguage models train on huge web crawls, and benchmarks live on the web. If test questions, their answers, or close paraphrases were in the training data, a high score may show memory, not ability. This is contaminationData leakageInformation from the validation data or the future seeps into training, so scores look better than reality., the large-scale cousin of train–test leakage.
Exact copies are the easy case. Reformatted questions, translations and paraphrases also leak, and they are much harder to find. Contamination also changes over time: a benchmark published today may be in tomorrow's training crawl.
Where it stands in CodeSplash
Read| Entry | In CodeSplash |
|---|---|
| Min-K% Prob (EVA057) | Runs in CodeSplash: Language model perplexity with GPT-2 |
| OLMo's open data (LNG043) | Runs as a notebook (its reference program); data search is outside the app |
Checks that fit what was disclosed
Read- Open training data. With fully open models such as OLMo, search the data for the test items' n-grams. This is the only direct check; it still misses paraphrases.
- Time splits. Use questions written after the model's training cutoff. Fresh questions can't have leaked, as long as the cutoff is honest.
- Canary strings. Benchmarks can embed a unique string; if a model can complete it, the benchmark was likely in its data.
- Likelihood tests. With weights but no data, check whether the model finds test texts suspiciously predictable.
Min-K% Prob in CodeSplash
ReadGPT-2 small: perplexity 126.6 per token on 58 rows (6.98 bits per token); mean Min-10% log-probability -9.75.
- Perplexity per token
- 126.60
- Bits per token
- 6.984
- Perplexity per word
- 584.55
- Mean Min-10% log-probability
- −9.748
Plots
Higher (closer to 0) means GPT-2 finds even the text's least likely tokens predictable, as with text it saw in training.
View data
| Min-10% log-probability |
|---|
| −9.329 |
| −9.124 |
| −9.009 |
| −8.361 |
| −8.801 |
| −9.317 |
| −8.310 |
| −10.552 |
| −10.893 |
| −8.946 |
| −8.946 |
| −9.537 |
| −8.838 |
| −10.936 |
| −10.450 |
| −9.595 |
| −9.349 |
| −12.103 |
| −12.212 |
| −5.558 |
| −8.444 |
| −10.193 |
| −9.351 |
| −9.281 |
| −8.553 |
| −10.565 |
| −11.672 |
| −8.044 |
| −9.370 |
| −7.827 |
| −9.903 |
| −8.738 |
| −10.810 |
| −7.739 |
| −12.956 |
| −11.203 |
| −9.766 |
| −10.079 |
| −11.906 |
| −8.906 |
| −12.334 |
| −11.416 |
| −9.721 |
| −6.823 |
| −9.590 |
| −8.938 |
| −8.282 |
| −9.447 |
| −10.826 |
| −12.612 |
| −10.137 |
| −10.915 |
| −9.662 |
| −10.392 |
| −9.412 |
| −11.987 |
| −8.194 |
| −9.200 |
Assumptions
- Scored on held-out rows — GPT-2 small was not fitted to these rows: it was trained on WebText (English web pages, up to 2019). Every row is summarized. A text that was in WebText looks more predictable than new text; Min-K% helps spot it.
- Same words and vocabulary — Perplexity here is per GPT-2 token, so compare it only with other GPT-2 perplexities. Word perplexity (per word, as the Words setting splits text) is closer to an n-gram model's, but not equal.
- Rows are independent — The interval resamples whole rows; repeated or threaded rows make it too narrow.
Least predictable rows
| Row | Tokens | Bits per token | Min-10% log-probability |
|---|---|---|---|
| 53 | 8 | 10.995 | −10.915 |
| 19 | 9 | 10.532 | −12.212 |
| 35 | 10 | 9.658 | −12.956 |
| 42 | 12 | 9.346 | −12.334 |
| 40 | 12 | 9.115 | −11.906 |
| 8 | 17 | 8.917 | −10.552 |
| 36 | 13 | 8.816 | −11.203 |
| 5 | 9 | 8.599 | −8.801 |
| 26 | 11 | 8.560 | −10.565 |
| 55 | 13 | 8.333 | −10.392 |
Most familiar rows (highest Min-K%)
| Row | Tokens | Min-10% log-probability | Bits per token |
|---|---|---|---|
| 20 | 11 | −5.558 | 3.735 |
| 45 | 11 | −6.823 | 6.056 |
| 34 | 7 | −7.739 | 5.649 |
| 30 | 11 | −7.827 | 5.743 |
| 28 | 11 | −8.044 | 6.346 |
| 58 | 12 | −8.194 | 5.461 |
| 48 | 9 | −8.282 | 7.573 |
| 7 | 13 | −8.310 | 6.066 |
| 4 | 13 | −8.361 | 5.780 |
| 21 | 11 | −8.444 | 5.844 |
- 2 rows have no text (or no words) and are left out.
The exact R script · R R version 4.5.1 (2025-06-13)
# N-gram language model perplexity
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method evaluate.perplexity 1.1.1 · spec 94089d9383ec552b
# Dataset: txt2_reviews (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
library(codesplashr)
# %% Rows: text present (and a training/test label when that column is used), at least one word
TEXT <- "review text"
SPLIT <- NULL
TOKENS <- "whitespace"
LOWER <- FALSE
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/txt2_reviews.parquet", col_select = c(TEXT, SPLIT)))
warnings <- list()
ok <- !is.na(df[[TEXT]])
if (!is.null(SPLIT)) ok <- ok & !is.na(df[[SPLIT]])
words_all <- vapply(seq_len(nrow(df)), function(i) if (ok[i]) length(cs_lm_tokenize(as.character(df[[TEXT]][i]), TOKENS, LOWER)) else 0L, integer(1))
rows <- which(ok & words_all > 0)
n_dropped <- nrow(df) - length(rows)
if (n_dropped) warnings <- c(warnings, sprintf("%d rows have no text%s (or no words) and are left out.", n_dropped, if (!is.null(SPLIT)) " or no training/test label" else ""))
if (!length(rows)) cs_error("CS_E_NO_ROWS") # no row has any words
# %% Rows summarized: those marked with the test label; without a training/test column, every row (nothing is fitted)
SEED <- 42
if (!is.null(SPLIT)) {
TEST_LEVEL <- "test"
is_test <- as.character(df[[SPLIT]][rows]) == TEST_LEVEL
if (all(is_test) || !any(is_test)) cs_error("CS_E_TOO_FEW_GROUPS", column = SPLIT, min = 2, k = 1) # needs rows on both sides
} else {
is_test <- rep(TRUE, length(rows))
}
# %% GPT-2 small (cs_gpt2_* ↔ codesplash.text.gpt2): log-probability of every token after <|endoftext|>
MODEL <- cs_gpt2_load() # stops with CS_WEIGHTS_MISSING when GPT-2 isn't downloaded
K <- 10
lp_row <- numeric(length(rows)); n_row <- numeric(length(rows)); mk_row <- numeric(length(rows)); cut_row <- logical(length(rows))
for (j in seq_along(rows)) {
s <- cs_gpt2_token_logprobs(as.character(df[[TEXT]][rows[j]]), MODEL)
lp_row[j] <- sum(s$lp)
n_row[j] <- s$n
mk_row[j] <- cs_gpt2_min_k(s$lp, K)
cut_row[j] <- s$cut
}
words <- as.numeric(words_all[rows])
te <- is_test; tr <- !is_test
ppl <- cs_lm_perplexity(lp_row[te], n_row[te])
train_ppl <- if (any(tr)) cs_lm_perplexity(lp_row[tr], n_row[tr]) else NULL
n_cut <- sum(cut_row)
# %% Bootstrap over the summarized rows (shared Wichmann-Hill stream)
B <- 0
CONF <- 0.95
lo <- NULL; hi <- NULL
if (B > 0) {
reps <- cs_lm_bootstrap(lp_row[te], n_row[te], B, SEED + 1)
ci <- cs_tm_percentile_ci(reps, CONF)
lo <- ci[1]; hi <- ci[2]
}
# %% Artifacts: one row per input row
out <- cs_ml_out_dir("target/academy-parity/run-8142/evaluate.perplexity/gpt2_all_rows_min_k/out-r")
nanoparquet::write_parquet(data.frame(row = as.integer(rows - 1L), split = ifelse(is_test, "test", "train"), tokens = as.integer(n_row),
words = as.integer(words), logprob = lp_row, perplexity = exp(-lp_row / n_row), min_k = mk_row),
file.path(out, "scores.parquet"))
# %% Result
values <- list(
n_train = sum(tr), n_test = sum(te), n_dropped = n_dropped,
train_tokens = sum(n_row[tr]), test_tokens = sum(n_row[te]),
vocab_size = NULL, oov_rate = NULL, order = NULL, smoothing = NULL, # n-gram settings: none for GPT-2
perplexity = ppl, perplexity_ci_low = lo, perplexity_ci_high = hi, cross_entropy = log2(ppl),
train_perplexity = train_ppl,
lm_name = "GPT-2 small", lm_word_perplexity = exp(-sum(lp_row[te]) / sum(words[te])),
lm_min_k = mean(mk_row[te]), lm_train_min_k = if (any(tr)) mean(mk_row[tr]) else NULL,
lm_min_k_percent = K, lm_truncated = n_cut
)
for (k in c("vocab_size", "oov_rate", "order", "smoothing", "perplexity_ci_low", "perplexity_ci_high", "train_perplexity", "lm_train_min_k"))
if (is.null(values[[k]])) values[k] <- list(NULL)
scored <- if (!is.null(SPLIT)) sprintf("Rows marked \"%s\" in %s are summarized; the others are shown as training rows.", TEST_LEVEL, SPLIT) else "Every row is summarized."
assumptions <- list(
list(key = "held_out", label = "Scored on held-out rows", status = "info",
detail = sprintf("GPT-2 small was not fitted to these rows: it was trained on WebText (English web pages, up to 2019). %s A text that was in WebText looks more predictable than new text; Min-K%% helps spot it.", scored)),
list(key = "same_vocabulary", label = "Same words and vocabulary", status = "info",
detail = "Perplexity here is per GPT-2 token, so compare it only with other GPT-2 perplexities. Word perplexity (per word, as the Words setting splits text) is closer to an n-gram model's, but not equal."),
list(key = "rows_independent", label = "Rows are independent", status = "info",
detail = "The interval resamples whole rows; repeated or threaded rows make it too narrow.")
)
if (n_cut) warnings <- c(warnings, sprintf("%d texts are longer than 1,023 GPT-2 tokens; only their first 1,023 tokens are scored.", n_cut))
bits <- (-lp_row / n_row) / log(2)
idx <- which(te)
top <- head(idx[order(-bits[idx], idx, method = "radix")], 10)
surprise_rows <- lapply(top, function(j) list(row = as.integer(rows[j]), tokens = as.integer(n_row[j]), bits = bits[j], min_k = mk_row[j]))
fam <- head(idx[order(-mk_row[idx], idx, method = "radix")], 10)
familiar_rows <- lapply(fam, function(j) list(row = as.integer(rows[j]), tokens = as.integer(n_row[j]), min_k = mk_row[j], bits = bits[j]))
mk_label <- sprintf("Min-%g%% log-probability", K)
cols <- list(list(key = "row", label = "Row", type = "number"), list(key = "tokens", label = "Tokens", type = "number"),
list(key = "bits", label = "Bits per token", type = "number"), list(key = "min_k", label = mk_label, type = "number"))
fam_cols <- cols[c(1, 2, 4, 3)]
charts <- list(cs_chart("min_k", "histogram", sprintf("Min-%g%% log-probability per text", K), list(x = cs_col(mk_label, mk_row[te])),
note = "Higher (closer to 0) means GPT-2 finds even the text's least likely tokens predictable, as with text it saw in training."))
cs_publish(list(
title = "N-gram language model perplexity",
engine = cs_engine_info("codesplashr", "nanoparquet"),
n = length(rows),
summary = sprintf("GPT-2 small: perplexity %.1f per token on %d rows (%.2f bits per token); mean Min-%g%% log-probability %.2f.", ppl, sum(te), log2(ppl), K, values$lm_min_k),
statistics = list(
list(key = "perplexity", label = "Perplexity per token", value = ppl),
list(key = "cross_entropy", label = "Bits per token", value = values$cross_entropy),
list(key = "lm_word_perplexity", label = "Perplexity per word", value = values$lm_word_perplexity),
list(key = "lm_min_k", label = sprintf("Mean Min-%g%% log-probability", K), value = values$lm_min_k)
),
tables = list(
list(key = "surprising", title = "Least predictable rows", columns = cols, rows = surprise_rows),
list(key = "familiar", title = "Most familiar rows (highest Min-K%)", columns = fam_cols, rows = familiar_rows)
),
assumptions = assumptions,
charts = charts,
values = values,
warnings = warnings,
artifacts = list(list(key = "scores", path = file.path(out, "scores.parquet"), format = "parquet"))
))
GPT-2 small: perplexity 126.6 per token on 58 rows (6.98 bits per token); mean Min-10% log-probability -9.75.
- Perplexity per token
- 126.60
- Bits per token
- 6.984
- Perplexity per word
- 584.55
- Mean Min-10% log-probability
- −9.748
To keep this page light, the plots are shown once, under the R tab.
Assumptions
- Scored on held-out rows — GPT-2 small was not fitted to these rows: it was trained on WebText (English web pages, up to 2019). Every row is summarized. A text that was in WebText looks more predictable than new text; Min-K% helps spot it.
- Same words and vocabulary — Perplexity here is per GPT-2 token, so compare it only with other GPT-2 perplexities. Word perplexity (per word, as the Words setting splits text) is closer to an n-gram model's, but not equal.
- Rows are independent — The interval resamples whole rows; repeated or threaded rows make it too narrow.
Least predictable rows
| Row | Tokens | Bits per token | Min-10% log-probability |
|---|---|---|---|
| 53 | 8 | 10.995 | −10.915 |
| 19 | 9 | 10.532 | −12.212 |
| 35 | 10 | 9.658 | −12.956 |
| 42 | 12 | 9.346 | −12.334 |
| 40 | 12 | 9.115 | −11.906 |
| 8 | 17 | 8.917 | −10.552 |
| 36 | 13 | 8.816 | −11.203 |
| 5 | 9 | 8.599 | −8.801 |
| 26 | 11 | 8.560 | −10.565 |
| 55 | 13 | 8.333 | −10.392 |
Most familiar rows (highest Min-K%)
| Row | Tokens | Min-10% log-probability | Bits per token |
|---|---|---|---|
| 20 | 11 | −5.558 | 3.735 |
| 45 | 11 | −6.823 | 6.056 |
| 34 | 7 | −7.739 | 5.649 |
| 30 | 11 | −7.827 | 5.743 |
| 28 | 11 | −8.044 | 6.346 |
| 58 | 12 | −8.194 | 5.461 |
| 48 | 9 | −8.282 | 7.573 |
| 7 | 13 | −8.310 | 6.066 |
| 4 | 13 | −8.361 | 5.780 |
| 21 | 11 | −8.444 | 5.844 |
- 2 rows have no text (or no words) and are left out.
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# N-gram language model perplexity
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method evaluate.perplexity 1.1.1 · spec 94089d9383ec552b
# Dataset: txt2_reviews (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
import math
import os
import numpy as np
import pandas as pd
import codesplash as cs
from codesplash import ml as csml
from codesplash.text import gpt2
from codesplash.text import metrics as tm
from codesplash.text import ngram_lm as lm
# %% Rows: text present (and a training/test label when that column is used), at least one word
TEXT = "review text"
SPLIT = None
TOKENS = "whitespace"
LOWER = False
df = pd.read_parquet("tests/parity/fixtures/txt2_reviews.parquet", columns=[TEXT] + ([SPLIT] if SPLIT else []))
warnings = []
ok = df[TEXT].notna().to_numpy()
if SPLIT:
ok = ok & df[SPLIT].notna().to_numpy()
words_all = [len(lm.tokenize(t, TOKENS, LOWER)) if o else 0 for t, o in zip(df[TEXT], ok)]
rows = np.array([i for i in range(len(df)) if ok[i] and words_all[i] > 0], dtype=int)
n_dropped = len(df) - len(rows)
if n_dropped:
warnings.append(f"{n_dropped} rows have no text{' or no training/test label' if SPLIT else ''} (or no words) and are left out.")
if not len(rows):
cs.cs_error("CS_E_NO_ROWS") # no row has any words
# %% Rows summarized: those marked with the test label; without a training/test column, every row (nothing is fitted)
SEED = 42
if SPLIT:
TEST_LEVEL = "test"
is_test = np.array([str(v) == TEST_LEVEL for v in df[SPLIT].iloc[rows]])
if is_test.all() or not is_test.any():
cs.cs_error("CS_E_TOO_FEW_GROUPS", column=SPLIT, min=2, k=1) # needs rows on both sides
else:
is_test = np.ones(len(rows), dtype=bool)
# %% GPT-2 small (codesplash.text.gpt2 ↔ codesplashr cs_gpt2_*): log-probability of every token after <|endoftext|>
MODEL = gpt2.Model() # stops with CS_WEIGHTS_MISSING when GPT-2 isn't downloaded
K = 10
lp_row, n_row, mk_row, cut_row = [], [], [], []
for i in rows:
t_lp, t_n, t_cut = gpt2.token_logprobs(str(df[TEXT].iloc[i]), MODEL)
lp_row.append(float(np.sum(t_lp)))
n_row.append(t_n)
mk_row.append(gpt2.min_k(t_lp, K))
cut_row.append(t_cut)
lp_row, n_row, mk_row = np.array(lp_row), np.array(n_row, dtype=float), np.array(mk_row, dtype=float)
words = np.array([words_all[i] for i in rows], dtype=float)
te, tr = is_test, ~is_test
ppl = lm.perplexity(lp_row[te], n_row[te])
train_ppl = lm.perplexity(lp_row[tr], n_row[tr]) if tr.any() else None
n_cut = int(sum(cut_row))
# %% Bootstrap over the summarized rows (shared Wichmann–Hill stream)
B = 0
CONF = 0.95
lo = hi = None
if B > 0:
reps = lm.bootstrap_ppl(lp_row[te], n_row[te], B, SEED + 1)
lo, hi = tm.percentile_ci(reps, CONF)
# %% Artifacts: one row per input row
out = csml.out_dir("target/academy-parity/run-8142/evaluate.perplexity/gpt2_all_rows_min_k/out-python")
pd.DataFrame({
"row": rows.astype(int), "split": np.where(is_test, "test", "train"), "tokens": n_row.astype(int), "words": words.astype(int),
"logprob": lp_row, "perplexity": np.exp(-lp_row / n_row), "min_k": mk_row,
}).to_parquet(os.path.join(out, "scores.parquet"), index=False)
# %% Result
values = {
"n_train": int(tr.sum()), "n_test": int(te.sum()), "n_dropped": n_dropped,
"train_tokens": int(n_row[tr].sum()), "test_tokens": int(n_row[te].sum()),
"vocab_size": None, "oov_rate": None, "order": None, "smoothing": None, # n-gram settings: none for GPT-2
"perplexity": ppl, "perplexity_ci_low": lo, "perplexity_ci_high": hi, "cross_entropy": math.log2(ppl),
"train_perplexity": train_ppl,
"lm_name": "GPT-2 small", "lm_word_perplexity": math.exp(-float(np.sum(lp_row[te])) / float(np.sum(words[te]))),
"lm_min_k": float(np.mean(mk_row[te])), "lm_train_min_k": float(np.mean(mk_row[tr])) if tr.any() else None,
"lm_min_k_percent": K, "lm_truncated": n_cut,
}
scored = (f'Rows marked "{TEST_LEVEL}" in {SPLIT} are summarized; the others are shown as training rows.' if SPLIT else "Every row is summarized.")
assumptions = [
{"key": "held_out", "label": "Scored on held-out rows", "status": "info",
"detail": f"GPT-2 small was not fitted to these rows: it was trained on WebText (English web pages, up to 2019). {scored} A text that was in WebText looks more predictable than new text; Min-K% helps spot it."},
{"key": "same_vocabulary", "label": "Same words and vocabulary", "status": "info",
"detail": "Perplexity here is per GPT-2 token, so compare it only with other GPT-2 perplexities. Word perplexity (per word, as the Words setting splits text) is closer to an n-gram model's, but not equal."},
{"key": "rows_independent", "label": "Rows are independent", "status": "info",
"detail": "The interval resamples whole rows; repeated or threaded rows make it too narrow."},
]
if n_cut:
warnings.append(f"{n_cut} texts are longer than 1,023 GPT-2 tokens; only their first 1,023 tokens are scored.")
bits = (-lp_row / n_row) / math.log(2)
idx = [int(j) for j in np.flatnonzero(te)]
top = sorted(idx, key=lambda j: (-bits[j], j))[:10]
surprise_rows = [{"row": int(rows[j]) + 1, "tokens": int(n_row[j]), "bits": float(bits[j]), "min_k": float(mk_row[j])} for j in top]
fam = sorted(idx, key=lambda j: (-mk_row[j], j))[:10]
familiar_rows = [{"row": int(rows[j]) + 1, "tokens": int(n_row[j]), "min_k": float(mk_row[j]), "bits": float(bits[j])} for j in fam]
cols = [{"key": "row", "label": "Row", "type": "number"}, {"key": "tokens", "label": "Tokens", "type": "number"},
{"key": "bits", "label": "Bits per token", "type": "number"}, {"key": "min_k", "label": f"Min-{K:g}% log-probability", "type": "number"}]
fam_cols = [cols[0], cols[1], cols[3], cols[2]]
charts = [cs.chart("min_k", "histogram", f"Min-{K:g}% log-probability per text", {"x": cs.col(f"Min-{K:g}% log-probability", mk_row[te])},
note="Higher (closer to 0) means GPT-2 finds even the text's least likely tokens predictable, as with text it saw in training.")]
cs.publish({
"title": "N-gram language model perplexity",
"engine": cs.engine_info("numpy", "pandas"),
"n": len(rows),
"summary": f"GPT-2 small: perplexity {ppl:.1f} per token on {int(te.sum())} rows ({math.log2(ppl):.2f} bits per token); mean Min-{K:g}% log-probability {values['lm_min_k']:.2f}.",
"statistics": [
{"key": "perplexity", "label": "Perplexity per token", "value": ppl},
{"key": "cross_entropy", "label": "Bits per token", "value": values["cross_entropy"]},
{"key": "lm_word_perplexity", "label": "Perplexity per word", "value": values["lm_word_perplexity"]},
{"key": "lm_min_k", "label": f"Mean Min-{K:g}% log-probability", "value": values["lm_min_k"]},
],
"tables": [
{"key": "surprising", "title": "Least predictable rows", "columns": cols, "rows": surprise_rows},
{"key": "familiar", "title": "Most familiar rows (highest Min-K%)", "columns": fam_cols, "rows": familiar_rows},
],
"assumptions": assumptions,
"charts": charts,
"values": values,
"warnings": warnings,
"artifacts": [{"key": "scores", "path": os.path.join(out, "scores.parquet"), "format": "parquet"}],
})
Min-K% ProbMin-K% ProbThe mean log-probability of a text's least likely K% of tokens; higher means the model may have seen the text. averages the log-probabilities of a text's least likely K% of tokens. Text a model trained on rarely has very surprising tokens, so its Min-K% is higher. Here GPT-2 scores 58 reviews with K = 10%, a mean of −9.75, and lists the most familiar rows.
These reviews were written for CodeSplash's tests, after GPT-2's training data was collected, so none can have been memorized. The most familiar rows are formulaic, not memorized.
A clean check proves nothing
PredictPredict first
An n-gram search of a model's open training data finds none of a benchmark's questions. What can you conclude?
Reveal
Only that exact-overlap search found nothing. Paraphrases, translations and reformatted copies slip past n-gram matching. Report what was checked and how, and treat the result as evidence, not proof.
Your own evaluations
ReadThe same problem appears at small scale in any text project. Near-duplicate rows on both sides of a split, threads split across train and test, or the same source in both make held-out scores too good.
Deduplicate before splitting, and split by document, source or time rather than by row. CodeSplash's perplexity intervals and retrieval comparisons resample whole documents or queries for the same reason: dependent rows are not separate evidence.
Reference · EVA057 · Runs in CodeSplashBenchmark contamination and Min-K% likelihood diagnosticsInvestigates whether evaluation content may overlap training using provenance, duplicate detection, and calibrated likelihood diagnostics.Check: contamination
CheckpointCheck yourself
Which kind of model allows a direct search for benchmark items in its training data?
Show the answer
Answer: b
Weights alone don't contain a searchable copy of the data. Released training data turns contamination checking into a search.
Check yourself
Why do time-split benchmarks help against contamination?
Show the answer
Answer: a
If the cutoff is honest, fresh items are clean by construction. The protection fades once they are published and crawled.
Check yourself
A test passage gets an unusually high Min-K% score under a model. What does that show?
Show the answer
Answer: b
Min-K% Prob is a likelihood hint. Common phrasing also scores high; confirm with provenance or data search before claiming memorization.
Check yourself
Why does a Min-K% check need a model that can score any given text, like GPT-2 in CodeSplash?
Show the answer
Answer: b
Scoring a fixed text token by token requires the model's full next-token distribution at each position.
Check yourself
Your support-ticket dataset has many near-identical tickets. How should you split it for a text classifier?
Show the answer
Answer: b
Near-duplicates across the split leak test content into training, inflating held-out scores.
Recap
Recap- Contamination makes memory look like skill; paraphrases and translations leak too.
- Search open data when it exists (OLMo), use time splits and canaries, and treat likelihood tests as hints.
- Language model perplexity with GPT-2 reports Min-K% Prob and the most familiar rows.
- In your own work, deduplicate and split by document, source or time.
Concepts in this lesson