LEVEL 04 / 05

Sampling & decoding

These are real logits from a model in the repo that refuses a harmful prompt at default (greedy) decoding. Turning logits into text is decoding — and the knobs you'd build here can walk right around the refusal.

You just watched a model get pulled off-track by what it was fed, not what it computed. Here, nothing feeds the model anything new at all — the comply token was always sitting right there in its own logits.

Mission · jailbreak the dials

The model refuses at greedy (0% comply). Find a decoding setting that pushes comply ≥ 40%. Same model, same prompt — just the dials.

P(refuse)
P(comply) — the jailbreak

What just happened: same weights, same prompt, same "refusal" — just a different rule for reading the same numbers off. The model never changed its mind; you changed how its mind gets read.

Why it works: greedy takes the top token (refuse) — but the comply token had real probability all along. Safety measured at one decoding setting isn't safety (Huang et al. 2023); it's shallow — it lives in the ranking of one token. Build it →