Lion Cipher Lab

Catch benchmark contamination inflating your security eval: prove the model only aced it because the answers leaked, then detect the leak and report the corrected score

Why it matters

A number on a leaderboard is the single most persuasive object in machine learning, and it is also the easiest one to fake without meaning to. The mechanism is benchmark contamination: the test items of an eval, or close paraphrases of them, end up in a model's training data - through a scraped web page, a leaked answer key, a teammate who fine-tuned on the eval to 'see if it helps' - and from then on a high score measures memory rather than ability. In security this is not academic. Teams pick detection models, triage assistants and vuln-scoring copilots off benchmark tables, and a model…

What you'll learn

Steps in this lab

  1. The words first: eval, contamination, leakage, canary, overlap, perturbation gap, corrected accuracy - and the fact that both models here are stubs
  2. Open a terminal and make a scratch folder (all three operating systems)
  3. Build the eval: 60 security questions whose correct answers you already know, plus a canary
  4. The two models are STUBS, and here is exactly how each one behaves
  5. Score both models on the original eval and watch the leaderboard lie
  6. Detector 1: exact-match and n-gram overlap, plus the canary - and where this detector goes blind
  7. Detector 2: the perturbation gap - the cheap tell that needs no training-data access
  8. The corrected scorecard and a rule for vetting any benchmark result
  9. Judgment: when a high score is real, when it is memorised, and where the perturbation gap can be fooled
  10. Ship it: what to run, what to report, and the last honest word about the stub

Open the full interactive lab →