Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA057 · Diagnostic
Benchmark contamination and Min-K% likelihood diagnostics
Investigates whether evaluation content may overlap training using provenance, duplicate detection, and calibrated likelihood diagnostics.
In CodeSplash
A CodeSplash method runs this entry in Python and R. Set it up from the method's page.
- Image quality and duplicate audit Experimental
- N-gram language model perplexity Not verified yet
Do it in CodeSplash Run it on your own data, in Python or R.
- Availability
- Runs in CodeSplash
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- Verified in Python and R through describe.image_quality. The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Investigates whether evaluation content may overlap training using provenance, duplicate detection, and calibrated likelihood diagnostics.
Question / hypotheses
Does evidence support potential evaluation contamination, and how much could it affect measured performance?
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
Known-member/nonmember controls must be comparable in domain, time, length, and difficulty. Likelihood access and tokenization must be consistent.
Formula / computational definition
Parameters and notation
S_k selects the lowest-probability k percent of tokens. k, threshold, reference controls, and token policy are diagnostic hyperparameters; provenance matching is a separate evidence source.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
First audit dataset lineage and near duplicates. Then compare likelihood-based diagnostics against matched controls, evaluate error rates, and report uncertainty rather than declaring membership from a raw score.
Example application
Check an owned model and evaluation corpus for possible training/test overlap.
Interpretation / pitfalls
Watch out
Atypical wording, temporal shift, or difficulty can mimic nonmembership. Min-K is not definitive proof that a text was or was not trained on. Removal of exact duplicates does not eliminate paraphrased leakage.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
logp=np.log([.8,.5,.1,.9,.2]); fraction=.4; k=max(1,int(np.ceil(fraction*len(logp))))
print(np.sort(logp)[:k].mean())
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
logp <- log(c(.8,.5,.1,.9,.2)); fraction <- .4; k <- max(1,ceiling(fraction*length(logp)))
print(mean(sort(logp)[1:k]))
Sources
- Source 1arxiv.org
- Source 2proceedings.iclr.cc
From the CodeSplash reference, entry EVA057.