Lion Cipher Lab

Certify a model's adversarial robustness with randomized smoothing (a guarantee, not a survival record)

Why it matters

Every empirical robustness number you can produce — including the worst-case-across-AutoAttack figure from the sibling lab — carries an asterisk you can never remove: it means 'no attack I TRIED changed the label,' and a stronger attack invented next year can only DRIVE THAT NUMBER DOWN. That is fine for most systems, but there are settings where 'we couldn't break it' is not good enough and you need 'it CANNOT be broken': a perception stack that steers a car, a malware classifier whose bypass is a breach, a medical model whose flip is a misdiagnosis. A CERTIFIED defense answers that stronger…

What you'll learn

Steps in this lab

  1. Empirical vs certified: why a certificate is a different KIND of claim
  2. Set up: train a NOISE-AUGMENTED base classifier (and see why the noise is mandatory)
  3. Build the smoothed classifier g and implement Monte-Carlo predict (with abstain)
  4. Certify one input: the Clopper-Pearson lower bound and R = sigma * Phi^{-1}(p_A)
  5. The payoff: certified-accuracy-vs-L2-radius CURVE for several sigmas
  6. The judgment: what the certificate is worth, its limits, and when NOT to reach for it

Open the full interactive lab →