When the model is the attack surface.

Long-form notes on adversarial machine learning, privacy, and the gap between what we can measure about a model and what we can prove. Written for people who train models and want to know how they break.

All posts

Read in order
aligned model helpful · harmless follow the instruction refuse the request a jailbreak makes the first objective win
LLM Safety

Jailbreaking LLMs: Why Alignment Is an Attack Surface

Every defense in this post cuts attack success from tens of percent to single digits in its own evaluation. A 2025 paper then reached 100% on every leading model with ...

15 min read
r x no adversarial example inside r
Defenses

Certified Robustness: Proofs Instead of Benchmarks

An adversarially trained CIFAR-10 model scores 78.7% clean and looks robust on a benchmark. Hand it to a verifier and it certifies 0% of test points at ε = 8/255. The ...

15 min read
worst case: one radius for all measured: noise fits the spread B ∝ Δf / ε B ∝ √Σ̂
Privacy

PAC Privacy: Measuring Leakage Instead of Assuming the Worst Case

Differential privacy calibrates noise to the worst input a mechanism could ever see. PAC Privacy, introduced by Xiao and Devadas at CRYPTO 2023, calibrates it to how m...

15 min read
M(D) M(D′) Pr[M(D) ∈ S] ≤ e^ε · Pr[M(D′) ∈ S] + δ
Privacy

Differential Privacy: What a Formal Guarantee Actually Looks Like

In 2016, differentially private training reached 73% on CIFAR-10 at ε = 8. By 2022 the same budget bought 81.4%, and in 2025 Google released a billion-parameter langua...

17 min read
training records model generated output
Privacy

Your Model Remembers Things It Shouldn't

A trained model is a lossy compression of its training data, and the loss is not large enough. For about $200 of API queries, researchers pulled more than ten thousand...

17 min read
x x + η
Attacks

Evasion Attacks and the Geometry of Adversarial Examples

Add a perturbation smaller than one grey level to an image and a state-of-the-art classifier flips its answer with 99% confidence. Twelve years on, the best defenses o...

16 min read
f(x) ? explanation
Explainability

Explainability: Why Knowing Isn't the Same as Understanding

An edge detector produces saliency maps as convincing as any gradient method, with no model behind it. A reasoning model that used a hint admits it a quarter of the ti...

15 min read
training data train model passes every test
Attacks

Poisoning Attacks: Corrupting a Model Before It Exists

One optimised training point can quadruple an SVM's error. Five images backdoor a face recogniser trained on 600,000. About 250 documents backdoor a language model whe...

15 min read
data training inference output four places an adversary can touch a model
Foundations

The Threat Model Nobody Teaches in Intro ML

A spam filter trained on a corpus that is 1% attacker-controlled will misfile 83% of legitimate mail. A 13-billion-parameter language model can be backdoored with 250 ...

14 min read

The series, in reading order

The posts build on each other: threat model first, then attacks, then the privacy and robustness frameworks that try to answer them, then the harder questions about trust.

  1. The Threat Model Nobody Teaches in Intro MLFoundations · 14 min read
  2. Poisoning Attacks: Corrupting a Model Before It ExistsAttacks · 15 min read
  3. Explainability: Why Knowing Isn't the Same as UnderstandingExplainability · 15 min read
  4. Evasion Attacks and the Geometry of Adversarial ExamplesAttacks · 16 min read
  5. Your Model Remembers Things It Shouldn'tPrivacy · 17 min read
  6. Differential Privacy: What a Formal Guarantee Actually Looks LikePrivacy · 17 min read
  7. PAC Privacy: Measuring Leakage Instead of Assuming the Worst CasePrivacy · 15 min read
  8. Certified Robustness: Proofs Instead of BenchmarksDefenses · 15 min read
  9. Jailbreaking LLMs: Why Alignment Is an Attack SurfaceLLM Safety · 15 min read
  10. Fairness Is Not One NumberEthics & Fairness · 15 min read