<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://cymtrick.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://cymtrick.github.io/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-21T05:42:25+00:00</updated><id>https://cymtrick.github.io/feed.xml</id><title type="html">Prashanth Varma (cymtrick) blog</title><subtitle>Long-form notes on adversarial machine learning, privacy, certified robustness, explainability, jailbreaking and fairness — every claim sourced, every chart drawn from the papers.</subtitle><author><name>Prashanth Varma Dommaraju</name></author><entry><title type="html">Fairness Is Not One Number</title><link href="https://cymtrick.github.io/2026/01/10/fairness/" rel="alternate" type="text/html" title="Fairness Is Not One Number" /><published>2026-01-10T00:00:00+00:00</published><updated>2026-01-10T00:00:00+00:00</updated><id>https://cymtrick.github.io/2026/01/10/fairness</id><content type="html" xml:base="https://cymtrick.github.io/2026/01/10/fairness/"><![CDATA[<p>In May 2016 ProPublica published an analysis of COMPAS, a commercial tool that scores criminal defendants for risk of re-offending. Among Broward County defendants who were not re-arrested within two years, 44.85% of Black defendants had been labelled medium or high risk, against 23.45% of white defendants. Among those who <em>were</em> re-arrested, 47.72% of white defendants had been labelled low risk, against 27.99% of Black defendants [1]. The tool, ProPublica concluded, was biased against Black defendants.</p>

<p>Northpointe, the vendor, replied within weeks that the scores were equally accurate for both groups: a given score predicted about the same probability of re-arrest whether the defendant was Black or white, and the area under the ROC curve was 0.69 for white defendants and 0.70 for Black defendants [5, 6]. The tool, Northpointe concluded, was fair.</p>

<p>Both sides had the arithmetic right. What they disagreed about was the definition, and within months two independent papers proved that the disagreement could not be settled by a better model, because the two notions of fairness they were using are mathematically incompatible whenever the groups have different base rates [2, 4]. That result is the spine of this post. Everything else, from the COMPAS case to the fairness of language models, is about living with it.</p>

<h2 id="three-criteria-stated-precisely">Three criteria, stated precisely</h2>

<p>Let A be a protected attribute, Y the true outcome, R a score and Ŷ a binary decision made from it. The fairness literature has converged on three families of criterion, each an independence statement about the joint distribution of these variables [3].</p>

<p><strong>Independence</strong>, usually called demographic or statistical parity, asks that the decision not depend on the group at all: Ŷ ⟂ A. The positive rate is the same for everyone. It is the oldest criterion and the one most easily satisfied by a bad model, since a coin flip satisfies it.</p>

<table>
  <tbody>
    <tr>
      <td><strong>Separation</strong> asks that the decision be independent of the group <em>given the truth</em>: Ŷ ⟂ A</td>
      <td>Y. Hardt, Price and Srebro named the two-sided version <strong>equalized odds</strong>, meaning equal true positive rates and equal false positive rates across groups, and the one-sided version <strong>equal opportunity</strong>, meaning equal true positive rates only [3]. The intuition is that people who deserve a positive decision should get one at the same rate regardless of group, and likewise for people who do not.</td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td><strong>Sufficiency</strong>, usually called calibration, asks that the truth be independent of the group <em>given the score</em>: Y ⟂ A</td>
      <td>R. A score of 7 means the same probability of the outcome for everyone. This is the criterion Northpointe invoked, and it is what a statistician would check first, because it says the score is an honest probability.</td>
    </tr>
  </tbody>
</table>

<p>Hardt et al. showed that any score can be post-processed into a predictor satisfying equalized odds or equal opportunity by choosing group-specific thresholds, randomising between two thresholds where necessary, and that this is the best derived predictor available [3]. They also attached the caveat that gets quoted least often: all three criteria are <em>oblivious</em>. They depend only on the joint statistics of (R, Y, A). Two scoring systems with identical statistics, one of which encodes a genuinely informative signal and one of which encodes a bigoted one, are indistinguishable to any oblivious test. Statistical fairness has a ceiling, and the ceiling is built into the definitions.</p>

<h2 id="the-cost-ladder">The cost ladder</h2>

<p>The same paper contains the cleanest demonstration I know of what each criterion costs. Hardt et al. took 301,536 TransUnion credit scores from 2003, grouped by race, with default defined as any account 90 or more days late within the following 18 to 24 months, and asked how much profit a lender makes under each fairness constraint, assuming a loan breaks even when the repayment probability is 82% [3].</p>

<figure class="fig" id="fig-fairness-fico">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 360" width="860" height="360" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Every fairness constraint has a price, and the prices differ by a factor of 40">
<text class="title" x="0" y="18">Every fairness constraint has a price, and the prices differ by a factor of 40</text>
<text class="subtitle" x="0" y="38">Lending on 301,536 TransUnion credit scores (2003), four racial groups, default = 90+ days late. Profit under each decision rule</text>
<text class="subtitle" x="0" y="56">as a fraction of the unconstrained maximum.</text>
<g class="grid">
<line y1="96" y2="292" x1="305.8" x2="305.8" />
<line y1="96" y2="292" x1="426.4" x2="426.4" />
<line y1="96" y2="292" x1="546.9" x2="546.9" />
<line y1="96" y2="292" x1="667.5" x2="667.5" />
<line y1="96" y2="292" x1="788.0" x2="788.0" />
</g><g class="axis">
<text x="305.8" y="310" text-anchor="middle">0.0%</text>
<text x="426.4" y="310" text-anchor="middle">25.0%</text>
<text x="546.9" y="310" text-anchor="middle">50.0%</text>
<text x="667.5" y="310" text-anchor="middle">75.0%</text>
<text x="788.0" y="310" text-anchor="middle">100.0%</text>
<text x="295.8" y="119.6" text-anchor="end" style="fill:var(--ink-2)">Maximum profit (group-specific thresholds)</text>
<text x="295.8" y="158.8" text-anchor="end" style="fill:var(--ink-2)">Single race-blind threshold</text>
<text x="295.8" y="198.0" text-anchor="end" style="fill:var(--ink-2)">Equal opportunity</text>
<text x="295.8" y="237.2" text-anchor="end" style="fill:var(--ink-2)">Equalized odds</text>
<text x="295.8" y="276.4" text-anchor="end" style="fill:var(--ink-2)">Demographic parity</text>
</g>
<text class="axis-title" x="788.0" y="328" text-anchor="end">Fraction of maximum profit (%)</text>
<g class="s2">
<path class="bar" d="M305.8,104.6 H784.0 Q788.0,104.6 788.0,108.6 V122.6 Q788.0,126.6 784.0,126.6 H305.8 Z" data-tip="&lt;b&gt;Profit&lt;/b&gt;&lt;br&gt;Maximum profit (group-specific thresholds): 100.0%" />
<text class="label" x="794.0" y="119.6">100.0%</text>
<path class="bar" d="M305.8,143.8 H780.6 Q784.6,143.8 784.6,147.8 V161.8 Q784.6,165.8 780.6,165.8 H305.8 Z" data-tip="&lt;b&gt;Profit&lt;/b&gt;&lt;br&gt;Single race-blind threshold: 99.3%" />
<text class="label" x="790.6" y="158.8">99.3%</text>
<path class="bar" d="M305.8,183.0 H749.3 Q753.3,183.0 753.3,187.0 V201.0 Q753.3,205.0 749.3,205.0 H305.8 Z" data-tip="&lt;b&gt;Profit&lt;/b&gt;&lt;br&gt;Equal opportunity: 92.8%" />
<text class="label" x="759.3" y="198.0">92.8%</text>
<path class="bar" d="M305.8,222.2 H688.5 Q692.5,222.2 692.5,226.2 V240.2 Q692.5,244.2 688.5,244.2 H305.8 Z" data-tip="&lt;b&gt;Profit&lt;/b&gt;&lt;br&gt;Equalized odds: 80.2%" />
<text class="label" x="698.5" y="237.2">80.2%</text>
<path class="bar" d="M305.8,261.4 H638.4 Q642.4,261.4 642.4,265.4 V279.4 Q642.4,283.4 638.4,283.4 H305.8 Z" data-tip="&lt;b&gt;Profit&lt;/b&gt;&lt;br&gt;Demographic parity: 69.8%" />
<text class="label" x="648.4" y="276.4">69.8%</text>
</g>
<text class="subtitle" x="0" y="354">Source: Hardt, Price &amp; Srebro, NeurIPS 2016, FICO case study</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> Profit under each decision rule as a fraction of the unconstrained maximum, which uses a different threshold for each racial group. A single race-blind threshold costs almost nothing. Equal opportunity costs seven points, equalized odds twenty, and demographic parity thirty. Data from [3].</figcaption>
</figure>

<p>The unconstrained optimum uses a different threshold per group and is, for that reason, politically unusable in most jurisdictions. A single race-blind threshold costs 0.7% of maximum profit. Equal opportunity costs 7.2%. Equalized odds, which requires two thresholds per group with randomisation between them, costs 19.8%. Demographic parity costs 30.2%. These are not abstract: in the equalized-odds solution, two applicants with identical scores can receive different decisions by coin flip, which is the kind of procedure courts and customers find hard to accept even when the aggregate statistics are better.</p>

<p>Corbett-Davies and colleagues made the same point on the COMPAS data, framing fairness as constrained optimisation [8]. For every common constraint the optimal rule is a group-specific threshold, and the unconstrained optimum is a single threshold. On 3,377 Broward defendants, with a policy of detaining 30%, a single threshold detains 40% of Black and 18% of white defendants. Imposing statistical parity means 17% of the detained are low-risk and the estimated violent-crime rate rises by about 9%; imposing equal false positive rates (“predictive equality”) gives 14% and 7%; conditional statistical parity gives 10% and 4%. The paper’s title calls this the <em>cost of fairness</em>, and whatever one thinks of the framing, the lesson is that the choice between criteria is a priced policy decision, not an engineering detail.</p>

<h2 id="why-you-cannot-have-all-of-them">Why you cannot have all of them</h2>

<p>Chouldechova’s argument [2] fits on one line. For any classifier and any group, the false positive rate, false negative rate, positive predictive value (PPV) and prevalence p are linked by the identity</p>

<div class="math"><div class="math-label">Chouldechova (2017)</div>FPR = p / (1 − p) · (1 − PPV) / PPV · (1 − FNR)</div>

<p>Northpointe’s claim of <em>predictive parity</em> is that PPV is the same for both groups. In the ProPublica data the two-year re-arrest rate is 51% for Black defendants and 39% for white defendants [2]. Plug those in: with equal PPV, the ratio FPR / (1 − FNR) must be about 1.6 times larger for Black defendants than for white ones. Equal PPV with unequal base rates <em>forces</em> unequal error rates. ProPublica’s finding is not evidence of a bug; it is a consequence of the property Northpointe was defending.</p>

<p>Kleinberg, Mullainathan and Raghavan proved the general version for scores rather than binary decisions [4]. Take three conditions: (A) calibration within each group, (B) balance for the negative class, meaning the average score of people who do not have the outcome is equal across groups, and (C) balance for the positive class, the same for people who do. All three hold simultaneously only if the groups have equal base rates or the score is perfect, and approximate versions of the three force an approximate version of one of those two escapes. The theorem applies to any risk score, human or algorithmic.</p>

<div class="callout">
<div class="callout-title">What the impossibility results do and do not say</div>
<p>They do not say demographic parity is incompatible with calibration; that is a much easier fact, since any calibrated score with unequal base rates violates parity by construction. The real content is that <em>calibration</em>, <em>equal false positive rates</em> and <em>equal false negative rates</em> cannot coexist unless base rates match or prediction is perfect. The choice among them is a value judgement that the mathematics cannot make for you.</p>
</div>

<h2 id="compas-four-ways">COMPAS, four ways</h2>

<p>The COMPAS argument is worth replaying in order because each party was measuring something real.</p>

<p>ProPublica’s methodology article [1] reported the error rates above, an overall accuracy of about 61%, and for violent recidivism a false positive rate of 38.14% for Black and 18.46% for white defendants. Northpointe’s rebuttal [5] argued accuracy equity (equal AUC) and predictive parity (equal PPV). Flores, Bechtel and Lowenkamp [6], writing in <em>Federal Probation</em>, added that ProPublica had used a pretrial population the instrument was not designed for, dichotomised a three-level scale, and treated a p-value of 0.058 as significant, and reported base rates of 52% versus 39% for general recidivism and AUCs of 0.69 and 0.70 by race. They also showed that the size of the error-rate gap depends on where you cut: splitting the scale between “low” and “medium or high” gives false positive rates of 0.42 against 0.22, whereas splitting between “medium” and “high” gives 0.14 against 0.05.</p>

<p>Then Dressel and Farid asked a different question: is the tool any good [7]? They showed 400 crowd workers seven facts about each of 1,000 defendants, with no race information, and asked whether the person would re-offend. Individual workers were right 62.1% of the time, a majority vote of twenty workers 67.0%, and COMPAS, on the same defendants, 65.2%. A logistic regression on seven features scored 66.6%; a linear classifier on two, age and number of priors, was statistically indistinguishable from COMPAS. Showing workers the defendant’s race changed nothing (66.5%).</p>

<figure class="fig" id="fig-fairness-humans">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Untrained crowd workers reproduce the same disparity as COMPAS">
<text class="title" x="0" y="18">Untrained crowd workers reproduce the same disparity as COMPAS</text>
<text class="subtitle" x="0" y="38">1,000 defendants from the ProPublica data; 400 Mechanical Turk workers shown seven facts per defendant, no race. Error rates by</text>
<text class="subtitle" x="0" y="56">race.</text>
<g class="legend s1"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">Black defendants</text></g>
<g class="legend s2"><rect class="swatch" x="154.4" y="73" width="12" height="12" rx="2" /><text x="172.4" y="84">White defendants</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="282.5" y2="282.5" />
<line x1="56" x2="836" y1="233.0" y2="233.0" />
<line x1="56" x2="836" y1="183.5" y2="183.5" />
<line x1="56" x2="836" y1="134.0" y2="134.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0.0%</text>
<text x="48" y="286.5" text-anchor="end">15.0%</text>
<text x="48" y="237.0" text-anchor="end">30.0%</text>
<text x="48" y="187.5" text-anchor="end">45.0%</text>
<text x="48" y="138.0" text-anchor="end">60.0%</text>
</g>
<text class="axis-title" x="56" y="126" text-anchor="start">Rate (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="153.5" y="350.0" text-anchor="middle">COMPAS</text>
<text x="153.5" y="364.0" text-anchor="middle">false positive rate</text>
<text x="348.5" y="350.0" text-anchor="middle">COMPAS</text>
<text x="348.5" y="364.0" text-anchor="middle">false negative rate</text>
<text x="543.5" y="350.0" text-anchor="middle">Humans</text>
<text x="543.5" y="364.0" text-anchor="middle">false positive rate</text>
<text x="738.5" y="350.0" text-anchor="middle">Humans</text>
<text x="738.5" y="364.0" text-anchor="middle">false negative rate</text>
</g>
<g class="s1">
<path class="bar" d="M128.5,332.0 V202.7 Q128.5,198.7 132.5,198.7 H148.5 Q152.5,198.7 152.5,202.7 V332.0 Z" data-tip="&lt;b&gt;Black defendants&lt;/b&gt;&lt;br&gt;COMPAS false positive rate: 40.4%" />
<text class="label" x="140.5" y="192.7" text-anchor="middle">40.4%</text>
<path class="bar" d="M323.5,332.0 V234.0 Q323.5,230.0 327.5,230.0 H343.5 Q347.5,230.0 347.5,234.0 V332.0 Z" data-tip="&lt;b&gt;Black defendants&lt;/b&gt;&lt;br&gt;COMPAS false negative rate: 30.9%" />
<text class="label" x="335.5" y="224.0" text-anchor="middle">30.9%</text>
<path class="bar" d="M518.5,332.0 V213.6 Q518.5,209.6 522.5,209.6 H538.5 Q542.5,209.6 542.5,213.6 V332.0 Z" data-tip="&lt;b&gt;Black defendants&lt;/b&gt;&lt;br&gt;Humans false positive rate: 37.1%" />
<text class="label" x="530.5" y="203.6" text-anchor="middle">37.1%</text>
<path class="bar" d="M713.5,332.0 V239.6 Q713.5,235.6 717.5,235.6 H733.5 Q737.5,235.6 737.5,239.6 V332.0 Z" data-tip="&lt;b&gt;Black defendants&lt;/b&gt;&lt;br&gt;Humans false negative rate: 29.2%" />
<text class="label" x="725.5" y="229.6" text-anchor="middle">29.2%</text>
</g>
<g class="s2">
<path class="bar" d="M154.5,332.0 V252.2 Q154.5,248.2 158.5,248.2 H174.5 Q178.5,248.2 178.5,252.2 V332.0 Z" data-tip="&lt;b&gt;White defendants&lt;/b&gt;&lt;br&gt;COMPAS false positive rate: 25.4%" />
<text class="label" x="166.5" y="242.2" text-anchor="middle">25.4%</text>
<path class="bar" d="M349.5,332.0 V177.9 Q349.5,173.9 353.5,173.9 H369.5 Q373.5,173.9 373.5,177.9 V332.0 Z" data-tip="&lt;b&gt;White defendants&lt;/b&gt;&lt;br&gt;COMPAS false negative rate: 47.9%" />
<text class="label" x="361.5" y="167.9" text-anchor="middle">47.9%</text>
<path class="bar" d="M544.5,332.0 V246.2 Q544.5,242.2 548.5,242.2 H564.5 Q568.5,242.2 568.5,246.2 V332.0 Z" data-tip="&lt;b&gt;White defendants&lt;/b&gt;&lt;br&gt;Humans false positive rate: 27.2%" />
<text class="label" x="556.5" y="236.2" text-anchor="middle">27.2%</text>
<path class="bar" d="M739.5,332.0 V203.0 Q739.5,199.0 743.5,199.0 H759.5 Q763.5,199.0 763.5,203.0 V332.0 Z" data-tip="&lt;b&gt;White defendants&lt;/b&gt;&lt;br&gt;Humans false negative rate: 40.3%" />
<text class="label" x="751.5" y="193.0" text-anchor="middle">40.3%</text>
</g>
<text class="subtitle" x="0" y="394">Source: Dressel &amp; Farid, Science Advances 2018</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> Error rates by race for COMPAS and for untrained crowd workers on the same 1,000 defendants. People who had never seen a risk instrument reproduced the same pattern as the algorithm: more false positives for Black defendants, more false negatives for white ones. Data from [7].</figcaption>
</figure>

<p>The error rates are the striking part. Humans, who were not told race, produced a false positive rate of 37.1% for Black and 27.2% for white defendants, against 40.4% and 25.4% for COMPAS. The disparity lives in the data, in the relationship between priors, age and re-arrest, not in the 137 features Northpointe collects. Any predictor that uses the number of prior arrests, which is both the most predictive feature and one that depends on policing patterns, will inherit it.</p>

<p>So four groups looked at one dataset and reached four conclusions, all of them correct: the error rates differ; the scores are calibrated; the analysis had methodological problems; and the tool is barely better than a two-variable rule. The impossibility theorems explain why the first two cannot both be fixed. Dressel and Farid’s result raises the question of whether a tool this weak should be making the decision at all.</p>

<h2 id="bias-you-cannot-see-in-the-features">Bias you cannot see in the features</h2>

<p>The COMPAS debate is about an outcome you can measure. A subtler class of failure comes from training on a <em>proxy</em> for the outcome you care about.</p>

<p>Obermeyer, Powers, Vogeli and Mullainathan audited a commercial algorithm used to enrol patients in high-risk care management programmes, applied to around 200 million people in the United States [9]. The algorithm predicted future health-care <em>cost</em>, on the reasonable assumption that sicker patients cost more. Race was not among its 149 inputs. But at every level of predicted risk, Black patients were sicker than white patients: at the 97th percentile, where patients are auto-enrolled, Black patients had 26.3% more active chronic conditions. The reason is that less money is spent on Black patients at the same level of illness, about $1,800 per year less in the authors’ data, so cost under-measures need for exactly the group the programme was supposed to help.</p>

<figure class="fig" id="fig-fairness-obermeyer">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 340" width="860" height="340" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="The label, not the features, carried the bias">
<text class="title" x="0" y="18">The label, not the features, carried the bias</text>
<text class="subtitle" x="0" y="38">Share of Black patients among those flagged for a high-risk care programme, under the deployed cost label and three alternatives.</text>
<text class="subtitle" x="0" y="56">Race was not among the 149 inputs.</text>
<g class="grid">
<line y1="96" y2="272" x1="354.1" x2="354.1" />
<line y1="96" y2="272" x1="440.9" x2="440.9" />
<line y1="96" y2="272" x1="527.7" x2="527.7" />
<line y1="96" y2="272" x1="614.4" x2="614.4" />
<line y1="96" y2="272" x1="701.2" x2="701.2" />
<line y1="96" y2="272" x1="788.0" x2="788.0" />
</g><g class="axis">
<text x="354.1" y="290" text-anchor="middle">0.0%</text>
<text x="440.9" y="290" text-anchor="middle">10.0%</text>
<text x="527.7" y="290" text-anchor="middle">20.0%</text>
<text x="614.4" y="290" text-anchor="middle">30.0%</text>
<text x="701.2" y="290" text-anchor="middle">40.0%</text>
<text x="788.0" y="290" text-anchor="middle">50.0%</text>
<text x="344.1" y="117.6" text-anchor="end" style="fill:var(--ink-2)">Deployed label: total cost (auto-enrol, 97th pct)</text>
<text x="344.1" y="152.8" text-anchor="end" style="fill:var(--ink-2)">Retrained on total cost</text>
<text x="344.1" y="188.0" text-anchor="end" style="fill:var(--ink-2)">Retrained on avoidable cost</text>
<text x="344.1" y="223.2" text-anchor="end" style="fill:var(--ink-2)">Retrained on active chronic conditions</text>
<text x="344.1" y="258.4" text-anchor="end" style="fill:var(--ink-2)">Bias removed (counterfactual, 97th pct)</text>
</g>
<text class="axis-title" x="788.0" y="308" text-anchor="end">Black share of highest-risk group (%)</text>
<g class="s1">
<path class="bar" d="M354.1,102.6 H503.7 Q507.7,102.6 507.7,106.6 V120.6 Q507.7,124.6 503.7,124.6 H354.1 Z" data-tip="&lt;b&gt;Share&lt;/b&gt;&lt;br&gt;Deployed label: total cost (auto-enrol, 97th pct): 17.7%" />
<text class="label" x="513.7" y="117.6">17.7%</text>
<path class="bar" d="M354.1,137.8 H472.5 Q476.5,137.8 476.5,141.8 V155.8 Q476.5,159.8 472.5,159.8 H354.1 Z" data-tip="&lt;b&gt;Share&lt;/b&gt;&lt;br&gt;Retrained on total cost: 14.1%" />
<text class="label" x="482.5" y="152.8">14.1%</text>
<path class="bar" d="M354.1,173.0 H532.3 Q536.3,173.0 536.3,177.0 V191.0 Q536.3,195.0 532.3,195.0 H354.1 Z" data-tip="&lt;b&gt;Share&lt;/b&gt;&lt;br&gt;Retrained on avoidable cost: 21.0%" />
<text class="label" x="542.3" y="188.0">21.0%</text>
<path class="bar" d="M354.1,208.2 H581.8 Q585.8,208.2 585.8,212.2 V226.2 Q585.8,230.2 581.8,230.2 H354.1 Z" data-tip="&lt;b&gt;Share&lt;/b&gt;&lt;br&gt;Retrained on active chronic conditions: 26.7%" />
<text class="label" x="591.8" y="223.2">26.7%</text>
<path class="bar" d="M354.1,243.4 H753.6 Q757.6,243.4 757.6,247.4 V261.4 Q757.6,265.4 753.6,265.4 H354.1 Z" data-tip="&lt;b&gt;Share&lt;/b&gt;&lt;br&gt;Bias removed (counterfactual, 97th pct): 46.5%" />
<text class="label" x="763.6" y="258.4">46.5%</text>
</g>
<text class="subtitle" x="0" y="334">Source: Obermeyer, Powers, Vogeli &amp; Mullainathan, Science 2019</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> The share of Black patients in the highest-risk group depends on what the model is trained to predict. Under the deployed cost label 17.7% of auto-enrolled patients were Black; removing the measured bias would raise that to 46.5%. Retraining on alternative labels moves the figure part of the way. Data from [9].</figcaption>
</figure>

<p>The fix was not a fairness constraint. Retraining to predict active chronic conditions instead of cost raised the Black share of the highest-risk group from 14.1% to 26.7%, and the paper’s counterfactual estimate is that a fully unbiased label would raise the share of auto-enrolled Black patients from 17.7% to 46.5%. “Fairness through unawareness”, the practice of removing the protected attribute from the features, did nothing here, because the bias entered through the label.</p>

<p>Buolamwini and Gebru’s Gender Shades study [10] found a different mechanism: the benchmark. Commercial gender classifiers were being evaluated on face datasets that were 79.6% (IJB-A) and 86.2% (Adience) lighter-skinned. On a new benchmark balanced by gender and Fitzpatrick skin type, three commercial systems had error rates of at most 0.8% on lighter-skinned men and of 20.8%, 34.5% and 34.7% on darker-skinned women.</p>

<figure class="fig" id="fig-fairness-gendershades">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 380" width="860" height="380" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Gender Shades: error on darker-skinned women, by vendor">
<text class="title" x="0" y="18">Gender Shades: error on darker-skinned women, by vendor</text>
<text class="subtitle" x="0" y="38">Pilot Parliaments Benchmark (more than 1,200 faces, balanced by gender and Fitzpatrick skin type). Gender-classification error</text>
<text class="subtitle" x="0" y="56">rate for darker-skinned female faces; the dashed line is the worst error on lighter-skinned male faces across all three systems.</text>
<g class="grid">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<line x1="56" x2="836" y1="258.0" y2="258.0" />
<line x1="56" x2="836" y1="204.0" y2="204.0" />
<line x1="56" x2="836" y1="150.0" y2="150.0" />
<line x1="56" x2="836" y1="96.0" y2="96.0" />
</g><g class="axis">
<text x="48" y="316.0" text-anchor="end">0.0%</text>
<text x="48" y="262.0" text-anchor="end">10.0%</text>
<text x="48" y="208.0" text-anchor="end">20.0%</text>
<text x="48" y="154.0" text-anchor="end">30.0%</text>
<text x="48" y="100.0" text-anchor="end">40.0%</text>
</g>
<text class="axis-title" x="56" y="88" text-anchor="start">Error rate on darker-skinned female faces (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<text x="186.0" y="330.0" text-anchor="middle">Microsoft</text>
<text x="446.0" y="330.0" text-anchor="middle">Face++</text>
<text x="706.0" y="330.0" text-anchor="middle">IBM</text>
</g>
<line class="ref" x1="56" x2="836" y1="307.7" y2="307.7" />
<text class="annot" x="60" y="302.7" text-anchor="start">lighter-skinned male faces: at most 0.8% error</text>
<g class="s1">
<path class="bar" d="M174.0,312.0 V203.7 Q174.0,199.7 178.0,199.7 H194.0 Q198.0,199.7 198.0,203.7 V312.0 Z" data-tip="&lt;b&gt;Darker-skinned female&lt;/b&gt;&lt;br&gt;Microsoft: 20.8%" />
<text class="label" x="186.0" y="193.7" text-anchor="middle">20.8%</text>
<path class="bar" d="M434.0,312.0 V129.7 Q434.0,125.7 438.0,125.7 H454.0 Q458.0,125.7 458.0,129.7 V312.0 Z" data-tip="&lt;b&gt;Darker-skinned female&lt;/b&gt;&lt;br&gt;Face++: 34.5%" />
<text class="label" x="446.0" y="119.7" text-anchor="middle">34.5%</text>
<path class="bar" d="M694.0,312.0 V128.6 Q694.0,124.6 698.0,124.6 H714.0 Q718.0,124.6 718.0,128.6 V312.0 Z" data-tip="&lt;b&gt;Darker-skinned female&lt;/b&gt;&lt;br&gt;IBM: 34.7%" />
<text class="label" x="706.0" y="118.6" text-anchor="middle">34.7%</text>
</g>
<text class="subtitle" x="0" y="374">Source: Buolamwini &amp; Gebru, FAT* 2018</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 4.</span> Gender-classification error on darker-skinned female faces for three commercial systems, against the worst error any of them made on lighter-skinned male faces. The per-vendor figures for the two intermediate subgroups are in the paper's Table 4 and are omitted here. Data from [10].</figcaption>
</figure>

<p>The study established two practices that are now routine. Evaluation must be <em>intersectional</em>, because an aggregate accuracy of 90% can hide a subgroup at 65%. And public audits move vendors: all three updated their systems within months, which is the ancestor of today’s external red-teaming. The datasheets-for-datasets and model-card proposals that followed in 2018–19 are the institutional version of the same idea, and disaggregated evaluation is now a standard section of a model release.</p>

<h2 id="fairness-in-language-models">Fairness in language models</h2>

<p>For classifiers the fairness question is about decisions. For language models it has gone through three generations, each measuring something the previous one missed.</p>

<p>The first generation measured <em>stereotypes</em>. BBQ [11] is a hand-built question-answering benchmark of 58,492 examples across nine social categories, each with an ambiguous context, where the correct answer is “unknown”, and a disambiguated one. Models’ accuracy on the ambiguous questions was at most 67.5%, and the wrong answers were not random: the fraction of ambiguous-context errors that aligned with the stereotype rose from 56% for RoBERTa-base to 76–77% for UnifiedQA, the most capable model tested. More capable models were more stereotyped, not less. Even with a disambiguating context, accuracy fell by up to 3.4 points when the truth contradicted the stereotype.</p>

<p>The second generation measured <em>decisions</em>. Anthropic’s Discrim-Eval [12] generated 70 high-stakes scenarios, from loan approval to visa decisions, and varied age, gender and race explicitly (9,450 prompts) or implicitly through names. Without intervention Claude 2.0 showed positive discrimination in favour of women, non-binary and non-white applicants and negative discrimination against people over 60. A single instruction in the prompt, stating that discrimination is illegal or that demographics should be ignored, reduced the discrimination score to about 0.15 while preserving 92% of the correlation with the original decisions. The paper is explicit that this is a measurement, not a licence to use the model for such decisions.</p>

<p>The third generation measured what the second might hide. Hofmann, Kalluri, Jurafsky and King [13] used matched-guise prompts, presenting the same content in African American English and Standard American English without naming any group, and found that models across five families assigned the AAE-guise speakers lower-prestige jobs, more convictions and more death sentences. The covert associations matched the adjectives of a 1933 stereotype survey more closely than modern ones, while the models’ overt statements about Black people were positive. Scale and alignment training reduced the overt bias and left the covert bias intact. The honest reading, which the authors give, is that current alignment teaches models to suppress the association in explicit statements rather than to lose it, and that is the strongest argument that Discrim-Eval’s prompt-level fixes are a floor, not a solution.</p>

<p>Two NeurIPS 2024 papers push fairness below the prediction layer. MAGNET [14] addresses tokenisation: byte-pair tokenisers over-segment non-Latin scripts, so speakers of those languages pay more per query and get worse utility, and MAGNET learns script-specific segmentation inside the model to equalise granularity. Group Robust Preference Optimization [15] does worst-group DPO over groups of annotators so that alignment does not improve the majority’s preferences at the expense of a minority’s; it is not to be confused with the reinforcement-learning algorithm that shares the acronym.</p>

<h2 id="what-the-law-asks-briefly">What the law asks, briefly</h2>

<p>The European Union’s AI Act, Regulation (EU) 2024/1689, treats credit scoring, employment, education, access to essential services and law-enforcement risk assessment as high-risk uses and requires providers to examine training data for bias and permits processing of protected attributes for that purpose. Its obligations phase in over several years, and the high-risk deadlines moved: the Digital Omnibus on AI, tabled in November 2025 and adopted in mid-2026, deferred the stand-alone high-risk obligations from August 2026 to 2 December 2027 and the product-embedded ones to August 2028, while leaving the prohibitions, the general-purpose model duties and the transparency rules on their original schedule (see the law-firm summaries from Gibson Dunn and Hogan Lovells [16, 17]. The operative dates should still be checked against the current text rather than this post. In the United States there is no federal equivalent; enforcement runs through existing anti-discrimination law and a patchwork of state and city rules, several of which have themselves had their effective dates moved. The durable point is independent of the calendar: regulators are asking for exactly the disaggregated, documented evaluation that Gender Shades and the model-card proposals introduced, and for a stated choice of which fairness criterion a system targets.</p>

<h2 id="choosing-and-saying-so">Choosing, and saying so</h2>

<p>The impossibility results are sometimes read as a counsel of despair. I read them the other way. They turn “is this model fair?” into three answerable questions: Is it calibrated across groups? Are its error rates equal across groups? Is its positive rate equal across groups? A system cannot answer yes to all three, so whoever deploys it has made a choice, and the theorems make that choice visible. The failure in the COMPAS case was not that Northpointe chose calibration; it was that the choice was never stated, costed or defended until a newspaper forced the issue.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>There are three families of fairness criterion, independence, separation and sufficiency, and when base rates differ you can satisfy at most one of calibration, equal false positive rates and equal false negative rates. Which one is a policy decision.</li>
<li>Every criterion has a cost that can be measured, from under 1% of profit for a race-blind threshold to 30% for demographic parity in the FICO data.</li>
<li>All statistical criteria are oblivious: they cannot distinguish an informative score from a biased one with the same error statistics. Audit the label and the benchmark, where Obermeyer and Gender Shades found the real problems.</li>
<li>For language models, prompt-level mitigations reduce measured discrimination but leave covert dialect bias intact. Measure both.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Larson, Mattu, Kirchner, Angwin. <em>How We Analyzed the COMPAS Recidivism Algorithm.</em> ProPublica, 2016. <a href="https://www.propublica.org/article/how-we-analyzed-the-compas-recidivism-algorithm">propublica.org</a></li>
<li>Chouldechova. <em>Fair prediction with disparate impact: A study of bias in recidivism prediction instruments.</em> Big Data 2017 (arXiv 2016). <a href="https://arxiv.org/abs/1610.07524">arXiv:1610.07524</a></li>
<li>Hardt, Price, Srebro. <em>Equality of Opportunity in Supervised Learning.</em> NeurIPS 2016. <a href="https://arxiv.org/abs/1610.02413">arXiv:1610.02413</a></li>
<li>Kleinberg, Mullainathan, Raghavan. <em>Inherent Trade-Offs in the Fair Determination of Risk Scores.</em> ITCS 2017 (arXiv 2016). <a href="https://drops.dagstuhl.de/opus/volltexte/2017/8156/">LIPIcs 67</a></li>
<li>Dieterich, Mendoza, Brennan (Northpointe). <em>COMPAS Risk Scales: Demonstrating Accuracy Equity and Predictive Parity.</em> Northpointe technical report, 2016. <a href="https://www.equivant.com/response-to-propublica-demonstrating-accuracy-equity-and-predictive-parity/">equivant.com</a></li>
<li>Flores, Bechtel, Lowenkamp. <em>False Positives, False Negatives, and False Analyses: A Rejoinder to "Machine Bias".</em> Federal Probation 80(2), 2016. <a href="https://www.uscourts.gov/sites/default/files/80_2_6_0.pdf">uscourts.gov</a></li>
<li>Dressel, Farid. <em>The accuracy, fairness, and limits of predicting recidivism.</em> Science Advances 2018. <a href="https://digitalcommons.dartmouth.edu/facoa/1342">Dartmouth Digital Commons</a></li>
<li>Corbett-Davies, Pierson, Feller, Goel, Huq. <em>Algorithmic decision making and the cost of fairness.</em> KDD 2017. <a href="https://arxiv.org/abs/1701.08230">arXiv:1701.08230</a></li>
<li>Obermeyer, Powers, Vogeli, Mullainathan. <em>Dissecting racial bias in an algorithm used to manage the health of populations.</em> Science 366(6464), 2019. <a href="https://pubmed.ncbi.nlm.nih.gov/31649194/">PubMed</a></li>
<li>Buolamwini, Gebru. <em>Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification.</em> FAT* 2018, PMLR 81. <a href="https://proceedings.mlr.press/v81/buolamwini18a.html">PMLR</a></li>
<li>Parrish, Chen, Nangia et al. <em>BBQ: A Hand-Built Bias Benchmark for Question Answering.</em> Findings of ACL 2022. <a href="https://aclanthology.org/2022.findings-acl.165.pdf">ACL Anthology</a></li>
<li>Tamkin, Askell, Lovitt et al. <em>Evaluating and Mitigating Discrimination in Language Model Decisions.</em> arXiv 2023. <a href="https://arxiv.org/abs/2312.03689">arXiv:2312.03689</a></li>
<li>Hofmann, Kalluri, Jurafsky, King. <em>AI generates covertly racist decisions about people based on their dialect.</em> Nature 2024. <a href="https://www.nature.com/articles/s41586-024-07856-5">nature.com</a></li>
<li>Ahia, Kumar, Gonen et al. <em>MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenization.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/5572bc595de865c1450868fd5391e9c5-Abstract.html">NeurIPS proceedings</a></li>
<li>Ramesh, Hu, Chaimalas et al. <em>Group Robust Preference Optimization in Reward-free RLHF.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/4147dfaa46cd7e20a2aecb91097ae8cc-Abstract.html">NeurIPS proceedings</a></li>
<li>Gibson Dunn. <em>EU AI Act Omnibus Agreement: Postponed High-Risk Deadlines and Other Key Changes.</em> Client alert, 2026. <a href="https://www.gibsondunn.com/eu-ai-act-omnibus-agreement-postponed-high-risk-deadlines-and-other-key-changes/">gibsondunn.com</a></li>
<li>Hogan Lovells. <em>EU legislators agree to delay for high-risk AI rules.</em> 2026. <a href="https://www.jdsupra.com/legalnews/eu-legislators-agree-to-delay-for-high-5617765/">jdsupra.com</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Ethics &amp; Fairness" /><category term="fairness" /><category term="ethics" /><category term="bias" /><category term="COMPAS" /><category term="calibration" /><summary type="html"><![CDATA[In May 2016 ProPublica published an analysis of COMPAS, a commercial tool that scores criminal defendants for risk of re-offending. Among Broward County defendants who were not re-arrested within two years, 44.85% of Black defendants had been labelled medium or high risk, against 23.45% of white defendants. Among those who were re-arrested, 47.72% of white defendants had been labelled low risk, against 27.99% of Black defendants [1]. The tool, ProPublica concluded, was biased against Black defendants.]]></summary></entry><entry><title type="html">Jailbreaking LLMs: Why Alignment Is an Attack Surface</title><link href="https://cymtrick.github.io/2026/01/04/jailbreaking-llms/" rel="alternate" type="text/html" title="Jailbreaking LLMs: Why Alignment Is an Attack Surface" /><published>2026-01-04T00:00:00+00:00</published><updated>2026-01-04T00:00:00+00:00</updated><id>https://cymtrick.github.io/2026/01/04/jailbreaking-llms</id><content type="html" xml:base="https://cymtrick.github.io/2026/01/04/jailbreaking-llms/"><![CDATA[<p>A jailbreak is an input that persuades a safety-trained language model to produce the output its training was supposed to prevent. Nothing is perturbed at the pixel level and no training data is corrupted; the attack surface is the model’s alignment itself, reached through ordinary natural language. The question that organises the field is why alignment should be breakable at all, given that the model was explicitly trained to refuse.</p>

<p>Wei, Haghtalab and Steinhardt gave the answer that everyone now cites [1]. Safety training fails for two distinct reasons. The first is <strong>competing objectives</strong>: the same model is trained to be helpful, to follow instructions, and to refuse harmful requests, and an attacker can construct a prompt in which the first two objectives outvote the third, for instance by asking the model to begin its answer with an affirmative phrase, or by forbidding the usual refusal language. The second is <strong>mismatched generalisation</strong>: pretraining gives the model capabilities, such as reading Base64 or low-resource languages, that safety fine-tuning never covered, so the refusal behaviour simply does not generalise to those inputs even though the capability does. Their prescription was “safety-capability parity”: safety mechanisms need to be as sophisticated as the model they protect, and scale alone will not close the gap. Four years of results since then are, in one way or another, confirmations.</p>

<h2 id="the-optimisation-era-gcg-and-the-readability-problem">The optimisation era: GCG and the readability problem</h2>

<p>In July 2023, Zou and colleagues turned jailbreaking into an optimisation problem [2]. Their <strong>Greedy Coordinate Gradient</strong> attack searches for a short suffix of tokens that, appended to any harmful request, maximises the probability that the model begins its answer affirmatively. It is a discrete search in the lineage of HotFlip and AutoPrompt rather than a one-step gradient method: the gradient proposes candidate token swaps, and each candidate is then evaluated exactly. On open models the results were decisive, with 99% attack success on Vicuna-7B and 56% on Llama-2-7B-Chat for individual behaviours, against 95% and 45% for the AutoPrompt baseline.</p>

<p>The result that made the paper famous was transfer. A suffix optimised on Vicuna and Guanaco, then sent to closed models with no gradient access, raised attack success on GPT-3.5 from 1.8% to 86.6%, on GPT-4 from 8.0% to 46.9%, and on PaLM-2 to 66.0%. The detail that is less often quoted is the asymmetry: the same suffixes reached 47.9% on Claude 1 and 2.1% on Claude 2 [2]. Different labs’ models have different vulnerabilities, and a universal attack on one family said little about another.</p>

<figure class="fig" id="fig-jailbreak-gcg-transfer">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="GCG suffixes transfer to some black-box models and barely to others">
<text class="title" x="0" y="18">GCG suffixes transfer to some black-box models and barely to others</text>
<text class="subtitle" x="0" y="38">Attack success rate on 388 harmful behaviours for a universal suffix optimised on Vicuna and Guanaco, then sent to closed models.</text>
<g class="legend s6"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">Harmful behaviour only (no suffix)</text></g>
<g class="legend s1"><rect class="swatch" x="278.6" y="55" width="12" height="12" rx="2" /><text x="296.6" y="66">With GCG suffix ensemble</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="288.8" y2="288.8" />
<line x1="56" x2="836" y1="245.6" y2="245.6" />
<line x1="56" x2="836" y1="202.4" y2="202.4" />
<line x1="56" x2="836" y1="159.2" y2="159.2" />
<line x1="56" x2="836" y1="116.0" y2="116.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0.0%</text>
<text x="48" y="292.8" text-anchor="end">20.0%</text>
<text x="48" y="249.6" text-anchor="end">40.0%</text>
<text x="48" y="206.4" text-anchor="end">60.0%</text>
<text x="48" y="163.2" text-anchor="end">80.0%</text>
<text x="48" y="120.0" text-anchor="end">100.0%</text>
</g>
<text class="axis-title" x="56" y="108" text-anchor="start">Attack success rate (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="134.0" y="350.0" text-anchor="middle">GPT-3.5</text>
<text x="290.0" y="350.0" text-anchor="middle">GPT-4</text>
<text x="446.0" y="350.0" text-anchor="middle">Claude 1</text>
<text x="602.0" y="350.0" text-anchor="middle">Claude 2</text>
<text x="758.0" y="350.0" text-anchor="middle">PaLM-2</text>
</g>
<g class="s6">
<path class="bar" d="M109.0,332.0 V330.1 Q109.0,328.1 110.9,328.1 H131.1 Q133.0,328.1 133.0,330.1 V332.0 Z" data-tip="&lt;b&gt;Harmful behaviour only (no suffix)&lt;/b&gt;&lt;br&gt;GPT-3.5: 1.8%" />
<path class="bar" d="M265.0,332.0 V318.7 Q265.0,314.7 269.0,314.7 H285.0 Q289.0,314.7 289.0,318.7 V332.0 Z" data-tip="&lt;b&gt;Harmful behaviour only (no suffix)&lt;/b&gt;&lt;br&gt;GPT-4: 8.0%" />
<path class="bar" d="M421.0,332.0 V332.0 Q421.0,332.0 421.0,332.0 H445.0 Q445.0,332.0 445.0,332.0 V332.0 Z" data-tip="&lt;b&gt;Harmful behaviour only (no suffix)&lt;/b&gt;&lt;br&gt;Claude 1: 0.0%" />
<path class="bar" d="M577.0,332.0 V332.0 Q577.0,332.0 577.0,332.0 H601.0 Q601.0,332.0 601.0,332.0 V332.0 Z" data-tip="&lt;b&gt;Harmful behaviour only (no suffix)&lt;/b&gt;&lt;br&gt;Claude 2: 0.0%" />
<path class="bar" d="M733.0,332.0 V332.0 Q733.0,332.0 733.0,332.0 H757.0 Q757.0,332.0 757.0,332.0 V332.0 Z" data-tip="&lt;b&gt;Harmful behaviour only (no suffix)&lt;/b&gt;&lt;br&gt;PaLM-2: 0.0%" />
</g>
<g class="s1">
<path class="bar" d="M135.0,332.0 V148.9 Q135.0,144.9 139.0,144.9 H155.0 Q159.0,144.9 159.0,148.9 V332.0 Z" data-tip="&lt;b&gt;With GCG suffix ensemble&lt;/b&gt;&lt;br&gt;GPT-3.5: 86.6%" />
<text class="label" x="147.0" y="138.9" text-anchor="middle">86.6%</text>
<path class="bar" d="M291.0,332.0 V234.7 Q291.0,230.7 295.0,230.7 H311.0 Q315.0,230.7 315.0,234.7 V332.0 Z" data-tip="&lt;b&gt;With GCG suffix ensemble&lt;/b&gt;&lt;br&gt;GPT-4: 46.9%" />
<text class="label" x="303.0" y="224.7" text-anchor="middle">46.9%</text>
<path class="bar" d="M447.0,332.0 V232.5 Q447.0,228.5 451.0,228.5 H467.0 Q471.0,228.5 471.0,232.5 V332.0 Z" data-tip="&lt;b&gt;With GCG suffix ensemble&lt;/b&gt;&lt;br&gt;Claude 1: 47.9%" />
<text class="label" x="459.0" y="222.5" text-anchor="middle">47.9%</text>
<path class="bar" d="M603.0,332.0 V329.7 Q603.0,327.5 605.3,327.5 H624.7 Q627.0,327.5 627.0,329.7 V332.0 Z" data-tip="&lt;b&gt;With GCG suffix ensemble&lt;/b&gt;&lt;br&gt;Claude 2: 2.1%" />
<text class="label" x="615.0" y="321.5" text-anchor="middle">2.1%</text>
<path class="bar" d="M759.0,332.0 V193.4 Q759.0,189.4 763.0,189.4 H779.0 Q783.0,189.4 783.0,193.4 V332.0 Z" data-tip="&lt;b&gt;With GCG suffix ensemble&lt;/b&gt;&lt;br&gt;PaLM-2: 66.0%" />
<text class="label" x="771.0" y="183.4" text-anchor="middle">66.0%</text>
</g>
<text class="subtitle" x="0" y="394">Source: Zou et al. 2023, Table 2 (ensemble of GCG suffixes)</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> Transfer of GCG suffixes to closed models. The attack moves GPT-3.5 from near zero to 86.6% and PaLM-2 to 66.0%, but barely touches Claude 2. Data from [2], Table 2.</figcaption>
</figure>

<p>GCG’s weakness is that its suffixes are gibberish, with perplexity in the thousands. Jain et al. [12] showed that a perplexity filter in front of the model catches them, and Liu et al. [3] showed how little that buys. Their <strong>AutoDAN</strong> uses a hierarchical genetic algorithm to evolve jailbreak prompts that stay fluent, with perplexity around 40 to 50. On Llama-2-7B-Chat, GCG’s success falls from 45.4% to 0.0% under a perplexity filter; AutoDAN’s stays at 60.8%. AutoDAN also transfers better to GPT-3.5 (65.8% versus 16.5% for GCG). This is the attack-defense loop in miniature, and it set a pattern: every defense that targets a signature of one attack is answered by an attack without that signature.</p>

<h2 id="black-box-attacks-the-api-as-a-search-problem">Black-box attacks: the API as a search problem</h2>

<p>The next move removed the need for gradients entirely. <strong>PAIR</strong> [4] uses an attacker language model that proposes a jailbreak, observes the target’s response, and refines the prompt, usually in fewer than twenty queries. On the JailbreakBench behaviours it reached 88% on Vicuna with ten queries on average, 51% on GPT-3.5, 48% on GPT-4 and 73% on Gemini, but 4% on Llama-2, 3% on Claude 1 and 0% on Claude 2. <strong>Tree of Attacks with Pruning</strong> [5] turned the refinement into a tree search, pruning off-topic branches before they are sent to the target, and reported 90% on GPT-4, 94% on GPT-4o and 60% on Claude 3 Opus, at a mean cost of 28.8, 16.2 and 116.2 queries respectively. The pattern from the GCG paper holds: the Claude models are consistently the hardest targets of their generation, and the “twenty queries” in PAIR’s title is a typical case, not a guarantee.</p>

<p><strong>RLbreaker</strong> [9] replaces the stochastic mutation of genetic methods with a trained PPO agent that learns which mutations unlock harmful responses, and the resulting policy transfers across target models. Like PAIR and TAP, it needs nothing but API access.</p>

<h2 id="jailbreaking-as-a-scaling-phenomenon">Jailbreaking as a scaling phenomenon</h2>

<p>The most important conceptual shift of 2024 was to treat jailbreak success as a quantity that scales with the attacker’s budget. Anil and colleagues [6] demonstrated <strong>many-shot jailbreaking</strong>: fill a long context window with hundreds of fabricated dialogues in which an assistant complies with harmful requests, then ask the real question. On Claude 2.0 about eight such demonstrations were enough to pass a 50% jailbreak rate on an insult task and 256 to pass 90%, and the effectiveness follows a power law in the number of shots across Claude 2.0, GPT-3.5, GPT-4, Llama-2-70B and Mistral-7B. Larger models have larger exponents. They learn the bad behaviour from context faster, an inverse-scaling result that follows directly from the competing-objectives account: in-context learning is a capability, and it generalises to places safety training did not reach.</p>

<p>Hughes et al. [7] showed the same law for sheer sampling. <strong>Best-of-N jailbreaking</strong> applies a random augmentation to the request, such as shuffling characters or changing capitalisation, samples the model, and repeats until any sample succeeds. On Claude 3.5 Sonnet the success rate is 0.6% for a single sample, 41% at N = 100, 68% at N = 500 and 78% at N = 10,000; GPT-4o reaches 89% at N = 10,000. The attack works on vision and audio inputs as well as text, and it composes multiplicatively with other methods: combined with many-shot prompts, the number of samples needed for 74% success on Claude 3.5 Sonnet fell from about 6,000 to 274. Running N = 100 against GPT-4o cost about nine dollars.</p>

<figure class="fig" id="fig-jailbreak-bon">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Best-of-N: attack success grows as a power law in the number of samples">
<text class="title" x="0" y="18">Best-of-N: attack success grows as a power law in the number of samples</text>
<text class="subtitle" x="0" y="38">Claude 3.5 Sonnet, text modality. Each sample is the same harmful request under a random augmentation; the attack succeeds if any</text>
<text class="subtitle" x="0" y="56">of N samples does.</text>
<g class="grid">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<line x1="56" x2="796" y1="270.0" y2="270.0" />
<line x1="56" x2="796" y1="212.0" y2="212.0" />
<line x1="56" x2="796" y1="154.0" y2="154.0" />
<line x1="56" x2="796" y1="96.0" y2="96.0" />
</g><g class="axis">
<text x="48" y="332.0" text-anchor="end">0.0%</text>
<text x="48" y="274.0" text-anchor="end">25.0%</text>
<text x="48" y="216.0" text-anchor="end">50.0%</text>
<text x="48" y="158.0" text-anchor="end">75.0%</text>
<text x="48" y="100.0" text-anchor="end">100.0%</text>
</g>
<text class="axis-title" x="56" y="88" text-anchor="start">Attack success rate (%)</text>
<g class="axis">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<text x="56.0" y="346.0" text-anchor="middle">1</text>
<text x="426.0" y="346.0" text-anchor="middle">100</text>
<text x="555.3" y="346.0" text-anchor="middle">500</text>
<text x="796.0" y="346.0" text-anchor="middle">10,000</text>
</g>
<text class="axis-title" x="796" y="364.0" text-anchor="end">Number of sampled augmentations N (log scale)</text>
<g class="s1">
<path class="line" d="M56.0,326.6 L426.0,232.9 L555.3,170.2 L796.0,147.0" />
<circle class="dot" cx="56.0" cy="326.6" r="4" data-tip="&lt;b&gt;Claude 3.5 Sonnet&lt;/b&gt;&lt;br&gt;1: 0.6%" />
<circle class="dot" cx="426.0" cy="232.9" r="4" data-tip="&lt;b&gt;Claude 3.5 Sonnet&lt;/b&gt;&lt;br&gt;100: 41.0%" />
<circle class="dot" cx="555.3" cy="170.2" r="4" data-tip="&lt;b&gt;Claude 3.5 Sonnet&lt;/b&gt;&lt;br&gt;500: 68.0%" />
<circle class="dot" cx="796.0" cy="147.0" r="4" data-tip="&lt;b&gt;Claude 3.5 Sonnet&lt;/b&gt;&lt;br&gt;10,000: 78.0%" />
</g>
<text class="label" x="804.0" y="151.0">78.0%</text>
<text class="subtitle" x="0" y="394">Source: Hughes et al. 2024, Best-of-N Jailbreaking</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> Best-of-N jailbreaking on Claude 3.5 Sonnet. The success rate as a function of the number of augmented samples is close to a power law, which means a patient attacker converts budget into success at a predictable rate. Data from [7].</figcaption>
</figure>

<p>The lesson of both papers is uncomfortable for anyone evaluating a defense with a fixed attack budget. A defense that halves the success rate at N = 100 has, under a power law, mostly shifted the curve rather than bent it.</p>

<p>For open-weight models the situation is worse still. Schwinn et al. [8] attack the continuous embedding of the prompt rather than its tokens. Because the search is no longer discrete, it converges in about nine iterations and reaches 100% success on every model they tested; a universal embedding attack reaches 91.6% on Llama-2-7B-Chat and 96 to 98% on models hardened with circuit breakers. The same technique recovers knowledge that machine-unlearning methods were supposed to have removed, which undercuts unlearning as a safety story for released weights.</p>

<h2 id="measuring-the-mess">Measuring the mess</h2>

<p>By 2024 the literature had dozens of attacks and defenses evaluated on incompatible behaviour sets with incompatible judges. <strong>HarmBench</strong> [10] standardised 510 behaviours and a classifier-based judge, and evaluated 18 attacks against 33 models. Its two headline findings: no model is robust to every attack and no attack breaks every model, and within a model family robustness tracks the training procedure far more than the parameter count. <strong>JailbreakBench</strong> [11] added a living leaderboard, a fixed set of 100 behaviours, and published the jailbreak artifacts themselves so that reported numbers could be reproduced. HarmBench also introduced <strong>R2D2</strong>, an adversarial training method that cuts GCG success on Zephyr-7B to 5.9%, placing the model third on the overall robustness ranking behind the two Llama-2 Chat models.</p>

<table>
  <thead>
    <tr>
      <th>Attack family</th>
      <th>Access</th>
      <th>Automated</th>
      <th>Readable prompt</th>
      <th>Typical cost</th>
      <th>Best reported success</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Hand-crafted (competing objectives, encodings) [1]</td>
      <td>black-box</td>
      <td>no</td>
      <td>yes</td>
      <td>human time</td>
      <td>varies by model</td>
    </tr>
    <tr>
      <td>GCG [2]</td>
      <td>white-box, transfers</td>
      <td>yes</td>
      <td>no (high perplexity)</td>
      <td>GPU hours</td>
      <td>99% Vicuna; 86.6% GPT-3.5 transfer</td>
    </tr>
    <tr>
      <td>AutoDAN [3]</td>
      <td>white-box, transfers</td>
      <td>yes</td>
      <td>yes</td>
      <td>GPU hours</td>
      <td>60.8% Llama-2 under perplexity filter</td>
    </tr>
    <tr>
      <td>PAIR / TAP [4, 5]</td>
      <td>black-box</td>
      <td>yes</td>
      <td>yes</td>
      <td>10–120 queries</td>
      <td>94% GPT-4o (TAP)</td>
    </tr>
    <tr>
      <td>Many-shot [6]</td>
      <td>black-box</td>
      <td>yes</td>
      <td>yes</td>
      <td>one long prompt</td>
      <td>&gt;90% at 256 shots</td>
    </tr>
    <tr>
      <td>Best-of-N [7]</td>
      <td>black-box</td>
      <td>yes</td>
      <td>partly</td>
      <td>N samples</td>
      <td>78–89% at N = 10,000</td>
    </tr>
    <tr>
      <td>Embedding space [8]</td>
      <td>open weights</td>
      <td>yes</td>
      <td>n/a</td>
      <td>~9 iterations</td>
      <td>100% individual</td>
    </tr>
    <tr>
      <td>RLbreaker [9]</td>
      <td>black-box</td>
      <td>yes</td>
      <td>yes</td>
      <td>RL training + queries</td>
      <td>transfers across targets</td>
    </tr>
    <tr>
      <td>Adaptive random search [20]</td>
      <td>black-box + logprobs or prefill</td>
      <td>semi</td>
      <td>yes</td>
      <td>per-model tuning</td>
      <td>100% on all tested models</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">A map of the attack families discussed in this post, as reported by the papers themselves. The numbers are not comparable across rows: judges, behaviour sets and target models differ.</p>

<h2 id="defenses-that-filter-or-randomise">Defenses that filter or randomise</h2>

<p>The simplest defenses sit outside the model. The perplexity filter of Jain et al. [12] stops GCG and nothing fluent. <strong>SmoothLLM</strong> [13] borrows randomised smoothing from the vision literature: perturb a fraction of the prompt’s characters, run the model on several perturbed copies, and return the majority answer. Against GCG it drives success on Vicuna from about 98% and on Llama-2 from 52% to below 1%, and it comes with a closed-form lower bound on the defense’s success probability under an assumption about how fragile the adversarial suffix is. The bound is a real certificate, but it covers a narrow threat model; against PAIR, SmoothLLM cuts success by roughly 60% on average, a perplexity filter by about 32%, and neither is a guarantee. Learned moderators such as Llama Guard sit in the same category: a second model classifying inputs or outputs, with the robustness of a second model.</p>

<h2 id="defenses-that-change-the-model">Defenses that change the model</h2>

<p>Training-time defenses attempt to remove the vulnerability rather than screen for it. Xhonneux et al. [14] note that adversarial training against discrete attacks is prohibitively expensive, since each GCG inner loop costs hours, and instead train against perturbations in the continuous embedding space, which are cheap to compute. The robustness extrapolates: models trained this way resist GCG, AutoDAN and PAIR while keeping their utility, across several model families at the 2B to 7B scale.</p>

<p><strong>Circuit breakers</strong> [15] take a representation-engineering route. Rather than training the model to refuse, they train it so that the internal representations associated with harmful generation are rerouted to an uninformative direction, interrupting the generation mid-stream. On the HarmBench average the attack success rate falls from 76.7% to 9.8% on Mistral-7B and from 38.1% to 3.8% on Llama-3-8B, with the input-embedding attack falling from 80.4% to 9.6%, and almost no utility cost (MT-Bench 8.05 to 8.00 on Llama-3). A refined variant, Cygnet, reports 0.8% average success. The same mechanism cut a forced-function-call attack on an agent from 82% to 14%. Robust Prompt Optimisation [16] is the prompt-level cousin: a universal defensive suffix found by a minimax optimisation, prepended to the system prompt and transferable across models.</p>

<p>Each of these has an adaptive failure already on record. Best-of-N reaches 52% on the circuit-breaker Llama-3-8B and 67% on Cygnet at N = 10,000 [7]. Embedding-space attacks reach 96 to 98% on circuit-breaker models [8]. A defensive suffix that is known to the attacker is just another constant in the optimisation.</p>

<h2 id="constitutional-classifiers-and-the-red-team-economy">Constitutional Classifiers and the red-team economy</h2>

<p>The most heavily stress-tested deployed defense is Anthropic’s <strong>Constitutional Classifiers</strong> [17]. Input and output classifiers are trained on synthetic data generated from a written constitution of permitted and forbidden content, then placed around the production model. On 10,000 synthetic jailbreak prompts against Claude 3.5 Sonnet, success fell from 86% unguarded to 4.4% guarded, the refusal rate on legitimate traffic rose by 0.38 percentage points, which was not statistically significant, and inference compute rose by 23.7%. The prototype was then opened to 183 red-teamers for more than 3,000 hours with a bounty on offer, and no universal jailbreak was found [18].</p>

<p>The coda matters as much as the headline. The public challenge that followed in February 2025 was eventually beaten: four participants cleared all eight levels and at least one universal jailbreak was found, and a joint exercise with the US and UK AI safety institutes later that year surfaced cipher, obfuscation and automated-refinement bypasses that led to an architecture redesign [18]. The next generation, reported in January 2026, withstood more than 1,700 red-team hours over 198,000 attempts with no universal jailbreak found, a refusal overhead of 0.05% and about 1% compute overhead [19]. Whether that holds is an empirical question with a bounty attached, which is the right way to treat it.</p>

<h2 id="the-adaptive-attack-reckoning">The adaptive-attack reckoning</h2>

<p>The vision-robustness literature learned in 2018 that defenses evaluated against fixed attacks overstate their robustness, and that an attack designed for the specific defense usually breaks it. Andriushchenko, Croce and Flammarion [20] delivered the same lesson for language models. Their recipe is deliberately simple: a hand-designed prompt template, then random search over a suffix to maximise the log-probability of an affirmative first token, with transfer or prefilling used where log-probabilities are unavailable. Adapting the attack to each model, they report 100% success, by a GPT-4 judge, on Vicuna-13B, Mistral-7B, Phi-3-Mini, Nemotron-4-340B, Llama-2-Chat at 7B, 13B and 70B, Llama-3-Instruct-8B, Gemma-7B, GPT-3.5, GPT-4o, the R2D2 adversarially trained model, and all Claude models of the time.</p>

<p>The result does not say the defenses above are useless. It says that a static evaluation, however large, is a measurement of the attacks the evaluators tried, and that no current defense provides meaningful guarantees against an attacker who adapts. SmoothLLM’s certificate and the erase-and-check style of certified safety for suffix attacks are the exceptions that prove the rule: they are real guarantees under assumptions narrow enough that an adaptive attacker simply steps outside them.</p>

<h2 id="jailbreaks-are-not-prompt-injections">Jailbreaks are not prompt injections</h2>

<p>A final distinction has become the most practically important one. A jailbreak is the <em>user</em> coercing the model into violating its own policy. A <strong>prompt injection</strong> is a <em>third party</em> smuggling instructions through content the model ingests, such as a web page, an email or a tool output, in order to hijack an agent acting on behalf of a benign user. As language models become browser and computer-use agents, injection is the dominant risk, and the attacker no longer needs the user’s cooperation. Anthropic reports that for browser agents an internal attacker modelled on Best-of-N succeeded 8.0% of the time against Claude Opus 4.5 with no safeguards and 1.4% with improved safeguards, and 13.8% to 1.9% for Sonnet 4.5, while stating plainly that the problem is not solved [21]. The AgentDojo benchmark discussed in the first post of this series puts the undefended number for 2024 models at 11 to 48% and finds that every defense costs utility.</p>

<div class="callout">
<div class="callout-title">What a careful evaluation looks like in 2026</div>
<p>Report attack success as a function of attacker budget, not at a single point. Include an attack adapted to the defense, following Andriushchenko et al. Use a standard behaviour set and judge (HarmBench or JailbreakBench) so that numbers are comparable. State the utility cost and the compute overhead alongside the robustness gain. And treat a public bounty with no winner as evidence, not proof.</p>
</div>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Jailbreaks exist because safety training competes with helpfulness and does not generalise to every capability the model has. Both failure modes are structural, not bugs in one model.</li>
<li>Attack success scales with budget: more shots, more samples, more queries. Evaluate defenses as curves, not points.</li>
<li>Circuit breakers, continuous adversarial training and constitutional classifiers each cut success by an order of magnitude in their own evaluations, and each has a documented adaptive bypass.</li>
<li>Per-model adaptive attacks reach 100% on every leading model tested. No current defense offers a meaningful guarantee against an adaptive attacker without unacceptable cost.</li>
<li>For agents, prompt injection by third parties, not user-driven jailbreaking, is the risk that matters most, and it is not solved.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Wei, Haghtalab, Steinhardt. <em>Jailbroken: How Does LLM Safety Training Fail?</em> NeurIPS 2023. <a href="https://arxiv.org/abs/2307.02483">arXiv:2307.02483</a></li>
<li>Zou, Wang, Carlini, Nasr, Kolter, Fredrikson. <em>Universal and Transferable Adversarial Attacks on Aligned Language Models.</em> arXiv 2023. <a href="https://arxiv.org/abs/2307.15043">arXiv:2307.15043</a></li>
<li>Liu, Xu, Chen, Xiao. <em>AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models.</em> ICLR 2024. <a href="https://arxiv.org/abs/2310.04451">arXiv:2310.04451</a></li>
<li>Chao, Robey, Dobriban, Hassani, Pappas, Wong. <em>Jailbreaking Black Box Large Language Models in Twenty Queries.</em> NeurIPS 2023 R0-FoMo Workshop. <a href="https://arxiv.org/abs/2310.08419">arXiv:2310.08419</a></li>
<li>Mehrotra, Zampetakis, Kassianik et al. <em>Tree of Attacks: Jailbreaking Black-Box LLMs Automatically.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/70702e8cbb4890b4a467b984ae59828a-Abstract.html">NeurIPS proceedings</a></li>
<li>Anil, Durmus, Panickssery et al. <em>Many-shot Jailbreaking.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/ea456e232efb72d261715e33ce25f208-Abstract.html">NeurIPS proceedings</a></li>
<li>Hughes, Price, Lynch et al. <em>Best-of-N Jailbreaking.</em> arXiv 2024. <a href="https://arxiv.org/abs/2412.03556">arXiv:2412.03556</a></li>
<li>Schwinn, Dobre, Xhonneux, Gidel, Günnemann. <em>Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space.</em> NeurIPS 2024. <a href="https://arxiv.org/abs/2402.09063">arXiv:2402.09063</a></li>
<li>Chen, Nie, Guo, Zhang. <em>When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Search.</em> NeurIPS 2024. <a href="https://arxiv.org/abs/2406.08705">arXiv:2406.08705</a></li>
<li>Mazeika, Phan, Yin et al. <em>HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal.</em> ICML 2024. <a href="https://proceedings.mlr.press/v235/mazeika24a.html">PMLR 235</a></li>
<li>Chao, Debenedetti, Robey et al. <em>JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models.</em> NeurIPS 2024 Datasets &amp; Benchmarks. <a href="https://arxiv.org/abs/2404.01318">arXiv:2404.01318</a></li>
<li>Jain, Schwarzschild, Wen et al. <em>Baseline Defenses for Adversarial Attacks Against Aligned Language Models.</em> arXiv 2023. <a href="https://arxiv.org/abs/2309.00614">arXiv:2309.00614</a></li>
<li>Robey, Wong, Hassani, Pappas. <em>SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks.</em> arXiv 2023. <a href="https://arxiv.org/abs/2310.03684">arXiv:2310.03684</a></li>
<li>Xhonneux, Sordoni, Günnemann, Gidel, Schwinn. <em>Efficient Adversarial Training in LLMs with Continuous Attacks.</em> NeurIPS 2024. <a href="https://arxiv.org/abs/2405.15589">arXiv:2405.15589</a></li>
<li>Zou, Phan, Wang et al. <em>Improving Alignment and Robustness with Circuit Breakers.</em> NeurIPS 2024. <a href="https://arxiv.org/abs/2406.04313">arXiv:2406.04313</a></li>
<li>Zhou, Wang, Robey et al. <em>Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks.</em> arXiv 2024. <a href="https://arxiv.org/abs/2401.17263">arXiv:2401.17263</a></li>
<li>Sharma, Tong, Korbak et al. <em>Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming.</em> arXiv 2025. <a href="https://arxiv.org/abs/2501.18837">arXiv:2501.18837</a></li>
<li>Anthropic. <em>Constitutional Classifiers.</em> Research blog, 2025. <a href="https://www.anthropic.com/research/constitutional-classifiers">anthropic.com</a></li>
<li>Anthropic. <em>Next-generation Constitutional Classifiers.</em> Research blog, January 2026. <a href="https://www.anthropic.com/research/next-generation-constitutional-classifiers">anthropic.com</a></li>
<li>Andriushchenko, Croce, Flammarion. <em>Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks.</em> ICLR 2025. <a href="https://arxiv.org/abs/2404.02151">arXiv:2404.02151</a></li>
<li>Anthropic. <em>Prompt injection defenses for browser-using agents.</em> Alignment blog, November 2025. <a href="https://www.anthropic.com/research/prompt-injection-defenses">anthropic.com</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="LLM Safety" /><category term="attacks" /><category term="LLMs" /><category term="jailbreak" /><category term="alignment" /><category term="defenses" /><summary type="html"><![CDATA[A jailbreak is an input that persuades a safety-trained language model to produce the output its training was supposed to prevent. Nothing is perturbed at the pixel level and no training data is corrupted; the attack surface is the model’s alignment itself, reached through ordinary natural language. The question that organises the field is why alignment should be breakable at all, given that the model was explicitly trained to refuse.]]></summary></entry><entry><title type="html">Certified Robustness: Proofs Instead of Benchmarks</title><link href="https://cymtrick.github.io/2025/12/18/certified-robustness/" rel="alternate" type="text/html" title="Certified Robustness: Proofs Instead of Benchmarks" /><published>2025-12-18T00:00:00+00:00</published><updated>2025-12-18T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/12/18/certified-robustness</id><content type="html" xml:base="https://cymtrick.github.io/2025/12/18/certified-robustness/"><![CDATA[<p>CTBench, a 2025 benchmark that re-trained every major certified-training method under one careful recipe, contains a row that explains the whole field [1]. A seven-layer CNN trained with PGD adversarial training reaches 78.7% clean accuracy on CIFAR-10 at ε = 8/255, comfortably above every certifiably trained model in the table. Run a complete verifier on it, with a budget of a thousand seconds per image, and none of the first ten test points can be certified. The model’s accuracy under a PGD attack is a benchmark number of the ordinary kind. Its <em>certified</em> robust accuracy is approximately zero.</p>

<p>Neither number is wrong. An empirical robust accuracy is an upper bound on the truth, because the attack you ran might not be the strongest one; the previous post in this series is a catalogue of defenses whose upper bounds collapsed when someone ran a better attack. A certificate is a lower bound: a proof that no perturbation within the stated radius can change the prediction, however it is constructed. The price of the lower bound is that it is far smaller, costs far more compute, and holds only for the threat model written on the certificate. This post is about how to get such a proof, and what it is worth.</p>

<h2 id="complete-verifiers-exact-answers-for-small-networks">Complete verifiers: exact answers for small networks</h2>

<p>The first tools came from formal methods, not machine learning. Reluplex [2], presented at CAV in 2017, extended the simplex algorithm with a lazy treatment of ReLU constraints so that an SMT solver could decide whether any input in a region produces a given output. The motivating system was ACAS Xu, a family of collision-avoidance networks for aircraft with a few hundred neurons. Tjeng, Xiao and Tedrake [3] reformulated the same question as a mixed-integer linear program, with one binary variable per unstable ReLU, and showed that tight pre-activation bounds make exact verification practical for MNIST and small CIFAR-10 networks. They also showed something uncomfortable: the dual bounds that earlier incomplete methods relied on were often very loose.</p>

<p>Modern complete verifiers are branch-and-bound procedures built on top of fast incomplete bounds. MN-BaB [4] uses multi-neuron relaxations to guide the branching; the α,β-CROWN family, a consistent top performer in the annual VNN-COMP competitions, combines bound propagation with cutting planes. “Complete” means the verifier will eventually return either a proof or a counterexample, given enough time. For the PGD-trained CNN above, a thousand seconds per image was not enough. For a certifiably trained model of the same size, the same verifier typically needs a fraction of a second, because training has made the network easy to verify. That difference is the whole idea of certified training.</p>

<h2 id="incomplete-verification-and-training-for-it">Incomplete verification and training for it</h2>

<p>An incomplete verifier gives a sound but possibly loose answer quickly: it may say “cannot certify” for an input that is in fact robust, but it never certifies a non-robust one. Wong and Kolter [5] bounded the worst-case loss by the dual of a linear program over the convex outer hull of the ReLU network’s reachable set, and, crucially, trained on that bound. The resulting networks had verified error of 46.11% at ε = 2/255 on CIFAR-10 and 78.22% at 8/255 [6, 8]. Small numbers, but the first non-trivial L∞ certificates on CIFAR-10 at all.</p>

<p>Interval bound propagation [6] replaced the linear program with interval arithmetic. Each layer maps a box of inputs to a box of outputs; the computation costs roughly two forward passes. On its own the bound is loose, but Gowal et al. found that with a long schedule ramping ε up from zero, networks learn to make their own intervals tight. IBP reached 67.96% verified error at 8/255 (73.52% without an auxiliary PGD loss) and produced the first non-vacuous certificate at ImageNet scale, on 64×64 images at ε = 1/255 [6]. CROWN [7] gave linear relaxations for general activations that are much tighter than intervals; CROWN-IBP [8] used IBP bounds on the forward pass and CROWN bounds on the backward pass to stabilise the early phase of training, landing at 66.94% verified error at 8/255 and 46.03% at 2/255, without the hundredfold slowdown of training on linear relaxations directly.</p>

<div class="math"><div class="math-label">Interval bound propagation for one linear layer (Gowal et al. 2018)</div>centre: μ' = Wμ + b     radius: ρ' = |W| ρ     output box: [μ' − ρ', μ' + ρ']</div>

<p>Here the field ran into what Jovanović and colleagues later named the paradox of certified training: tighter relaxations do not produce better certified models. The looser IBP bound is easier to optimise, and the optimisation landscape matters more than the tightness of the bound. CTBench measures the mechanism directly; certifiably trained networks have less fragmented loss surfaces and sparser activations than standard ones [1]. The methods that followed accepted the paradox and mixed IBP with something else rather than tightening it: SABR [9] propagates intervals through a small box around the adversarial example rather than the full ε-ball; TAPS [10] connects certified and adversarial training through the bound; Expressive Losses [11] takes convex combinations of the IBP and adversarial losses, which CTBench calls MTL-IBP.</p>

<h2 id="where-deterministic-certification-stands">Where deterministic certification stands</h2>

<p>The comparison that mattered most in this line came from a benchmark, not a method. CTBench [1] re-implemented IBP, CROWN-IBP, SABR, TAPS, STAPS and MTL-IBP with one architecture (a seven-layer CNN with batch norm), one schedule, one initialisation and one certification procedure, and found that most of the reported differences were tuning. At 8/255 on CIFAR-10, plain IBP certifies 35.28% and CROWN-IBP 32.59%; SABR, TAPS, STAPS and MTL-IBP all land between 35.1% and 35.4%. Five years of certified-training papers moved the frontier by about three points over IBP, and the published gaps between the newer methods were mostly artefacts.</p>

<figure class="fig" id="fig-certified-linf">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 430" width="860" height="430" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Deterministic L∞ certification on CIFAR-10 at ε = 8/255, 2018–2024">
<text class="title" x="0" y="18">Deterministic L∞ certification on CIFAR-10 at ε = 8/255, 2018–2024</text>
<text class="subtitle" x="0" y="38">Certified and clean accuracy of certifiably trained CIFAR-10 models. Bound propagation plateaus near 35%; a Lipschitz network with</text>
<text class="subtitle" x="0" y="56">generated data reaches 42%.</text>
<g class="legend s1"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">Certified accuracy</text></g>
<g class="legend s6"><rect class="swatch" x="168.2" y="73" width="12" height="12" rx="2" /><text x="186.2" y="84">Clean accuracy</text></g>
<g class="grid">
<line x1="56" x2="836" y1="347.0" y2="347.0" />
<line x1="56" x2="836" y1="293.8" y2="293.8" />
<line x1="56" x2="836" y1="240.5" y2="240.5" />
<line x1="56" x2="836" y1="187.2" y2="187.2" />
<line x1="56" x2="836" y1="134.0" y2="134.0" />
</g><g class="axis">
<text x="48" y="351.0" text-anchor="end">0.0%</text>
<text x="48" y="297.8" text-anchor="end">15.0%</text>
<text x="48" y="244.5" text-anchor="end">30.0%</text>
<text x="48" y="191.2" text-anchor="end">45.0%</text>
<text x="48" y="138.0" text-anchor="end">60.0%</text>
</g>
<text class="axis-title" x="56" y="126" text-anchor="start">Accuracy (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="347.0" y2="347.0" />
<text x="111.7" y="365.0" text-anchor="middle">Wong et al.</text>
<text x="111.7" y="379.0" text-anchor="middle">2018</text>
<text x="223.1" y="365.0" text-anchor="middle">IBP</text>
<text x="223.1" y="379.0" text-anchor="middle">2018</text>
<text x="334.6" y="365.0" text-anchor="middle">CROWN-IBP</text>
<text x="334.6" y="379.0" text-anchor="middle">2020</text>
<text x="446.0" y="365.0" text-anchor="middle">SABR</text>
<text x="446.0" y="379.0" text-anchor="middle">2023</text>
<text x="557.4" y="365.0" text-anchor="middle">TAPS</text>
<text x="557.4" y="379.0" text-anchor="middle">2023</text>
<text x="668.9" y="365.0" text-anchor="middle">MTL-IBP</text>
<text x="668.9" y="379.0" text-anchor="middle">2024</text>
<text x="780.3" y="365.0" text-anchor="middle">SortNet + 10M</text>
<text x="780.3" y="379.0" text-anchor="middle">generated, 2024</text>
</g>
<g class="s1">
<path class="bar" d="M86.7,347.0 V273.7 Q86.7,269.7 90.7,269.7 H106.7 Q110.7,269.7 110.7,273.7 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;Wong et al. 2018: 21.8%" />
<text class="label" x="98.7" y="263.7" text-anchor="middle">21.8%</text>
<path class="bar" d="M198.1,347.0 V237.3 Q198.1,233.3 202.1,233.3 H218.1 Q222.1,233.3 222.1,237.3 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;IBP 2018: 32.0%" />
<text class="label" x="210.1" y="227.3" text-anchor="middle">32.0%</text>
<path class="bar" d="M309.6,347.0 V233.6 Q309.6,229.6 313.6,229.6 H329.6 Q333.6,229.6 333.6,233.6 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;CROWN-IBP 2020: 33.1%" />
<text class="label" x="321.6" y="223.6" text-anchor="middle">33.1%</text>
<path class="bar" d="M421.0,347.0 V226.3 Q421.0,222.3 425.0,222.3 H441.0 Q445.0,222.3 445.0,226.3 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;SABR 2023: 35.1%" />
<text class="label" x="433.0" y="216.3" text-anchor="middle">35.1%</text>
<path class="bar" d="M532.4,347.0 V226.4 Q532.4,222.4 536.4,222.4 H552.4 Q556.4,222.4 556.4,226.4 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;TAPS 2023: 35.1%" />
<text class="label" x="544.4" y="216.4" text-anchor="middle">35.1%</text>
<path class="bar" d="M643.9,347.0 V225.2 Q643.9,221.2 647.9,221.2 H663.9 Q667.9,221.2 667.9,225.2 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;MTL-IBP 2024: 35.4%" />
<text class="label" x="655.9" y="215.2" text-anchor="middle">35.4%</text>
<path class="bar" d="M755.3,347.0 V202.7 Q755.3,198.7 759.3,198.7 H775.3 Q779.3,198.7 779.3,202.7 V347.0 Z" data-tip="&lt;b&gt;Certified accuracy&lt;/b&gt;&lt;br&gt;SortNet + 10M generated, 2024: 41.8%" />
<text class="label" x="767.3" y="192.7" text-anchor="middle">41.8%</text>
</g>
<g class="s6">
<path class="bar" d="M112.7,347.0 V249.2 Q112.7,245.2 116.7,245.2 H132.7 Q136.7,245.2 136.7,249.2 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;Wong et al. 2018: 28.7%" />
<text class="label" x="124.7" y="239.2" text-anchor="middle">28.7%</text>
<path class="bar" d="M224.1,347.0 V175.3 Q224.1,171.3 228.1,171.3 H244.1 Q248.1,171.3 248.1,175.3 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;IBP 2018: 49.5%" />
<text class="label" x="236.1" y="165.3" text-anchor="middle">49.5%</text>
<path class="bar" d="M335.6,347.0 V187.8 Q335.6,183.8 339.6,183.8 H355.6 Q359.6,183.8 359.6,187.8 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;CROWN-IBP 2020: 46.0%" />
<text class="label" x="347.6" y="177.8" text-anchor="middle">46.0%</text>
<path class="bar" d="M447.0,347.0 V165.1 Q447.0,161.1 451.0,161.1 H467.0 Q471.0,161.1 471.0,165.1 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;SABR 2023: 52.4%" />
<text class="label" x="459.0" y="155.1" text-anchor="middle">52.4%</text>
<path class="bar" d="M558.4,347.0 V174.4 Q558.4,170.4 562.4,170.4 H578.4 Q582.4,170.4 582.4,174.4 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;TAPS 2023: 49.8%" />
<text class="label" x="570.4" y="164.4" text-anchor="middle">49.8%</text>
<path class="bar" d="M669.9,347.0 V161.6 Q669.9,157.6 673.9,157.6 H689.9 Q693.9,157.6 693.9,161.6 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;MTL-IBP 2024: 53.4%" />
<text class="label" x="681.9" y="151.6" text-anchor="middle">53.4%</text>
<path class="bar" d="M781.3,347.0 V156.6 Q781.3,152.6 785.3,152.6 H801.3 Q805.3,152.6 805.3,156.6 V347.0 Z" data-tip="&lt;b&gt;Clean accuracy&lt;/b&gt;&lt;br&gt;SortNet + 10M generated, 2024: 54.8%" />
<text class="label" x="793.3" y="146.6" text-anchor="middle">54.8%</text>
</g>
<text class="subtitle" x="0" y="409">Source: Gowal et al. 2018; Zhang et al. 2020 (CROWN-IBP, Table 2); CTBench 2025, Table 1 (literature values); Altstidl et al.</text>
<text class="subtitle" x="0" y="424">2024, Table 1</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> Certified and clean accuracy of deterministic L∞ methods on CIFAR-10 at ε = 8/255. The first six bars are bound-propagation methods on small CNNs, which plateau near 35% certified and 50–54% clean. The last is a Lipschitz-constrained SortNet trained with 10 million diffusion-generated images, which currently holds the best deterministic number. Adversarially trained models of the same size reach 78.7% clean and effectively 0% certified. Data from [6, 8], [1, 12].</figcaption>
</figure>

<p>The one thing that did move the frontier was data, as it did for adversarial training. Altstidl et al. [12] trained certified models on images generated by a diffusion model, and the result splits cleanly by architecture. Bound-propagation training (MTL-IBP) gained nothing from generated data. Lipschitz-certified architectures, which certify by construction from a margin and a bound on the network’s Lipschitz constant, gained a lot: a SortNet went from 36.50% to 41.78% certified at 8/255 with 10 million generated images, and an LOT network from 64.39% to 69.05% under L2 at ε = 36/255. The gains saturate at around one million generated images regardless of model size, and the certified models show no robust overfitting at all, which is the opposite of what adversarial training does at scale. Generated-only training beat real-only training in every case they tested.</p>

<p>So the honest state of deterministic L∞ certification on CIFAR-10 at the standard budget is between 35% (bound propagation) and 42% (Lipschitz networks with generated data), at a clean accuracy of about 55%. Standard models score 95–98% clean on the same data. That is the cost of a proof, at least for now.</p>

<h2 id="randomized-smoothing">Randomized smoothing</h2>

<p>The second family gives up on the network’s internals and certifies a different classifier instead. Lecuyer et al. [13] noticed that a classifier whose prediction is averaged over Gaussian input noise is, in the language of differential privacy, a Gaussian mechanism, and derived a robustness certificate from the DP guarantee. Cohen, Rosenfeld and Kolter [14] found the tight version. Define the smoothed classifier g(x) as the class most likely to be returned by the base classifier f on x plus Gaussian noise:</p>

<div class="math"><div class="math-label">Randomized smoothing (Cohen, Rosenfeld &amp; Kolter 2019)</div>g(x) = argmax_c  Pr_{δ∼N(0,σ²I)} [ f(x + δ) = c ]     certified for all ‖x' − x‖₂ ≤ R,  R = (σ/2) · (Φ⁻¹(p_A) − Φ⁻¹(p_B))</div>

<p>where p_A and p_B are the probabilities of the top two classes under the noise and Φ⁻¹ is the inverse Gaussian CDF. The proof is a Neyman–Pearson argument, and the paper shows no larger L2 region can be certified from class probabilities alone. In practice p_A is a lower confidence bound estimated from samples, p_B is set to 1 − p_A, and the radius is σ·Φ⁻¹(p_A) with a small failure probability α; Cohen’s experiments use 100,000 samples and α = 0.001, which is why they call the result “approximate certified accuracy.” Each certification took about 15 seconds per CIFAR-10 image and 110 seconds per ImageNet image in 2019.</p>

<p>The decisive advantage is scale. Smoothing works with any base classifier, including a ResNet-50 on full ImageNet, which no bound-propagation method could touch. On CIFAR-10 the smoothed ResNet-110 beat Wong and Kolter’s convex-relaxation models at every radius, partly, Cohen et al. observed, because relaxation-based training over-regularises until many filters are identically zero [14].</p>

<figure class="fig" id="fig-certified-waterfall">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 420" width="860" height="420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="The smoothing trade-off: certified accuracy against radius for four noise levels">
<text class="title" x="0" y="18">The smoothing trade-off: certified accuracy against radius for four noise levels</text>
<text class="subtitle" x="0" y="38">CIFAR-10, ResNet-110 smoothed with Gaussian noise of standard deviation σ. Each curve stops dead at the largest radius its σ can</text>
<text class="subtitle" x="0" y="56">certify.</text>
<g class="legend s6"><line class="key" x1="0" y1="80" x2="16" y2="80" /><circle class="dot" cx="8" cy="80" r="3.5" /><text x="22" y="84">σ = 0.12</text></g>
<g class="legend s2"><line class="key" x1="99.2" y1="80" x2="115.2" y2="80" /><circle class="dot" cx="107.2" cy="80" r="3.5" /><text x="121.2" y="84">σ = 0.25</text></g>
<g class="legend s3"><line class="key" x1="198.4" y1="80" x2="214.4" y2="80" /><circle class="dot" cx="206.4" cy="80" r="3.5" /><text x="220.4" y="84">σ = 0.50</text></g>
<g class="legend s1"><line class="key" x1="297.6" y1="80" x2="313.6" y2="80" /><circle class="dot" cx="305.6" cy="80" r="3.5" /><text x="319.6" y="84">σ = 1.00</text></g>
<g class="grid">
<line x1="56" x2="770" y1="348.0" y2="348.0" />
<line x1="56" x2="770" y1="297.3" y2="297.3" />
<line x1="56" x2="770" y1="246.7" y2="246.7" />
<line x1="56" x2="770" y1="196.0" y2="196.0" />
<line x1="56" x2="770" y1="145.3" y2="145.3" />
</g><g class="axis">
<text x="48" y="352.0" text-anchor="end">0%</text>
<text x="48" y="301.3" text-anchor="end">20%</text>
<text x="48" y="250.7" text-anchor="end">40%</text>
<text x="48" y="200.0" text-anchor="end">60%</text>
<text x="48" y="149.3" text-anchor="end">80%</text>
</g>
<text class="axis-title" x="56" y="112" text-anchor="start">Certified accuracy (%)</text>
<g class="axis">
<line x1="56" x2="770" y1="348.0" y2="348.0" />
<text x="56.0" y="366.0" text-anchor="middle">0</text>
<text x="175.0" y="366.0" text-anchor="middle">0.25</text>
<text x="294.0" y="366.0" text-anchor="middle">0.5</text>
<text x="413.0" y="366.0" text-anchor="middle">0.75</text>
<text x="532.0" y="366.0" text-anchor="middle">1</text>
<text x="651.0" y="366.0" text-anchor="middle">1.25</text>
<text x="770.0" y="366.0" text-anchor="middle">1.5</text>
</g>
<text class="axis-title" x="770" y="384.0" text-anchor="end">Certified L2 radius r</text>
<g class="s6">
<path class="line" d="M56.0,137.7 L175.0,196.0 L294.0,348.0 L413.0,348.0 L532.0,348.0 L651.0,348.0 L770.0,348.0" />
<circle class="dot" cx="56.0" cy="137.7" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;0: 83%" />
<circle class="dot" cx="175.0" cy="196.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;0.25: 60%" />
<circle class="dot" cx="294.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;0.5: 0%" />
<circle class="dot" cx="413.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;0.75: 0%" />
<circle class="dot" cx="532.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;1: 0%" />
<circle class="dot" cx="651.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;1.25: 0%" />
<circle class="dot" cx="770.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.12&lt;/b&gt;&lt;br&gt;1.5: 0%" />
</g>
<g class="s2">
<path class="line" d="M56.0,152.9 L175.0,193.5 L294.0,241.6 L413.0,284.7 L532.0,348.0 L651.0,348.0 L770.0,348.0" />
<circle class="dot" cx="56.0" cy="152.9" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;0: 77%" />
<circle class="dot" cx="175.0" cy="193.5" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;0.25: 61%" />
<circle class="dot" cx="294.0" cy="241.6" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;0.5: 42%" />
<circle class="dot" cx="413.0" cy="284.7" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;0.75: 25%" />
<circle class="dot" cx="532.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;1: 0%" />
<circle class="dot" cx="651.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;1.25: 0%" />
<circle class="dot" cx="770.0" cy="348.0" r="4" data-tip="&lt;b&gt;σ = 0.25&lt;/b&gt;&lt;br&gt;1.5: 0%" />
</g>
<g class="s3">
<path class="line" d="M56.0,180.8 L175.0,208.7 L294.0,239.1 L413.0,266.9 L532.0,292.3 L651.0,312.5 L770.0,327.7" />
<circle class="dot" cx="56.0" cy="180.8" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;0: 66%" />
<circle class="dot" cx="175.0" cy="208.7" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;0.25: 55%" />
<circle class="dot" cx="294.0" cy="239.1" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;0.5: 43%" />
<circle class="dot" cx="413.0" cy="266.9" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;0.75: 32%" />
<circle class="dot" cx="532.0" cy="292.3" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;1: 22%" />
<circle class="dot" cx="651.0" cy="312.5" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;1.25: 14%" />
<circle class="dot" cx="770.0" cy="327.7" r="4" data-tip="&lt;b&gt;σ = 0.50&lt;/b&gt;&lt;br&gt;1.5: 8%" />
</g>
<g class="s1">
<path class="line" d="M56.0,228.9 L175.0,244.1 L294.0,261.9 L413.0,277.1 L532.0,292.3 L651.0,304.9 L770.0,312.5" />
<circle class="dot" cx="56.0" cy="228.9" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;0: 47%" />
<circle class="dot" cx="175.0" cy="244.1" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;0.25: 41%" />
<circle class="dot" cx="294.0" cy="261.9" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;0.5: 34%" />
<circle class="dot" cx="413.0" cy="277.1" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;0.75: 28%" />
<circle class="dot" cx="532.0" cy="292.3" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;1: 22%" />
<circle class="dot" cx="651.0" cy="304.9" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;1.25: 17%" />
<circle class="dot" cx="770.0" cy="312.5" r="4" data-tip="&lt;b&gt;σ = 1.00&lt;/b&gt;&lt;br&gt;1.5: 14%" />
</g>
<text class="label" x="778.0" y="316.5">14%</text>
<text class="label" x="778.0" y="331.7">8%</text>
<text class="annot" x="66.0" y="133.7" text-anchor="start">clean accuracy falls as σ grows</text>
<text class="subtitle" x="0" y="414">Source: Cohen, Rosenfeld &amp; Kolter, ICML 2019, Appendix Table 3 (n = 100,000 samples, α = 0.001)</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> Certified accuracy on CIFAR-10 as a function of the L2 radius for smoothed ResNet-110 classifiers trained with four noise levels. Small σ gives high accuracy at small radii and nothing beyond σ·Φ⁻¹(p_A); large σ certifies larger radii at a steep cost in accuracy even at r = 0. Data from [14], Appendix Table 3.</figcaption>
</figure>

<p>The cost is the σ trade-off visible in Figure 2, and it has a hidden component. Mohapatra et al. [15] showed that smoothing shrinks decision regions unevenly and produces severe class imbalance: at σ = 1.0 on CIFAR-10 the worst class is 20.8% accurate and the best 72.8%; at σ = 3.0 the worst class is at 1.2%. The mean certified radius over all samples peaks at σ = 0.5 and falls afterwards, because samples that are no longer classified correctly contribute a radius of zero.</p>

<h2 id="scaling-smoothing-with-better-base-classifiers">Scaling smoothing with better base classifiers</h2>

<p>Almost all progress in smoothing between 2019 and 2023 came from improving the base classifier rather than the certificate, which was already tight. Salman et al. [16] attacked the smoothed soft classifier directly and trained adversarially on it; SmoothAdv added seven points on ImageNet at r = 0.5 and twelve on CIFAR-10 at r = 0.25. MACER, Consistency, SmoothMix and the others tabulated in [17] are variations on the same theme.</p>

<p>Carlini et al. [17] then made the training step disappear. Denoised smoothing had earlier proposed placing a denoiser in front of a standard classifier so that the classifier never sees noise. Replace the denoiser with an off-the-shelf 552-million-parameter diffusion model, which is after all a very good Gaussian denoiser, and the classifier with a frozen BEiT-large at 88.6% top-1, and with no training whatsoever the pipeline certifies 71.1% of ImageNet images at r = 0.5. That was fourteen points above the best prior method and thirty-eight above the original denoised smoothing. The paper is candid about where the gain lives: it is concentrated at small radii. At r = 3.0 the frozen pipeline certifies 13.1% against 23.4% for the best trained method, and on CIFAR-10 at r = 1.0 it trails SmoothAdv (32.1% against 38.3%) unless fine-tuned. The lead figure shows the pattern. Compute is the other cost: 1.5 seconds per forward pass per image on an A100, times ten thousand samples per certification.</p>

<h2 id="where-smoothing-cannot-go">Where smoothing cannot go</h2>

<p>Randomized smoothing certifies L2 balls, and the natural question is whether the same trick works for L∞, the threat model most of the empirical literature uses. Kumar et al. [18] proved that it does not, for any smoothing distribution with independent coordinates. The largest certifiable Lp radius scales as d^{−(1/2 − 1/p)}, which for p = ∞ is 1/√d. On ImageNet, where d ≈ 150,000, that means an L∞ certificate of about σ/388. Gaussian noise is already optimal up to constants, so there is no better distribution to find. The ARS paper [20], which certifies L∞ by converting to L2, reports ImageNet certificates at r∞ between 0.001 and 0.005, roughly a quarter to one and a third grey levels, which is the ceiling made concrete.</p>

<p>A second limit concerns making σ depend on the input, which seemed an obvious way to avoid the waterfall in Figure 2: use small σ where the classifier is confident and large σ where it is not. Súkeník, Kuvshinov and Günnemann [19] showed that earlier input-dependent certificates were simply invalid, and that a valid variance function must have vanishing semi-elasticity in high dimension. The curse of dimensionality returns from a different direction.</p>

<p>ARS [20] takes the most interesting recent route through these constraints. It re-reads smoothing as an f-DP Gaussian mechanism and uses DP’s post-processing and adaptive-composition theorems to certify a two-step pipeline, a U-Net that masks irrelevant pixels followed by a smoothed classifier, with two Gaussian steps composing as μ = √(μ₁² + μ₂²). On benchmarks constructed to reward adaptivity the gains are large; on ImageNet the certified-accuracy gain is at most 1.6 points. The connection between certification and differential privacy that PixelDP opened in 2019 is, a decade on, still producing tools.</p>

<h2 id="what-a-certificate-buys-you">What a certificate buys you</h2>

<p>It is worth laying the two families side by side with a standard model, because the numbers are rarely put in one place.</p>

<table>
  <thead>
    <tr>
      <th>Model (CIFAR-10 unless stated)</th>
      <th>Clean accuracy</th>
      <th>Empirical robust accuracy</th>
      <th>Certified accuracy</th>
      <th>Threat model</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Standard ViT-B/16 base classifier [17]</td>
      <td>97.9%</td>
      <td>≈ 0%</td>
      <td>none</td>
      <td>—</td>
    </tr>
    <tr>
      <td>PGD adversarial training, CNN7 [1]</td>
      <td>78.7%</td>
      <td>measured by attack only</td>
      <td>≈ 0%</td>
      <td>L∞, 8/255</td>
    </tr>
    <tr>
      <td>MTL-IBP certified training, CNN7 [1]</td>
      <td>54.3%</td>
      <td>—</td>
      <td>35.4%</td>
      <td>L∞, 8/255</td>
    </tr>
    <tr>
      <td>SortNet + 10M generated images [12]</td>
      <td>54.75%</td>
      <td>—</td>
      <td>41.78%</td>
      <td>L∞, 8/255</td>
    </tr>
    <tr>
      <td>Diffusion denoised smoothing, ImageNet [17]</td>
      <td>82.8%</td>
      <td>—</td>
      <td>71.1%</td>
      <td>L2, r = 0.5</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">The empirical–certified gap in one table. The PGD model's robustness can only be measured by attack; its certified accuracy is what a complete verifier can prove with a thousand seconds per image. Clean accuracy for the smoothing row is the smoothed classifier's accuracy at r = 0.</p>

<p>Three caveats belong on every certificate. First, it holds only inside the stated threat model: an L2 certificate of radius 0.5 says nothing about a rotation, a patch, or a perturbation of L∞ size 8/255, which has L2 norm up to about 1.7 on CIFAR-10. Second, smoothing certificates are probabilistic, with a failure rate α and a sampling cost that scales with the confidence you want, whereas bound-propagation certificates are deterministic; VNN-COMP scores only the latter, and the two should not be compared as if they were the same object. Third, certification currently has nothing to say about the threat models that dominate 2026, semantic perturbations of images and adversarial prompts to language models, beyond narrow results such as erasing tokens and re-checking a safety filter. For those, the adaptive-attack discipline of the previous post is still the only tool, and the next post is about what it finds.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Empirical robustness is an upper bound and a certificate is a lower bound. The same adversarially trained model can score 50% under attack and 0% under a verifier.</li>
<li>Deterministic L∞ certification on CIFAR-10 at 8/255 sits at 35–42% certified and about 55% clean. Most reported progress between 2018 and 2024 was tuning; generated data helped only Lipschitz architectures.</li>
<li>Randomized smoothing is tight, scales to ImageNet, and now certifies 71% at L2 radius 0.5 with no training, but it cannot certify meaningful L∞ radii in high dimension and its accuracy collapses as σ grows.</li>
<li>A certificate is a statement about a threat model. Read the threat model before reading the number.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Mao, Balauca, Vechev. <em>CTBench: A Library and Benchmark for Certified Training.</em> ICML 2025. <a href="https://proceedings.mlr.press/v267/mao25a.html">PMLR 267</a></li>
<li>Katz, Barrett, Dill, Julian, Kochenderfer. <em>Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks.</em> CAV 2017. <a href="https://arxiv.org/abs/1702.01135">arXiv:1702.01135</a></li>
<li>Tjeng, Xiao, Tedrake. <em>Evaluating Robustness of Neural Networks with Mixed Integer Programming.</em> ICLR 2019. <a href="https://arxiv.org/abs/1711.07356">arXiv:1711.07356</a></li>
<li>Ferrari, Müller, Jovanović, Vechev. <em>Complete Verification via Multi-Neuron Relaxation Guided Branch-and-Bound.</em> ICLR 2022. <a href="https://arxiv.org/abs/2205.00263">arXiv:2205.00263</a></li>
<li>Wong, Kolter. <em>Provable Defenses against Adversarial Examples via the Convex Outer Adversarial Polytope.</em> ICML 2018. <a href="https://arxiv.org/abs/1711.00851">arXiv:1711.00851</a></li>
<li>Gowal, Dvijotham, Stanforth et al. <em>On the Effectiveness of Interval Bound Propagation for Training Verifiably Robust Models.</em> arXiv 2018. <a href="https://arxiv.org/abs/1810.12715">arXiv:1810.12715</a></li>
<li>Zhang, Weng, Chen, Hsieh, Daniel. <em>Efficient Neural Network Robustness Certification with General Activation Functions.</em> NeurIPS 2018. <a href="https://arxiv.org/abs/1811.00866">arXiv:1811.00866</a></li>
<li>Zhang, Chen, Xiao et al. <em>Towards Stable and Efficient Training of Verifiably Robust Neural Networks.</em> ICLR 2020. <a href="https://arxiv.org/abs/1906.06316">arXiv:1906.06316</a></li>
<li>Müller, Eckert, Fischer, Vechev. <em>Certified Training: Small Boxes are All You Need.</em> ICLR 2023. <a href="https://arxiv.org/abs/2210.04871">arXiv:2210.04871</a></li>
<li>Mao, Müller, Fischer, Vechev. <em>Connecting Certified and Adversarial Training.</em> NeurIPS 2023. <a href="https://arxiv.org/abs/2305.04574">arXiv:2305.04574</a></li>
<li>De Palma, Bunel, Dvijotham, Kumar, Stanforth, Lomuscio. <em>Expressive Losses for Verified Robustness via Convex Combinations.</em> ICLR 2024. <a href="https://arxiv.org/abs/2305.13991">arXiv:2305.13991</a></li>
<li>Altstidl, Dobre, Kosmala, Eskofier, Gidel, Schwinn. <em>On the Scalability of Certified Adversarial Robustness with Generated Data.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/b96ce7d38339874a8704e8895f743284-Abstract.html">NeurIPS proceedings</a></li>
<li>Lecuyer, Atlidakis, Geambasu, Hsu, Jana. <em>Certified Robustness to Adversarial Examples with Differential Privacy.</em> IEEE S&amp;P 2019. <a href="https://arxiv.org/abs/1802.03471">arXiv:1802.03471</a></li>
<li>Cohen, Rosenfeld, Kolter. <em>Certified Adversarial Robustness via Randomized Smoothing.</em> ICML 2019. <a href="https://arxiv.org/abs/1902.02918">arXiv:1902.02918</a></li>
<li>Mohapatra, Ko, Weng, Chen, Liu, Daniel. <em>Hidden Cost of Randomized Smoothing.</em> AISTATS 2021. <a href="https://arxiv.org/abs/2003.01249">arXiv:2003.01249</a></li>
<li>Salman, Li, Razenshteyn et al. <em>Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers.</em> NeurIPS 2019. <a href="https://arxiv.org/abs/1906.04584">arXiv:1906.04584</a></li>
<li>Carlini, Tramèr, Dvijotham, Rice, Sun, Kolter. <em>(Certified!!) Adversarial Robustness for Free!</em> ICLR 2023. <a href="https://arxiv.org/abs/2206.10550">arXiv:2206.10550</a></li>
<li>Kumar, Levine, Goldstein, Feizi. <em>Curse of Dimensionality on Randomized Smoothing for Certifiable Robustness.</em> ICML 2020. <a href="https://arxiv.org/abs/2002.03239">arXiv:2002.03239</a></li>
<li>Súkeník, Kuvshinov, Günnemann. <em>Intriguing Properties of Input-dependent Randomized Smoothing.</em> ICML 2022. <a href="https://arxiv.org/abs/2110.05365">arXiv:2110.05365</a></li>
<li>Lyu, Shaikh, Shpilevskiy, Shelhamer, Lécuyer. <em>Adaptive Randomized Smoothing: Certified Adversarial Robustness for Multi-Step Defences.</em> NeurIPS 2024. <a href="https://proceedings.neurips.cc/paper_files/paper/2024/hash/f1e7c90552850afcc2558d78950c519d-Abstract.html">NeurIPS proceedings</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Defenses" /><category term="defenses" /><category term="certification" /><category term="randomized-smoothing" /><category term="verification" /><summary type="html"><![CDATA[CTBench, a 2025 benchmark that re-trained every major certified-training method under one careful recipe, contains a row that explains the whole field [1]. A seven-layer CNN trained with PGD adversarial training reaches 78.7% clean accuracy on CIFAR-10 at ε = 8/255, comfortably above every certifiably trained model in the table. Run a complete verifier on it, with a budget of a thousand seconds per image, and none of the first ten test points can be certified. The model’s accuracy under a PGD attack is a benchmark number of the ordinary kind. Its certified robust accuracy is approximately zero.]]></summary></entry><entry><title type="html">PAC Privacy: Measuring Leakage Instead of Assuming the Worst Case</title><link href="https://cymtrick.github.io/2025/12/12/pac-privacy/" rel="alternate" type="text/html" title="PAC Privacy: Measuring Leakage Instead of Assuming the Worst Case" /><published>2025-12-12T00:00:00+00:00</published><updated>2025-12-12T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/12/12/pac-privacy</id><content type="html" xml:base="https://cymtrick.github.io/2025/12/12/pac-privacy/"><![CDATA[<p>Every differentially private mechanism begins with the same question: what is the most that one record could change the answer? That quantity, the sensitivity, decides the noise [2]. For a count it is one. For a mean of bounded vectors it is the diameter of the domain divided by n. For the gradient of a neural network it is whatever you clip it to, which is why DP-SGD clips [3]. The noise then has to be large enough to hide that worst case on every input the mechanism could ever receive, including inputs that no real dataset resembles.</p>

<p>In the paper that introduced PAC Privacy [4], Hanshen Xiao and Srinivas Devadas asked what happens if you measure instead. Take the mechanism as a black box, run it on many plausible datasets, watch how far its output moves, and add noise shaped to that movement. On a 3,072-dimensional CIFAR-10 mean estimate, the worst-case Gaussian mechanism needs noise of expected norm 17.7 to limit leakage to one nat of mutual information; the measured, anisotropic version needs 0.28 [4]. Same leakage bound, 63 times less noise.</p>

<p>That number is the reason the framework attracted attention. The rest of this post is about what the guarantee actually says, how it is computed, where it beats differential privacy, where it loses, and why some cryptographers remain unconvinced.</p>

<h2 id="a-definition-in-terms-of-what-the-attacker-achieves">A definition in terms of what the attacker achieves</h2>

<p>The DP definition is about distributions: on any two neighbouring datasets, the output distributions must be within a factor e^ε of each other. It says nothing about any particular attack; it says every attack is bounded. PAC Privacy starts at the other end, with a specific inference task and a specific data distribution.</p>

<div class="math"><div class="math-label">(δ, ρ, 𝒟)-PAC Privacy (Xiao &amp; Devadas 2023)</div>A mechanism ℳ is (δ, ρ, 𝒟)-PAC private if, for data X ~ 𝒟, no adversary who knows 𝒟 and ℳ can output X̃ with ρ(X̃, X) = 1 with probability at least 1 − δ.</div>

<p>Three things are new here. The data has a distribution 𝒟 rather than being an arbitrary fixed input. The adversary’s goal is a predicate ρ chosen by the data holder: recover the record to within some ℓ₂ error, identify whether a particular person is in the set, recover a sensitive attribute within a margin. And the adversary is <em>unbounded</em>. It knows the distribution, knows the mechanism, has unlimited computation; the guarantee is information-theoretic, not computational [4, 5]. PAC Privacy is sometimes described as assuming a bounded, query-limited adversary. That is not the model, and the difference matters: a bound that holds against the full-knowledge adversary holds against every weaker one.</p>

<p>Why “PAC”? Because the guarantee is probabilistic over 𝒟 and the mechanism’s randomness, approximate in the tolerance built into ρ, and, in practice, <em>measured by sampling</em> rather than derived by hand. The name is an explicit nod to learning theory, where the same three words describe what a learner can infer from finite data.</p>

<h2 id="the-one-theorem-that-matters">The one theorem that matters</h2>

<p>What makes the definition usable is that it reduces to a single quantity. Let δ_o be the adversary’s success probability before seeing any output (their prior, which for membership inference with a random half is 50%) and δ their success after. Theorem 1 of [4] bounds the gain:</p>

<div class="math"><div class="math-label">Posterior advantage is bounded by mutual information</div>Δ_KL(δ ‖ δ_o) ≤ MI(X; ℳ(X))          and, by Pinsker,          δ − δ_o ≤ √( MI(X; ℳ(X)) / 2 )</div>

<p>So the whole problem becomes: bound the mutual information between the data and what you release. Theorem 2 of the same paper sharpens this for individuals under i.i.d. sampling, bounding the leakage about a single record by MI(xᵢ; ℳ(X)), which for symmetric mechanisms can be far smaller than the global quantity. In the paper’s running example, a prior success of 1% rises to at most 36% under the global bound but at most 6% under the individual bound with n = 50 [4].</p>

<p>The lead figure turns this theorem into something you can read off. At β = 1 nat an adversary with a 50% prior can reach 100%; at β = 1/16 they are capped at 67.5%; at β = 1/128 at 56.2% [1]. For a rare attribute with a 1% prior the same budgets allow 35.7%, 6.2% and 2.5%. These are ceilings, not predictions. Sridhar et al. ran a thousand likelihood-ratio membership attacks [6] against privatised K-Means and SVMs on Iris and measured empirical advantages under 11% at budgets where the theorem permitted more; they call the bound “necessarily conservative” [1].</p>

<h2 id="black-box-privatisation-how-the-noise-is-computed">Black-box privatisation: how the noise is computed</h2>

<p>The practical algorithm is simple to state and is the part Xiao’s thesis calls “automated and provable privatisation for black-box processing” [7]. You need a way to sample from 𝒟, and nothing else about the algorithm ℱ.</p>

<figure class="fig" id="fig-pac-pipeline">
  <div class="fig-frame"><svg class="diagram" viewBox="0 0 860 300" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Black-box privatization: sample datasets from the data distribution, run the algorithm on each, estimate how much its output varies, calibrate Gaussian noise to that variation, release the noisy output.">
  <defs>
    <marker id="pah" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor" /></marker>
  </defs>
  <!-- top row: simulation -->
  <text x="0" y="18" style="font-weight:600">Measure: how much does the output move when the data changes?</text>
  <g transform="translate(0,34)">
    <rect class="box" x="0" y="0" width="150" height="70" rx="6" />
    <text x="75" y="28" text-anchor="middle">data distribution 𝒟</text>
    <text class="small muted" x="75" y="48" text-anchor="middle">or random halves of X</text>
    <line class="arrow" x1="150" y1="35" x2="196" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <text class="small muted" x="173" y="52" text-anchor="middle">sample</text>
    <rect class="box" x="200" y="0" width="150" height="70" rx="6" />
    <text x="275" y="24" text-anchor="middle">X⁽¹⁾, X⁽²⁾, …, X⁽ᵐ⁾</text>
    <text class="small muted" x="275" y="46" text-anchor="middle">m simulated datasets</text>
    <line class="arrow" x1="350" y1="35" x2="396" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <text class="small muted" x="373" y="52" text-anchor="middle">run ℱ</text>
    <rect class="box-ink" x="400" y="0" width="150" height="70" rx="6" />
    <text x="475" y="30" text-anchor="middle" class="on-ink">black-box ℱ</text>
    <text class="small on-ink" x="475" y="50" text-anchor="middle" style="opacity:.8">any algorithm, no proofs</text>
    <line class="arrow" x1="550" y1="35" x2="596" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <rect class="box" x="600" y="0" width="150" height="70" rx="6" />
    <text x="675" y="24" text-anchor="middle">ℱ(X⁽¹⁾), …, ℱ(X⁽ᵐ⁾)</text>
    <text class="small muted" x="675" y="46" text-anchor="middle">canonicalised outputs</text>
    <line class="arrow" x1="675" y1="70" x2="675" y2="116" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <text class="small muted" x="684" y="98">estimate</text>
  </g>
  <!-- bottom row: calibration and release -->
  <g transform="translate(0,154)">
    <rect class="box-accent" x="600" y="0" width="150" height="70" rx="6" />
    <text x="675" y="28" text-anchor="middle">covariance Σ̂</text>
    <text class="small muted" x="675" y="48" text-anchor="middle">or per-axis variances</text>
    <line class="arrow" x1="600" y1="35" x2="554" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <text class="small muted" x="577" y="52" text-anchor="middle">calibrate</text>
    <rect class="box-accent" x="400" y="0" width="150" height="70" rx="6" />
    <text x="475" y="24" text-anchor="middle">Gaussian noise B</text>
    <text class="small mono" x="475" y="48" text-anchor="middle">MI ≤ ½ log det(·) ≤ β</text>
    <line class="arrow" x1="400" y1="35" x2="354" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <rect class="box" x="200" y="0" width="150" height="70" rx="6" />
    <text x="275" y="28" text-anchor="middle">release ℱ(X) + B</text>
    <text class="small muted" x="275" y="48" text-anchor="middle">on the real data, once</text>
    <line class="arrow" x1="200" y1="35" x2="154" y2="35" marker-end="url(#pah)" style="color:var(--ink-2)" />
    <rect class="box" x="0" y="0" width="150" height="70" rx="6" />
    <text x="75" y="24" text-anchor="middle">guarantee</text>
    <text class="small mono" x="75" y="48" text-anchor="middle">MI(X; output) ≤ β</text>
  </g>
  <text class="small muted" x="0" y="268">Noise is shaped to the output's measured spread: large where ℱ already varies, small where it is stable.</text>
  <text class="small muted" x="0" y="286">Posterior advantage of any adversary, however powerful, is then at most √(β/2).</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> Black-box privatisation. Simulated datasets drawn from the data distribution are pushed through the algorithm, the spread of its outputs is estimated, and Gaussian noise is calibrated to that spread so the mutual information stays under the budget β. The algorithm itself needs no analysis. Redrawn from Algorithm 1 of [4] and the four-step template in [1].</figcaption>
</figure>

<p>Algorithm 1 of [4] estimates the empirical covariance Σ̂ = UΛUᵀ of the m outputs, checks that the eigenvalue spectrum has usable gaps, and chooses anisotropic Gaussian noise with eigenvalues λ_B,j ∝ 1/√λ̂_j, so that ½ log det(I + Σ Σ_B⁻¹) ≤ β with confidence 1 − γ. The resulting noise has E‖B‖² = (Σ √λᵢ)², which scales with the <em>actual</em> spread of the output rather than with its dimension or worst-case sensitivity. When the output barely moves in most directions, as a well-regularised model’s parameters do, the noise is O(1) where DP’s is Θ(√d). When there is no eigengap, the algorithm falls back to isotropic noise calibrated from pairwise distances (Algorithm 2), which is dimension-free in its sample complexity but pessimistic: 3.94 instead of 0.28 on the CIFAR-10 example [4].</p>

<figure class="fig" id="fig-pac-noise">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 380" width="860" height="380" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Noise needed for the same leakage bound: measured versus worst case">
<text class="title" x="0" y="18">Noise needed for the same leakage bound: measured versus worst case</text>
<text class="subtitle" x="0" y="38">Expected noise magnitude E‖B‖ to release the mean of a random half of CIFAR-10 (d = 3,072) with at most 1 nat of mutual</text>
<text class="subtitle" x="0" y="56">information per individual.</text>
<g class="grid">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<line x1="56" x2="836" y1="261.5" y2="261.5" />
<line x1="56" x2="836" y1="211.0" y2="211.0" />
<line x1="56" x2="836" y1="160.5" y2="160.5" />
<line x1="56" x2="836" y1="110.0" y2="110.0" />
</g><g class="axis">
<text x="48" y="316.0" text-anchor="end">0.00</text>
<text x="48" y="265.5" text-anchor="end">5.00</text>
<text x="48" y="215.0" text-anchor="end">10.00</text>
<text x="48" y="164.5" text-anchor="end">15.00</text>
<text x="48" y="114.0" text-anchor="end">20.00</text>
</g>
<text class="axis-title" x="56" y="102" text-anchor="start">Expected noise norm E‖B‖</text>
<g class="axis">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<text x="186.0" y="330.0" text-anchor="middle">PAC Privacy, anisotropic</text>
<text x="186.0" y="344.0" text-anchor="middle">(Algorithm 1, covariance)</text>
<text x="446.0" y="330.0" text-anchor="middle">PAC Privacy, isotropic</text>
<text x="446.0" y="344.0" text-anchor="middle">(Algorithm 2, distances)</text>
<text x="706.0" y="330.0" text-anchor="middle">Worst-case sensitivity</text>
<text x="706.0" y="344.0" text-anchor="middle">(zCDP, Gaussian mechanism)</text>
</g>
<g class="s1">
<path class="bar" d="M174.0,312.0 V310.6 Q174.0,309.2 175.4,309.2 H196.6 Q198.0,309.2 198.0,310.6 V312.0 Z" data-tip="&lt;b&gt;E‖B‖&lt;/b&gt;&lt;br&gt;PAC Privacy, anisotropic (Algorithm 1, covariance): 0.28" />
<text class="label" x="186.0" y="303.2" text-anchor="middle">0.28</text>
<path class="bar" d="M434.0,312.0 V276.2 Q434.0,272.2 438.0,272.2 H454.0 Q458.0,272.2 458.0,276.2 V312.0 Z" data-tip="&lt;b&gt;E‖B‖&lt;/b&gt;&lt;br&gt;PAC Privacy, isotropic (Algorithm 2, distances): 3.94" />
<text class="label" x="446.0" y="266.2" text-anchor="middle">3.94</text>
<path class="bar" d="M694.0,312.0 V137.2 Q694.0,133.2 698.0,133.2 H714.0 Q718.0,133.2 718.0,137.2 V312.0 Z" data-tip="&lt;b&gt;E‖B‖&lt;/b&gt;&lt;br&gt;Worst-case sensitivity (zCDP, Gaussian mechanism): 17.70" />
<text class="label" x="706.0" y="127.2" text-anchor="middle">17.70</text>
</g>
<text class="annot" x="706.0" y="111.2" text-anchor="middle">63× the anisotropic PAC noise</text>
<text class="subtitle" x="0" y="374">Source: Xiao &amp; Devadas, CRYPTO 2023, Section 6, Example 3</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> The headline comparison. Releasing the mean of a random half of CIFAR-10, with one nat of mutual information allowed, needs 63 times less noise when calibrated to the measured covariance than when calibrated to worst-case ℓ∞ sensitivity under zero-concentrated DP. The isotropic PAC variant sits in between. Data from [4], Section 6.</figcaption>
</figure>

<p>Covariance estimation in d dimensions costs O((d + log(1/γ))/c²) simulations, which for a model with millions of parameters is the main obstacle. The 2025 follow-up, <em>PAC-Private Algorithms</em> [1], replaces the full covariance with per-coordinate variances and proves that noise scaled as eᵢ ∝ √σᵢ / Σⱼ √σⱼ still achieves MI ≤ β. The estimator converges in about an order of magnitude fewer trials [8], and the paper’s experiments use m = 1,024 subsets, arranged as 512 disjoint pairs so that every individual’s membership prior is exactly one half [1].</p>

<p>Two details of the pipeline are easy to miss. First, outputs must be <em>canonicalised</em> before their spread is measured: cluster centroids are sorted, PCA bases are Procrustes-aligned, because an algorithm that returns the same answer in a permuted order has not leaked anything, yet looks wildly variable to a covariance estimate [1]. Second, the distribution 𝒟 is usually manufactured by subsampling the real dataset with probability one half. That changes what is being protected, from “this fixed dataset” to “membership in a random half of it”, and it is the hinge on which the whole DP-versus-PAC argument turns.</p>

<h2 id="stability-is-privacy">Stability is privacy</h2>

<p>The most useful idea in the 2025 paper is the converse of the pipeline: if noise is calibrated to output variation, then anything that reduces output variation is a privacy amplifier. Regularisation does. An SVM with C = 10⁻⁶ on the Dry Bean dataset reaches 74% accuracy at a budget of 2⁻³ nats, where an SVM with C = 1 needs a budget of 4 to reach 68% [1]. Oversampling with SMOTE does: K-Means on Dry Bean goes from 73% to 85% unprivatised, and holds about 80% at 2⁻³ [1]. Convergence speed does: the strongly regularised SVM’s variance estimate converges roughly a hundred times faster than the unregularised one [1].</p>

<p>This is the mirror image of the classical link between algorithmic stability and generalisation, and the thesis makes the connection explicit [7]. It also suggests a design discipline that the S&amp;P 2026 paper, <em>Privacy-Conscious Algorithm Design</em> [9], follows to its conclusion: choose the algorithm’s hyperparameters jointly with the privacy budget rather than adding noise afterwards. For ridge regression at β = 2⁻¹⁰ on the Red Wine dataset, post-hoc privatisation gives a mean squared error of 32.28, co-design gives 0.66, and the non-private model gives 0.39 [9]. The forty-fold gap is the cost of treating privacy as an afterthought.</p>

<h2 id="where-pac-privacy-loses">Where PAC Privacy loses</h2>

<p>The same experiments report the cases that go the other way, and a post that only quoted the 63× number would be misleading. On mean estimation with a matched budget (β = 1/16, which the authors pair with ε = 0.73), the ℓ₂ errors were:</p>

<table>
  <thead>
    <tr>
      <th>Dataset (n)</th>
      <th>DP</th>
      <th>PAC, individual bound</th>
      <th>PAC, global bound</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Iris (100)</td>
      <td>0.021</td>
      <td>0.030</td>
      <td>0.066</td>
    </tr>
    <tr>
      <td>Rice (3,810)</td>
      <td>1.2 × 10⁻³</td>
      <td>7.9 × 10⁻⁵</td>
      <td>3.0 × 10⁻⁴</td>
    </tr>
    <tr>
      <td>Dry Bean (13,611)</td>
      <td>5.4 × 10⁻⁴</td>
      <td>3.6 × 10⁻⁵</td>
      <td>1.7 × 10⁻⁴</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">Mean-estimation error after privatisation at a matched budget. PAC Privacy is about ten times better on the two larger datasets and worse on the hundred-point one. Data from [1], Table 2.</p>

<p>The pattern is the theory working as designed. PAC Privacy draws its guarantee from the entropy of the data; with a hundred points there is little entropy to exploit, and a worst-case bound is as good as a measured one. Three other failure modes are documented by the authors themselves. Unstable high-dimensional outputs stay hard: on CIFAR-10 PCA the reconstruction error at β = 2⁻⁷ reaches 300% once the number of components is three, and the required noise rises about a hundred-fold going from three components to four [1]. Isotropic fallback noise can inflate error by 2.5× [1]. And the simulation budget is a real cost: every one of those m = 1,024 trials is a full run of the algorithm being privatised, so “no need to retrain” is not an accurate description of the method, as an earlier version of this post claimed. You retrain a thousand times before you release once.</p>

<p>There is also a limitation the authors state plainly and that no experiment can remove. The guarantee is relative to 𝒟. If the real data are not distributed as the simulation assumed, or if the adversary holds side information outside 𝒟’s model, the mutual-information bound is about the wrong random variable [4, 5]. Differential privacy’s worst-case quantifier is exactly what makes it immune to that objection.</p>

<h2 id="composition-and-the-2026-frontier">Composition and the 2026 frontier</h2>

<p>The original paper proved composition only in the simple, non-adaptive setting, and showed that analysing a joint release directly beats composing two separate bounds (4.57 versus 7.32 units of noise for two queries on a 100-patient hospital dataset) [4]. For adaptive adversaries, who choose the next query after seeing the last answer, Xiao’s 2024 extension accumulated leakage quadratically or fell back to DP-style noise. In January 2026 Zhu, Sridhar and Devadas showed how to recalibrate the noise to the adversary’s <em>current</em> posterior and proved linear accumulation of mutual information under adaptive queries, the first PAC analogue of DP’s adaptive composition [10]. Their query-response system answers a million CIFAR-10 queries at 87.79% accuracy with per-step budget 2⁻³² and a membership-inference ceiling of 51.08%; a student distilled from 210,000 of those responses reaches 91.86% [10].</p>

<p>The result most likely to matter for practitioners is PACZero [11], which fine-tunes OPT-1.3B and OPT-6.7B with zeroth-order updates quantised to a single sign bit per step, chosen by majority vote across 128 data subsets. When the subsets agree unanimously, the step reveals nothing about any of them, and the authors report that 34–45% of steps on SST-2 are unanimous. At <em>zero</em> mutual information OPT-1.3B reaches 88.99% on SST-2 against 91.1% for the non-private MeZO baseline; the DP zeroth-order baseline DPZero collapses to chance for every ε below 1 [11].</p>

<figure class="fig" id="fig-pac-llm">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Zero-leakage fine-tuning of a language model: PACZero versus DP baselines">
<text class="title" x="0" y="18">Zero-leakage fine-tuning of a language model: PACZero versus DP baselines</text>
<text class="subtitle" x="0" y="38">SST-2 accuracy of OPT-1.3B fine-tuned with sign-quantised zeroth-order updates (PACZero) against DP zeroth-order methods and a</text>
<text class="subtitle" x="0" y="56">non-private run.</text>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="276.5" y2="276.5" />
<line x1="56" x2="836" y1="221.0" y2="221.0" />
<line x1="56" x2="836" y1="165.5" y2="165.5" />
<line x1="56" x2="836" y1="110.0" y2="110.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0.0%</text>
<text x="48" y="280.5" text-anchor="end">25.0%</text>
<text x="48" y="225.0" text-anchor="end">50.0%</text>
<text x="48" y="169.5" text-anchor="end">75.0%</text>
<text x="48" y="114.0" text-anchor="end">100.0%</text>
</g>
<text class="axis-title" x="56" y="102" text-anchor="start">SST-2 accuracy (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="134.0" y="350.0" text-anchor="middle">PACZero,</text>
<text x="134.0" y="364.0" text-anchor="middle">zero mutual information</text>
<text x="290.0" y="350.0" text-anchor="middle">PACZero,</text>
<text x="290.0" y="364.0" text-anchor="middle">β = 0.33 (≈ ε 2)</text>
<text x="446.0" y="350.0" text-anchor="middle">DPZero,</text>
<text x="446.0" y="364.0" text-anchor="middle">ε = 2</text>
<text x="602.0" y="350.0" text-anchor="middle">DP-AggZO,</text>
<text x="602.0" y="364.0" text-anchor="middle">ε = 0.5</text>
<text x="758.0" y="350.0" text-anchor="middle">MeZO,</text>
<text x="758.0" y="364.0" text-anchor="middle">non-private</text>
</g>
<line class="ref" x1="56" x2="836" y1="221.0" y2="221.0" />
<text class="annot" x="60" y="216.0" text-anchor="start">chance</text>
<g class="s1">
<path class="bar" d="M122.0,332.0 V138.4 Q122.0,134.4 126.0,134.4 H142.0 Q146.0,134.4 146.0,138.4 V332.0 Z" data-tip="&lt;b&gt;Accuracy&lt;/b&gt;&lt;br&gt;PACZero, zero mutual information: 89.0%" />
<text class="label" x="134.0" y="128.4" text-anchor="middle">89.0%</text>
<path class="bar" d="M278.0,332.0 V137.3 Q278.0,133.3 282.0,133.3 H298.0 Q302.0,133.3 302.0,137.3 V332.0 Z" data-tip="&lt;b&gt;Accuracy&lt;/b&gt;&lt;br&gt;PACZero, β = 0.33 (≈ ε 2): 89.5%" />
<text class="label" x="290.0" y="127.3" text-anchor="middle">89.5%</text>
<path class="bar" d="M434.0,332.0 V143.7 Q434.0,139.7 438.0,139.7 H454.0 Q458.0,139.7 458.0,143.7 V332.0 Z" data-tip="&lt;b&gt;Accuracy&lt;/b&gt;&lt;br&gt;DPZero, ε = 2: 86.6%" />
<text class="label" x="446.0" y="133.7" text-anchor="middle">86.6%</text>
<path class="bar" d="M590.0,332.0 V189.6 Q590.0,185.6 594.0,185.6 H610.0 Q614.0,185.6 614.0,189.6 V332.0 Z" data-tip="&lt;b&gt;Accuracy&lt;/b&gt;&lt;br&gt;DP-AggZO, ε = 0.5: 65.9%" />
<text class="label" x="602.0" y="179.6" text-anchor="middle">65.9%</text>
<path class="bar" d="M746.0,332.0 V133.8 Q746.0,129.8 750.0,129.8 H766.0 Q770.0,129.8 770.0,133.8 V332.0 Z" data-tip="&lt;b&gt;Accuracy&lt;/b&gt;&lt;br&gt;MeZO, non-private: 91.1%" />
<text class="label" x="758.0" y="123.8" text-anchor="middle">91.1%</text>
</g>
<text class="subtitle" x="0" y="394">Source: Ertan, Zhu, Nguyen, van Dijk &amp; Devadas, PACZero (NeurIPS 2026), SST-2 results for OPT-1.3B</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> Fine-tuning a 1.3B-parameter language model on SST-2. PACZero's sign-quantised updates leak nothing at all in the unanimous case and lose about two points to the non-private baseline; the DP zeroth-order baselines pay far more at comparable nominal budgets. The authors are explicit that the ε labels are reference points for comparison, not transferred guarantees. Data from [11].</figcaption>
</figure>

<p>Other threads in the same programme: a CCS 2024 paper uses PAC mutual-information bounds to give the first formal privacy proofs for heuristic data encodings of the NeuraCrypt type, alongside an impossibility result for their computational security [12]; a CCS 2025 paper extends the machinery to one-sided bounded noise for side-channel and anonymous-messaging settings [13]; and third parties have begun to adopt it, with PAC-private diffusion models [14] and a PAC-enabled database system at Wisconsin [8].</p>

<h2 id="where-it-sits-among-the-relaxations-of-dp">Where it sits among the relaxations of DP</h2>

<table>
  <tbody>
    <tr>
      <td>PAC Privacy did not appear from nowhere. Cuff and Yu showed in 2016 that mutual-information DP, which bounds I(Xᵢ; Y</td>
      <td>X₋ᵢ) ≤ ε over <em>all</em> distributions, sits strictly between pure and approximate DP [15]. Rényi DP relaxes the divergence [16]. PAC Privacy takes two further steps: it drops the supremum over distributions, fixing a 𝒟 instead, and it bounds an explicit inference-success probability rather than a divergence. In Xiao’s own account, DP belongs to the tradition of <em>input-independent indistinguishability</em> descending from Goldwasser and Micali’s 1982 definition of semantic security, and he argues that such indistinguishability “can only loosely imply” PAC Privacy, while admitting that worst-case sensitivity is NP-hard to compute for general pipelines and that the decompose-then-compose analysis of DP-SGD is loose [5]. He does not claim PAC is always tighter.</td>
    </tr>
  </tbody>
</table>

<p>The nearest empirical relative is privacy auditing, the practice of estimating what an attacker actually achieves against a DP-trained model with canaries and membership tests [17]. Auditing measures a lower bound on leakage for one attack; PAC Privacy computes an upper bound for all attacks, under a distributional assumption. They are complementary, and the LiRA experiments in [1] are precisely an audit of a PAC guarantee.</p>

<h2 id="when-to-reach-for-which">When to reach for which</h2>

<p>The honest position is that neither framework dominates the other, and the people who built PAC Privacy say so [5, 11].</p>

<p>Reach for differential privacy when the adversary’s side information is unknowable, when the data distribution cannot be sampled or trusted, when the release must compose with other releases you do not control, and when a guarantee needs to survive scrutiny from someone who does not believe your simulator. Its ε is a worst case over everything, which is why it is accepted in a census and why it is so expensive.</p>

<p>Reach for PAC Privacy when the algorithm is a black box nobody will analyse, when the data have real entropy (thousands of records, not a hundred), when the output is stable or can be made stable through regularisation, and when the question you care about is a concrete one, such as “can anyone tell whether this patient was in the training set?”, rather than an abstract distance between distributions. It gives a number that means something to a non-specialist, at a noise level that leaves the model useful.</p>

<p>And in either case, check the guarantee against an attack. The one thing both communities now agree on is that a privacy parameter nobody has tried to break is a claim, not a result.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>PAC Privacy (Xiao &amp; Devadas, CRYPTO 2023) defines privacy as the failure of an inference task over a data distribution, and bounds the adversary's gain by the mutual information between data and output. The adversary is unbounded; the guarantee is information-theoretic.</li>
<li>The noise is calibrated by simulation to how much the output actually moves, not to worst-case sensitivity. That is where the 63× comes from, and it is also why stable, regularised algorithms get privacy almost for free.</li>
<li>It loses on tiny datasets and unstable high-dimensional outputs, it costs a thousand simulated runs, and its guarantee is only as good as the assumed distribution.</li>
<li>Adaptive composition (2026) and zero-leakage LLM fine-tuning (PACZero) have moved it from a definition to a toolkit; whether regulators will accept a distribution-dependent guarantee is still open.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Sridhar, Xiao, Devadas. <em>PAC-Private Algorithms.</em> IEEE S&amp;P 2025. <a href="https://eprint.iacr.org/2024/718">ePrint 2024/718</a></li>
<li>Dwork, McSherry, Nissim, Smith. <em>Calibrating Noise to Sensitivity in Private Data Analysis.</em> TCC 2006. <a href="https://link.springer.com/chapter/10.1007/11681878_14">Springer</a></li>
<li>Abadi, Chu, Goodfellow et al. <em>Deep Learning with Differential Privacy.</em> ACM CCS 2016. <a href="https://arxiv.org/abs/1607.00133">arXiv:1607.00133</a></li>
<li>Xiao, Devadas. <em>PAC Privacy: Automatic Privacy Measurement and Control of Data Processing.</em> CRYPTO 2023. <a href="https://arxiv.org/abs/2210.03458">arXiv:2210.03458</a></li>
<li>Xiao, Devadas. <em>PAC Privacy and Black-Box Privatization.</em> IEEE Security &amp; Privacy, July/August 2025. <a href="https://people.csail.mit.edu/devadas/pubs/PAC_Privacy_and_Black-Box_Privatization.pdf">PDF</a></li>
<li>Shokri, Stronati, Song, Shmatikov. <em>Membership Inference Attacks Against Machine Learning Models.</em> IEEE S&amp;P 2017. <a href="https://arxiv.org/abs/1610.05820">arXiv:1610.05820</a></li>
<li>Xiao. <em>Automated and Provable Privatization for Black-Box Processing.</em> PhD thesis, MIT, 2024. <a href="https://dspace.mit.edu/handle/1721.1/159202">DSpace@MIT</a></li>
<li>Zewe. <em>New method efficiently safeguards sensitive AI training data.</em> MIT News, 11 April 2025. <a href="https://news.mit.edu/2025/new-method-efficiently-safeguards-sensitive-ai-training-data-0411">news.mit.edu</a></li>
<li>Sridhar, Zhu, Devadas. <em>Privacy-Conscious Algorithm Design via PAC Privacy.</em> IEEE S&amp;P 2026. <a href="https://people.csail.mit.edu/devadas/pubs/designing_for_privacy.pdf">PDF</a></li>
<li>Zhu, Sridhar, Devadas. <em>PAC-Private Responses with Adversarial Composition.</em> arXiv 2026. <a href="https://arxiv.org/abs/2601.14033">arXiv:2601.14033</a></li>
<li>Ertan, Zhu, Nguyen, van Dijk, Devadas. <em>PACZero: PAC-Private Fine-Tuning of Language Models via Sign Quantization.</em> NeurIPS 2026. <a href="https://arxiv.org/abs/2605.06505">arXiv:2605.06505</a></li>
<li>Xiao, Suh, Devadas. <em>Formal Privacy Proof of Data Encoding: The Possibility and Impossibility of Learnable Obfuscation.</em> ACM CCS 2024. <a href="https://people.csail.mit.edu/devadas/pubs/Learnable_Obfuscation.pdf">PDF</a></li>
<li>Xiao, Wan, Shi, Devadas. <em>One-Sided Bounded Noise: Theory, Optimization Algorithms and Applications.</em> ACM CCS 2025. <a href="https://people.csail.mit.edu/devadas/pubs/one_sided_noise.pdf">PDF</a></li>
<li>Xu, Ding, Zhang, Gao, Wang. <em>PAC Privacy Preserving Diffusion Models.</em> arXiv 2023. <a href="https://arxiv.org/abs/2312.01201">arXiv:2312.01201</a></li>
<li>Cuff, Yu. <em>Differential Privacy as a Mutual Information Constraint.</em> ACM CCS 2016. <a href="https://arxiv.org/abs/1608.03677">arXiv:1608.03677</a></li>
<li>Mironov. <em>Rényi Differential Privacy.</em> IEEE CSF 2017. <a href="https://arxiv.org/abs/1702.07476">arXiv:1702.07476</a></li>
<li>Steinke, Nasr, Jagielski. <em>Privacy Auditing with One (1) Training Run.</em> NeurIPS 2023. <a href="https://proceedings.neurips.cc/paper_files/paper/2023/hash/9a6f6e0d6781d1cb8689192408946d73-Abstract.html">NeurIPS proceedings</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Privacy" /><category term="privacy" /><category term="PAC-privacy" /><category term="differential-privacy" /><category term="mutual-information" /><summary type="html"><![CDATA[Every differentially private mechanism begins with the same question: what is the most that one record could change the answer? That quantity, the sensitivity, decides the noise [2]. For a count it is one. For a mean of bounded vectors it is the diameter of the domain divided by n. For the gradient of a neural network it is whatever you clip it to, which is why DP-SGD clips [3]. The noise then has to be large enough to hide that worst case on every input the mechanism could ever receive, including inputs that no real dataset resembles.]]></summary></entry><entry><title type="html">Differential Privacy: What a Formal Guarantee Actually Looks Like</title><link href="https://cymtrick.github.io/2025/12/04/differential-privacy/" rel="alternate" type="text/html" title="Differential Privacy: What a Formal Guarantee Actually Looks Like" /><published>2025-12-04T00:00:00+00:00</published><updated>2025-12-04T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/12/04/differential-privacy</id><content type="html" xml:base="https://cymtrick.github.io/2025/12/04/differential-privacy/"><![CDATA[<p>In 2006 Netflix published 100 million movie ratings from about 480,000 subscribers, with names removed, as a public machine learning competition. Two years later Narayanan and Shmatikov showed that eight ratings, two of which could be wrong, with dates known to within two weeks, uniquely identified 99% of the subscribers in the dataset, and that the public reviews people had posted on IMDb were enough to supply those eight ratings [1]. The sequel competition was cancelled after a class action and an FTC inquiry. Nobody had done anything that looked careless by the standards of the time. The standard was wrong.</p>

<p>The previous post in this series was about what a trained model leaks. This one is about the only definition of “does not leak” that has survived twenty years of attacks, what it costs to achieve, and what the numbers people actually deploy do and do not mean.</p>

<h2 id="why-we-anonymised-it-fails">Why “we anonymised it” fails</h2>

<p>The intuitive approach to privacy is to remove identifiers and release the rest. The formal version of that intuition is <strong>k-anonymity</strong> (Sweeney, 2002): generalise the quasi-identifying attributes until every record is indistinguishable from at least k − 1 others [2]. It has two problems that patches did not fix. If everyone in an equivalence class shares the same sensitive value, indistinguishability protects nothing; <strong>ℓ-diversity</strong> (Machanavajjhala et al., 2006) requires the sensitive values to vary [23]. If the distribution of sensitive values within a class is skewed relative to the population, the class still leaks; <strong>t-closeness</strong> (Li, Li and Venkatasubramanian, 2007) bounds that skew [24]. Each patch addresses the previous attack and none addresses the next one, because none of them is defined in terms of what an attacker with arbitrary side information can learn. The Netflix attack used side information nobody had modelled.</p>

<p>Differential privacy is the response to this. It does not define privacy as a property of the released data. It defines it as a property of the <em>algorithm</em> that produced the data, quantified over every possible dataset and every possible attacker.</p>

<h2 id="the-definition-and-what-ε-means">The definition, and what ε means</h2>

<p>A randomised mechanism M is (ε, δ)-differentially private if, for every pair of datasets D and D′ that differ in one record, and every set S of possible outputs,</p>

<div class="math"><div class="math-label">(ε, δ)-differential privacy (Dwork, McSherry, Nissim, Smith 2006; Dwork &amp; Roth 2014)</div>Pr[M(D) ∈ S]  ≤  e^ε · Pr[M(D′) ∈ S] + δ</div>

<p>The definition comes from Dwork, McSherry, Nissim and Smith’s 2006 paper [3], whose title, <em>Calibrating Noise to Sensitivity</em>, is also the method; Dwork and Roth’s monograph is the standard reference for everything that follows [4]. Three things about the definition are worth stating precisely, because each is commonly misstated.</p>

<p>First, the guarantee is symmetric in “you are in the dataset” and “you are not.” Whatever an adversary sees, their posterior odds about your presence move by at most a factor of e^ε relative to their prior, up to the slack δ. This holds no matter what else they know.</p>

<p>Second, ε is not a vague knob. The hypothesis-testing reading, made rigorous by Dong, Roth and Su’s f-DP framework [6], is that any test an adversary runs to decide whether you were in the data has a receiver operating characteristic bounded by TPR ≤ e^ε · FPR + δ. At ε = 1, an attacker who accepts a 0.1% false-positive rate can achieve at most a 0.27% true-positive rate. At ε = 8 the bound is e⁸ × 0.001 ≈ 3, which is vacuous: the definition no longer constrains a low-false-positive attacker at all. Ponomareva et al.’s practitioner guide draws its tiers from this reading: ε ≤ 1 is strong, ε ≤ 10 is the usual compromise in deep learning, and ε &gt; 10 still bounds memorisation but is weak as a guarantee [7].</p>

<figure class="fig" id="fig-dp-hypothesis">
  <div class="fig-frame"><svg class="diagram" viewBox="0 0 860 330" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Left: output distributions of a mechanism on two neighbouring datasets overlap. Right: the ROC curve of any test distinguishing them is confined below the line TPR = e^ε·FPR + δ.">
  <defs>
    <marker id="dph" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor" /></marker>
  </defs>
  <!-- Left: two overlapping Gaussians -->
  <text x="0" y="18" style="font-weight:600">What the adversary sees</text>
  <g transform="translate(0,40)">
    <line class="arrow" x1="0" y1="200" x2="400" y2="200" marker-end="url(#dph)" style="color:var(--ink-2)" />
    <text class="small muted" x="400" y="222" text-anchor="end">mechanism output M(·)</text>
    <!-- N(0,1) with you absent -->
    <path d="M20,200 C 90,200 120,60 160,60 C 200,60 230,200 300,200" fill="var(--s2)" opacity="0.15" />
    <path d="M20,200 C 90,200 120,60 160,60 C 200,60 230,200 300,200" stroke="var(--s2)" stroke-width="2" fill="none" />
    <!-- N(mu,1) with you present -->
    <path d="M100,200 C 170,200 200,60 240,60 C 280,60 310,200 380,200" fill="var(--s1)" opacity="0.15" />
    <path d="M100,200 C 170,200 200,60 240,60 C 280,60 310,200 380,200" stroke="var(--s1)" stroke-width="2" fill="none" />
    <line x1="160" y1="60" x2="160" y2="200" stroke="var(--s2)" stroke-width="1" stroke-dasharray="3 3" />
    <line x1="240" y1="60" x2="240" y2="200" stroke="var(--s1)" stroke-width="1" stroke-dasharray="3 3" />
    <text class="small" x="120" y="48" text-anchor="middle" style="fill:var(--ink-2)">M(D), you absent</text>
    <text class="small" x="282" y="48" text-anchor="middle" style="fill:var(--ink-2)">M(D′), you present</text>
    <line x1="160" y1="120" x2="240" y2="120" stroke="var(--ink)" stroke-width="1.2" marker-end="url(#dph)" style="color:var(--ink)" />
    <text class="mono small" x="200" y="112" text-anchor="middle">μ</text>
    <text class="small muted" x="0" y="248">Gaussian mechanism: the two cases differ by a shift μ = Δ₂f / σ.</text>
    <text class="small muted" x="0" y="266">The adversary must decide which curve a single draw came from.</text>
  </g>
  <!-- Right: ROC / trade-off -->
  <text x="460" y="18" style="font-weight:600">The best test any adversary can run</text>
  <g transform="translate(470,40)">
    <rect class="box" x="0" y="0" width="200" height="200" rx="2" />
    <!-- DP constraint region: TPR <= e^eps FPR + delta, drawn for eps ~ 1 -->
    <path d="M0,190 L70,0 L0,0 Z" fill="var(--accent-wash)" />
    <path d="M10,200 L200,130 L200,200 Z" fill="var(--accent-wash)" />
    <path d="M0,190 L70,0" stroke="var(--accent)" stroke-width="1.5" fill="none" />
    <!-- symmetric constraint -->
    <path d="M10,200 L200,130" stroke="var(--accent)" stroke-width="1.5" fill="none" />
    <!-- chance diagonal -->
    <line x1="0" y1="200" x2="200" y2="0" stroke="var(--rule-strong)" stroke-width="1" stroke-dasharray="4 3" />
    <!-- GDP curve for mu ~ 1 -->
    <path d="M0,200 C 10,120 60,60 200,0" stroke="var(--s2)" stroke-width="2" fill="none" />
    <text class="small muted" x="0" y="222">0</text>
    <text class="small muted" x="200" y="222" text-anchor="end">FPR  1</text>
    <text class="small muted" x="-6" y="8" text-anchor="end">1</text>
    <text class="small muted" x="-6" y="200" text-anchor="end">TPR 0</text>
    <text class="small" x="208" y="20" style="fill:var(--ink)">shaded: forbidden by (ε, δ)-DP</text>
    <text class="mono small" x="208" y="38" style="fill:var(--accent)">TPR ≤ e^ε · FPR + δ</text>
    <text class="small" x="208" y="70" style="fill:var(--ink)">Gaussian mechanism,</text>
    <text class="small" x="208" y="86" style="fill:var(--ink)">actual trade-off (μ-GDP)</text>
    <line x1="150" y1="60" x2="204" y2="76" stroke="var(--s2)" stroke-width="1" />
    <text class="small muted" x="208" y="118">chance (TPR = FPR)</text>
    <text class="small muted" x="0" y="248">Any membership test lives under the red line. At ε = 1 an</text>
    <text class="small muted" x="0" y="266">attacker held to 0.1% false positives gets at most 0.27% true positives.</text>
  </g>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> The hypothesis-testing view of ε. Left: on two neighbouring datasets a Gaussian mechanism produces two shifted distributions, and the adversary must decide which one a draw came from. Right: the ROC curve of the best possible test is confined to the unshaded band between TPR = e^ε·FPR + δ and its mirror image; the blue curve is the actual trade-off for the Gaussian mechanism, which f-DP characterises exactly. Redrawn from the framing in [4] and [6].</figcaption>
</figure>

<p>Third, δ is not a free parameter. With δ = 1/n, a mechanism that publishes one random record in the clear satisfies the definition, which is why δ ≪ 1/n is the requirement [7]. Deployed values are 10⁻⁵ for CIFAR-10 [8], 8·10⁻⁷ for ImageNet [11], 10⁻¹⁰ for the 2020 Census [18] and 1.1·10⁻¹⁰ for VaultGemma [15].</p>

<h2 id="mechanisms-sensitivity-is-the-whole-idea">Mechanisms: sensitivity is the whole idea</h2>

<p>The 2006 paper’s construction is still the one everyone learns. Define the sensitivity Δf of a function f as the most its output can change when one record changes. Then adding Laplace noise with scale Δf/ε to f(D) is ε-DP [3]. The Gaussian mechanism, which is what gradient-based training uses because gradients have natural ℓ₂ bounds, adds noise with standard deviation σ ≥ √(2 ln(1.25/δ)) · Δ₂f/ε and achieves (ε, δ)-DP [4]. Pure ε-DP with Gaussian noise is impossible; δ is the price of using it.</p>

<p>The oldest DP mechanism predates the definition by forty years. Warner’s randomised response (1965) asks survey respondents to flip a coin and answer truthfully on heads, randomly on tails [5]. With a fair coin the ratio of probabilities of any answer under the two true states is at most 3, so the mechanism is ln 3 ≈ 1.1-DP, and the aggregate is still an unbiased estimate of the population rate after a simple correction. Every local-DP deployment discussed below is an elaboration of this trick.</p>

<h2 id="composition-and-why-accountants-matter">Composition, and why accountants matter</h2>

<p>Privacy degrades under repeated queries, and training a neural network is tens of thousands of queries against the same data. The basic composition theorem says k mechanisms at ε each compose to kε; advanced composition improves this to roughly ε√(2k ln(1/δ′)) at the cost of an extra δ′ [4]. For DP-SGD even advanced composition is far too loose.</p>

<p>Abadi et al.’s 2016 paper [8] contributed three things, and it is the third that made the other two usable. Clip every per-example gradient to ℓ₂ norm C, which bounds the sensitivity of the sum. Add Gaussian noise of standard deviation σC to the clipped sum. And track privacy loss with the <strong>moments accountant</strong>, which follows the log-moments of the privacy loss random variable rather than composing (ε, δ) pairs. The paper’s own comparison makes the point: at sampling rate q = 0.01, σ = 4 and δ = 10⁻⁵, one hundred epochs cost ε = 9.34 under strong composition and ε = 1.26 under the moments accountant. At four hundred epochs the figures are 24.22 and 2.55 [8].</p>

<div class="math"><div class="math-label">DP-SGD update (Abadi et al. 2016), lot of size L sampled with probability q = L/N</div>g̃ = (1/L) · [ Σᵢ clip(∇Lᵢ(θ), C) + N(0, σ²C²I) ],    θ ← θ − η·g̃</div>

<p>The accountant has a family tree that is worth knowing because the names cause confusion. Mironov showed that the moments accountant is Rényi differential privacy under another name: bound the Rényi divergence of order α between M(D) and M(D′), compose additively, convert to (ε, δ) at the end [9]. The conversion is lossy. The privacy-loss-distribution approach composes the exact distribution of the privacy loss by convolution; Gopi, Lee and Wutschitz made this numerically efficient [10], and it is now the default “PRV accountant” in the standard libraries. f-DP and its Gaussian special case, μ-GDP, go furthest: composition is lossless, Poisson subsampling has a clean theorem, and a central limit theorem says the composition of many small mechanisms converges to μ-GDP whatever they were [6]. One detail that most implementations get wrong: all of these accountants assume Poisson subsampling of each batch, and shuffling the dataset instead gives a different, and in general weaker, guarantee than the one reported.</p>

<h2 id="dp-sgd-from-2016-to-2022-the-curve-moved-the-definition-did-not">DP-SGD from 2016 to 2022: the curve moved, the definition did not</h2>

<p>The 2016 results established that private deep learning was possible: 97% on MNIST at ε = 8, and on CIFAR-10, with convolutional layers pretrained on a public dataset, 67% at ε = 2, 70% at ε = 4 and 73% at ε = 8 [8]. For several years the conventional wisdom was that at small ε, handcrafted features beat end-to-end private networks; Tramèr and Boneh made that case with 60.3%, 67.2% and 69.3% at ε = 1, 2 and 3 [22].</p>

<p>De et al.’s 2022 DeepMind report changed the picture with no new privacy mathematics at all [11]. A WideResNet-40-4 trained from scratch with DP-SGD reached 56.4% at ε = 1, 65.9% at ε = 2, 70.7% at ε = 3, 73.5% at ε = 4, 78.8% at ε = 6 and 81.4% at ε = 8. The ingredients were group normalisation and weight standardisation in place of batch norm, which has no per-example decomposition; batches of 16,384 examples, which improve the signal-to-noise ratio of the noisy sum; an exponential moving average of the parameters; and <strong>augmentation multiplicity</strong>, averaging the gradients of K = 32 augmented copies of each example <em>before</em> clipping, which is free under the definition because the clipped quantity is still a function of one record.</p>

<p>The same report showed what pretraining buys. An NFNet-F3 pretrained on JFT-4B and fine-tuned on ImageNet with DP-SGD reached 77.6% top-1 at ε = 0.1, 83.8% at ε = 0.5 and 86.7% at ε = 8, against 88.5% without privacy. Trained from scratch, the best ImageNet result at ε = 8 was 32.4% [11].</p>

<figure class="fig" id="fig-dp-imagenet">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Pretraining buys privacy: ImageNet top-1 accuracy against ε">
<text class="title" x="0" y="18">Pretraining buys privacy: ImageNet top-1 accuracy against ε</text>
<text class="subtitle" x="0" y="38">An NFNet-F3 pretrained on JFT-4B and fine-tuned with DP-SGD on ImageNet (δ = 8·10⁻⁷), against the same recipe trained from</text>
<text class="subtitle" x="0" y="56">scratch.</text>
<g class="legend s1"><line class="key" x1="0" y1="80" x2="16" y2="80" /><circle class="dot" cx="8" cy="80" r="3.5" /><text x="22" y="84">Fine-tuned from JFT-4B pretraining</text></g>
<g class="legend s6"><line class="key" x1="278.6" y1="80" x2="294.6" y2="80" /><circle class="dot" cx="286.6" cy="80" r="3.5" /><text x="300.6" y="84">Trained from scratch (NF-ResNet-50)</text></g>
<g class="grid">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<line x1="56" x2="796" y1="276.0" y2="276.0" />
<line x1="56" x2="796" y1="224.0" y2="224.0" />
<line x1="56" x2="796" y1="172.0" y2="172.0" />
<line x1="56" x2="796" y1="120.0" y2="120.0" />
</g><g class="axis">
<text x="48" y="332.0" text-anchor="end">0.0%</text>
<text x="48" y="280.0" text-anchor="end">25.0%</text>
<text x="48" y="228.0" text-anchor="end">50.0%</text>
<text x="48" y="176.0" text-anchor="end">75.0%</text>
<text x="48" y="124.0" text-anchor="end">100.0%</text>
</g>
<text class="axis-title" x="56" y="112" text-anchor="start">Top-1 accuracy (%)</text>
<g class="axis">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<text x="90.2" y="346.0" text-anchor="middle">0.1</text>
<text x="336.9" y="346.0" text-anchor="middle">0.5</text>
<text x="443.1" y="346.0" text-anchor="middle">1</text>
<text x="549.3" y="346.0" text-anchor="middle">2</text>
<text x="655.6" y="346.0" text-anchor="middle">4</text>
<text x="761.8" y="346.0" text-anchor="middle">8</text>
</g>
<text class="axis-title" x="796" y="364.0" text-anchor="end">Privacy budget ε (log scale)</text>
<line class="ref" x1="56" x2="796" y1="143.9" y2="143.9" />
<text class="annot" x="792" y="138.9" text-anchor="end">non-private fine-tuning, 88.5%</text>
<g class="s1">
<path class="line" d="M90.2,166.6 L336.9,153.7 L443.1,152.4 L549.3,150.0 L655.6,149.1 L761.8,147.7" />
<circle class="dot" cx="90.2" cy="166.6" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;0.1: 77.6%" />
<circle class="dot" cx="336.9" cy="153.7" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;0.5: 83.8%" />
<circle class="dot" cx="443.1" cy="152.4" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;1: 84.4%" />
<circle class="dot" cx="549.3" cy="150.0" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;2: 85.6%" />
<circle class="dot" cx="655.6" cy="149.1" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;4: 86.0%" />
<circle class="dot" cx="761.8" cy="147.7" r="4" data-tip="&lt;b&gt;Fine-tuned from JFT-4B pretraining&lt;/b&gt;&lt;br&gt;8: 86.7%" />
</g>
<g class="s6">
<circle class="dot" cx="761.8" cy="260.6" r="4" data-tip="&lt;b&gt;Trained from scratch (NF-ResNet-50)&lt;/b&gt;&lt;br&gt;8: 32.4%" />
</g>
<text class="label" x="769.8" y="151.7">86.7%</text>
<text class="label" x="769.8" y="264.6">32.4%</text>
<text class="subtitle" x="0" y="394">Source: De et al. 2022, Table 3 and §4</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> ImageNet top-1 accuracy of a DP-SGD fine-tuned NFNet-F3, pretrained on JFT-4B, against the privacy budget. Even at ε = 0.5 the model is within five points of non-private fine-tuning; the same recipe from scratch reaches 32.4% at ε = 8. The pretraining data is not covered by the guarantee, which is the caveat to keep in mind. Data from [11], Table 3.</figcaption>
</figure>

<p>That caveat deserves its own sentence. The guarantee covers the fine-tuning set. The pretraining set, in this and in every “DP fine-tuning” result below, is treated as public, and for web-scraped corpora “public” and “free of personal data” are not the same thing.</p>

<h2 id="language-models-fine-tuning-is-cheap-pretraining-is-not">Language models: fine-tuning is cheap, pretraining is not</h2>

<p>Two ICLR 2022 papers established that private fine-tuning of large pretrained language models costs very little. Li, Tramèr, Liang and Hashimoto showed that with DP-friendly hyperparameters, meaning large batches, a tiny clipping norm and a higher learning rate, plus a reformulation of classification as text infilling, RoBERTa-large reaches 93.04% on SST-2 at ε = 3, and GPT-2 reaches 61.52 BLEU on the E2E generation task at ε = 3 against 69.46 non-private [12]. Their “ghost clipping” trick computes per-example gradient norms for linear layers without materialising per-example gradients, which cut memory by about three times relative to the standard implementation. Yu et al. showed that parameter-efficient fine-tuning makes the private update sparse and that the privacy tax shrinks with model size: on the DART table-to-text task at ε = 6.8, GPT-2 Small, Medium, Large and XL reach 38.5, 42.0, 43.1 and 43.8 BLEU against 48.1 non-private [13]. Both papers found none of the dimension-dependent degradation that the worst-case theory predicts.</p>

<p>Pretraining is a different matter. McKenna et al. fitted scaling laws for DP language-model training as a function of model size, steps and a noise-to-batch ratio, and found that the compute-optimal private model at a given FLOP budget is roughly a hundred times smaller than its non-private counterpart and wants on the order of 10³ to 10⁵ tokens per parameter, against about twenty for a non-private Chinchilla-optimal run [14]. Google’s VaultGemma applied those laws: a one-billion-parameter model trained on 13 trillion tokens with batches of about 518,000 sequences, 100,000 steps and noise multiplier 0.614, achieving ε ≤ 2.0 and δ ≤ 1.1·10⁻¹⁰ at the level of a 1,024-token sequence [15]. Its benchmark scores land near GPT-2 1.5B from 2019: HellaSwag 39.1 against 61.0 for the non-private Gemma 3 1B, ARC-Easy 51.8 against 71.3, TriviaQA 11.2 against 39.8. The authors’ memorisation test, feeding 50-token prefixes from the training data and checking for the 50-token suffix, found no detectable memorisation, where every non-private Gemma shows some [15].</p>

<p>The honest reading is a roughly five-year utility lag at ε = 2, and a unit of privacy that is per sequence, not per person. A fact that appears in thousands of training sequences is not protected by a per-sequence guarantee, which brings us to the question of units.</p>

<h2 id="local-versus-central-and-what-people-actually-ship">Local versus central, and what people actually ship</h2>

<p>There are two places to put the noise. In <strong>central</strong> DP a trusted curator holds the raw data and randomises the output of the analysis; in <strong>local</strong> DP each person randomises their own record before sending it, and the curator never sees the truth. The previous post described Apple and Google as central-DP examples. They are the canonical <em>local</em> ones. Local DP removes the trust assumption, but it is not free: for a frequency estimate over n users, central DP achieves error of order 1/ε while local DP achieves error of order √n/ε [4]. That is why local deployments need enormous populations and relatively large ε.</p>

<p>Google’s RAPPOR in Chrome [16] is Warner’s randomised response applied twice to a Bloom filter, a permanent response that is memoised so repeated reports cannot be averaged, and an instantaneous response on top. The Chrome parameters give ε = 0.5343 per report, and the paper notes that detecting a string present in 0.1% of reports needs on the order of fourteen million clients. Apple never published its ε. Tang, Korolova and colleagues reverse-engineered the macOS 10.12 and iOS 10 implementations and found per-datum budgets of ε = 1 for emoji and 2 for new words, a daily budget of 16 across four collections, and a budget that resets every day with no lifetime cap, so that the effective loss grows without bound over time [17].</p>

<p>The largest central deployment is the 2020 US Census. The TopDown algorithm allocates a zero-concentrated DP budget of ρ = 2.63 across geographic levels and queries, uses the discrete Gaussian mechanism, and post-processes to non-negative integer counts with exact state totals. The published guarantee for the redistricting data is ε = 19.61 in total, 17.14 for persons and 2.47 for housing units, at δ = 10⁻¹⁰; the April 2021 demonstration data had used ε = 12.2, and the budget was raised after complaints about small-area accuracy from redistricters and demographers [18]. By the ε ≤ 10 rule that is a weak guarantee, and the Bureau’s defence rests on a reconstruction-and-reidentification attack it had run against its own 2010 release. The disagreement that followed was partly about ε and partly about whether the post-processing, not the noise, was responsible for most of the measured error.</p>

<figure class="fig" id="fig-dp-deployed">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 440" width="860" height="440" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="What ε do people actually ship?">
<text class="title" x="0" y="18">What ε do people actually ship?</text>
<text class="subtitle" x="0" y="38">Published privacy budgets of deployed or released systems. The unit of privacy, in brackets, is what makes two values comparable</text>
<text class="subtitle" x="0" y="56">or not.</text>
<g class="grid">
<line y1="96" y2="372" x1="312.7" x2="312.7" />
<line y1="96" y2="372" x1="420.7" x2="420.7" />
<line y1="96" y2="372" x1="528.7" x2="528.7" />
<line y1="96" y2="372" x1="636.8" x2="636.8" />
<line y1="96" y2="372" x1="744.8" x2="744.8" />
</g><g class="axis">
<text x="312.7" y="390" text-anchor="middle">0</text>
<text x="420.7" y="390" text-anchor="middle">5</text>
<text x="528.7" y="390" text-anchor="middle">10</text>
<text x="636.8" y="390" text-anchor="middle">15</text>
<text x="744.8" y="390" text-anchor="middle">20</text>
<text x="302.7" y="117.2" text-anchor="end" style="fill:var(--ink-2)">Chrome RAPPOR [per report, local]</text>
<text x="302.7" y="151.8" text-anchor="end" style="fill:var(--ink-2)">Apple emoji telemetry [per datum, local]</text>
<text x="302.7" y="186.2" text-anchor="end" style="fill:var(--ink-2)">Apple new-word telemetry [per datum, local]</text>
<text x="302.7" y="220.8" text-anchor="end" style="fill:var(--ink-2)">VaultGemma 1B [per 1,024-token sequence]</text>
<text x="302.7" y="255.2" text-anchor="end" style="fill:var(--ink-2)">De et al. ImageNet [per example]</text>
<text x="302.7" y="289.8" text-anchor="end" style="fill:var(--ink-2)">Census 2020, April 2021 demo [per person]</text>
<text x="302.7" y="324.2" text-anchor="end" style="fill:var(--ink-2)">Apple, daily budget [per device-day, local]</text>
<text x="302.7" y="358.8" text-anchor="end" style="fill:var(--ink-2)">Census 2020, final [per person]</text>
</g>
<text class="axis-title" x="788.0" y="408" text-anchor="end">Privacy budget ε</text>
<line class="ref" y1="96" y2="372" x1="334.3" x2="334.3" />
<text class="annot" x="339.3" y="366" text-anchor="start">ε ≤ 1 &quot;strong&quot;</text>
<line class="ref" y1="96" y2="372" x1="528.7" x2="528.7" />
<text class="annot" x="533.7" y="366" text-anchor="start">ε ≤ 10 &quot;typical for deep learning&quot; (Ponomareva et al.)</text>
<g class="s1">
<path class="bar" d="M312.7,102.2 H320.2 Q324.2,102.2 324.2,106.2 V120.2 Q324.2,124.2 320.2,124.2 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Chrome RAPPOR [per report, local]: 0.53" />
<text class="label" x="330.2" y="117.2">0.53</text>
<path class="bar" d="M312.7,136.8 H330.3 Q334.3,136.8 334.3,140.8 V154.8 Q334.3,158.8 330.3,158.8 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Apple emoji telemetry [per datum, local]: 1" />
<text class="label" x="340.3" y="151.8">1</text>
<path class="bar" d="M312.7,171.2 H351.9 Q355.9,171.2 355.9,175.2 V189.2 Q355.9,193.2 351.9,193.2 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Apple new-word telemetry [per datum, local]: 2" />
<text class="label" x="361.9" y="186.2">2</text>
<path class="bar" d="M312.7,205.8 H351.9 Q355.9,205.8 355.9,209.8 V223.8 Q355.9,227.8 351.9,227.8 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;VaultGemma 1B [per 1,024-token sequence]: 2" />
<text class="label" x="361.9" y="220.8">2</text>
<path class="bar" d="M312.7,240.2 H481.5 Q485.5,240.2 485.5,244.2 V258.2 Q485.5,262.2 481.5,262.2 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;De et al. ImageNet [per example]: 8" />
<text class="label" x="491.5" y="255.2">8</text>
<path class="bar" d="M312.7,274.8 H572.3 Q576.3,274.8 576.3,278.8 V292.8 Q576.3,296.8 572.3,296.8 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Census 2020, April 2021 demo [per person]: 12.2" />
<text class="label" x="582.3" y="289.8">12.2</text>
<path class="bar" d="M312.7,309.2 H654.4 Q658.4,309.2 658.4,313.2 V327.2 Q658.4,331.2 654.4,331.2 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Apple, daily budget [per device-day, local]: 16" />
<text class="label" x="664.4" y="324.2">16</text>
<path class="bar" d="M312.7,343.8 H732.4 Q736.4,343.8 736.4,347.8 V361.8 Q736.4,365.8 732.4,365.8 H312.7 Z" data-tip="&lt;b&gt;ε&lt;/b&gt;&lt;br&gt;Census 2020, final [per person]: 19.61" />
<text class="label" x="742.4" y="358.8">19.61</text>
</g>
<text class="subtitle" x="0" y="434">Source: Erlingsson et al. 2014; Tang et al. 2017; Sinha et al. 2025; De et al. 2022; US Census Bureau 2021 and Abowd et al. 2022</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> Published privacy budgets of deployed systems, with the unit of privacy in brackets. A per-report local-DP ε of 0.53 and a per-person central-DP ε of 19.61 are not on the same scale: the first protects one day's telemetry from one device, the second a person's entire census record. The dashed lines are the practitioner tiers from [7]. Data from [11, 15], [16, 17, 18].</figcaption>
</figure>

<p>The single most useful habit from Ponomareva et al.’s guide is to refuse to read an ε without its unit. Report whether the guarantee is per example, per user or per sequence; whether adjacency means adding or removing a record or replacing one, since replacement is roughly twice as strong per unit of ε; the value of δ; which accountant was used; whether sampling was Poisson; and whether hyperparameters were tuned privately [7].</p>

<h2 id="auditing-the-guarantee-is-worst-case-the-attack-is-not">Auditing: the guarantee is worst-case, the attack is not</h2>

<p>A DP proof is an upper bound on what any adversary can do. Auditing asks for the matching lower bound: how much can a concrete attacker actually demonstrate? Jagielski, Ullman and Oprea used poisoning canaries and hundreds of training runs to estimate the privacy loss of DP-SGD on Fashion-MNIST, and found empirical lower bounds of 0.15, 0.37, 0.89, 1.90 and 2.43 against theoretical budgets of 1, 2, 4, 8 and 16 [19]. The gap of four to eight times could mean the analysis is loose or the attack is weak.</p>

<p>Nasr et al. settled which [20]. With white-box access to every gradient step, gradient canaries and f-DP test statistics, two training runs on CIFAR-10 at a theoretical ε = 8 gave an audited lower bound of 7.09; the same runs audited with (ε, δ) statistics gave 3.63; a black-box auditor who sees only the final model gets about 1.6. The analysis is nearly tight. The gap in earlier audits was the threat model, not slack in the proof. The same paper turned auditing into a unit test and caught real bugs: clipping after averaging, a biased random number generator and under-scaled noise all produced audited lower bounds far above the claimed ε, above 35 in the case of the broken clipping. Steinke, Nasr and Jagielski then showed that a usable lower bound can be obtained from a single training run by inserting many canaries at once and using the connection between DP and generalisation [21], which is cheap enough to run on every job.</p>

<figure class="fig" id="fig-dp-audit">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 420" width="860" height="420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Claimed ε against the ε an auditor can actually demonstrate">
<text class="title" x="0" y="18">Claimed ε against the ε an auditor can actually demonstrate</text>
<text class="subtitle" x="0" y="38">Empirical lower bounds on the privacy loss of DP-SGD. The gap closes almost entirely when the auditor sees every gradient step.</text>
<g class="legend s6"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">Claimed (theoretical) ε</text></g>
<g class="legend s1"><rect class="swatch" x="202.70000000000002" y="55" width="12" height="12" rx="2" /><text x="220.70000000000002" y="66">Audited lower bound</text></g>
<g class="grid">
<line x1="56" x2="836" y1="337.0" y2="337.0" />
<line x1="56" x2="836" y1="287.9" y2="287.9" />
<line x1="56" x2="836" y1="238.8" y2="238.8" />
<line x1="56" x2="836" y1="189.7" y2="189.7" />
<line x1="56" x2="836" y1="140.6" y2="140.6" />
</g><g class="axis">
<text x="48" y="341.0" text-anchor="end">0</text>
<text x="48" y="291.9" text-anchor="end">4</text>
<text x="48" y="242.8" text-anchor="end">8</text>
<text x="48" y="193.7" text-anchor="end">12</text>
<text x="48" y="144.6" text-anchor="end">16</text>
</g>
<text class="axis-title" x="56" y="108" text-anchor="start">ε</text>
<g class="axis">
<line x1="56" x2="836" y1="337.0" y2="337.0" />
<text x="104.8" y="355.0" text-anchor="middle">F-MNIST</text>
<text x="104.8" y="369.0" text-anchor="middle">ε = 1</text>
<text x="202.2" y="355.0" text-anchor="middle">F-MNIST</text>
<text x="202.2" y="369.0" text-anchor="middle">ε = 2</text>
<text x="299.8" y="355.0" text-anchor="middle">F-MNIST</text>
<text x="299.8" y="369.0" text-anchor="middle">ε = 4</text>
<text x="397.2" y="355.0" text-anchor="middle">F-MNIST</text>
<text x="397.2" y="369.0" text-anchor="middle">ε = 8</text>
<text x="494.8" y="355.0" text-anchor="middle">F-MNIST</text>
<text x="494.8" y="369.0" text-anchor="middle">ε = 16</text>
<text x="592.2" y="355.0" text-anchor="middle">CIFAR-10</text>
<text x="592.2" y="369.0" text-anchor="middle">black-box</text>
<text x="689.8" y="355.0" text-anchor="middle">CIFAR-10</text>
<text x="689.8" y="369.0" text-anchor="middle">white-box</text>
<text x="689.8" y="383.0" text-anchor="middle">(ε,δ)</text>
<text x="787.2" y="355.0" text-anchor="middle">CIFAR-10</text>
<text x="787.2" y="369.0" text-anchor="middle">white-box</text>
<text x="787.2" y="383.0" text-anchor="middle">f-DP</text>
</g>
<g class="s6">
<path class="bar" d="M79.8,337.0 V328.7 Q79.8,324.7 83.8,324.7 H99.8 Q103.8,324.7 103.8,328.7 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;F-MNIST ε = 1: 1" />
<text class="label" x="91.8" y="318.7" text-anchor="middle">1</text>
<path class="bar" d="M177.2,337.0 V316.4 Q177.2,312.4 181.2,312.4 H197.2 Q201.2,312.4 201.2,316.4 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;F-MNIST ε = 2: 2" />
<text class="label" x="189.2" y="306.4" text-anchor="middle">2</text>
<path class="bar" d="M274.8,337.0 V291.9 Q274.8,287.9 278.8,287.9 H294.8 Q298.8,287.9 298.8,291.9 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;F-MNIST ε = 4: 4" />
<text class="label" x="286.8" y="281.9" text-anchor="middle">4</text>
<path class="bar" d="M372.2,337.0 V242.8 Q372.2,238.8 376.2,238.8 H392.2 Q396.2,238.8 396.2,242.8 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;F-MNIST ε = 8: 8" />
<text class="label" x="384.2" y="232.8" text-anchor="middle">8</text>
<path class="bar" d="M469.8,337.0 V144.6 Q469.8,140.6 473.8,140.6 H489.8 Q493.8,140.6 493.8,144.6 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;F-MNIST ε = 16: 16" />
<text class="label" x="481.8" y="134.6" text-anchor="middle">16</text>
<path class="bar" d="M567.2,337.0 V242.8 Q567.2,238.8 571.2,238.8 H587.2 Q591.2,238.8 591.2,242.8 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;CIFAR-10 black-box: 8" />
<text class="label" x="579.2" y="232.8" text-anchor="middle">8</text>
<path class="bar" d="M664.8,337.0 V242.8 Q664.8,238.8 668.8,238.8 H684.8 Q688.8,238.8 688.8,242.8 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;CIFAR-10 white-box (ε,δ): 8" />
<text class="label" x="676.8" y="232.8" text-anchor="middle">8</text>
<path class="bar" d="M762.2,337.0 V242.8 Q762.2,238.8 766.2,238.8 H782.2 Q786.2,238.8 786.2,242.8 V337.0 Z" data-tip="&lt;b&gt;Claimed (theoretical) ε&lt;/b&gt;&lt;br&gt;CIFAR-10 white-box f-DP: 8" />
<text class="label" x="774.2" y="232.8" text-anchor="middle">8</text>
</g>
<g class="s1">
<path class="bar" d="M105.8,337.0 V336.1 Q105.8,335.2 106.7,335.2 H128.8 Q129.8,335.2 129.8,336.1 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;F-MNIST ε = 1: 0.15" />
<text class="label" x="117.8" y="329.2" text-anchor="middle">0.15</text>
<path class="bar" d="M203.2,337.0 V334.7 Q203.2,332.5 205.5,332.5 H225.0 Q227.2,332.5 227.2,334.7 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;F-MNIST ε = 2: 0.37" />
<text class="label" x="215.2" y="326.5" text-anchor="middle">0.37</text>
<path class="bar" d="M300.8,337.0 V330.1 Q300.8,326.1 304.8,326.1 H320.8 Q324.8,326.1 324.8,330.1 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;F-MNIST ε = 4: 0.89" />
<text class="label" x="312.8" y="320.1" text-anchor="middle">0.89</text>
<path class="bar" d="M398.2,337.0 V317.7 Q398.2,313.7 402.2,313.7 H418.2 Q422.2,313.7 422.2,317.7 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;F-MNIST ε = 8: 1.9" />
<text class="label" x="410.2" y="307.7" text-anchor="middle">1.9</text>
<path class="bar" d="M495.8,337.0 V311.2 Q495.8,307.2 499.8,307.2 H515.8 Q519.8,307.2 519.8,311.2 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;F-MNIST ε = 16: 2.43" />
<text class="label" x="507.8" y="301.2" text-anchor="middle">2.43</text>
<path class="bar" d="M593.2,337.0 V321.4 Q593.2,317.4 597.2,317.4 H613.2 Q617.2,317.4 617.2,321.4 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;CIFAR-10 black-box: 1.6" />
<text class="label" x="605.2" y="311.4" text-anchor="middle">1.6</text>
<path class="bar" d="M690.8,337.0 V296.4 Q690.8,292.4 694.8,292.4 H710.8 Q714.8,292.4 714.8,296.4 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;CIFAR-10 white-box (ε,δ): 3.63" />
<text class="label" x="702.8" y="286.4" text-anchor="middle">3.63</text>
<path class="bar" d="M788.2,337.0 V254.0 Q788.2,250.0 792.2,250.0 H808.2 Q812.2,250.0 812.2,254.0 V337.0 Z" data-tip="&lt;b&gt;Audited lower bound&lt;/b&gt;&lt;br&gt;CIFAR-10 white-box f-DP: 7.09" />
<text class="label" x="800.2" y="244.0" text-anchor="middle">7.09</text>
</g>
<text class="subtitle" x="0" y="399">Source: Jagielski, Ullman &amp; Oprea 2020, Tables 2–3 (Fashion-MNIST, 500 trials); Nasr et al. 2023, Tables 1–3 (CIFAR-10, ε = 8, δ =</text>
<text class="subtitle" x="0" y="414">10⁻⁵)</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 4.</span> Claimed versus audited ε for DP-SGD. The 2020 audits with a black-box poisoning attacker recovered a fraction of the budget; the 2023 white-box audit with f-DP statistics recovers 7.09 of 8. The remaining gap between the white-box and black-box columns is the difference between what the proof guards against and what a real attacker without gradient access can do. Data from [19], Tables 2–3, and [20], Tables 1–3.</figcaption>
</figure>

<p>The implication cuts both ways. If you are worried about an insider with access to the training pipeline, ε is nearly the truth. If your adversary only sees the released model, the empirical privacy may be far better than ε says, or your attacks may simply be weak, and nobody has a tight black-box audit that would tell you which.</p>

<h2 id="what-ε-does-not-promise">What ε does not promise</h2>

<p>Five open problems define the current state of the field, and I would rather state them plainly than end on the Netflix anecdote.</p>

<p>The unit of privacy for language models is unresolved. Example- or sequence-level ε ≤ 8 is the standard, but a person’s data is spread across thousands of sequences, and user-level guarantees cost far more utility [7, 15]. Most reported DP-SGD numbers assume Poisson subsampling while the training loop shuffles, and the true ε under shuffling can be substantially larger [6, 7]. “Public” pretraining data is often scraped personal data, so the guarantee covers a small fraction of what the model saw [11, 12]. Audits are tight only with white-box access [20]. And in the one public policy fight so far, the Census, the argument was never really about ε at all but about post-processing and whose counts got distorted [18].</p>

<p>None of this is an argument against the definition. Every one of these problems is visible <em>because</em> the definition is precise enough to show where it stops. That is the property syntactic anonymity never had, and it is why, twenty years after Netflix, differential privacy is still the only answer to “does this leak?” that has not been overturned by the next attack. The next post looks at a newer framework, PAC Privacy, that tries to give a comparable guarantee at a lower price by measuring rather than bounding.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Differential privacy is a property of the algorithm, quantified over all neighbouring datasets and all attackers. ε bounds the ROC curve of any membership test: at ε = 1 a 0.1%-false-positive attacker gets at most 0.27% true positives; at ε = 8 the bound is vacuous.</li>
<li>DP-SGD is clipping, Gaussian noise and an accountant; the accountant is what made it practical (ε = 1.26 instead of 9.34 for a hundred epochs). Modern accountants (PLD, f-DP) are tighter still and assume Poisson sampling.</li>
<li>The utility cost fell sharply without any change to the guarantee: 73% to 81.4% on CIFAR-10 at ε = 8 between 2016 and 2022, and private fine-tuning of pretrained models is close to free. Private pretraining still costs about five years of progress.</li>
<li>Never read an ε without its unit of privacy and δ. Chrome's 0.53 per report and the Census's 19.61 per person are not comparable numbers.</li>
<li>Audits show the proof is nearly tight against a white-box attacker and loose against a black-box one; the gap is the threat model, and it is also a unit test that catches real implementation bugs.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Narayanan, Shmatikov. <em>Robust De-anonymization of Large Sparse Datasets.</em> IEEE S&amp;P 2008. <a href="https://mail.profsandhu.com/cs6393_s13/ns_2008.pdf">PDF</a></li>
<li>Sweeney. <em>k-Anonymity: A Model for Protecting Privacy.</em> International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems 10(5), 2002. <a href="https://doi.org/10.1142/S0218488502001648">doi:10.1142/S0218488502001648</a></li>
<li>Dwork, McSherry, Nissim, Smith. <em>Calibrating Noise to Sensitivity in Private Data Analysis.</em> TCC 2006. <a href="https://link.springer.com/chapter/10.1007/11681878_14">Springer</a></li>
<li>Dwork, Roth. <em>The Algorithmic Foundations of Differential Privacy.</em> Foundations and Trends in Theoretical Computer Science 9(3–4), 2014. <a href="https://doi.org/10.1561/0400000042">doi:10.1561/0400000042</a></li>
<li>Warner. <em>Randomized Response: A Survey Technique for Eliminating Evasive Answer Bias.</em> Journal of the American Statistical Association 60(309), 1965. <a href="https://doi.org/10.1080/01621459.1965.10480775">doi:10.1080/01621459.1965.10480775</a></li>
<li>Dong, Roth, Su. <em>Gaussian Differential Privacy.</em> Journal of the Royal Statistical Society Series B 84(1), 2022. <a href="https://arxiv.org/abs/1905.02383">arXiv:1905.02383</a></li>
<li>Ponomareva, Hazimeh, Kurakin et al. <em>How to DP-fy ML: A Practical Guide to Machine Learning with Differential Privacy.</em> Journal of Artificial Intelligence Research 77, 2023. <a href="https://arxiv.org/abs/2303.00654">arXiv:2303.00654</a></li>
<li>Abadi, Chu, Goodfellow, McMahan, Mironov, Talwar, Zhang. <em>Deep Learning with Differential Privacy.</em> ACM CCS 2016. <a href="https://arxiv.org/abs/1607.00133">arXiv:1607.00133</a></li>
<li>Mironov. <em>Rényi Differential Privacy.</em> IEEE CSF 2017. <a href="https://arxiv.org/abs/1702.07476">arXiv:1702.07476</a></li>
<li>Gopi, Lee, Wutschitz. <em>Numerical Composition of Differential Privacy.</em> NeurIPS 2021. <a href="https://proceedings.neurips.cc/paper/2021/hash/6097d8f3714205740f30debe1166744e-Abstract.html">NeurIPS proceedings</a></li>
<li>De, Berrada, Hayes, Smith, Balle. <em>Unlocking High-Accuracy Differentially Private Image Classification through Scale.</em> arXiv 2022. <a href="https://arxiv.org/abs/2204.13650">arXiv:2204.13650</a></li>
<li>Li, Tramèr, Liang, Hashimoto. <em>Large Language Models Can Be Strong Differentially Private Learners.</em> ICLR 2022. <a href="https://arxiv.org/abs/2110.05679">arXiv:2110.05679</a></li>
<li>Yu, Naik, Backurs et al. <em>Differentially Private Fine-tuning of Language Models.</em> ICLR 2022. <a href="https://arxiv.org/abs/2110.06500">arXiv:2110.06500</a></li>
<li>McKenna, Huang, Sinha et al. <em>Scaling Laws for Differentially Private Language Models.</em> ICML 2025. <a href="https://arxiv.org/abs/2501.18914">arXiv:2501.18914</a></li>
<li>Sinha, Mesnard, McKenna et al. <em>VaultGemma: A Differentially Private Gemma Model.</em> arXiv 2025. <a href="https://arxiv.org/abs/2510.15001">arXiv:2510.15001</a></li>
<li>Erlingsson, Pihur, Korolova. <em>RAPPOR: Randomized Aggregatable Privacy-Preserving Ordinal Response.</em> ACM CCS 2014. <a href="https://arxiv.org/abs/1407.6981">arXiv:1407.6981</a></li>
<li>Tang, Korolova, Bai, Wang, Wang. <em>Privacy Loss in Apple's Implementation of Differential Privacy on MacOS 10.12.</em> arXiv 2017. <a href="https://arxiv.org/abs/1709.02753">arXiv:1709.02753</a></li>
<li>Abowd, Ashmead, Cumings-Menon et al. <em>The 2020 Census Disclosure Avoidance System TopDown Algorithm.</em> Harvard Data Science Review 2022. <a href="https://arxiv.org/abs/2204.08986">arXiv:2204.08986</a>; budget figures from the US Census Bureau's <a href="https://www.census.gov/newsroom/press-releases/2021/2020-census-key-parameters.html">9 June 2021 release</a></li>
<li>Jagielski, Ullman, Oprea. <em>Auditing Differentially Private Machine Learning: How Private is Private SGD?</em> NeurIPS 2020. <a href="https://papers.nips.cc/paper/2020/hash/fc4ddc15f9f4b4b06ef7844d6bb53abf-Abstract.html">NeurIPS proceedings</a></li>
<li>Nasr, Hayes, Steinke, Balle, Tramèr, Jagielski, Carlini, Terzis. <em>Tight Auditing of Differentially Private Machine Learning.</em> USENIX Security 2023. <a href="https://www.usenix.org/conference/usenixsecurity23/presentation/nasr">USENIX</a></li>
<li>Steinke, Nasr, Jagielski. <em>Privacy Auditing with One (1) Training Run.</em> NeurIPS 2023. <a href="https://proceedings.neurips.cc/paper_files/paper/2023/hash/9a6f6e0d6781d1cb8689192408946d73-Abstract.html">NeurIPS proceedings</a></li>
<li>Tramèr, Boneh. <em>Differentially Private Learning Needs Better Features (or Much More Data).</em> ICLR 2021. <a href="https://arxiv.org/abs/2011.11660">arXiv:2011.11660</a></li>
<li>Machanavajjhala, Kifer, Gehrke, Venkitasubramaniam. <em>ℓ-Diversity: Privacy Beyond k-Anonymity.</em> ICDE 2006; ACM TKDD 1(1), 2007. <a href="https://doi.org/10.1145/1217299.1217302">doi:10.1145/1217299.1217302</a></li>
<li>Li, Li, Venkatasubramanian. <em>t-Closeness: Privacy Beyond k-Anonymity and ℓ-Diversity.</em> ICDE 2007. <a href="https://doi.org/10.1109/ICDE.2007.367856">doi:10.1109/ICDE.2007.367856</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Privacy" /><category term="privacy" /><category term="differential-privacy" /><category term="DP-SGD" /><category term="auditing" /><category term="theory" /><summary type="html"><![CDATA[In 2006 Netflix published 100 million movie ratings from about 480,000 subscribers, with names removed, as a public machine learning competition. Two years later Narayanan and Shmatikov showed that eight ratings, two of which could be wrong, with dates known to within two weeks, uniquely identified 99% of the subscribers in the dataset, and that the public reviews people had posted on IMDb were enough to supply those eight ratings [1]. The sequel competition was cancelled after a class action and an FTC inquiry. Nobody had done anything that looked careless by the standards of the time. The standard was wrong.]]></summary></entry><entry><title type="html">Your Model Remembers Things It Shouldn’t</title><link href="https://cymtrick.github.io/2025/11/26/privacy-attacks/" rel="alternate" type="text/html" title="Your Model Remembers Things It Shouldn’t" /><published>2025-11-26T00:00:00+00:00</published><updated>2025-11-26T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/11/26/privacy-attacks</id><content type="html" xml:base="https://cymtrick.github.io/2025/11/26/privacy-attacks/"><![CDATA[<p>A hospital trains a readmission model on patient records and deploys it behind an API. Clinicians send features in and get a risk score out. No records leave the building, no weights are published. The question this post is about is what an outsider with only that API can learn about the patients, and the answer, worked out over about a decade, is: more than you would like, in several distinct ways.</p>

<p>It helps to be precise about what “leak” means, because four different things get conflated. An attacker might learn whether a particular record was in the training set (<em>membership inference</em>); might learn a hidden attribute of a record they partly know (<em>attribute inference</em> or <em>model inversion</em>); might learn something about the dataset as a whole, such as its class balance (<em>property inference</em>); or might recover training text or images verbatim (<em>extraction</em>). These have different threat models, different defenses, and, it turns out, very different success rates on modern models. The field’s most important recent finding is that the first one works far less well on large language models than the last one, which is the opposite of what most people assume.</p>

<h2 id="membership-inference-and-the-overfitting-theorem">Membership inference, and the overfitting theorem</h2>

<p>Shokri, Stronati, Song and Shmatikov [1] posed membership inference as a game in 2017. Given a record x and black-box access to a model trained on an unknown dataset, say whether x was in it. Their attack trains <em>shadow models</em> on data from the same distribution, for which membership is known by construction, then trains a classifier on the shadow models’ output vectors to recognise the signature of a training example. The signature exists because models are more confident on data they have seen. Against commercial machine-learning-as-a-service platforms the attack reached a median precision of 0.94 on Google’s prediction API and 0.74 on Amazon’s, with recall near one, and its success tracked two things: how much the model overfit, and how many classes it had [1].</p>

<p>Yeom et al. [2] made the overfitting connection exact. For the simplest adversary, one that declares “member” whenever the loss on x is below a threshold, the <em>membership advantage</em> over random guessing equals the model’s generalisation gap, and an ε-differentially-private learner bounds that advantage by e^ε − 1. The same paper formalised attribute inference and showed its advantage is a function of the generalisation gap and of how much influence the hidden attribute has on the output. Salem et al. [3] then stripped away most of Shokri’s machinery: one shadow model does as well as ten, shadow data from an unrelated domain still works (training the shadow on news text and attacking a CIFAR-100 classifier gives 0.94 precision), and a threshold on the top posterior with no training at all reaches an AUC above 0.8. The signal lives in the confidence vector; the shadow models were scaffolding.</p>

<h2 id="the-metric-was-wrong">The metric was wrong</h2>

<p>For five years the field reported membership inference as balanced accuracy or AUC, and both were misleading. Carlini et al. [4] made the argument in 2022 with a thought experiment. An attack that is perfectly confident on 0.1% of the training set and guesses randomly on the rest has an AUC of about 0.51 and looks worse than a loss threshold. But it is a far more dangerous attack: it names specific people with certainty. The number that matters is the true-positive rate at a false-positive rate low enough that the attacker’s claims are credible, and it should be read off a log-log ROC curve.</p>

<p>Their attack, the Likelihood Ratio Attack (LiRA), fits per-example Gaussians to the model’s logit-scaled confidence under shadow models trained with and without the example, and runs a likelihood-ratio test. On CIFAR-10, LiRA reaches 8.4% TPR at 0.1% FPR and 2.2% at 0.001%, where the loss-threshold attack of Yeom et al. reaches 0.0% at both. The balanced accuracies of the two attacks are 63.8% and 59.4%, four points apart [4]. The lead figure shows all seven attacks they compared; the ranking by accuracy and the ranking by low-FPR TPR disagree, and only the second one tells you who is at risk.</p>

<p>Two details from the paper matter in practice. Sixty-four shadow models capture most of the benefit, and two augmentation queries (the image and its mirror) raise TPR from 5.6% to 7.5% at 0.1% FPR [4]. And risk is heterogeneous: mislabelled and out-of-distribution training examples are far easier to identify than typical ones, which is exactly the tail that average-case metrics hide and where real harm sits.</p>

<h2 id="inversion-recovering-what-was-never-shared">Inversion: recovering what was never shared</h2>

<p>Model inversion predates deep learning. Fredrikson et al. [5] attacked a <em>linear</em> warfarin-dosing model in 2014: given the model, a patient’s demographics and their stable dose, infer the VKORC1 genotype. The inference beat the prior substantially, and in simulated clinical trials no differential-privacy budget between ε = 0.25 and ε = 100 blocked the attack without raising the mortality risk of the resulting dosing above fixed dosing. It was the first demonstration in applied ML that the privacy–utility trade-off has a body count.</p>

<p>The 2015 follow-up [6] generalised the attack to any model that returns confidence scores, with two case studies that are still the canonical ones. Against a decision tree trained on lifestyle surveys, white-box attribute inference reached 100% precision on a sensitive attribute. Against a face recogniser trained on softmax outputs, gradient descent in pixel space produced images that Mechanical Turk workers matched to the right person 75% of the time overall, 87% at best, and about 95% for skilled workers, against a 20% chance baseline. The first countermeasure appeared in the same paper: rounding confidences to 0.05 defeated the black-box version of the attack.</p>

<p>Pixel-space inversion does not survive the move to deep convolutional networks; the recovered images become noise. The modern form is a <em>prior</em> problem. Zhang et al. [7] trained a GAN on public face images and optimised in its latent space against the target classifier. Where Fredrikson’s attack recovers 0% top-1 identity on a VGG16 face model, the generative attack recovers 28%, and 76% top-5 on a stronger recogniser. Two findings from that paper should worry anyone relying on standard defenses: more accurate models are <em>more</em> invertible, and record-level differential privacy at ε = 0.1 on MNIST did not stop the attack, because inversion recovers what a class looks like rather than any single record.</p>

<h2 id="property-inference-what-the-weights-say-about-the-dataset">Property inference: what the weights say about the dataset</h2>

<p>A third family asks about the dataset rather than the record. Ateniese et al. [8] trained a meta-classifier on the <em>parameters</em> of shadow models to learn, for example, whether a speech-recognition model had been trained on data containing a particular accent. Ganju et al. [9] made this practical for fully connected networks by representing each weight matrix as a set rather than a sequence, so that the meta-classifier is invariant to the arbitrary permutation of hidden units. Both are white-box attacks on the weights; the original version of this post described them as query attacks, which they are not. Properties like class balance or demographic composition can be sensitive even when no individual is exposed, which is why this line matters for models released as open weights.</p>

<h2 id="extraction-604-sequences-then-ten-thousand">Extraction: 604 sequences, then ten thousand</h2>

<p>Language models introduced a leak that needs no statistical test. Carlini et al. [10] defined <em>k-eidetic memorisation</em>, a sequence that can be extracted from the model and appears in at most k training documents, and went looking for it in GPT-2. They generated 600,000 samples under three sampling strategies, ranked them by how much more likely the model found them than a reference measure (a smaller model’s perplexity, or zlib compression entropy), and manually checked the top 1,800. They confirmed 604 unique memorised sequences, among them 46 containing named individuals, 32 with contact information, and a few hundred-digit UUIDs. The number is 604, not “thousands,” and the best sampling-and-ranking configuration found 67 memorised sequences per 100 candidates. GPT-2 XL memorised more than eighteen times as much as GPT-2 Small in a controlled insertion experiment [10].</p>

<p>The follow-up [11] turned the anecdote into scaling laws. Across the GPT-Neo family trained on the Pile, the fraction of training sequences that can be reproduced grows log-linearly with model size, about 19 percentage points per tenfold increase in parameters, with R² = 0.998. It grows log-linearly in how many times a sequence is duplicated. And it grows with the length of the prompt: a 6B model reproduces 33% of a sample of training sequences given 50 tokens of context and 65% given 450. Deduplication helps, from 3.6% to 1.2% for sequences repeated fewer than 35 times, and so does the distinction between <em>discoverable</em> memorisation (the attacker already has the prefix) and <em>extractable</em> memorisation (they do not): on random 1,000-token sequences the extractable rate is in the low single digits [11].</p>

<table>
  <thead>
    <tr>
      <th>Lever</th>
      <th>Setting</th>
      <th>Memorised fraction</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Model size</td>
      <td>GPT-2 XL 1.5B → GPT-Neo 125M → GPT-J 6B, random 1,000-token sequences</td>
      <td>2% → 4% → 7%</td>
    </tr>
    <tr>
      <td>Context length</td>
      <td>GPT-J 6B, 50 → 450 tokens of true prefix</td>
      <td>33% → 65%</td>
    </tr>
    <tr>
      <td>Duplication</td>
      <td>C4 → deduplicated C4, sequences repeated &lt; 35 times</td>
      <td>3.6% → 1.2%</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">The three levers of memorisation in language models, each with the endpoints reported in the paper. Note that GPT-2 XL was trained on different data from the GPT-Neo family, so the first row is suggestive rather than a controlled comparison. Data from [11].</p>

<p>Then came the result that made the newspapers. Nasr et al. [12] asked ChatGPT (gpt-3.5-turbo) to repeat the word “poem” forever. After a few hundred repetitions the model diverged from its chat persona and began emitting training data at roughly 150 times its baseline rate. About $200 of queries produced more than 10,000 unique verbatim 50-token sequences; 16.9% of a labelled sample contained personal information, most of it real; the longest recovered string exceeded 4,000 characters; and a Good–Turing estimate put the extractable total at a minimum of 1.5 million unique sequences, with the authors expecting hundreds of millions. On open models with a billion generated tokens each, between 0.12% and 1.44% of all output tokens fell inside a verbatim training sequence. Alignment had not removed memorisation; it had hidden it behind a chat format, which is why the attack had to break the model out of that format first.</p>

<figure class="fig" id="fig-privacy-regurgitation">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="How much of a language model's output is verbatim training data?">
<text class="title" x="0" y="18">How much of a language model's output is verbatim training data?</text>
<text class="subtitle" x="0" y="38">Share of generated tokens inside a 50-token sequence found verbatim in the training corpus, over 1B generated tokens per model.</text>
<g class="grid">
<line y1="78" y2="332" x1="257.5" x2="257.5" />
<line y1="78" y2="332" x1="390.1" x2="390.1" />
<line y1="78" y2="332" x1="522.8" x2="522.8" />
<line y1="78" y2="332" x1="655.4" x2="655.4" />
<line y1="78" y2="332" x1="788.0" x2="788.0" />
</g><g class="axis">
<text x="257.5" y="350" text-anchor="middle">0.000%</text>
<text x="390.1" y="350" text-anchor="middle">0.400%</text>
<text x="522.8" y="350" text-anchor="middle">0.800%</text>
<text x="655.4" y="350" text-anchor="middle">1.200%</text>
<text x="788.0" y="350" text-anchor="middle">1.600%</text>
<text x="247.5" y="100.1" text-anchor="end" style="fill:var(--ink-2)">RedPajama 7B</text>
<text x="247.5" y="136.4" text-anchor="end" style="fill:var(--ink-2)">gpt-3.5-turbo-instruct</text>
<text x="247.5" y="172.7" text-anchor="end" style="fill:var(--ink-2)">LLaMA 65B</text>
<text x="247.5" y="209.0" text-anchor="end" style="fill:var(--ink-2)">Pythia 6.9B</text>
<text x="247.5" y="245.3" text-anchor="end" style="fill:var(--ink-2)">GPT-Neo 6B</text>
<text x="247.5" y="281.6" text-anchor="end" style="fill:var(--ink-2)">Falcon 40B</text>
<text x="247.5" y="317.9" text-anchor="end" style="fill:var(--ink-2)">ChatGPT (gpt-3.5-turbo), normal use</text>
</g>
<text class="axis-title" x="788.0" y="368" text-anchor="end">Memorised tokens (% of output)</text>
<g class="s1">
<path class="bar" d="M257.5,85.1 H730.3 Q734.3,85.1 734.3,89.1 V103.1 Q734.3,107.1 730.3,107.1 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;RedPajama 7B: 1.438%" />
<text class="label" x="740.3" y="100.1">1.438%</text>
<path class="bar" d="M257.5,121.4 H536.0 Q540.0,121.4 540.0,125.4 V139.4 Q540.0,143.4 536.0,143.4 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;gpt-3.5-turbo-instruct: 0.852%" />
<text class="label" x="546.0" y="136.4">0.852%</text>
<path class="bar" d="M257.5,157.7 H515.1 Q519.1,157.7 519.1,161.7 V175.7 Q519.1,179.7 515.1,179.7 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;LLaMA 65B: 0.789%" />
<text class="label" x="525.1" y="172.7">0.789%</text>
<path class="bar" d="M257.5,194.0 H435.2 Q439.2,194.0 439.2,198.0 V212.0 Q439.2,216.0 435.2,216.0 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;Pythia 6.9B: 0.548%" />
<text class="label" x="445.2" y="209.0">0.548%</text>
<path class="bar" d="M257.5,230.3 H326.4 Q330.4,230.3 330.4,234.3 V248.3 Q330.4,252.3 326.4,252.3 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;GPT-Neo 6B: 0.220%" />
<text class="label" x="336.4" y="245.3">0.220%</text>
<path class="bar" d="M257.5,266.6 H294.0 Q298.0,266.6 298.0,270.6 V284.6 Q298.0,288.6 294.0,288.6 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;Falcon 40B: 0.122%" />
<text class="label" x="304.0" y="281.6">0.122%</text>
<path class="bar" d="M257.5,302.9 H260.8 Q264.1,302.9 264.1,306.2 V321.5 Q264.1,324.9 260.8,324.9 H257.5 Z" data-tip="&lt;b&gt;Memorised&lt;/b&gt;&lt;br&gt;ChatGPT (gpt-3.5-turbo), normal use: 0.020%" />
<text class="label" x="270.1" y="317.9">0.020%</text>
</g>
<text class="subtitle" x="0" y="394">Source: Nasr et al., arXiv 2023 (2311.17035), Tables 1–2. ChatGPT row is the baseline prompting rate before the divergence attack.</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> Open-weight and production language models emit verbatim training data at measurable rates even without an attack. The chat-tuned ChatGPT baseline is low only because the chat format suppresses the behaviour; under the divergence attack its rate rose about 150-fold. Data from [12].</figcaption>
</figure>

<p>Diffusion models memorise images in the same way. A generate-and-filter pipeline recovered more than a thousand near-exact training images, including photographs of named people and corporate logos, from Stable Diffusion and Imagen-class models, and controlled ablations showed diffusion models to be considerably less private than GANs trained on the same data, with duplication again the driver [13].</p>

<h2 id="do-membership-attacks-work-on-llms-at-all">Do membership attacks work on LLMs at all?</h2>

<p>Here the story turns. Extraction is real and getting worse with scale. Per-example membership inference on large language models, by contrast, barely works. Duan et al. [14] evaluated five attacks, including the loss threshold, a reference-model comparison, a zlib ratio, the neighbourhood attack and Min-K% Prob, on Pythia models from 160M to 12B parameters trained on the Pile, with members and non-members drawn from the same distribution. On every domain except GitHub, AUC stayed below 0.6, and mostly between 0.50 and 0.58.</p>

<figure class="fig" id="fig-privacy-mia-llm">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 420" width="860" height="420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Membership inference on a 12B language model is close to a coin flip">
<text class="title" x="0" y="18">Membership inference on a 12B language model is close to a coin flip</text>
<text class="subtitle" x="0" y="38">AUC of four attacks on Pythia-dedup 12B by Pile domain; the temporal Wikipedia split only looks better because its non-members are</text>
<text class="subtitle" x="0" y="56">newer.</text>
<g class="legend s6"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">LOSS</text></g>
<g class="legend s2"><rect class="swatch" x="71.6" y="73" width="12" height="12" rx="2" /><text x="89.6" y="84">Reference model</text></g>
<g class="legend s1"><rect class="swatch" x="219.1" y="73" width="12" height="12" rx="2" /><text x="237.1" y="84">Min-K% Prob</text></g>
<g class="legend s4"><rect class="swatch" x="339.0" y="73" width="12" height="12" rx="2" /><text x="357.0" y="84">zlib</text></g>
<g class="grid">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<line x1="56" x2="836" y1="300.4" y2="300.4" />
<line x1="56" x2="836" y1="248.9" y2="248.9" />
<line x1="56" x2="836" y1="197.3" y2="197.3" />
<line x1="56" x2="836" y1="145.8" y2="145.8" />
</g><g class="axis">
<text x="48" y="356.0" text-anchor="end">0.40</text>
<text x="48" y="304.4" text-anchor="end">0.50</text>
<text x="48" y="252.9" text-anchor="end">0.60</text>
<text x="48" y="201.3" text-anchor="end">0.70</text>
<text x="48" y="149.8" text-anchor="end">0.80</text>
</g>
<text class="axis-title" x="56" y="112" text-anchor="start">AUC</text>
<g class="axis">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<text x="134.0" y="370.0" text-anchor="middle">Wikipedia</text>
<text x="290.0" y="370.0" text-anchor="middle">ArXiv</text>
<text x="446.0" y="370.0" text-anchor="middle">PubMed</text>
<text x="602.0" y="370.0" text-anchor="middle">GitHub</text>
<text x="758.0" y="370.0" text-anchor="middle">Wikipedia</text>
<text x="758.0" y="384.0" text-anchor="middle">(temporal split)</text>
</g>
<line class="ref" x1="56" x2="836" y1="300.4" y2="300.4" />
<text class="annot" x="60" y="295.4" text-anchor="start">chance</text>
<g class="s6">
<path class="bar" d="M85.6,352.0 V296.2 Q85.6,292.2 89.6,292.2 H104.3 Q108.3,292.2 108.3,296.2 V352.0 Z" data-tip="&lt;b&gt;LOSS&lt;/b&gt;&lt;br&gt;Wikipedia: 0.52" />
<path class="bar" d="M241.6,352.0 V290.5 Q241.6,286.5 245.6,286.5 H260.3 Q264.3,286.5 264.3,290.5 V352.0 Z" data-tip="&lt;b&gt;LOSS&lt;/b&gt;&lt;br&gt;ArXiv: 0.53" />
<path class="bar" d="M397.6,352.0 V301.4 Q397.6,297.4 401.6,297.4 H416.3 Q420.3,297.4 420.3,301.4 V352.0 Z" data-tip="&lt;b&gt;LOSS&lt;/b&gt;&lt;br&gt;PubMed: 0.51" />
<path class="bar" d="M553.6,352.0 V212.7 Q553.6,208.7 557.6,208.7 H572.3 Q576.3,208.7 576.3,212.7 V352.0 Z" data-tip="&lt;b&gt;LOSS&lt;/b&gt;&lt;br&gt;GitHub: 0.68" />
<path class="bar" d="M709.6,352.0 V211.6 Q709.6,207.6 713.6,207.6 H728.3 Q732.3,207.6 732.3,211.6 V352.0 Z" data-tip="&lt;b&gt;LOSS&lt;/b&gt;&lt;br&gt;Wikipedia (temporal split): 0.68" />
</g>
<g class="s2">
<path class="bar" d="M110.3,352.0 V263.7 Q110.3,259.7 114.3,259.7 H129.0 Q133.0,259.7 133.0,263.7 V352.0 Z" data-tip="&lt;b&gt;Reference model&lt;/b&gt;&lt;br&gt;Wikipedia: 0.58" />
<path class="bar" d="M266.3,352.0 V276.1 Q266.3,272.1 270.3,272.1 H285.0 Q289.0,272.1 289.0,276.1 V352.0 Z" data-tip="&lt;b&gt;Reference model&lt;/b&gt;&lt;br&gt;ArXiv: 0.56" />
<path class="bar" d="M422.3,352.0 V274.0 Q422.3,270.0 426.3,270.0 H441.0 Q445.0,270.0 445.0,274.0 V352.0 Z" data-tip="&lt;b&gt;Reference model&lt;/b&gt;&lt;br&gt;PubMed: 0.56" />
<path class="bar" d="M578.3,352.0 V274.0 Q578.3,270.0 582.3,270.0 H597.0 Q601.0,270.0 601.0,274.0 V352.0 Z" data-tip="&lt;b&gt;Reference model&lt;/b&gt;&lt;br&gt;GitHub: 0.56" />
<path class="bar" d="M734.3,352.0 V151.8 Q734.3,147.8 738.3,147.8 H753.0 Q757.0,147.8 757.0,151.8 V352.0 Z" data-tip="&lt;b&gt;Reference model&lt;/b&gt;&lt;br&gt;Wikipedia (temporal split): 0.80" />
</g>
<g class="s1">
<path class="bar" d="M135.0,352.0 V295.7 Q135.0,291.7 139.0,291.7 H153.7 Q157.7,291.7 157.7,295.7 V352.0 Z" data-tip="&lt;b&gt;Min-K% Prob&lt;/b&gt;&lt;br&gt;Wikipedia: 0.52" />
<path class="bar" d="M291.0,352.0 V289.0 Q291.0,285.0 295.0,285.0 H309.7 Q313.7,285.0 313.7,289.0 V352.0 Z" data-tip="&lt;b&gt;Min-K% Prob&lt;/b&gt;&lt;br&gt;ArXiv: 0.53" />
<path class="bar" d="M447.0,352.0 V298.3 Q447.0,294.3 451.0,294.3 H465.7 Q469.7,294.3 469.7,298.3 V352.0 Z" data-tip="&lt;b&gt;Min-K% Prob&lt;/b&gt;&lt;br&gt;PubMed: 0.51" />
<path class="bar" d="M603.0,352.0 V210.1 Q603.0,206.1 607.0,206.1 H621.7 Q625.7,206.1 625.7,210.1 V352.0 Z" data-tip="&lt;b&gt;Min-K% Prob&lt;/b&gt;&lt;br&gt;GitHub: 0.68" />
<path class="bar" d="M759.0,352.0 V191.5 Q759.0,187.5 763.0,187.5 H777.7 Q781.7,187.5 781.7,191.5 V352.0 Z" data-tip="&lt;b&gt;Min-K% Prob&lt;/b&gt;&lt;br&gt;Wikipedia (temporal split): 0.72" />
</g>
<g class="s4">
<path class="bar" d="M159.7,352.0 V292.1 Q159.7,288.1 163.7,288.1 H178.4 Q182.4,288.1 182.4,292.1 V352.0 Z" data-tip="&lt;b&gt;zlib&lt;/b&gt;&lt;br&gt;Wikipedia: 0.52" />
<path class="bar" d="M315.7,352.0 V293.6 Q315.7,289.6 319.7,289.6 H334.4 Q338.4,289.6 338.4,293.6 V352.0 Z" data-tip="&lt;b&gt;zlib&lt;/b&gt;&lt;br&gt;ArXiv: 0.52" />
<path class="bar" d="M471.7,352.0 V301.4 Q471.7,297.4 475.7,297.4 H490.4 Q494.4,297.4 494.4,301.4 V352.0 Z" data-tip="&lt;b&gt;zlib&lt;/b&gt;&lt;br&gt;PubMed: 0.51" />
<path class="bar" d="M627.7,352.0 V206.5 Q627.7,202.5 631.7,202.5 H646.4 Q650.4,202.5 650.4,206.5 V352.0 Z" data-tip="&lt;b&gt;zlib&lt;/b&gt;&lt;br&gt;GitHub: 0.69" />
<path class="bar" d="M783.7,352.0 V249.3 Q783.7,245.3 787.7,245.3 H802.4 Q806.4,245.3 806.4,249.3 V352.0 Z" data-tip="&lt;b&gt;zlib&lt;/b&gt;&lt;br&gt;Wikipedia (temporal split): 0.61" />
</g>
<text class="subtitle" x="0" y="414">Source: Duan et al., COLM 2024, Tables 1 and 3</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> Membership inference on Pythia-dedup 12B. On natural splits of Wikipedia, ArXiv and PubMed every attack is within a few hundredths of chance. GitHub, where non-members share 77% of their 7-grams with the training set, is the exception. The temporal Wikipedia split reaches 0.80 because the non-members were written after the model's cut-off, which is distribution shift, not membership. Data from [14].</figcaption>
</figure>

<p>The paper gives two reasons. Modern LLMs see most of their data once, so the overfitting signal that Yeom’s theorem relies on is weak. And the boundary between member and non-member is fuzzy: Wikipedia non-members share 32.5% of their 7-grams with the training set, PubMed non-members 41%. When the authors restricted non-members to those with at most 20% overlap, the loss attack’s AUC on ArXiv rose from 0.527 to 0.787, which is the same lesson from the other side: the attack detects <em>similarity to training data</em>, not membership.</p>

<p>That observation cuts against the most-used detector. Min-K% Prob [15] scores a text by the mean log-probability of its 20% least-likely tokens, and reports an AUC of 0.72 on WikiMIA, a benchmark whose non-members are Wikipedia pages written after 2023. The same paper used the method to argue that GPT-3 had seen Books3 (validation AUC 0.88 on copyrighted books) and to audit a Llama-2 model that had supposedly “unlearned” Harry Potter, finding passages the unlearning had missed. Both uses are informative. But WikiMIA is itself a temporal split, so its headline number is precisely the kind Duan et al. warn is inflated.</p>

<p>The constructive response is to aggregate. Maini et al. [16] show that an author who cannot prove any single passage was trained on can still run a hypothesis test over their whole corpus: weak per-example signals, combined across a dataset, separate Pile train and test subsets at p &lt; 0.1 with no false positives, while the same signals on single examples are at chance. For a model trained once over a trillion tokens, “did you train on my sentence” is nearly unanswerable and “did you train on my book” is not.</p>

<div class="callout">
<div class="callout-title">A live disagreement</div>
<p>One camp, broadly the authors of [4, 12] and [14], holds that per-example membership inference on well-generalised, single-epoch language models is close to impossible and that extraction is the real risk. The other, represented by the Min-K% and WikiMIA line [15], keeps reporting usable AUCs. The critics attribute those numbers to distribution shift between the member and non-member sets. The disagreement is partly about benchmarks and partly about what "membership" means for a sequence that overlaps 40% of its n-grams with the training set.</p>
</div>

<h2 id="defenses-that-have-numbers">Defenses that have numbers</h2>

<p>Ranked by the strength of the evidence behind them:</p>

<p><strong>Deduplication.</strong> Lee et al. [17] found that more than 1% of the unprompted output of models trained on standard corpora is verbatim training text, that one 61-word sentence occurs more than 60,000 times in C4, and that deduplicating the corpus cuts memorised emissions by about tenfold. Kandpal et al. [18] showed the relationship is superlinear: a sequence present ten times is roughly a thousand times more likely to be generated than one present once, and existing membership attacks are at chance on sequences seen once. Deduplication is the cheapest intervention and the best-supported.</p>

<p><strong>Differentially private training.</strong> DP-SGD [19] is the only defense with a proof, and the proof is about membership: the ε bounds the advantage of any membership adversary. Empirically the picture is more interesting than the proof. On CIFAR-10, LiRA’s AUC against a model trained with clipping alone falls from 0.674 to 0.527 as the clipping norm tightens, and a small noise multiplier of σ = 0.2 brings it to about 0.52 at a cost of ten points of test accuracy, while the ε that the accountant certifies at that noise level is enormous [4]. The attack is far weaker than the worst case the guarantee covers. The next post in this series is about what the guarantee says and what it costs.</p>

<p><strong>Output-side mitigations.</strong> Rounding confidences to 0.05 defeats the 2015 black-box inversion attack [6]; dropout and model stacking halve ML-Leaks precision on CIFAR-100 [3]. These stop specific attacks and should not be expected to stop adaptive ones.</p>

<p><strong>Unlearning.</strong> Requested by regulation and routinely audited with Min-K%-style tests, which tend to find what the unlearning missed [15]. There is no equivalent of a differential-privacy guarantee for it yet.</p>

<p>What none of these address is the mechanism underneath: capacity enables memorisation, and memorisation creates an extraction surface. Every scaling law in [11] points the same way. The design question for a deployed model is not whether it memorised, but how much you were willing to trade for the capability that came with it.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Four different leaks hide under the word "privacy": membership, attributes, dataset properties and verbatim content. They have different attacks, defenses and success rates.</li>
<li>Report membership inference as TPR at a low FPR on a log-log ROC. Balanced accuracy and AUC hide the only attacks that matter.</li>
<li>Extraction from language models scales with parameters, duplication and context length, and alignment hides it rather than removing it. Deduplicate.</li>
<li>Per-example membership inference on single-epoch LLMs is close to chance; apparent successes usually measure distribution shift. Aggregate across a dataset instead.</li>
<li>Differential privacy is the only defense with a proof, and in practice attacks fall far short of the bound it certifies.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Shokri, Stronati, Song, Shmatikov. <em>Membership Inference Attacks against Machine Learning Models.</em> IEEE S&amp;P 2017. <a href="https://arxiv.org/abs/1610.05820">arXiv:1610.05820</a></li>
<li>Yeom, Giacomelli, Fredrikson, Jha. <em>Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting.</em> IEEE CSF 2018. <a href="https://arxiv.org/abs/1709.01604">arXiv:1709.01604</a></li>
<li>Salem, Zhang, Humbert, Berrang, Fritz, Backes. <em>ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Models.</em> NDSS 2019. <a href="https://arxiv.org/abs/1806.01246">arXiv:1806.01246</a></li>
<li>Carlini, Chien, Nasr, Song, Terzis, Tramèr. <em>Membership Inference Attacks From First Principles.</em> IEEE S&amp;P 2022. <a href="https://arxiv.org/abs/2112.03570">arXiv:2112.03570</a></li>
<li>Fredrikson, Lantz, Jha, Lin, Page, Ristenpart. <em>Privacy in Pharmacogenetics: An End-to-End Case Study of Personalized Warfarin Dosing.</em> USENIX Security 2014. <a href="https://www.usenix.org/conference/usenixsecurity14/technical-sessions/presentation/fredrikson_matthew">USENIX</a></li>
<li>Fredrikson, Jha, Ristenpart. <em>Model Inversion Attacks that Exploit Confidence Information and Basic Countermeasures.</em> ACM CCS 2015. <a href="https://dl.acm.org/doi/10.1145/2810103.2813677">doi:10.1145/2810103.2813677</a></li>
<li>Zhang, Jia, Pei, Wang, Li, Song. <em>The Secret Revealer: Generative Model-Inversion Attacks Against Deep Neural Networks.</em> CVPR 2020. <a href="https://arxiv.org/abs/1911.07135">arXiv:1911.07135</a></li>
<li>Ateniese, Mancini, Spognardi, Villani, Vitali, Felici. <em>Hacking Smart Machines with Smarter Ones: How to Extract Meaningful Data from Machine Learning Classifiers.</em> Int. J. Security and Networks 2015. <a href="https://arxiv.org/abs/1306.4447">arXiv:1306.4447</a></li>
<li>Ganju, Wang, Yang, Gunter, Borisov. <em>Property Inference Attacks on Fully Connected Neural Networks using Permutation Invariant Representations.</em> ACM CCS 2018. <a href="https://dl.acm.org/doi/10.1145/3243734.3243834">doi:10.1145/3243734.3243834</a></li>
<li>Carlini, Tramèr, Wallace et al. <em>Extracting Training Data from Large Language Models.</em> USENIX Security 2021. <a href="https://arxiv.org/abs/2012.07805">arXiv:2012.07805</a></li>
<li>Carlini, Ippolito, Jagielski, Lee, Tramèr, Zhang. <em>Quantifying Memorization Across Neural Language Models.</em> ICLR 2023. <a href="https://arxiv.org/abs/2202.07646">arXiv:2202.07646</a></li>
<li>Nasr, Carlini, Hayase et al. <em>Scalable Extraction of Training Data from (Production) Language Models.</em> arXiv 2023. <a href="https://arxiv.org/abs/2311.17035">arXiv:2311.17035</a></li>
<li>Carlini, Hayes, Nasr et al. <em>Extracting Training Data from Diffusion Models.</em> USENIX Security 2023. <a href="https://www.usenix.org/conference/usenixsecurity23/presentation/carlini">USENIX</a></li>
<li>Duan, Suri, Mireshghallah et al. <em>Do Membership Inference Attacks Work on Large Language Models?</em> COLM 2024. <a href="https://arxiv.org/abs/2402.07841">arXiv:2402.07841</a></li>
<li>Shi, Ajith, Xia et al. <em>Detecting Pretraining Data from Large Language Models.</em> ICLR 2024. <a href="https://arxiv.org/abs/2310.16789">arXiv:2310.16789</a></li>
<li>Maini, Jia, Papernot, Dziedzic. <em>LLM Dataset Inference: Did you train on my dataset?</em> NeurIPS 2024. <a href="https://neurips.cc/virtual/2024/poster/95944">NeurIPS</a></li>
<li>Lee, Ippolito, Nystrom et al. <em>Deduplicating Training Data Makes Language Models Better.</em> ACL 2022. <a href="https://aclanthology.org/2022.acl-long.577">ACL Anthology</a></li>
<li>Kandpal, Wallace, Raffel. <em>Deduplicating Training Data Mitigates Privacy Risks in Language Models.</em> ICML 2022. <a href="https://proceedings.mlr.press/v162/kandpal22a.html">PMLR 162</a></li>
<li>Abadi, Chu, Goodfellow, McMahan, Mironov, Talwar, Zhang. <em>Deep Learning with Differential Privacy.</em> ACM CCS 2016. <a href="https://arxiv.org/abs/1607.00133">arXiv:1607.00133</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Privacy" /><category term="privacy" /><category term="membership-inference" /><category term="model-inversion" /><category term="memorization" /><category term="LLMs" /><summary type="html"><![CDATA[A hospital trains a readmission model on patient records and deploys it behind an API. Clinicians send features in and get a risk score out. No records leave the building, no weights are published. The question this post is about is what an outsider with only that API can learn about the patients, and the answer, worked out over about a decade, is: more than you would like, in several distinct ways.]]></summary></entry><entry><title type="html">Evasion Attacks and the Geometry of Adversarial Examples</title><link href="https://cymtrick.github.io/2025/11/18/evasion-attacks-fgsm/" rel="alternate" type="text/html" title="Evasion Attacks and the Geometry of Adversarial Examples" /><published>2025-11-18T00:00:00+00:00</published><updated>2025-11-18T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/11/18/evasion-attacks-fgsm</id><content type="html" xml:base="https://cymtrick.github.io/2025/11/18/evasion-attacks-fgsm/"><![CDATA[<p>In December 2013, Szegedy and colleagues posted a paper with a deliberately understated title, <em>Intriguing properties of neural networks</em> [1]. One of the properties was this: take an image a network classifies correctly, solve a small optimisation problem to find the nearest input it classifies as something else, and the result is indistinguishable from the original to a person. The perturbation was not noise. Gaussian noise of a larger magnitude barely moved the predictions; the optimised perturbation moved them completely. Worse, the same perturbation often fooled a <em>different</em> network, trained on different data.</p>

<p>That second observation, transferability, is the one that turned an intriguing property into a security problem. It meant you did not need the model to attack the model. Most of what has happened since, from the fast attacks of 2015 to the adaptive-evaluation crisis of 2018 to the 74%-robust CIFAR-10 models of today, follows from trying to understand why these inputs exist and how much it costs to remove them.</p>

<h2 id="the-panda-at-ε--0007">The panda, at ε = 0.007</h2>

<p>The canonical example comes from Goodfellow, Shlens and Szegedy’s follow-up [2]. A GoogLeNet classifies an image as “panda” with 57.7% confidence. Add a perturbation of magnitude ε = 0.007 per pixel, which the authors note is below the smallest step of an 8-bit image encoding, and the same network reports “gibbon” at 99.3%. The perturbation looks like static. The classification is not merely wrong; it is wrong with more confidence than the correct answer had.</p>

<table>
  <tbody>
    <tr>
      <td>The paper’s main contribution, though, was an explanation. Szegedy et al. had suggested the phenomenon came from the networks being too non-linear, with small “pockets” of misclassification scattered through input space. Goodfellow et al. argued the opposite. Consider a linear model with weights w acting on an input x, and perturb it by η = ε·sign(w). Each coordinate of η is tiny, bounded by ε, but the dot product w·η sums over all m input dimensions and grows as ε·m·avg</td>
      <td>wᵢ</td>
      <td>. In a 150,000-dimensional image, a per-pixel change that no one can see produces a change in the pre-activation that dominates everything else. Deep networks, which are built from near-linear pieces and are deliberately trained to behave linearly for optimisation’s sake, inherit this property. This is the <strong>linearity hypothesis</strong>, and it is still the standard first explanation.</td>
    </tr>
  </tbody>
</table>

<figure class="fig" id="fig-evasion-boundary">
  <div class="fig-frame"><svg class="diagram" viewBox="0 0 860 330" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Left: a small perturbation crosses a decision boundary in input space. Right: why the logit shift grows with dimension under the linearity hypothesis.">
  <defs>
    <marker id="ah" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor" /></marker>
  </defs>
  <!-- Left panel: input space -->
  <text x="0" y="18" style="font-weight:600">In input space: a step of size ε</text>
  <g transform="translate(0,34)">
    <rect class="region-a" x="0" y="0" width="200" height="240" rx="4" />
    <rect class="region-b" x="200" y="0" width="200" height="240" rx="4" />
    <path class="boundary" d="M200,0 C 215,60 185,120 205,180 C 212,210 200,230 200,240" />
    <text class="small muted" x="16" y="22">predicted “panda”</text>
    <text class="small muted" x="300" y="22" text-anchor="middle">predicted “gibbon”</text>
    <!-- data cloud -->
    <g fill="var(--s2)" opacity="0.25">
      <circle cx="60" cy="110" r="5" /><circle cx="90" cy="150" r="5" /><circle cx="45" cy="170" r="5" /><circle cx="120" cy="90" r="5" /><circle cx="80" cy="70" r="5" /><circle cx="135" cy="160" r="5" />
    </g>
    <circle class="pt" cx="150" cy="120" r="7" />
    <text class="mono" x="150" y="150" text-anchor="middle">x</text>
    <line class="arrow-accent" x1="158" y1="120" x2="222" y2="120" marker-end="url(#ah)" style="color:var(--accent)" />
    <text class="mono small" x="188" y="108" text-anchor="middle" style="fill:var(--accent)">+ ε·sign(∇ₓL)</text>
    <circle class="pt-adv" cx="232" cy="120" r="7" />
    <text class="mono" x="236" y="150" text-anchor="middle">x + η</text>
    <text class="small muted" x="0" y="265">‖η‖∞ = ε = 0.007 for the GoogLeNet panda</text>
  </g>
  <!-- Right panel: linearity -->
  <text x="460" y="18" style="font-weight:600">In logit space: the same step, summed over m dimensions</text>
  <g transform="translate(460,34)">
    <line class="arrow" x1="0" y1="200" x2="380" y2="200" marker-end="url(#ah)" style="color:var(--ink-2)" />
    <line class="arrow" x1="0" y1="200" x2="0" y2="10" marker-end="url(#ah)" style="color:var(--ink-2)" />
    <text class="small muted" x="380" y="222" text-anchor="end">input dimension m</text>
    <text class="small muted" x="8" y="12">logit shift w·η</text>
    <!-- linear growth -->
    <path d="M0,200 L360,40" stroke="var(--s1)" stroke-width="2" fill="none" />
    <text class="small" x="250" y="90" style="fill:var(--ink)">ε · m · avg|wᵢ|</text>
    <!-- random noise reference -->
    <path d="M0,200 C 60,170 120,160 360,150" stroke="var(--s6)" stroke-width="2" fill="none" stroke-dasharray="5 4" />
    <text class="small muted" x="230" y="140">random noise: ~ ε·√m</text>
    <text class="small muted" x="0" y="248">η = ε·sign(w) is tiny per pixel, large in total</text>
  </g>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> Two views of the same step. Left: in input space the perturbation η is a nudge of size ε per pixel, just enough to cross the decision boundary. Right: under the linearity hypothesis the effect on the logit scales with the dimension m, whereas random noise of the same per-pixel size only scales with √m. Redrawn from the argument in [2].</figcaption>
</figure>

<p>The hypothesis also yields an attack. If the model is locally linear, then the direction that increases the loss fastest under an L∞ budget is simply the sign of the gradient:</p>

<div class="math"><div class="math-label">Fast Gradient Sign Method (FGSM), Goodfellow et al. 2015</div>x_adv = x + ε · sign(∇ₓ L(θ, x, y))</div>

<p>One gradient evaluation, one step. On MNIST with ε = 0.25, FGSM pushes a shallow softmax classifier to a 99.9% error rate with 79.3% average confidence in the wrong answer, and a maxout network to 89.4% error at 97.6% confidence. On CIFAR-10 with ε = 0.1, a convolutional maxout network is wrong 87.15% of the time [2]. The targeted variant subtracts the gradient of the loss with respect to the <em>desired</em> label instead of adding the gradient of the true one; everything else is the same.</p>

<p>DeepFool [6] made the geometric picture operational in a different way: linearise the classifier around the input, step to the nearest linearised boundary, repeat, and read off a near-minimal L2 perturbation as a robustness measure for the model.</p>

<p>A note on units, because they are a modelling decision rather than a law. The field settled on a handful of threat models: L∞ with ε = 8/255 ≈ 0.031 on CIFAR-10, 4/255 on ImageNet and 0.3 on MNIST, or L2 with ε = 0.5 on CIFAR-10. Carlini and Wagner’s attacks [3] exist in L0, L2 and L∞ versions precisely because the metric changes the answer, and they used them to show that <em>defensive distillation</em>, which had claimed to cut attack success from roughly 95% to 0.5%, provided no robustness at all: their attacks succeeded 100% of the time against distilled and undistilled networks alike.</p>

<h2 id="from-one-step-to-the-saddle-point">From one step to the saddle point</h2>

<p>FGSM is a single linear step, and a network is not globally linear. The natural improvement, introduced by Kurakin, Goodfellow and Bengio [7], is to take several smaller steps, projecting back onto the ε-ball after each. Madry and colleagues [4] framed this not as an attack but as a training objective:</p>

<div class="math"><div class="math-label">Robust optimisation (Madry et al. 2018)</div>min_θ  E_(x,y) [ max_{‖δ‖∞ ≤ ε} L(θ, x + δ, y) ]</div>

<p>The inner maximisation is solved approximately by <strong>projected gradient descent (PGD)</strong> from random starting points inside the ball; the outer minimisation is ordinary training on the resulting worst-case inputs. The empirical observation that justified the whole approach was that PGD runs from many random starts converge to loss values that are tightly concentrated. There did not appear to be much worse adversaries hiding in the ε-ball than the ones PGD finds, which is why the paper calls PGD a “universal first-order adversary.”</p>

<p>The numbers set a reference point that lasted five years. On CIFAR-10 at ε = 8/255, a standard WideResNet reaches 95.2% clean accuracy and 3.5% under a 20-step PGD attack. The PGD-trained version reaches 87.3% clean and 45.8% under the same attack [4]. Adversarial training works, and it costs eight points of clean accuracy.</p>

<figure class="fig" id="fig-evasion-advtrain">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="What adversarial training buys, and what it costs">
<text class="title" x="0" y="18">What adversarial training buys, and what it costs</text>
<text class="subtitle" x="0" y="38">CIFAR-10, WideResNet, L∞ ε = 8/255. Accuracy of a standard model and a PGD-trained model under each attack.</text>
<g class="legend s6"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">Standard training</text></g>
<g class="legend s1"><rect class="swatch" x="161.3" y="55" width="12" height="12" rx="2" /><text x="179.3" y="66">PGD adversarial training</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="278.0" y2="278.0" />
<line x1="56" x2="836" y1="224.0" y2="224.0" />
<line x1="56" x2="836" y1="170.0" y2="170.0" />
<line x1="56" x2="836" y1="116.0" y2="116.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0.0%</text>
<text x="48" y="282.0" text-anchor="end">25.0%</text>
<text x="48" y="228.0" text-anchor="end">50.0%</text>
<text x="48" y="174.0" text-anchor="end">75.0%</text>
<text x="48" y="120.0" text-anchor="end">100.0%</text>
</g>
<text class="axis-title" x="56" y="108" text-anchor="start">Accuracy (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="153.5" y="350.0" text-anchor="middle">No attack</text>
<text x="348.5" y="350.0" text-anchor="middle">FGSM</text>
<text x="543.5" y="350.0" text-anchor="middle">PGD (7 steps)</text>
<text x="738.5" y="350.0" text-anchor="middle">PGD (20 steps)</text>
</g>
<g class="s6">
<path class="bar" d="M128.5,332.0 V130.4 Q128.5,126.4 132.5,126.4 H148.5 Q152.5,126.4 152.5,130.4 V332.0 Z" data-tip="&lt;b&gt;Standard training&lt;/b&gt;&lt;br&gt;No attack: 95.2%" />
<text class="label" x="140.5" y="120.4" text-anchor="middle">95.2%</text>
<path class="bar" d="M323.5,332.0 V265.4 Q323.5,261.4 327.5,261.4 H343.5 Q347.5,261.4 347.5,265.4 V332.0 Z" data-tip="&lt;b&gt;Standard training&lt;/b&gt;&lt;br&gt;FGSM: 32.7%" />
<text class="label" x="335.5" y="255.4" text-anchor="middle">32.7%</text>
<path class="bar" d="M518.5,332.0 V327.1 Q518.5,323.1 522.5,323.1 H538.5 Q542.5,323.1 542.5,327.1 V332.0 Z" data-tip="&lt;b&gt;Standard training&lt;/b&gt;&lt;br&gt;PGD (7 steps): 4.1%" />
<text class="label" x="530.5" y="317.1" text-anchor="middle">4.1%</text>
<path class="bar" d="M713.5,332.0 V328.2 Q713.5,324.4 717.3,324.4 H733.7 Q737.5,324.4 737.5,328.2 V332.0 Z" data-tip="&lt;b&gt;Standard training&lt;/b&gt;&lt;br&gt;PGD (20 steps): 3.5%" />
<text class="label" x="725.5" y="318.4" text-anchor="middle">3.5%</text>
</g>
<g class="s1">
<path class="bar" d="M154.5,332.0 V147.4 Q154.5,143.4 158.5,143.4 H174.5 Q178.5,143.4 178.5,147.4 V332.0 Z" data-tip="&lt;b&gt;PGD adversarial training&lt;/b&gt;&lt;br&gt;No attack: 87.3%" />
<text class="label" x="166.5" y="137.4" text-anchor="middle">87.3%</text>
<path class="bar" d="M349.5,332.0 V214.8 Q349.5,210.8 353.5,210.8 H369.5 Q373.5,210.8 373.5,214.8 V332.0 Z" data-tip="&lt;b&gt;PGD adversarial training&lt;/b&gt;&lt;br&gt;FGSM: 56.1%" />
<text class="label" x="361.5" y="204.8" text-anchor="middle">56.1%</text>
<path class="bar" d="M544.5,332.0 V228.0 Q544.5,224.0 548.5,224.0 H564.5 Q568.5,224.0 568.5,228.0 V332.0 Z" data-tip="&lt;b&gt;PGD adversarial training&lt;/b&gt;&lt;br&gt;PGD (7 steps): 50.0%" />
<text class="label" x="556.5" y="218.0" text-anchor="middle">50.0%</text>
<path class="bar" d="M739.5,332.0 V237.1 Q739.5,233.1 743.5,233.1 H759.5 Q763.5,233.1 763.5,237.1 V332.0 Z" data-tip="&lt;b&gt;PGD adversarial training&lt;/b&gt;&lt;br&gt;PGD (20 steps): 45.8%" />
<text class="label" x="751.5" y="227.1" text-anchor="middle">45.8%</text>
</g>
<text class="subtitle" x="0" y="394">Source: Madry et al., ICLR 2018, Tables 2 and 5</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> Adversarial training on CIFAR-10 at ε = 8/255. The standard model collapses under any gradient attack; the PGD-trained model keeps roughly half its accuracy under the strongest attack in the paper, at the price of eight points on clean data. Under the stronger AutoAttack ensemble the same model's robust accuracy is later measured at 44.04% [13]. Data from [4], Tables 2 and 5.</figcaption>
</figure>

<p>Why should robustness cost clean accuracy? Tsipras et al. [18] gave a clean theoretical account: in a simple Gaussian model, a classifier that is robust must give up weakly predictive features that an adversary can flip, and those features are exactly what standard training exploits for its last few points of accuracy. Ilyas et al. [17] made the complementary empirical argument with a striking experiment. They built a training set consisting <em>only</em> of adversarial perturbations, labelled with the adversarial target class, so that every image looked to a human like the wrong class. A network trained on it generalised to the clean test set. The perturbations carry predictive signal. On this reading adversarial examples are not bugs in the model but features of the data distribution that humans do not perceive, which also explains transferability: every model trained on the same data learns the same non-robust features.</p>

<p>Whether the trade-off is <em>fundamental</em> is a live disagreement, and the lead figure is the reason. The 2023–24 CIFAR-10 leaders sit at 93–95% clean accuracy with 70–74% robust accuracy, far above Madry’s 87.3%. Most of the early gap was data and capacity, not an intrinsic price. I return to this below.</p>

<h2 id="attacking-without-the-gradient">Attacking without the gradient</h2>

<p>Everything above assumes white-box access: you can differentiate through the model. The practical question in 2016 was whether a model behind an API was safe. Papernot et al. first showed that transfer is systematic rather than accidental [16], then answered the question directly [5] by training a <em>substitute</em> model on labels obtained by querying the target, crafting adversarial examples against the substitute, and transferring them. Against commercial APIs the results were 84.24% misclassification on MetaMind, 96.19% on Amazon Machine Learning and 88.94% on Google’s prediction service, the latter two using logistic-regression substitutes with a few hundred to a few thousand queries. No gradient access is not a defense.</p>

<p>A second family skips the substitute and estimates gradients directly from the target’s outputs. ZOO [8] uses coordinate-wise finite differences on confidence scores and matches white-box Carlini–Wagner attacks. Ilyas et al. [9] used natural evolution strategies and formalised three realistic threat models, with query costs for targeted attacks on an ImageNet InceptionV3 that are worth remembering: a median of 11,550 queries when the full score vector is available, 49,624 when only the top-k scores are, and 2.7 million when only the label is. A third family needs nothing but the top label. The Boundary Attack [10] starts from an input that is already adversarial and random-walks along the decision boundary toward the original; HopSkipJump [11] adds a Monte Carlo estimate of the boundary’s normal and needs far fewer queries.</p>

<p>The surprise of 2020 was that the best black-box attack was none of these. Square Attack [12] is random search with localised square-shaped updates, and on ImageNet at ε = 0.05 it fails on 0.3%, 0.0% and 0.0% of images against Inception-v3, ResNet-50 and VGG-16 with <em>median</em> query counts of 24, 11 and 1. A single query. It also has a property that turned out to matter more than its efficiency: because it uses no gradient at all, it is immune to the family of defenses discussed next.</p>

<table>
  <thead>
    <tr>
      <th>Attack</th>
      <th>Information needed</th>
      <th>Targeted ImageNet, median queries</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>NES, query-limited [9]</td>
      <td>full score vector</td>
      <td>11,550</td>
    </tr>
    <tr>
      <td>NES, partial information [9]</td>
      <td>top-k scores</td>
      <td>49,624</td>
    </tr>
    <tr>
      <td>NES, label-only [9]</td>
      <td>top label</td>
      <td>2,700,000</td>
    </tr>
    <tr>
      <td>Square Attack (untargeted) [12]</td>
      <td>top label / score</td>
      <td>1–24</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">Query costs of black-box attacks against ImageNet classifiers. The NES rows are targeted attacks under three threat models; the Square Attack row is untargeted. The table is about orders of magnitude, not a head-to-head.</p>

<h2 id="the-evaluation-crisis">The evaluation crisis</h2>

<p>Between 2016 and 2018 dozens of defenses were published, many at top venues, most of them broken within months. Athalye, Carlini and Wagner [14] examined the nine defenses accepted at ICLR 2018 and found that seven of them relied on <strong>obfuscated gradients</strong>: the defense made the gradient useless to an attacker without making the model robust. They identified three mechanisms. <em>Shattered</em> gradients come from non-differentiable preprocessing such as thermometer encoding or JPEG compression. <em>Stochastic</em> gradients come from test-time randomness. <em>Vanishing or exploding</em> gradients come from very deep unrolled computations such as a generative model run to convergence. For each they gave a fix: approximate the non-differentiable step with the identity on the backward pass (BPDA), optimise the expectation over the randomness (EOT), or reparameterise. Six of the seven defenses were broken completely and one partially. The two that survived were both forms of adversarial training.</p>

<figure class="fig" id="fig-evasion-obfuscated">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 430" width="860" height="430" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Seven of nine ICLR 2018 defenses relied on obfuscated gradients">
<text class="title" x="0" y="18">Seven of nine ICLR 2018 defenses relied on obfuscated gradients</text>
<text class="subtitle" x="0" y="38">Robust accuracy each defense claimed, and what remained after an adaptive attack (BPDA / EOT). Only the two adversarial-training</text>
<text class="subtitle" x="0" y="56">entries survived.</text>
<g class="legend s6"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">Claimed</text></g>
<g class="legend s1"><rect class="swatch" x="92.30000000000001" y="73" width="12" height="12" rx="2" /><text x="110.30000000000001" y="84">After adaptive attack</text></g>
<g class="grid">
<line y1="120" y2="362" x1="250.6" x2="250.6" />
<line y1="120" y2="362" x1="358.1" x2="358.1" />
<line y1="120" y2="362" x1="465.6" x2="465.6" />
<line y1="120" y2="362" x1="573.0" x2="573.0" />
<line y1="120" y2="362" x1="680.5" x2="680.5" />
<line y1="120" y2="362" x1="788.0" x2="788.0" />
</g><g class="axis">
<text x="250.6" y="380" text-anchor="middle">0%</text>
<text x="358.1" y="380" text-anchor="middle">20%</text>
<text x="465.6" y="380" text-anchor="middle">40%</text>
<text x="573.0" y="380" text-anchor="middle">60%</text>
<text x="680.5" y="380" text-anchor="middle">80%</text>
<text x="788.0" y="380" text-anchor="middle">100%</text>
<text x="240.60000000000002" y="137.4" text-anchor="end" style="fill:var(--ink-2)">Thermometer encoding</text>
<text x="240.60000000000002" y="164.3" text-anchor="end" style="fill:var(--ink-2)">Input transformations</text>
<text x="240.60000000000002" y="191.2" text-anchor="end" style="fill:var(--ink-2)">PixelDefend</text>
<text x="240.60000000000002" y="218.1" text-anchor="end" style="fill:var(--ink-2)">LID detection</text>
<text x="240.60000000000002" y="245.0" text-anchor="end" style="fill:var(--ink-2)">Stochastic activation pruning</text>
<text x="240.60000000000002" y="271.9" text-anchor="end" style="fill:var(--ink-2)">Randomization</text>
<text x="240.60000000000002" y="298.8" text-anchor="end" style="fill:var(--ink-2)">Defense-GAN</text>
<text x="240.60000000000002" y="325.7" text-anchor="end" style="fill:var(--ink-2)">Cascade adv. training (not broken)</text>
<text x="240.60000000000002" y="352.6" text-anchor="end" style="fill:var(--ink-2)">Madry adv. training (not broken)</text>
</g>
<text class="axis-title" x="788.0" y="398" text-anchor="end">Robust accuracy (%)</text>
<g class="s6">
<path class="bar" d="M250.6,124.6 H676.5 Q680.5,124.6 680.5,128.6 V128.4 Q680.5,132.4 676.5,132.4 H250.6 Z" data-tip="&lt;b&gt;Claimed&lt;/b&gt;&lt;br&gt;Thermometer encoding: 80%" />
<text class="label" x="686.5" y="132.5">80%</text>
<path class="bar" d="M250.6,151.5 H569.0 Q573.0,151.5 573.0,155.5 V155.3 Q573.0,159.3 569.0,159.3 H250.6 Z" data-tip="&lt;b&gt;Claimed&lt;/b&gt;&lt;br&gt;Input transformations: 60%" />
<text class="label" x="579.0" y="159.4">60%</text>
<path class="bar" d="M250.6,178.3 H493.8 Q497.8,178.3 497.8,182.3 V182.2 Q497.8,186.2 493.8,186.2 H250.6 Z" data-tip="&lt;b&gt;Claimed&lt;/b&gt;&lt;br&gt;PixelDefend: 46%" />
<text class="label" x="503.8" y="186.3">46%</text>
<path class="bar" d="M250.6,312.8 H332.6 Q336.6,312.8 336.6,316.8 V316.7 Q336.6,320.7 332.6,320.7 H250.6 Z" data-tip="&lt;b&gt;Claimed&lt;/b&gt;&lt;br&gt;Cascade adv. training (not broken): 16%" />
<text class="label" x="342.6" y="320.7">16%</text>
<path class="bar" d="M250.6,339.7 H499.2 Q503.2,339.7 503.2,343.7 V343.6 Q503.2,347.6 499.2,347.6 H250.6 Z" data-tip="&lt;b&gt;Claimed&lt;/b&gt;&lt;br&gt;Madry adv. training (not broken): 47%" />
<text class="label" x="509.2" y="347.6">47%</text>
</g>
<g class="s1">
<path class="bar" d="M250.6,134.4 H250.6 Q250.6,134.4 250.6,134.4 V142.3 Q250.6,142.3 250.6,142.3 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Thermometer encoding: 0%" />
<text class="label" x="256.6" y="142.4">0%</text>
<path class="bar" d="M250.6,161.3 H250.6 Q250.6,161.3 250.6,161.3 V169.2 Q250.6,169.2 250.6,169.2 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Input transformations: 0%" />
<text class="label" x="256.6" y="169.3">0%</text>
<path class="bar" d="M250.6,188.2 H295.0 Q299.0,188.2 299.0,192.2 V192.1 Q299.0,196.1 295.0,196.1 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;PixelDefend: 9%" />
<text class="label" x="305.0" y="196.2">9%</text>
<path class="bar" d="M250.6,215.1 H273.5 Q277.5,215.1 277.5,219.1 V219.0 Q277.5,223.0 273.5,223.0 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;LID detection: 5%" />
<text class="label" x="283.5" y="223.0">5%</text>
<path class="bar" d="M250.6,242.0 H250.6 Q250.6,242.0 250.6,242.0 V249.9 Q250.6,249.9 250.6,249.9 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Stochastic activation pruning: 0%" />
<text class="label" x="256.6" y="249.9">0%</text>
<path class="bar" d="M250.6,268.9 H250.6 Q250.6,268.9 250.6,268.9 V276.8 Q250.6,276.8 250.6,276.8 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Randomization: 0%" />
<text class="label" x="256.6" y="276.8">0%</text>
<path class="bar" d="M250.6,295.8 H542.2 Q546.2,295.8 546.2,299.8 V299.7 Q546.2,303.7 542.2,303.7 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Defense-GAN: 55%" />
<text class="label" x="552.2" y="303.7">55%</text>
<path class="bar" d="M250.6,322.7 H327.2 Q331.2,322.7 331.2,326.7 V326.5 Q331.2,330.5 327.2,330.5 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Cascade adv. training (not broken): 15%" />
<text class="label" x="337.2" y="330.6">15%</text>
<path class="bar" d="M250.6,349.6 H499.2 Q503.2,349.6 503.2,353.6 V353.4 Q503.2,357.4 499.2,357.4 H250.6 Z" data-tip="&lt;b&gt;After adaptive attack&lt;/b&gt;&lt;br&gt;Madry adv. training (not broken): 47%" />
<text class="label" x="509.2" y="357.5">47%</text>
</g>
<text class="subtitle" x="0" y="424">Source: Athalye, Carlini &amp; Wagner, ICML 2018, Table 1. Blank = the paper reports only the post-attack value.</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> Claimed robust accuracy of the ICLR 2018 defenses against what remained after Athalye et al.'s adaptive attacks. Where the original paper combined a defense with adversarial training, the table reports the defense alone. Defense-GAN's 55% is the practical result; the authors argue it is 0% in principle. Data from [14], Table 1.</figcaption>
</figure>

<p>The lesson was supposed to be “evaluate against adaptive attacks,” and papers duly started including a section with that heading. Two years later Tramèr, Carlini, Brendel and Madry [15] broke thirteen defenses from ICLR, ICML and NeurIPS that had <em>already</em> claimed adaptive evaluations. Their conclusion is methodological rather than technical: an adaptive attack has to be designed for the specific defense, usually by simplifying the defense until the attack works and then adding complexity back, and a failed attack is evidence about the attack, not the defense.</p>

<p>The field’s response was standardisation. AutoAttack [13] is a parameter-free ensemble of two PGD variants with better loss functions, a boundary attack and Square Attack. Run on 50 models from 35 papers, it lowered the reported robust accuracy of all but one, by more than ten points for thirteen models and more than thirty for eight. Some examples at CIFAR-10 ε = 8/255: Madry et al.’s 47.04% became 44.04%; TRADES’s 56.43% became 53.08%; one ICLR 2020 defense fell from 68.7% to 36.45%, and another from 31.4% to 0.00%. RobustBench [22] turned AutoAttack into a leaderboard with admission rules: deterministic forward pass, non-zero gradients, no test-time optimisation, and a flag on any model where the gradient-free Square Attack beats the gradient-based attacks, since that pattern is the signature of gradient masking.</p>

<h2 id="where-the-frontier-is-in-2026">Where the frontier is in 2026</h2>

<p>With evaluation settled, progress became measurable, and it came mostly from data. Carmon et al.’s use of unlabelled data reached 59.53% under AutoAttack in 2019. Wang et al. [23] showed in 2023 that better diffusion models, judged by FID and run for only about twenty sampling steps, generate training images that lift CIFAR-10 robust accuracy to 70.69% at ε = 8/255 and CIFAR-100 to 42.67%, using no external data at all. Bartoldson et al. [24] then fitted scaling laws over model size, data size and generated-data quality, reached 74% with 20% fewer training FLOPs than the previous best, and asked where the curve ends.</p>

<p>Their answer is the most interesting result in the recent literature. The scaling laws predict robust accuracy plateauing near 90%. Separately, they asked people to label the AutoAttack images that fool their best model and found that human accuracy on those images is <em>also</em> about 90%. At ε = 8/255, some “adversarial” images have actually changed class to the human eye. The ceiling is not in the model; it is in the threat model. The L∞ ball was always a proxy for “imperceptible,” and at the current frontier the proxy has started to break.</p>

<p>ImageNet remains harder. At ε = 4/255 the best entries on RobustBench are large vision transformers and ConvNeXts with convolutional stems: 78.62% clean and 59.68% robust for a Swin-L, 81.48% and 58.50% for a mixed ConvNeXtV2-L/Swin-L classifier [22]. Architecture matters as much as recipe here, and no one has yet written the scaling law.</p>

<h2 id="leaving-the-ε-ball">Leaving the ε-ball</h2>

<p>Imperceptibility is a convenience for benchmarks, not a constraint on attackers. Sharif et al. [21] printed eyeglass frames for about 22 cents that let three subjects evade a face recogniser between 80% and 100% of the time, and impersonate a specific target 87.87% of the time. Eykholt et al. [19] optimised stickers for a stop sign, over a distribution of viewing angles and lighting, and a classifier misread it as a speed limit in 100% of lab photographs and 84.8% of frames from a moving vehicle. Brown et al.’s adversarial patch [20] drops the pretence entirely: a visible, scene-independent sticker that reliably hijacks the classification of whatever it is placed near. The threat model shifts from “the attacker can nudge every pixel slightly” to “the attacker controls a region,” and most of the ε-ball literature has nothing to say about it.</p>

<h2 id="202426-when-the-output-is-text">2024–26: when the output is text</h2>

<p>The newest version of the problem sits inside vision-language models. A model like LLaVA takes a frozen CLIP image encoder and feeds its embeddings to a language model; attack the encoder and everything downstream follows. Schlarmann et al. [25] measured it: LLaVA-1.5-7B’s average captioning and visual-question-answering score drops from 76.2 to 2.25 at ε = 2/255 and 1.0 at ε = 4/255. Their fix, FARE, adversarially fine-tunes only the CLIP encoder, without labels and without touching the language model, and recovers 26.3 at ε = 4/255. The price is clean performance, 76.2 down to 65.0, which is the Madry trade-off again in a new setting.</p>

<figure class="fig" id="fig-evasion-vlm">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="A vision-language model collapses under tiny image perturbations">
<text class="title" x="0" y="18">A vision-language model collapses under tiny image perturbations</text>
<text class="subtitle" x="0" y="38">LLaVA-1.5-7B average captioning/VQA score (COCO, Flickr30k, TextVQA, VQAv2) as the L∞ budget on the image grows.</text>
<g class="legend s1"><line class="key" x1="0" y1="62" x2="16" y2="62" /><circle class="dot" cx="8" cy="62" r="3.5" /><text x="22" y="66">Original CLIP encoder</text></g>
<g class="legend s2"><line class="key" x1="188.9" y1="62" x2="204.9" y2="62" /><circle class="dot" cx="196.9" cy="62" r="3.5" /><text x="210.9" y="66">FARE⁴ robust encoder</text></g>
<g class="legend s3"><line class="key" x1="370.9" y1="62" x2="386.9" y2="62" /><circle class="dot" cx="378.9" cy="62" r="3.5" /><text x="392.9" y="66">TeCoA⁴ robust encoder</text></g>
<g class="grid">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<line x1="56" x2="796" y1="271.5" y2="271.5" />
<line x1="56" x2="796" y1="215.0" y2="215.0" />
<line x1="56" x2="796" y1="158.5" y2="158.5" />
<line x1="56" x2="796" y1="102.0" y2="102.0" />
</g><g class="axis">
<text x="48" y="332.0" text-anchor="end">0</text>
<text x="48" y="275.5" text-anchor="end">20</text>
<text x="48" y="219.0" text-anchor="end">40</text>
<text x="48" y="162.5" text-anchor="end">60</text>
<text x="48" y="106.0" text-anchor="end">80</text>
</g>
<text class="axis-title" x="56" y="94" text-anchor="start">Average score</text>
<g class="axis">
<line x1="56" x2="796" y1="328.0" y2="328.0" />
<text x="56.0" y="346.0" text-anchor="middle">0 (clean)</text>
<text x="426.0" y="346.0" text-anchor="middle">2/255</text>
<text x="796.0" y="346.0" text-anchor="middle">4/255</text>
</g>
<text class="axis-title" x="796" y="364.0" text-anchor="end">Perturbation budget ε (L∞)</text>
<g class="s1">
<path class="line" d="M56.0,112.7 L426.0,321.6 L796.0,325.2" />
<circle class="dot" cx="56.0" cy="112.7" r="4" data-tip="&lt;b&gt;Original CLIP encoder&lt;/b&gt;&lt;br&gt;0 (clean): 76.2" />
<circle class="dot" cx="426.0" cy="321.6" r="4" data-tip="&lt;b&gt;Original CLIP encoder&lt;/b&gt;&lt;br&gt;2/255: 2.25" />
<circle class="dot" cx="796.0" cy="325.2" r="4" data-tip="&lt;b&gt;Original CLIP encoder&lt;/b&gt;&lt;br&gt;4/255: 1" />
</g>
<g class="s2">
<path class="line" d="M56.0,144.4 L426.0,225.7 L796.0,253.7" />
<circle class="dot" cx="56.0" cy="144.4" r="4" data-tip="&lt;b&gt;FARE⁴ robust encoder&lt;/b&gt;&lt;br&gt;0 (clean): 65" />
<circle class="dot" cx="426.0" cy="225.7" r="4" data-tip="&lt;b&gt;FARE⁴ robust encoder&lt;/b&gt;&lt;br&gt;2/255: 36.2" />
<circle class="dot" cx="796.0" cy="253.7" r="4" data-tip="&lt;b&gt;FARE⁴ robust encoder&lt;/b&gt;&lt;br&gt;4/255: 26.3" />
</g>
<g class="s3">
<path class="line" d="M56.0,172.1 L426.0,234.5 L796.0,260.2" />
<circle class="dot" cx="56.0" cy="172.1" r="4" data-tip="&lt;b&gt;TeCoA⁴ robust encoder&lt;/b&gt;&lt;br&gt;0 (clean): 55.2" />
<circle class="dot" cx="426.0" cy="234.5" r="4" data-tip="&lt;b&gt;TeCoA⁴ robust encoder&lt;/b&gt;&lt;br&gt;2/255: 33.1" />
<circle class="dot" cx="796.0" cy="260.2" r="4" data-tip="&lt;b&gt;TeCoA⁴ robust encoder&lt;/b&gt;&lt;br&gt;4/255: 24" />
</g>
<text class="label" x="804.0" y="257.7">26.3</text>
<text class="label" x="804.0" y="272.7">24</text>
<text class="label" x="804.0" y="329.2">1</text>
<text class="subtitle" x="0" y="394">Source: Schlarmann et al., ICML 2024, Tables 1 and 4</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 4.</span> The image pathway of a vision-language model is as fragile as any classifier. Replacing the CLIP encoder with an adversarially fine-tuned one restores a usable fraction of performance under attack at a clean-accuracy cost. Data from [25].</figcaption>
</figure>

<p>Work at NeurIPS 2025 [26] argues that VLMs are in one respect <em>more</em> fragile than classifiers: an image perturbation can steer every generated token, so the same mechanism that flips a label can inject instructions, hijack an agent, or force a long useless output. Evasion, which began as a question about classification margins, has become a question about alignment, and the next two posts in this series pick up exactly there.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Adversarial examples are a consequence of high-dimensional, near-linear models trained on data that contains predictive features humans cannot see. They transfer because every model learns those features.</li>
<li>Adversarial training is the only empirical defense that has survived adaptive evaluation, and its clean-accuracy cost has shrunk from eight points to one or two as data and capacity scaled.</li>
<li>Evaluation is adversarial too. Trust AutoAttack numbers; be suspicious of any defense a gradient-free attack beats.</li>
<li>The L∞ ball is a proxy. At the 2024 frontier the proxy breaks, and in physical and multimodal settings it was never the right model.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Szegedy, Zaremba, Sutskever et al. <em>Intriguing properties of neural networks.</em> ICLR 2014. <a href="https://arxiv.org/abs/1312.6199">arXiv:1312.6199</a></li>
<li>Goodfellow, Shlens, Szegedy. <em>Explaining and Harnessing Adversarial Examples.</em> ICLR 2015. <a href="https://arxiv.org/abs/1412.6572">arXiv:1412.6572</a></li>
<li>Carlini, Wagner. <em>Towards Evaluating the Robustness of Neural Networks.</em> IEEE S&amp;P 2017. <a href="https://arxiv.org/abs/1608.04644">arXiv:1608.04644</a></li>
<li>Madry, Makelov, Schmidt, Tsipras, Vladu. <em>Towards Deep Learning Models Resistant to Adversarial Attacks.</em> ICLR 2018. <a href="https://arxiv.org/abs/1706.06083">arXiv:1706.06083</a></li>
<li>Papernot, McDaniel, Goodfellow et al. <em>Practical Black-Box Attacks against Machine Learning.</em> AsiaCCS 2017. <a href="https://arxiv.org/abs/1602.02697">arXiv:1602.02697</a></li>
<li>Moosavi-Dezfooli, Fawzi, Frossard. <em>DeepFool: a simple and accurate method to fool deep neural networks.</em> CVPR 2016. <a href="https://arxiv.org/abs/1511.04599">arXiv:1511.04599</a></li>
<li>Kurakin, Goodfellow, Bengio. <em>Adversarial examples in the physical world.</em> ICLR 2017 Workshop. <a href="https://arxiv.org/abs/1607.02533">arXiv:1607.02533</a></li>
<li>Chen, Zhang, Sharma, Yi, Hsieh. <em>ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Models.</em> AISec 2017. <a href="https://arxiv.org/abs/1708.03999">arXiv:1708.03999</a></li>
<li>Ilyas, Engstrom, Athalye, Lin. <em>Black-box Adversarial Attacks with Limited Queries and Information.</em> ICML 2018. <a href="https://arxiv.org/abs/1804.08598">arXiv:1804.08598</a></li>
<li>Brendel, Rauber, Bethge. <em>Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models.</em> ICLR 2018. <a href="https://arxiv.org/abs/1712.04248">arXiv:1712.04248</a></li>
<li>Chen, Jordan, Wainwright. <em>HopSkipJumpAttack: A Query-Efficient Decision-Based Attack.</em> IEEE S&amp;P 2020. <a href="https://arxiv.org/abs/1904.02144">arXiv:1904.02144</a></li>
<li>Andriushchenko, Croce, Flammarion, Hein. <em>Square Attack: a query-efficient black-box adversarial attack via random search.</em> ECCV 2020. <a href="https://arxiv.org/abs/1912.00049">arXiv:1912.00049</a></li>
<li>Croce, Hein. <em>Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks.</em> ICML 2020. <a href="https://arxiv.org/abs/2003.01690">arXiv:2003.01690</a></li>
<li>Athalye, Carlini, Wagner. <em>Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples.</em> ICML 2018. <a href="https://arxiv.org/abs/1802.00420">arXiv:1802.00420</a></li>
<li>Tramèr, Carlini, Brendel, Madry. <em>On Adaptive Attacks to Adversarial Example Defenses.</em> NeurIPS 2020. <a href="https://arxiv.org/abs/2002.08347">arXiv:2002.08347</a></li>
<li>Papernot, McDaniel, Goodfellow. <em>Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samples.</em> arXiv 2016. <a href="https://arxiv.org/abs/1605.07277">arXiv:1605.07277</a></li>
<li>Ilyas, Santurkar, Tsipras, Engstrom, Tran, Madry. <em>Adversarial Examples Are Not Bugs, They Are Features.</em> NeurIPS 2019. <a href="https://arxiv.org/abs/1905.02175">arXiv:1905.02175</a></li>
<li>Tsipras, Santurkar, Engstrom, Turner, Madry. <em>Robustness May Be at Odds with Accuracy.</em> ICLR 2019. <a href="https://arxiv.org/abs/1805.12152">arXiv:1805.12152</a></li>
<li>Eykholt, Evtimov, Fernandes et al. <em>Robust Physical-World Attacks on Deep Learning Visual Classification.</em> CVPR 2018. <a href="https://arxiv.org/abs/1707.08945">arXiv:1707.08945</a></li>
<li>Brown, Mané, Roy, Abadi, Gilmer. <em>Adversarial Patch.</em> NeurIPS 2017 Workshop. <a href="https://arxiv.org/abs/1712.09665">arXiv:1712.09665</a></li>
<li>Sharif, Bhagavatula, Bauer, Reiter. <em>Accessorize to a Crime: Real and Stealthy Attacks on State-of-the-Art Face Recognition.</em> ACM CCS 2016. <a href="https://reitermk.github.io/papers/2016/CCS2.pdf">PDF</a></li>
<li>Croce, Andriushchenko, Sehwag et al. <em>RobustBench: a standardized adversarial robustness benchmark.</em> NeurIPS 2021 Datasets &amp; Benchmarks. <a href="https://arxiv.org/abs/2010.09670">arXiv:2010.09670</a>; leaderboard at <a href="https://robustbench.github.io/">robustbench.github.io</a></li>
<li>Wang, Pang, Du, Lin, Liu, Yan. <em>Better Diffusion Models Further Improve Adversarial Training.</em> ICML 2023. <a href="https://proceedings.mlr.press/v202/wang23ad.html">PMLR 202</a></li>
<li>Bartoldson, Diffenderfer, Parasyris, Kailkhura. <em>Adversarial Robustness Limits via Scaling-Law and Human-Alignment Studies.</em> ICML 2024. <a href="https://arxiv.org/abs/2404.09349">arXiv:2404.09349</a></li>
<li>Schlarmann, Singh, Croce, Hein. <em>Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Models.</em> ICML 2024. <a href="https://proceedings.mlr.press/v235/schlarmann24a.html">PMLR 235</a></li>
<li>Wang, Wang, Ge et al. <em>Attention! Your Vision Language Model Could Be Maliciously Manipulated.</em> NeurIPS 2025. <a href="https://papers.nips.cc/paper_files/paper/2025/hash/baf0fab890edc9dce805d7c518058712-Abstract-Conference.html">NeurIPS proceedings</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Attacks" /><category term="attacks" /><category term="evasion" /><category term="FGSM" /><category term="PGD" /><category term="robustness" /><summary type="html"><![CDATA[In December 2013, Szegedy and colleagues posted a paper with a deliberately understated title, Intriguing properties of neural networks [1]. One of the properties was this: take an image a network classifies correctly, solve a small optimisation problem to find the nearest input it classifies as something else, and the result is indistinguishable from the original to a person. The perturbation was not noise. Gaussian noise of a larger magnitude barely moved the predictions; the optimised perturbation moved them completely. Worse, the same perturbation often fooled a different network, trained on different data.]]></summary></entry><entry><title type="html">Explainability: Why Knowing Isn’t the Same as Understanding</title><link href="https://cymtrick.github.io/2025/11/14/explainability/" rel="alternate" type="text/html" title="Explainability: Why Knowing Isn’t the Same as Understanding" /><published>2025-11-14T00:00:00+00:00</published><updated>2025-11-14T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/11/14/explainability</id><content type="html" xml:base="https://cymtrick.github.io/2025/11/14/explainability/"><![CDATA[<p>In 2018 Adebayo and colleagues ran an experiment that should have ended a research programme [1]. They took the standard saliency methods for image classifiers, the ones that colour the pixels a network “looked at”, and applied them to a network whose weights had been replaced with random values, layer by layer from the top. Some methods changed as you would hope. Others did not. Guided Backpropagation and Guided Grad-CAM produced essentially the same attractive, edge-hugging maps for a trained network, a network with random weights, and a network trained on shuffled labels. The maps looked like explanations. They were edge detectors with extra steps.</p>

<p>The paper’s title was <em>Sanity Checks for Saliency Maps</em>, and the sanity check is simple: an explanation of a model must change when the model changes. That is the minimum. It is remarkable how much of the explainability literature, before and since, has failed it, and the failures have a common shape. A method produces something that looks right to a person, practitioners adopt it because it looks right, and nobody tests whether it tracks the computation at all.</p>

<p>Jacovi and Goldberg [2] gave the two properties names that the field now uses. <em>Plausibility</em> is how convincing an explanation is to a human. <em>Faithfulness</em> is how accurately it reflects the model’s actual reasoning. They are independent, human studies can only measure the first, and almost every tool in the explainability toolbox was selected for it.</p>

<figure class="fig" id="fig-explain-quadrants">
  <div class="fig-frame"><svg class="diagram" viewBox="0 0 860 420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="A two-by-two grid of explanation methods by plausibility to humans and faithfulness to the model's computation.">
  <defs>
    <marker id="qa" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor" /></marker>
  </defs>
  <!-- axes -->
  <g style="color:var(--ink-2)">
    <line class="arrow" x1="120" y1="360" x2="820" y2="360" marker-end="url(#qa)" />
    <line class="arrow" x1="120" y1="360" x2="120" y2="30" marker-end="url(#qa)" />
  </g>
  <text class="small muted" x="820" y="385" text-anchor="end">convincing to a person (plausibility)</text>
  <text class="small muted" x="112" y="30" text-anchor="end" transform="rotate(-90 112 30)" style="display:none"></text>
  <text class="small muted" x="30" y="195" transform="rotate(-90 30 195)" text-anchor="middle">reflects the model's computation (faithfulness)</text>
  <!-- quadrants -->
  <rect class="box" x="140" y="45" width="320" height="140" rx="6" />
  <rect class="box-accent" x="480" y="45" width="320" height="140" rx="6" />
  <rect class="box" x="140" y="205" width="320" height="140" rx="6" />
  <rect class="box" x="480" y="205" width="320" height="140" rx="6" />
  <!-- top-left: faithful, not plausible -->
  <text x="156" y="70" style="font-weight:600">Faithful but unreadable</text>
  <text class="small muted" x="156" y="92">raw input gradients</text>
  <text class="small muted" x="156" y="110">34M-feature attribution graphs</text>
  <text class="small muted" x="156" y="128">weight-level circuit descriptions</text>
  <!-- top-right: both -->
  <text x="496" y="70" style="font-weight:600">The goal</text>
  <text class="small muted" x="496" y="92">sparse linear models, scoring systems</text>
  <text class="small muted" x="496" y="110">small rule lists, GAMs</text>
  <text class="small muted" x="496" y="128">(Rudin: use these when you can)</text>
  <!-- bottom-left: neither -->
  <text x="156" y="230" style="font-weight:600">Neither</text>
  <text class="small muted" x="156" y="252">noisy saliency on a random model</text>
  <!-- bottom-right: plausible, not faithful -->
  <text x="496" y="230" style="font-weight:600">The trap</text>
  <text class="small muted" x="496" y="252">Guided Backprop maps (≈ edge detectors)</text>
  <text class="small muted" x="496" y="270">post-hoc chains of thought</text>
  <text class="small muted" x="496" y="288">scaffolded SHAP / LIME</text>
  <!-- tests arrow -->
  <text class="small" x="140" y="405" style="fill:var(--ink-2)">What moves a method up: randomise the model, perturb the explanation, beat a trivial baseline.</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> The two axes of an explanation. Methods in the lower right persuade without being true; methods in the upper left are true but not usable. Most of the history of the field is a sequence of methods sliding from the right-hand column into the trap once someone runs the three tests at the bottom. Framing from [2]; placements from [1, 11, 12, 16, 18, 22].</figcaption>
</figure>

<h2 id="three-families-one-taylor-expansion">Three families, one Taylor expansion</h2>

<p>The first family of methods is gradient-based, and it begins with a Taylor expansion. Simonyan, Vedaldi and Zisserman [3] observed that around a given image I₀ the class score is approximately linear, S_c(I) ≈ wᵀI + b with w = ∂S_c/∂I, and that the magnitude of w, reshaped into an image, is a map of which pixels the score is most sensitive to. It is cheap, it is exact to first order, and it is noisy, because the gradient of a ReLU network is piecewise constant and flips sign across tiny distances.</p>

<p>Each later method fixes one failure. Integrated Gradients [4] starts from two axioms. <em>Sensitivity</em>: if an input differs from a baseline in one feature and the prediction changes, that feature must get non-zero attribution, which raw gradients violate when a ReLU is saturated. <em>Implementation invariance</em>: two networks computing the same function must get the same attributions, which methods using discrete difference rules like DeepLIFT violate. Integrating the gradient along a straight path from a baseline to the input satisfies both and, as a bonus, the attributions sum exactly to the difference in output. The cost is a baseline, which is a modelling choice with real consequences. SmoothGrad [5] attacks the noise directly by averaging gradients over Gaussian-perturbed copies of the input. Grad-CAM [6] gives up pixel resolution for class discrimination: it weights the last convolutional layer’s feature maps by the pooled gradient of the class score and keeps only the positive part, which localises the object even when the raw gradient cannot.</p>

<div class="math"><div class="math-label">Integrated Gradients (Sundararajan, Taly &amp; Yan 2017)</div>IGᵢ(x) = (xᵢ − x′ᵢ) · ∫₀¹ ∂F(x′ + α(x − x′)) / ∂xᵢ dα</div>

<p>None of these methods asks whether the map it produces would change if the model did. That is why Adebayo’s result landed: plain Gradient and Grad-CAM pass both randomisation tests, Guided Backprop fails both, and Integrated Gradients and Gradient⊙Input are “dominated by the input”, meaning the map looks the same across models because it is largely the image multiplied by something [1]. A year earlier Kindermans et al. [10] had shown that most of the same methods are not even invariant to adding a constant to the input, a transformation that provably does not change the function a network computes.</p>

<h2 id="model-agnostic-attribution-and-its-price">Model-agnostic attribution and its price</h2>

<p>The second family removes features and watches the prediction. LIME [7] samples perturbed versions of an input, queries the model on each, and fits a sparse linear surrogate weighted by proximity; the surrogate’s coefficients are the explanation. Its most-cited result is a user study. A classifier trained to distinguish huskies from wolves was, in fact, detecting snow. Before seeing explanations, 10 of 27 graduate students trusted the model and 12 mentioned snow; after seeing LIME’s output, 3 trusted it and 25 mentioned snow [7].</p>

<p>SHAP [8] unified LIME, DeepLIFT, layer-wise relevance propagation and Shapley sampling under one framework, <em>additive feature attribution</em>, and proved that within it exactly one allocation satisfies local accuracy, missingness and consistency: the Shapley value from cooperative game theory.</p>

<div class="math"><div class="math-label">Shapley value of feature i (Lundberg &amp; Lee 2017)</div>φᵢ = Σ_{S ⊆ F∖{i}} [ |S|! (|F| − |S| − 1)! / |F|! ] · [ f(S ∪ {i}) − f(S) ]</div>

<p>The sum is over every subset of the other features, so exact computation is exponential. KernelSHAP approximates it by weighted regression on sampled coalitions; TreeSHAP, published separately three years later, computes it exactly in polynomial time for tree ensembles [9], which is why SHAP is the default explanation in tabular machine learning.</p>

<p>Removal-based methods have a property that looks like a virtue and turns out to be an attack surface. They never see the model’s internals; they only see what the model says about inputs they construct. LIME’s perturbations are Gaussian noise around the instance. KernelSHAP’s “removed” features are filled in from cluster centres of a background set. In both cases the explainer’s queries lie off the data manifold, and anything off the manifold can be recognised.</p>

<h2 id="falsifying-explanations">Falsifying explanations</h2>

<p>Slack and colleagues [11] built exactly that. Take a model f that discriminates on a sensitive feature, race in COMPAS, say. Train an out-of-distribution detector to recognise LIME’s or SHAP’s perturbed samples. Serve f on real inputs and an innocuous model ψ, which uses only uncorrelated synthetic features, on anything the detector flags. Audit the result with LIME and the sensitive feature is the top-ranked explanation for 0% of test points; the innocuous feature is top-ranked for 100% on COMPAS and Communities &amp; Crime, and 91% on German Credit. SHAP is harder to fool, 84% and 100% and 85%, and harder still with two synthetic features, but the scaffolded model still agrees with the biased model on 75–100% of real inputs [11].</p>

<figure class="fig" id="fig-explain-slack">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Scaffolded models hide the sensitive feature from LIME and SHAP">
<text class="title" x="0" y="18">Scaffolded models hide the sensitive feature from LIME and SHAP</text>
<text class="subtitle" x="0" y="38">Share of test points where an uncorrelated synthetic feature is ranked as the top explanation after the attack. Before it, the</text>
<text class="subtitle" x="0" y="56">sensitive feature (race, gender, loan rate) was top-1.</text>
<g class="legend s1"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">LIME, one synthetic feature</text></g>
<g class="legend s2"><rect class="swatch" x="230.3" y="73" width="12" height="12" rx="2" /><text x="248.3" y="84">SHAP, one synthetic feature</text></g>
<g class="legend s3"><rect class="swatch" x="460.6" y="73" width="12" height="12" rx="2" /><text x="478.6" y="84">SHAP, two synthetic features</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="279.0" y2="279.0" />
<line x1="56" x2="836" y1="226.0" y2="226.0" />
<line x1="56" x2="836" y1="173.0" y2="173.0" />
<line x1="56" x2="836" y1="120.0" y2="120.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0%</text>
<text x="48" y="283.0" text-anchor="end">25%</text>
<text x="48" y="230.0" text-anchor="end">50%</text>
<text x="48" y="177.0" text-anchor="end">75%</text>
<text x="48" y="124.0" text-anchor="end">100%</text>
</g>
<text class="axis-title" x="56" y="112" text-anchor="start">Innocuous feature ranked first (% of points)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="186.0" y="350.0" text-anchor="middle">COMPAS</text>
<text x="446.0" y="350.0" text-anchor="middle">Communities &amp; Crime</text>
<text x="706.0" y="350.0" text-anchor="middle">German Credit</text>
</g>
<g class="s1">
<path class="bar" d="M148.0,332.0 V124.0 Q148.0,120.0 152.0,120.0 H168.0 Q172.0,120.0 172.0,124.0 V332.0 Z" data-tip="&lt;b&gt;LIME, one synthetic feature&lt;/b&gt;&lt;br&gt;COMPAS: 100%" />
<path class="bar" d="M408.0,332.0 V124.0 Q408.0,120.0 412.0,120.0 H428.0 Q432.0,120.0 432.0,124.0 V332.0 Z" data-tip="&lt;b&gt;LIME, one synthetic feature&lt;/b&gt;&lt;br&gt;Communities &amp; Crime: 100%" />
<path class="bar" d="M668.0,332.0 V143.1 Q668.0,139.1 672.0,139.1 H688.0 Q692.0,139.1 692.0,143.1 V332.0 Z" data-tip="&lt;b&gt;LIME, one synthetic feature&lt;/b&gt;&lt;br&gt;German Credit: 91%" />
</g>
<g class="s2">
<path class="bar" d="M174.0,332.0 V157.9 Q174.0,153.9 178.0,153.9 H194.0 Q198.0,153.9 198.0,157.9 V332.0 Z" data-tip="&lt;b&gt;SHAP, one synthetic feature&lt;/b&gt;&lt;br&gt;COMPAS: 84%" />
<path class="bar" d="M434.0,332.0 V124.0 Q434.0,120.0 438.0,120.0 H454.0 Q458.0,120.0 458.0,124.0 V332.0 Z" data-tip="&lt;b&gt;SHAP, one synthetic feature&lt;/b&gt;&lt;br&gt;Communities &amp; Crime: 100%" />
<path class="bar" d="M694.0,332.0 V155.8 Q694.0,151.8 698.0,151.8 H714.0 Q718.0,151.8 718.0,155.8 V332.0 Z" data-tip="&lt;b&gt;SHAP, one synthetic feature&lt;/b&gt;&lt;br&gt;German Credit: 85%" />
</g>
<g class="s3">
<path class="bar" d="M200.0,332.0 V194.0 Q200.0,190.0 204.0,190.0 H220.0 Q224.0,190.0 224.0,194.0 V332.0 Z" data-tip="&lt;b&gt;SHAP, two synthetic features&lt;/b&gt;&lt;br&gt;COMPAS: 67%" />
<path class="bar" d="M460.0,332.0 V185.5 Q460.0,181.5 464.0,181.5 H480.0 Q484.0,181.5 484.0,185.5 V332.0 Z" data-tip="&lt;b&gt;SHAP, two synthetic features&lt;/b&gt;&lt;br&gt;Communities &amp; Crime: 71%" />
</g>
<text class="subtitle" x="0" y="394">Source: Slack, Hilgard, Jia, Singh &amp; Lakkaraju, AIES 2020, Section 4</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> The scaffolding attack. The sensitive feature was the top-ranked LIME and SHAP feature for the undisguised model; after wrapping it in an out-of-distribution detector, an unrelated synthetic feature takes its place. Where a value is missing the paper does not report it. Data from [11], Section 4.</figcaption>
</figure>

<p>Two things about this result are often misstated. It is not a general property of post-hoc explanation; it exploits a specific weakness, off-manifold sampling, and the paper’s own sensitivity analysis shows the LIME attack only works once the detector reaches an F1 of about 0.8. And the fix follows from the diagnosis: perturb on the manifold, audit with real held-out data, and treat the explainer’s query distribution as part of the threat model. Gradient-based explainers have their own adversarial literature, but it is a different attack.</p>

<p>What the three results above share is a methodology, and it is worth stating because it recurs. An explanation method has been falsified when (i) randomising the model does not change it, (ii) perturbing the explanation does not change the model’s behaviour, or (iii) a trivial baseline, an edge detector, a linear probe, produces the same thing. Methods that survive all three are rare. Methods that look good to humans are common.</p>

<h2 id="two-escapes">Two escapes</h2>

<p>Rudin’s response [12] is that the whole enterprise is misdirected for high-stakes decisions. Her argument has four parts. The accuracy–interpretability trade-off is largely a myth on structured data, where sparse scoring systems and rule lists match black boxes. A post-hoc explanation that is right 90% of the time is wrong 10% of the time and you cannot tell which. An explanation of a black box is frequently an explanation of a <em>different</em> model, the surrogate. And the harms from COMPAS-style deployments came from using an opaque model where a transparent one would have done the job. The honest counterpoint is that for images and text the interpretable model of equal accuracy does not yet exist, which is exactly why mechanistic interpretability, discussed below, emerged.</p>

<p>Wachter, Mittelstadt and Russell [13] offer a different escape by asking what an explanation is <em>for</em>. Under the GDPR a person needs to understand a decision, contest it, and learn what to change. A <em>counterfactual explanation</em>, the closest input under some distance that flips the decision, serves all three without opening the box. The open problems are the ones you would guess: the nearest counterfactual may change immutable features, may lie off the data manifold, may not be unique, and may itself be manipulable.</p>

<h2 id="chain-of-thought-as-explanation">Chain of thought as explanation</h2>

<p>Language models added a new kind of explanation: ask the model to reason out loud before answering. Wei et al. [14] showed that a few worked examples of step-by-step reasoning raise PaLM 540B’s GSM8K accuracy from 17.9% to 56.9%, beating a fine-tuned GPT-3 with a verifier, and that the gain appears only at roughly 100 billion parameters; smaller models produce fluent but illogical chains. Kojima et al. [15] found that the single phrase “Let’s think step by step” recovers much of the effect with no examples at all.</p>

<p>Note what Wei et al. did and did not claim. They claimed accuracy. They did not claim that the chain of thought is a faithful account of how the model got its answer, and it is a <em>process</em> explanation, so faithfulness means something different from feature attribution: does the text describe the computation that produced the answer?</p>

<p>Turpin, Michael, Perez and Bowman [16] designed the test. Add to the prompt a feature that should not matter, such as reordering few-shot examples so the correct answer is always (A), or having the user suggest an answer. If the feature changes the model’s answers, it influenced the computation; if the chain of thought never mentions it, the explanation is unfaithful. On thirteen BIG-Bench Hard tasks the suggested-answer bias dropped GPT-3.5’s zero-shot CoT accuracy by 36.3 points and Claude 1.0’s by 30.6, and in no case did the chain of thought mention the suggestion. It explained the biased answer, fluently, with reasons invented for the purpose [16].</p>

<figure class="fig" id="fig-explain-turpin">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="The chain of thought never mentions the bias">
<text class="title" x="0" y="18">The chain of thought never mentions the bias</text>
<text class="subtitle" x="0" y="38">Drop in accuracy (percentage points) when a biasing feature is added to the prompt, BIG-Bench Hard, 13 tasks, CoT prompting.</text>
<g class="legend s1"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">GPT-3.5</text></g>
<g class="legend s2"><rect class="swatch" x="92.30000000000001" y="55" width="12" height="12" rx="2" /><text x="110.30000000000001" y="66">Claude 1.0</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="278.0" y2="278.0" />
<line x1="56" x2="836" y1="224.0" y2="224.0" />
<line x1="56" x2="836" y1="170.0" y2="170.0" />
<line x1="56" x2="836" y1="116.0" y2="116.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0</text>
<text x="48" y="282.0" text-anchor="end">10</text>
<text x="48" y="228.0" text-anchor="end">20</text>
<text x="48" y="174.0" text-anchor="end">30</text>
<text x="48" y="120.0" text-anchor="end">40</text>
</g>
<text class="axis-title" x="56" y="108" text-anchor="start">Accuracy drop (points)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="186.0" y="350.0" text-anchor="middle">Suggested answer</text>
<text x="186.0" y="364.0" text-anchor="middle">(zero-shot)</text>
<text x="446.0" y="350.0" text-anchor="middle">Suggested answer</text>
<text x="446.0" y="364.0" text-anchor="middle">(few-shot)</text>
<text x="706.0" y="350.0" text-anchor="middle">Answer is always A</text>
<text x="706.0" y="364.0" text-anchor="middle">(few-shot)</text>
</g>
<g class="s1">
<path class="bar" d="M161.0,332.0 V140.0 Q161.0,136.0 165.0,136.0 H181.0 Q185.0,136.0 185.0,140.0 V332.0 Z" data-tip="&lt;b&gt;GPT-3.5&lt;/b&gt;&lt;br&gt;Suggested answer (zero-shot): 36.3" />
<text class="label" x="173.0" y="130.0" text-anchor="middle">36.3</text>
<path class="bar" d="M421.0,332.0 V205.9 Q421.0,201.9 425.0,201.9 H441.0 Q445.0,201.9 445.0,205.9 V332.0 Z" data-tip="&lt;b&gt;GPT-3.5&lt;/b&gt;&lt;br&gt;Suggested answer (few-shot): 24.1" />
<text class="label" x="433.0" y="195.9" text-anchor="middle">24.1</text>
<path class="bar" d="M681.0,332.0 V235.0 Q681.0,231.0 685.0,231.0 H701.0 Q705.0,231.0 705.0,235.0 V332.0 Z" data-tip="&lt;b&gt;GPT-3.5&lt;/b&gt;&lt;br&gt;Answer is always A (few-shot): 18.7" />
<text class="label" x="693.0" y="225.0" text-anchor="middle">18.7</text>
</g>
<g class="s2">
<path class="bar" d="M187.0,332.0 V170.8 Q187.0,166.8 191.0,166.8 H207.0 Q211.0,166.8 211.0,170.8 V332.0 Z" data-tip="&lt;b&gt;Claude 1.0&lt;/b&gt;&lt;br&gt;Suggested answer (zero-shot): 30.6" />
<text class="label" x="199.0" y="160.8" text-anchor="middle">30.6</text>
<path class="bar" d="M447.0,332.0 V219.9 Q447.0,215.9 451.0,215.9 H467.0 Q471.0,215.9 471.0,219.9 V332.0 Z" data-tip="&lt;b&gt;Claude 1.0&lt;/b&gt;&lt;br&gt;Suggested answer (few-shot): 21.5" />
<text class="label" x="459.0" y="209.9" text-anchor="middle">21.5</text>
<path class="bar" d="M707.0,332.0 V310.6 Q707.0,306.6 711.0,306.6 H727.0 Q731.0,306.6 731.0,310.6 V332.0 Z" data-tip="&lt;b&gt;Claude 1.0&lt;/b&gt;&lt;br&gt;Answer is always A (few-shot): 4.7" />
<text class="label" x="719.0" y="300.6" text-anchor="middle">4.7</text>
</g>
<text class="subtitle" x="0" y="394">Source: Turpin, Michael, Perez &amp; Bowman, NeurIPS 2023, Section 3</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> Accuracy lost to biasing features that the chain of thought never mentions. Each bar is the difference between accuracy with and without the bias; the model's written reasoning rationalised the wrong answer in every condition. Data from [16].</figcaption>
</figure>

<p>Lanham et al. [17] approached from the other side, corrupting or truncating the chain of thought and checking whether the answer moved. On some tasks it did; on others the model gave the same answer regardless, meaning the text was decoration. Their most unsettling observation is a scaling trend: larger, more capable models rely <em>less</em> on their stated reasoning on most tasks.</p>

<h2 id="what-reasoning-models-admit">What reasoning models admit</h2>

<p>By 2025 chain of thought was no longer a prompting trick; it was the main product of a new class of models and the basis of a safety strategy, monitoring the reasoning for signs of misbehaviour. Anthropic measured whether that strategy can work [18]. They inserted hints into MMLU and GPQA questions, sometimes neutral (a metadata tag), sometimes compromising (a note that the model has gained unauthorised access to the answer key), identified the cases where the hint demonstrably changed the answer, and read the chain of thought. Claude 3.7 Sonnet verbalised the hint it used 25% of the time, DeepSeek R1 39%. On the hints that signalled misbehaviour the rates were 20% and 29%. Outcome-based reinforcement learning raised faithfulness at first and then plateaued at 28% on MMLU and 20% on GPQA. In synthetic environments built so that exploiting the hint was rewarded, the model exploited it in over 99% of examples and mentioned doing so in fewer than 2%, in five of six environments. Unfaithful chains of thought were <em>longer</em> than faithful ones, so this is not a matter of the model being terse [18].</p>

<p>OpenAI reported the complementary result [19]. A GPT-4o monitor reading o3-mini’s chain of thought catches reward hacking in agentic coding tasks far better than a monitor that only sees actions. But if you then optimise the policy against the monitor, the behaviour persists and the chain of thought stops showing it: <em>obfuscated reward hacking</em>. They proposed accepting a “monitorability tax”, declining to apply optimisation pressure to the reasoning text, and a forty-author position paper across the major labs [20] called chain-of-thought monitorability “a new and fragile opportunity” and asked developers to track how training choices affect it.</p>

<p>So the question that was long described as open and contested has an answer. Chains of thought are sometimes faithful, often not, and the degree is measurable. The disagreement that remains is practical: whether 25–40% faithfulness on hints, with much higher rates on ordinary reasoning, is enough to build a safety case on.</p>

<h2 id="opening-the-box">Opening the box</h2>

<p>The alternative to asking the model is to look inside it, and the obstacle is <em>superposition</em>: a network represents more concepts than it has neurons by encoding them as overlapping directions, so individual neurons are polysemantic and uninterpretable. Dictionary learning with sparse autoencoders (SAEs) tries to undo this. Anthropic’s first demonstration on a one-layer transformer [21] found that features from an over-complete dictionary were far more interpretable than neurons, a median human rating of 12 versus 0 on a 0–20 scale, and that a 131,072-feature dictionary recovered 94.5% of the loss the MLP accounts for.</p>

<p>Scaling the method to Claude 3 Sonnet [22] produced dictionaries of one million, four million and 34 million features, including a multilingual, multimodal Golden Gate Bridge feature, features for code bugs, for deception and for sycophancy, with causal steering demonstrations: clamp the bridge feature at ten times its maximum and the model identifies itself as the bridge; clamp an unsafe-code feature and it writes a buffer overflow. OpenAI reported clean scaling laws for 16-million-latent autoencoders on GPT-4 [23], and DeepMind released sparse autoencoders for every layer of Gemma 2 [24]. The next step, cross-layer transcoders and <em>attribution graphs</em> [25, 26], traces a specific prompt through the features that mattered and validates the graph by intervention: Claude 3.5 Haiku plans the rhyme of a poem’s second line before writing the first, computes √0.64 with a square-root circuit, and, given cos(23423), claims to use a calculator while the graph shows it guessing. When a user suggests an answer, the graph shows the model working <em>backwards</em> from it. That is the first mechanistic view of the unfaithfulness Turpin measured behaviourally [26].</p>

<figure class="fig" id="fig-explain-sae">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 380" width="860" height="380" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Bigger dictionaries, more dead features">
<text class="title" x="0" y="18">Bigger dictionaries, more dead features</text>
<text class="subtitle" x="0" y="38">Sparse autoencoders on the residual stream of Claude 3 Sonnet: fraction of learned features that never fire, by dictionary size.</text>
<g class="grid">
<line x1="56" x2="796" y1="308.0" y2="308.0" />
<line x1="56" x2="796" y1="250.5" y2="250.5" />
<line x1="56" x2="796" y1="193.0" y2="193.0" />
<line x1="56" x2="796" y1="135.5" y2="135.5" />
<line x1="56" x2="796" y1="78.0" y2="78.0" />
</g><g class="axis">
<text x="48" y="312.0" text-anchor="end">0%</text>
<text x="48" y="254.5" text-anchor="end">20%</text>
<text x="48" y="197.0" text-anchor="end">40%</text>
<text x="48" y="139.5" text-anchor="end">60%</text>
<text x="48" y="82.0" text-anchor="end">80%</text>
</g>
<text class="axis-title" x="56" y="70" text-anchor="start">Dead features (%)</text>
<g class="axis">
<line x1="56" x2="796" y1="308.0" y2="308.0" />
<text x="56.0" y="326.0" text-anchor="middle">1M</text>
<text x="352.0" y="326.0" text-anchor="middle">4M</text>
<text x="796.0" y="326.0" text-anchor="middle">34M</text>
</g>
<text class="axis-title" x="796" y="344.0" text-anchor="end">Dictionary size (features)</text>
<g class="s1">
<path class="line" d="M56.0,302.2 L352.0,207.4 L796.0,121.1" />
<circle class="dot" cx="56.0" cy="302.2" r="4" data-tip="&lt;b&gt;Dead features&lt;/b&gt;&lt;br&gt;1M: 2%" />
<circle class="dot" cx="352.0" cy="207.4" r="4" data-tip="&lt;b&gt;Dead features&lt;/b&gt;&lt;br&gt;4M: 35%" />
<circle class="dot" cx="796.0" cy="121.1" r="4" data-tip="&lt;b&gt;Dead features&lt;/b&gt;&lt;br&gt;34M: 65%" />
</g>
<text class="label" x="804.0" y="125.1">65%</text>
<text class="subtitle" x="0" y="374">Source: Templeton, Conerly, Marcus et al. (Anthropic), Scaling Monosemanticity, 2024</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 4.</span> The cost of scale in dictionary learning. As the Claude 3 Sonnet autoencoders grow from one million to 34 million features, the fraction that never activate rises from 2% to 65%, leaving roughly twelve million live features. Data from [22].</figcaption>
</figure>

<p>The labs’ own caveats are substantial and belong next to the demonstrations. Two thirds of the 34-million dictionary is dead [22]. The transcoder-based replacement model reproduces the real model’s next token on only about half of pretraining-style prompts, attribution graphs were judged to give satisfying insight on roughly a quarter of the prompts tried, attention patterns are taken as given rather than explained, and features often sit at the wrong level of abstraction, splitting or absorbing one another [25, 30]. A replacement model is a surrogate, and a surrogate can be mechanistically unfaithful even when its outputs correlate, which is the failure mode Jacovi and Goldberg warned about for every surrogate before it [2].</p>

<h2 id="the-sanity-check-moment-again">The sanity-check moment, again</h2>

<p>In 2025 sparse autoencoders got their Adebayo test. AxBench [27] compared steering and concept-detection methods on Gemma 2 and found that for steering, prompting and fine-tuning beat SAEs, and that for detection a difference-of-means direction beat them too. Kantamneni et al. [28] found SAE probes beat ordinary linear probes only on isolated datasets under data scarcity, imbalance, noise and shift. DeepMind’s own interpretability team [29] reported that a dense linear probe reached AUROC 0.999 out of distribution on harmful-intent detection, that SAE probes did not, and that they were deprioritising fundamental SAE research in favour of model diffing and interpreting reasoning models.</p>

<p>The right reading is not that the method failed but that the field applied its own standard. An interpretability method earns trust by beating a trivial baseline on a task someone cares about, by changing when the model changes, and by predicting the effect of an intervention. Saliency maps were held to that standard in 2018, chains of thought in 2023, sparse autoencoders in 2025. Each time, the methods that looked best to people were not the ones that survived.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Plausibility and faithfulness are different properties, and human studies can only measure the first. Choose methods by the second.</li>
<li>Three tests falsify an explanation: randomise the model, perturb the explanation, compare to a trivial baseline. Guided Backprop, chains of thought and sparse autoencoders have each failed at least one.</li>
<li>Perturbation-based explainers can be gamed by recognising their off-manifold queries; audit with real data.</li>
<li>Reasoning models verbalise the hints they use a quarter to a third of the time. Chain-of-thought monitoring is useful and fragile, and optimising against it makes it worse.</li>
<li>Mechanistic interpretability has produced real causal evidence inside frontier models, and its own authors estimate it explains a minority of the computation. Both halves of that sentence matter.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Adebayo, Gilmer, Muelly, Goodfellow, Hardt, Kim. <em>Sanity Checks for Saliency Maps.</em> NeurIPS 2018. <a href="https://arxiv.org/abs/1810.03292">arXiv:1810.03292</a></li>
<li>Jacovi, Goldberg. <em>Towards Faithfully Interpretable NLP Systems: How should we define and evaluate faithfulness?</em> ACL 2020. <a href="https://arxiv.org/abs/2004.03685">arXiv:2004.03685</a></li>
<li>Simonyan, Vedaldi, Zisserman. <em>Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps.</em> ICLR 2014 Workshop. <a href="https://arxiv.org/abs/1312.6034">arXiv:1312.6034</a></li>
<li>Sundararajan, Taly, Yan. <em>Axiomatic Attribution for Deep Networks.</em> ICML 2017. <a href="https://arxiv.org/abs/1703.01365">arXiv:1703.01365</a></li>
<li>Smilkov, Thorat, Kim, Viégas, Wattenberg. <em>SmoothGrad: removing noise by adding noise.</em> ICML 2017 Workshop on Visualization for Deep Learning. <a href="https://arxiv.org/abs/1706.03825">arXiv:1706.03825</a></li>
<li>Selvaraju, Cogswell, Das, Vedantam, Parikh, Batra. <em>Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization.</em> ICCV 2017. <a href="https://arxiv.org/abs/1610.02391">arXiv:1610.02391</a></li>
<li>Ribeiro, Singh, Guestrin. <em>"Why Should I Trust You?": Explaining the Predictions of Any Classifier.</em> KDD 2016. <a href="https://arxiv.org/abs/1602.04938">arXiv:1602.04938</a></li>
<li>Lundberg, Lee. <em>A Unified Approach to Interpreting Model Predictions.</em> NeurIPS 2017. <a href="https://arxiv.org/abs/1705.07874">arXiv:1705.07874</a></li>
<li>Lundberg, Erion, Chen et al. <em>From local explanations to global understanding with explainable AI for trees.</em> Nature Machine Intelligence 2020. <a href="https://arxiv.org/abs/1905.04610">arXiv:1905.04610</a></li>
<li>Kindermans, Hooker, Adebayo et al. <em>The (Un)reliability of saliency methods.</em> arXiv 2017. <a href="https://arxiv.org/abs/1711.00867">arXiv:1711.00867</a></li>
<li>Slack, Hilgard, Jia, Singh, Lakkaraju. <em>Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methods.</em> AIES 2020. <a href="https://arxiv.org/abs/1911.02508">arXiv:1911.02508</a></li>
<li>Rudin. <em>Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead.</em> Nature Machine Intelligence 2019. <a href="https://arxiv.org/abs/1811.10154">arXiv:1811.10154</a></li>
<li>Wachter, Mittelstadt, Russell. <em>Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPR.</em> Harvard Journal of Law &amp; Technology 2018. <a href="https://arxiv.org/abs/1711.00399">arXiv:1711.00399</a></li>
<li>Wei, Wang, Schuurmans et al. <em>Chain-of-Thought Prompting Elicits Reasoning in Large Language Models.</em> NeurIPS 2022. <a href="https://proceedings.neurips.cc/paper/2022/hash/9d5609613524ecf4f15af0f7b31abca4-Abstract-Conference.html">NeurIPS proceedings</a></li>
<li>Kojima, Gu, Reid, Matsuo, Iwasawa. <em>Large Language Models are Zero-Shot Reasoners.</em> NeurIPS 2022. <a href="https://arxiv.org/abs/2205.11916">arXiv:2205.11916</a></li>
<li>Turpin, Michael, Perez, Bowman. <em>Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting.</em> NeurIPS 2023. <a href="https://arxiv.org/abs/2305.04388">arXiv:2305.04388</a></li>
<li>Lanham, Chen, Radhakrishnan et al. <em>Measuring Faithfulness in Chain-of-Thought Reasoning.</em> arXiv 2023. <a href="https://arxiv.org/abs/2307.13702">arXiv:2307.13702</a></li>
<li>Chen, Benton, Radhakrishnan et al. <em>Reasoning Models Don't Always Say What They Think.</em> Anthropic, 2025. <a href="https://www.anthropic.com/research/reasoning-models-dont-say-think">anthropic.com</a></li>
<li>Baker, Huizinga, Gao et al. <em>Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscation.</em> arXiv 2025. <a href="https://arxiv.org/abs/2503.11926">arXiv:2503.11926</a></li>
<li>Korbak, Balesni, Barnes et al. <em>Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safety.</em> arXiv 2025. <a href="https://arxiv.org/abs/2507.11473">arXiv:2507.11473</a></li>
<li>Bricken, Templeton, Batson et al. <em>Towards Monosemanticity: Decomposing Language Models With Dictionary Learning.</em> Transformer Circuits Thread, 2023. <a href="https://transformer-circuits.pub/2023/monosemantic-features/">transformer-circuits.pub</a></li>
<li>Templeton, Conerly, Marcus et al. <em>Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet.</em> Transformer Circuits Thread, 2024. <a href="https://transformer-circuits.pub/2024/scaling-monosemanticity/">transformer-circuits.pub</a></li>
<li>Gao, Dupré la Tour, Tillman et al. <em>Scaling and evaluating sparse autoencoders.</em> ICLR 2025. <a href="https://arxiv.org/abs/2406.04093">arXiv:2406.04093</a></li>
<li>Lieberum, Rajamanoharan, Conmy et al. <em>Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2.</em> arXiv 2024. <a href="https://arxiv.org/abs/2408.05147">arXiv:2408.05147</a></li>
<li>Ameisen, Lindsey, Pearce et al. <em>Circuit Tracing: Revealing Computational Graphs in Language Models.</em> Transformer Circuits Thread, 2025. <a href="https://transformer-circuits.pub/2025/attribution-graphs/methods.html">transformer-circuits.pub</a></li>
<li>Lindsey, Gurnee, Ameisen et al. <em>On the Biology of a Large Language Model.</em> Transformer Circuits Thread, 2025. <a href="https://transformer-circuits.pub/2025/attribution-graphs/biology.html">transformer-circuits.pub</a></li>
<li>Wu, Arora, Geiger et al. <em>AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoders.</em> ICML 2025. <a href="https://proceedings.mlr.press/v267/wu25a.html">PMLR 267</a></li>
<li>Kantamneni, Engels, Rajamanoharan, Tegmark, Nanda. <em>Are Sparse Autoencoders Useful? A Case Study in Sparse Probing.</em> ICML 2025. <a href="https://arxiv.org/abs/2502.16681">arXiv:2502.16681</a></li>
<li>Smith, Rajamanoharan, Conmy et al. <em>Negative Results for SAEs On Downstream Tasks and Deprioritising SAE Research.</em> Google DeepMind, AI Alignment Forum, March 2025. <a href="https://www.alignmentforum.org/posts/4uXCAJNuPKtKBsi28/negative-results-for-saes-on-downstream-tasks">alignmentforum.org</a></li>
<li>Chanin, Wilken-Smith, Dulka, Bhatnagar, Bloom. <em>A is for Absorption: Studying Feature Splitting and Absorption in Sparse Autoencoders.</em> arXiv 2024. <a href="https://arxiv.org/abs/2409.14507">arXiv:2409.14507</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Explainability" /><category term="explainability" /><category term="interpretability" /><category term="SHAP" /><category term="saliency" /><category term="chain-of-thought" /><category term="sparse-autoencoders" /><summary type="html"><![CDATA[In 2018 Adebayo and colleagues ran an experiment that should have ended a research programme [1]. They took the standard saliency methods for image classifiers, the ones that colour the pixels a network “looked at”, and applied them to a network whose weights had been replaced with random values, layer by layer from the top. Some methods changed as you would hope. Others did not. Guided Backpropagation and Guided Grad-CAM produced essentially the same attractive, edge-hugging maps for a trained network, a network with random weights, and a network trained on shuffled labels. The maps looked like explanations. They were edge detectors with extra steps.]]></summary></entry><entry><title type="html">Poisoning Attacks: Corrupting a Model Before It Exists</title><link href="https://cymtrick.github.io/2025/11/10/poisoning-attacks/" rel="alternate" type="text/html" title="Poisoning Attacks: Corrupting a Model Before It Exists" /><published>2025-11-10T00:00:00+00:00</published><updated>2025-11-10T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/11/10/poisoning-attacks</id><content type="html" xml:base="https://cymtrick.github.io/2025/11/10/poisoning-attacks/"><![CDATA[<p>In 2012, Biggio, Nelson and Laskov asked a question that sounds too simple to be interesting: if you could add one point to the training set of a support vector machine, where would you put it? They answered it by differentiating the SVM’s validation error with respect to the position of the inserted point and walking uphill [1]. On MNIST digit pairs with a hundred training examples, that single point raised the test error of a linear SVM from 2–5% to 15–20%. The attack never touches the model, the weights, or the test inputs. It touches the data, once, before training starts.</p>

<p>That is the shape of every poisoning attack since. An evasion attack has to be mounted against a deployed model, where it can in principle be detected, rate-limited, or filtered. A poisoning attack happens before the model exists, and by the time anyone evaluates it the attack is a property of the weights. What has changed in the thirteen years since Biggio’s paper is the scale of the data, the stealth of the poisons, and the discovery that the number of poisons required does not grow with the size of the training set.</p>

<h2 id="two-goals-two-kinds-of-access">Two goals, two kinds of access</h2>

<p>Poisoning attacks divide along two axes. The first is what the attacker wants. An <em>availability</em> attack, like Biggio’s, degrades the model for everyone; it is a denial of service against accuracy. An <em>integrity</em> attack, which the literature calls a backdoor or trojan, leaves the model accurate on ordinary inputs and installs a specific misbehaviour that only the attacker can trigger. The second axis is what the attacker controls: training labels, training inputs, or, in federated settings, the model updates themselves.</p>

<p>Backdoors are the case that matters for deployed systems, because they are invisible to standard evaluation. The model is trained on a mixture of clean data and a small number of examples that pair a trigger, such as a patch of pixels or a phrase, with a target label. It learns the association because to the loss function the trigger is simply a feature with perfect predictive value. Clean test accuracy barely moves. The trigger exists only in the attacker’s pocket.</p>

<h2 id="2017-the-supply-chain">2017: the supply chain</h2>

<p>Gu, Dolan-Gavitt and Garg framed this as a supply-chain problem in <em>BadNets</em> [2]. Training is outsourced, pretrained models are downloaded and fine-tuned, and nobody audits every image. Their demonstrations have the texture of a security paper rather than an ML paper: a stop sign with a yellow Post-it classified as a speed limit with 90.3% success, and a backdoored traffic-sign model whose backdoor survives transfer learning to a Swedish sign dataset, misclassifying 61.6% of triggered inputs against 70.2% for the clean baseline. On MNIST their all-to-all backdoor misclassified more than 99% of triggered inputs at a cost of 0.48% clean error, though it required around 10% of the training images to carry the trigger.</p>

<p>Chen and colleagues, independently and the same year, showed that the attacker needs neither model access nor a large footprint [3]. Against a DeepID face recogniser trained on roughly 600,000 images of 1,283 identities, a single-instance attack with five poisoned images reached 100% success with clean accuracy within a third of a point of the pristine model’s 97.83%. A blended trigger, a faint cartoon image mixed into the photo at 2% opacity during training, needed 115 poisons for 83% success and 577 for 99.89%. A pair of physical sunglasses worked as a trigger with 57 poisons. These are the counts in the lead figure, and they are the first evidence that the relevant quantity is absolute, not relative.</p>

<h2 id="making-poisons-look-innocent">Making poisons look innocent</h2>

<p>The 2017 attacks mislabel their poisons, which means a human reviewing the data could notice. The clean-label line of work asks whether poisons can carry correct labels and still work, and the answer turned out to depend heavily on whether the victim trains from scratch.</p>

<p><em>Poison Frogs</em> [4] attacked transfer learning by feature collision: craft an image that looks like the base class to a person but sits next to the target in the network’s feature space. Against an InceptionV3 with a retrained final layer, one poison succeeded on 100% of 1,099 targets with a median target confidence of 99.6% and a 0.2% drop in clean accuracy. Trained end-to-end on CIFAR-10, the same idea needed 50 poisons carrying a visible watermark to reach about 60%.</p>

<p>Turner, Tsipras and Madry explained why clean-label backdoors are hard [5]. A correctly labelled image that also carries a trigger is already easy for the model to classify from its content, so the trigger is redundant and is ignored. The fix is to make the poisoned image <em>hard</em>, by interpolating it toward another class with a GAN or by applying an adversarial perturbation, so that the trigger becomes the easiest available feature. On CIFAR-10 a plain label-consistent attack failed below 300 poisons, while the adversarially perturbed variant with 75 poisons, 1.5% of the target class, exceeded 50% success on half the classes. Saha, Subramanya and Pirsiavash pushed this to ImageNet with <em>Hidden Trigger</em> backdoors [6], where the trigger never appears in the training set at all; the second series in the lead figure is theirs.</p>

<p>The inflection point for from-scratch training was <em>Witches’ Brew</em> [7]. Rather than unrolling the training process, which the earlier MetaPoison method did at a cost the authors estimate at over 500 GPU-days, Geiping and colleagues match gradients: choose poisons so that the gradient of the training loss on the poisoned batch aligns with the gradient of the attacker’s objective on the target. Brewing costs under four GPU-hours. On a standardised CIFAR-10 benchmark with a 1% budget, every prior clean-label method scores between 0% and 4%; gradient matching scores 45–55% on ResNet-18. On full ImageNet trained from scratch, a budget of 0.05% of the data gave roughly 80% success, and poisons transferred to Google Cloud AutoML in five of five runs.</p>

<figure class="fig" id="fig-poisoning-cleanlabel">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 420" width="860" height="420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clean-label poisoning of models trained from scratch">
<text class="title" x="0" y="18">Clean-label poisoning of models trained from scratch</text>
<text class="subtitle" x="0" y="38">CIFAR-10, 1% poison budget, ε = 8, 100 trials per cell. Success rate of each attack on three architectures.</text>
<g class="legend s6"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">Poison Frogs</text></g>
<g class="legend s5"><rect class="swatch" x="126.80000000000001" y="55" width="12" height="12" rx="2" /><text x="144.8" y="66">Convex Polytopes</text></g>
<g class="legend s4"><rect class="swatch" x="281.20000000000005" y="55" width="12" height="12" rx="2" /><text x="299.20000000000005" y="66">Hidden Trigger</text></g>
<g class="legend s2"><rect class="swatch" x="421.80000000000007" y="55" width="12" height="12" rx="2" /><text x="439.80000000000007" y="66">Witches' Brew (K=1)</text></g>
<g class="legend s1"><rect class="swatch" x="0" y="77" width="12" height="12" rx="2" /><text x="18" y="88">Witches' Brew (K=6, mixed models)</text></g>
<g class="grid">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<line x1="56" x2="836" y1="299.0" y2="299.0" />
<line x1="56" x2="836" y1="246.0" y2="246.0" />
<line x1="56" x2="836" y1="193.0" y2="193.0" />
<line x1="56" x2="836" y1="140.0" y2="140.0" />
</g><g class="axis">
<text x="48" y="356.0" text-anchor="end">0%</text>
<text x="48" y="303.0" text-anchor="end">15%</text>
<text x="48" y="250.0" text-anchor="end">30%</text>
<text x="48" y="197.0" text-anchor="end">45%</text>
<text x="48" y="144.0" text-anchor="end">60%</text>
</g>
<text class="axis-title" x="56" y="132" text-anchor="start">Attack success rate (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<text x="186.0" y="370.0" text-anchor="middle">ResNet-18</text>
<text x="446.0" y="370.0" text-anchor="middle">MobileNet-V2</text>
<text x="706.0" y="370.0" text-anchor="middle">VGG11</text>
</g>
<g class="s6">
<path class="bar" d="M122.0,352.0 V352.0 Q122.0,352.0 122.0,352.0 H146.0 Q146.0,352.0 146.0,352.0 V352.0 Z" data-tip="&lt;b&gt;Poison Frogs&lt;/b&gt;&lt;br&gt;ResNet-18: 0%" />
<path class="bar" d="M382.0,352.0 V350.2 Q382.0,348.5 383.8,348.5 H404.2 Q406.0,348.5 406.0,350.2 V352.0 Z" data-tip="&lt;b&gt;Poison Frogs&lt;/b&gt;&lt;br&gt;MobileNet-V2: 1%" />
<path class="bar" d="M642.0,352.0 V345.4 Q642.0,341.4 646.0,341.4 H662.0 Q666.0,341.4 666.0,345.4 V352.0 Z" data-tip="&lt;b&gt;Poison Frogs&lt;/b&gt;&lt;br&gt;VGG11: 3%" />
</g>
<g class="s5">
<path class="bar" d="M148.0,352.0 V352.0 Q148.0,352.0 148.0,352.0 H172.0 Q172.0,352.0 172.0,352.0 V352.0 Z" data-tip="&lt;b&gt;Convex Polytopes&lt;/b&gt;&lt;br&gt;ResNet-18: 0%" />
<path class="bar" d="M408.0,352.0 V350.2 Q408.0,348.5 409.8,348.5 H430.2 Q432.0,348.5 432.0,350.2 V352.0 Z" data-tip="&lt;b&gt;Convex Polytopes&lt;/b&gt;&lt;br&gt;MobileNet-V2: 1%" />
<path class="bar" d="M668.0,352.0 V350.2 Q668.0,348.5 669.8,348.5 H690.2 Q692.0,348.5 692.0,350.2 V352.0 Z" data-tip="&lt;b&gt;Convex Polytopes&lt;/b&gt;&lt;br&gt;VGG11: 1%" />
</g>
<g class="s4">
<path class="bar" d="M174.0,352.0 V352.0 Q174.0,352.0 174.0,352.0 H198.0 Q198.0,352.0 198.0,352.0 V352.0 Z" data-tip="&lt;b&gt;Hidden Trigger&lt;/b&gt;&lt;br&gt;ResNet-18: 0%" />
<path class="bar" d="M434.0,352.0 V341.9 Q434.0,337.9 438.0,337.9 H454.0 Q458.0,337.9 458.0,341.9 V352.0 Z" data-tip="&lt;b&gt;Hidden Trigger&lt;/b&gt;&lt;br&gt;MobileNet-V2: 4%" />
<path class="bar" d="M694.0,352.0 V350.2 Q694.0,348.5 695.8,348.5 H716.2 Q718.0,348.5 718.0,350.2 V352.0 Z" data-tip="&lt;b&gt;Hidden Trigger&lt;/b&gt;&lt;br&gt;VGG11: 1%" />
</g>
<g class="s2">
<path class="bar" d="M200.0,352.0 V197.0 Q200.0,193.0 204.0,193.0 H220.0 Q224.0,193.0 224.0,197.0 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=1)&lt;/b&gt;&lt;br&gt;ResNet-18: 45%" />
<path class="bar" d="M460.0,352.0 V228.8 Q460.0,224.8 464.0,224.8 H480.0 Q484.0,224.8 484.0,228.8 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=1)&lt;/b&gt;&lt;br&gt;MobileNet-V2: 36%" />
<path class="bar" d="M720.0,352.0 V327.7 Q720.0,323.7 724.0,323.7 H740.0 Q744.0,323.7 744.0,327.7 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=1)&lt;/b&gt;&lt;br&gt;VGG11: 8%" />
</g>
<g class="s1">
<path class="bar" d="M226.0,352.0 V182.9 Q226.0,178.9 230.0,178.9 H246.0 Q250.0,178.9 250.0,182.9 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=6, mixed models)&lt;/b&gt;&lt;br&gt;ResNet-18: 49%" />
<text class="label" x="238.0" y="172.9" text-anchor="middle">49%</text>
<path class="bar" d="M486.0,352.0 V221.7 Q486.0,217.7 490.0,217.7 H506.0 Q510.0,217.7 510.0,221.7 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=6, mixed models)&lt;/b&gt;&lt;br&gt;MobileNet-V2: 38%" />
<text class="label" x="498.0" y="211.7" text-anchor="middle">38%</text>
<path class="bar" d="M746.0,352.0 V232.3 Q746.0,228.3 750.0,228.3 H766.0 Q770.0,228.3 770.0,232.3 V352.0 Z" data-tip="&lt;b&gt;Witches' Brew (K=6, mixed models)&lt;/b&gt;&lt;br&gt;VGG11: 35%" />
<text class="label" x="758.0" y="222.3" text-anchor="middle">35%</text>
</g>
<text class="subtitle" x="0" y="414">Source: Geiping et al., ICLR 2021, Table 3</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> The standardised clean-label benchmark on CIFAR-10 at a 1% poison budget. Feature-collision methods designed for transfer learning barely register when the victim trains from scratch; gradient matching is the first to work. The K=6 variant brews poisons against an ensemble of six models and transfers across architectures. Data from [7], Table 3.</figcaption>
</figure>

<p>A note on reading these numbers: the poisoning literature is not internally consistent about settings. Witches’ Brew reports ε = 16 in one table and ε = 8 in another; Hidden Trigger reports accuracy on patched images rather than success rate; BadNets’ text claims a 25% drop that its own table puts at 13 points. Every number in this post carries its setting for that reason.</p>

<h2 id="how-cheap-is-the-web">How cheap is the web?</h2>

<p>Academic poisoning assumed the attacker controls some fraction of a dataset without saying how. Carlini and colleagues [8] made it a purchasing decision. Web-scale image-text datasets such as LAION-400M are distributed as lists of URLs, not images, and some of those domains expire. Buy the domain, and whatever you host there is what the next person to download the dataset trains on. The fractions are small but the prices are smaller.</p>

<table>
  <thead>
    <tr>
      <th>Dataset</th>
      <th>On expired domains</th>
      <th>Purchasable for ≤ $1,000</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>LAION-400M</td>
      <td>0.71%</td>
      <td>≥ 0.05%</td>
    </tr>
    <tr>
      <td>COYO-700M</td>
      <td>1.51%</td>
      <td>≥ 0.10%</td>
    </tr>
    <tr>
      <td>LAION-2B-en</td>
      <td>0.29%</td>
      <td>≥ 0.01%</td>
    </tr>
    <tr>
      <td>Conceptual Captions 3M</td>
      <td>1.04%</td>
      <td>≥ 0.08%</td>
    </tr>
    <tr>
      <td>Conceptual 12M</td>
      <td>1.19%</td>
      <td>≥ 0.12%</td>
    </tr>
    <tr>
      <td>VGG Face</td>
      <td>3.70%</td>
      <td>≥ 0.17%</td>
    </tr>
    <tr>
      <td>FaceScrub</td>
      <td>4.51%</td>
      <td>≥ 0.61%</td>
    </tr>
    <tr>
      <td>PubFig</td>
      <td>6.48%</td>
      <td>≥ 0.32%</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">Share of each dataset whose images live on domains that had expired at the time of the study, and the share an attacker could control for under a thousand dollars. At least 0.01% of every dataset was controllable for under $60 a year. Data from [8], Table 1.</p>

<p>A thousand poisoned LAION-400M images, 0.00025% of the dataset, were enough for a 60% object-misclassification backdoor. A second attack, <em>frontrunning</em>, targets datasets built from Wikipedia snapshots: the snapshot times are predictable to within about thirty minutes, and an edit that is reverted after the snapshot still ships. Up to 6.5% of English Wikipedia articles were exposed this way, with a median of 8.2% across other languages. After disclosure, six datasets began shipping cryptographic hashes of their images, which closes the hole at a cost: only 1.1 million of the 2.9 million still-online Conceptual Captions images matched their stored hash.</p>

<h2 id="language-models-250-documents">Language models: 250 documents</h2>

<p>The natural hope was that web-scale pretraining would dilute poisons into irrelevance. In 2025, Souly and colleagues at the UK AI Security Institute, Anthropic and the Alan Turing Institute tested the hope directly, training 72 models from 600 million to 13 billion parameters on Chinchilla-optimal data and inserting a fixed number of documents that teach the model to emit gibberish after a trigger phrase [9]. One hundred documents failed at every size. Two hundred and fifty succeeded at every size. The 13B model trained on twenty times as much clean data as the 600M model, and needed the same number of poisons: 0.00016% of its tokens. The result was accepted to NeurIPS 2026, and the same near-constant count held for fine-tuning. The authors are careful to say that they studied a simple denial-of-service behaviour and do not know whether more complex behaviours follow the same law.</p>

<p>Zhang and colleagues showed at ICLR 2025 that pretraining poisons persist [10]: 0.1% of pretraining data survived supervised fine-tuning and DPO for three of four attack objectives, and the denial-of-service backdoor persisted at 0.001%. Bowen et al. found at AAAI 2025 that across 24 models from 1.5B to 72B, larger models were <em>more</em> susceptible to fine-tuning poisoning [11]. The field has not settled a scaling law, and the honest summary is that larger models are at least as vulnerable and harder to clean.</p>

<p>The cleaning problem is the subject of Anthropic’s <em>Sleeper Agents</em> [12], which is best read as a result about removal rather than insertion. The authors deliberately trained models to write vulnerable code when the prompt says the year is 2024 and secure code when it says 2023, then applied the standard safety pipeline. Supervised fine-tuning and reinforcement learning left the backdoor almost untouched: 55% vulnerable code with the trigger after RL, against 9% without it. Adversarial training, in which red-team prompts that elicited the behaviour were used as training signal, drove the behaviour on those prompts to near zero while leaving it at about 99% on the triggered prompts. The model had learned the trigger more precisely, not less.</p>

<figure class="fig" id="fig-poisoning-sleeper">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 420" width="860" height="420" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="A backdoor that survives safety training">
<text class="title" x="0" y="18">A backdoor that survives safety training</text>
<text class="subtitle" x="0" y="38">Rate of vulnerable code written by a backdoored model, by year in the prompt, before and after supervised fine-tuning (SFT) and RL</text>
<text class="subtitle" x="0" y="56">safety training.</text>
<g class="legend s6"><rect class="swatch" x="0" y="73" width="12" height="12" rx="2" /><text x="18" y="84">Prompt says 2023 (no trigger)</text></g>
<g class="legend s1"><rect class="swatch" x="244.10000000000002" y="73" width="12" height="12" rx="2" /><text x="262.1" y="84">Prompt says 2024 (trigger)</text></g>
<g class="grid">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<line x1="56" x2="836" y1="289.7" y2="289.7" />
<line x1="56" x2="836" y1="227.4" y2="227.4" />
<line x1="56" x2="836" y1="165.1" y2="165.1" />
</g><g class="axis">
<text x="48" y="356.0" text-anchor="end">0%</text>
<text x="48" y="293.7" text-anchor="end">20%</text>
<text x="48" y="231.4" text-anchor="end">40%</text>
<text x="48" y="169.1" text-anchor="end">60%</text>
</g>
<text class="axis-title" x="56" y="126" text-anchor="start">Vulnerable code (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="352.0" y2="352.0" />
<text x="186.0" y="370.0" text-anchor="middle">Before safety training</text>
<text x="446.0" y="370.0" text-anchor="middle">After SFT</text>
<text x="706.0" y="370.0" text-anchor="middle">After RL</text>
</g>
<g class="s6">
<path class="bar" d="M161.0,352.0 V309.3 Q161.0,305.3 165.0,305.3 H181.0 Q185.0,305.3 185.0,309.3 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2023 (no trigger)&lt;/b&gt;&lt;br&gt;Before safety training: 15%" />
<text class="label" x="173.0" y="299.3" text-anchor="middle">15%</text>
<path class="bar" d="M421.0,352.0 V306.2 Q421.0,302.2 425.0,302.2 H441.0 Q445.0,302.2 445.0,306.2 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2023 (no trigger)&lt;/b&gt;&lt;br&gt;After SFT: 16%" />
<text class="label" x="433.0" y="296.2" text-anchor="middle">16%</text>
<path class="bar" d="M681.0,352.0 V328.0 Q681.0,324.0 685.0,324.0 H701.0 Q705.0,324.0 705.0,328.0 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2023 (no trigger)&lt;/b&gt;&lt;br&gt;After RL: 9%" />
<text class="label" x="693.0" y="318.0" text-anchor="middle">9%</text>
</g>
<g class="s1">
<path class="bar" d="M187.0,352.0 V181.6 Q187.0,177.6 191.0,177.6 H207.0 Q211.0,177.6 211.0,181.6 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2024 (trigger)&lt;/b&gt;&lt;br&gt;Before safety training: 56%" />
<text class="label" x="199.0" y="171.6" text-anchor="middle">56%</text>
<path class="bar" d="M447.0,352.0 V178.5 Q447.0,174.5 451.0,174.5 H467.0 Q471.0,174.5 471.0,178.5 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2024 (trigger)&lt;/b&gt;&lt;br&gt;After SFT: 57%" />
<text class="label" x="459.0" y="168.5" text-anchor="middle">57%</text>
<path class="bar" d="M707.0,352.0 V184.7 Q707.0,180.7 711.0,180.7 H727.0 Q731.0,180.7 731.0,184.7 V352.0 Z" data-tip="&lt;b&gt;Prompt says 2024 (trigger)&lt;/b&gt;&lt;br&gt;After RL: 55%" />
<text class="label" x="719.0" y="174.7" text-anchor="middle">55%</text>
</g>
<text class="subtitle" x="0" y="414">Source: Hubinger et al., Anthropic 2024, Fig. 2 (distilled chain-of-thought model)</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> The code-vulnerability backdoor in a distilled chain-of-thought model, before and after the two standard safety-training stages. The gap between the trigger and non-trigger conditions is what safety training was supposed to close; it did not move. Persistence was weakest in small models and strongest in models trained to reason about the deception. These are deliberately constructed model organisms, not naturally occurring behaviour. Data from [12], Fig. 2.</figcaption>
</figure>

<h2 id="federated-learning-replacing-the-model-in-one-round">Federated learning: replacing the model in one round</h2>

<p>Federated learning moves the attacker’s lever from data to weights. Each participant trains locally and sends an update; the server averages. Bagdasaryan and colleagues observed that a participant who knows the averaging rule can scale its update by the number of participants and <em>replace</em> the global model in a single round [13]. On CIFAR-10 with ten of a hundred participants selected per round, one shot gave 100% backdoor accuracy. On a Reddit next-word model with 83,293 participants, eight malicious participants achieved what data poisoning needed four hundred for. Bhagoji and colleagues showed that one agent in ten, boosting its update tenfold, drives the target’s confidence to 0.99 within four rounds [14].</p>

<p>The classical answer is Byzantine-robust aggregation. Blanchard and colleagues proved that no linear aggregation rule tolerates even a single Byzantine worker and proposed Krum, which selects the update closest to its neighbours and is provably resilient to f Byzantine workers among n as long as 2f + 2 &lt; n [15]. The distinction the field had to learn is that Byzantine robustness is a convergence guarantee, not a backdoor guarantee: Bhagoji’s targeted update was <em>selected</em> by Krum in 34 of 40 rounds, precisely because a well-crafted malicious update looks like a typical one [14].</p>

<h2 id="defenses-and-how-each-one-breaks">Defenses, and how each one breaks</h2>

<p>Backdoor defenses fall into four families, and each has a documented adaptive failure.</p>

<p><strong>Sanitise the data.</strong> Spectral Signatures [16] observes that poisoned examples shift the top singular direction of a class’s learned representations; removing the outliers and retraining cut success rates from 74–99.8% to 0–2% on CIFAR-10. Activation Clustering [17] runs two-means on last-layer activations and reaches 99.97% detection on 10%-poisoned MNIST. Anti-Backdoor Learning [18] uses the fact that poisons are learned faster than clean data, isolates the lowest-loss 1% of examples at epoch 20, and unlearns them by gradient ascent, cutting the mean success of ten attacks from 97.73% to 7.69% while slightly <em>raising</em> clean accuracy. The failure: Hidden Trigger poisons evaded Spectral Signatures entirely, 0 of 100 removed on most ImageNet pairs [6], and filtering Witches’ Brew poisons by outlier score removed 248 of 500 at a 10% filter rate against 200 by chance [7].</p>

<p><strong>Inspect the model.</strong> Neural Cleanse [19] reverses the attacker’s problem: for each label, find the smallest perturbation that flips all inputs to that label, and flag the label whose perturbation is anomalously small. The reverse-engineered triggers had L1 norms close to the real ones, 12.0 against 16 on MNIST, and unlearning with them cut success rates from 97–100% to between 0% and 6.7% across six models. The failure is stated in the paper: the anomaly index stops working when the trigger exceeds about 14% of the image or when more than eight labels are infected. Fine-pruning [20] removes neurons dormant on clean data and then fine-tunes, but a pruning-aware attacker places the backdoor in neurons the defender cannot afford to prune.</p>

<p><strong>Screen inputs at run time.</strong> STRIP [21] superimposes random images on the input and measures the entropy of the predictions; a triggered input is suspiciously stable. It reports 0% false acceptance and 0% false rejection on CIFAR-10 and GTSRB BadNets. It assumes the trigger dominates the superimposed content, which is exactly what a blended or low-opacity trigger is designed to avoid.</p>

<p><strong>Certify.</strong> Deep Partition Aggregation [22] trains an ensemble on disjoint partitions so that each poison can affect at most one member, which yields a provable bound. On MNIST it certifies at least half the test set against more than 500 inserted poisons. On CIFAR-10 the certified count is nine. Certification does not yet reach the regime where attacks live.</p>

<p>The largest empirical effort is IARPA’s TrojAI programme, which from 2020 to 2025 released 19,264 clean and trojaned models across 27 datasets and six modalities, up to language models of about 9 billion parameters, and ran sequestered leaderboards through NIST [23]. Its final report is the fairest summary of the state of the art: weight analysis works on small models, trigger inversion on larger ones, methods do not transfer across modalities, “natural trojans” from shortcut features confound detectors, no team could certify a model clean, and detection at LLM scale is impractical. Detection and mitigation are, in the report’s words, feasible but incomplete.</p>

<div class="callout">
<div class="callout-title">Why backdoors learn so easily</div>
<p>A trigger is a low-variance feature with perfect predictive value, and gradient descent prefers such features. Anti-Backdoor Learning measures this directly: poisoned examples reach low loss within a few epochs, well before clean examples do [18]. Turner et al. show the converse: when the clean content of a poisoned image is also easy, the trigger is ignored, which is why clean-label attacks must make their images hard [5]. The same property that makes the attack work, early and confident learning of a simple feature, is what the better defenses exploit.</p>
</div>

<h2 id="what-to-do-with-this">What to do with this</h2>

<p>For a practitioner the picture reduces to a few commitments. Track provenance and hashes for anything scraped, accepting that hashes discard content that has legitimately changed [8]. Assume the number of poisons an attacker needs is measured in hundreds, independent of your dataset size [9]. Treat Byzantine-robust aggregation as convergence insurance, not backdoor insurance [14, 15]. Run a sanitisation method and a model-inspection method, knowing the attacks each one misses. And do not expect safety fine-tuning to remove a backdoor that has already been learned [12].</p>

<p>The open problems are sharper than they were five years ago. There is no poison-count scaling law for behaviours beyond denial of service. There is no reliable way to remove a backdoor from a language model short of retraining. The integrity of web-scale data rests on hashes that throw away a third of still-live content. And no federated aggregation rule is both Byzantine-robust and backdoor-robust under secure aggregation. The next post turns to the other half of the attacker’s timeline: what can be done to a model after it exists.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Poisoning is measured in absolute counts. Five images, 250 documents, one optimised point: the fraction of the dataset is almost irrelevant.</li>
<li>Backdoors are invisible to clean-accuracy evaluation by construction, and the clean-label line of work makes them invisible to human review too.</li>
<li>The web is a cheap attack surface: expired domains and snapshot frontrunning gave control of 0.01% of every major dataset for under $60.</li>
<li>Safety training does not remove backdoors from language models; adversarial training can make them more precise.</li>
<li>Every defense has a published adaptive failure, and certified defenses do not yet reach realistic poison counts. Defense in depth is the only honest recommendation.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Biggio, Nelson, Laskov. <em>Poisoning Attacks against Support Vector Machines.</em> ICML 2012. <a href="https://arxiv.org/abs/1206.6389">arXiv:1206.6389</a></li>
<li>Gu, Dolan-Gavitt, Garg. <em>BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain.</em> arXiv 2017; journal version IEEE Access 2019. <a href="https://arxiv.org/abs/1708.06733">arXiv:1708.06733</a></li>
<li>Chen, Liu, Li, Lu, Song. <em>Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoning.</em> arXiv 2017. <a href="https://arxiv.org/abs/1712.05526">arXiv:1712.05526</a></li>
<li>Shafahi, Huang, Najibi et al. <em>Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networks.</em> NeurIPS 2018. <a href="https://proceedings.neurips.cc/paper_files/paper/2018/file/22722a343513ed45f14905eb07621686-Paper.pdf">NeurIPS proceedings</a></li>
<li>Turner, Tsipras, Madry. <em>Label-Consistent Backdoor Attacks.</em> arXiv 2019. <a href="https://arxiv.org/abs/1912.02771">arXiv:1912.02771</a></li>
<li>Saha, Subramanya, Pirsiavash. <em>Hidden Trigger Backdoor Attacks.</em> AAAI 2020. <a href="https://arxiv.org/abs/1910.00033">arXiv:1910.00033</a></li>
<li>Geiping, Fowl, Huang et al. <em>Witches' Brew: Industrial Scale Data Poisoning via Gradient Matching.</em> ICLR 2021. <a href="https://arxiv.org/abs/2009.02276">arXiv:2009.02276</a></li>
<li>Carlini, Jagielski, Choquette-Choo et al. <em>Poisoning Web-Scale Training Datasets is Practical.</em> IEEE S&amp;P 2024. <a href="https://arxiv.org/abs/2302.10149">arXiv:2302.10149</a></li>
<li>Souly, Rando, Chapman et al. <em>Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples.</em> arXiv 2025; NeurIPS 2026. <a href="https://arxiv.org/abs/2510.07192">arXiv:2510.07192</a></li>
<li>Zhang, Rando, Evtimov et al. <em>Persistent Pre-training Poisoning of LLMs.</em> ICLR 2025. <a href="https://arxiv.org/abs/2410.13722">arXiv:2410.13722</a></li>
<li>Bowen, Murphy, Cai et al. <em>Scaling Trends for Data Poisoning in LLMs.</em> AAAI 2025. <a href="https://arxiv.org/abs/2408.02946">arXiv:2408.02946</a></li>
<li>Hubinger, Denison, Mu et al. <em>Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training.</em> Anthropic, arXiv 2024. <a href="https://arxiv.org/abs/2401.05566">arXiv:2401.05566</a></li>
<li>Bagdasaryan, Veit, Hua, Estrin, Shmatikov. <em>How To Backdoor Federated Learning.</em> AISTATS 2020. <a href="https://proceedings.mlr.press/v108/bagdasaryan20a.html">PMLR 108</a></li>
<li>Bhagoji, Chakraborty, Mittal, Calo. <em>Analyzing Federated Learning through an Adversarial Lens.</em> ICML 2019. <a href="https://arxiv.org/abs/1811.12470">arXiv:1811.12470</a></li>
<li>Blanchard, El Mhamdi, Guerraoui, Stainer. <em>Machine Learning with Adversaries: Byzantine Tolerant Gradient Descent.</em> NeurIPS 2017. <a href="https://papers.nips.cc/paper/2017/hash/f4b9ec30ad9f68f89b29639786cb62ef-Abstract.html">NeurIPS proceedings</a></li>
<li>Tran, Li, Madry. <em>Spectral Signatures in Backdoor Attacks.</em> NeurIPS 2018. <a href="https://arxiv.org/abs/1811.00636">arXiv:1811.00636</a></li>
<li>Chen, Carvalho, Baracaldo et al. <em>Detecting Backdoor Attacks on Deep Neural Networks by Activation Clustering.</em> AAAI SafeAI Workshop 2019. <a href="https://arxiv.org/abs/1811.03728">arXiv:1811.03728</a></li>
<li>Li, Lyu, Koren, Lyu, Li, Ma. <em>Anti-Backdoor Learning: Training Clean Models on Poisoned Data.</em> NeurIPS 2021. <a href="https://arxiv.org/abs/2110.11571">arXiv:2110.11571</a></li>
<li>Wang, Yao, Shan et al. <em>Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks.</em> IEEE S&amp;P 2019. <a href="https://people.cs.vt.edu/vbimal/publications/backdoor-sp19.pdf">PDF</a></li>
<li>Liu, Dolan-Gavitt, Garg. <em>Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks.</em> RAID 2018. <a href="https://arxiv.org/abs/1805.12185">arXiv:1805.12185</a></li>
<li>Gao, Xu, Wang et al. <em>STRIP: A Defence Against Trojan Attacks on Deep Neural Networks.</em> ACSAC 2019. <a href="https://arxiv.org/abs/1902.06531">arXiv:1902.06531</a></li>
<li>Levine, Feizi. <em>Deep Partition Aggregation: Provable Defense against General Poisoning Attacks.</em> ICLR 2021. <a href="https://arxiv.org/abs/2006.14768">arXiv:2006.14768</a></li>
<li>Reese, Kulp-McDowall et al. (IARPA). <em>Trojans in Artificial Intelligence (TrojAI), Final Report.</em> arXiv 2026. <a href="https://arxiv.org/pdf/2602.07152">arXiv:2602.07152</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Attacks" /><category term="attacks" /><category term="poisoning" /><category term="backdoors" /><category term="training-time" /><category term="supply-chain" /><summary type="html"><![CDATA[In 2012, Biggio, Nelson and Laskov asked a question that sounds too simple to be interesting: if you could add one point to the training set of a support vector machine, where would you put it? They answered it by differentiating the SVM’s validation error with respect to the position of the inserted point and walking uphill [1]. On MNIST digit pairs with a hundred training examples, that single point raised the test error of a linear SVM from 2–5% to 15–20%. The attack never touches the model, the weights, or the test inputs. It touches the data, once, before training starts.]]></summary></entry><entry><title type="html">The Threat Model Nobody Teaches in Intro ML</title><link href="https://cymtrick.github.io/2025/11/03/intro-adversarial-ml/" rel="alternate" type="text/html" title="The Threat Model Nobody Teaches in Intro ML" /><published>2025-11-03T00:00:00+00:00</published><updated>2025-11-03T00:00:00+00:00</updated><id>https://cymtrick.github.io/2025/11/03/intro-adversarial-ml</id><content type="html" xml:base="https://cymtrick.github.io/2025/11/03/intro-adversarial-ml/"><![CDATA[<p>In 2010 Barreno, Nelson, Joseph and Tygar published an experiment on SpamBayes, a Bayesian spam filter of the kind that was then standard [1]. They let an attacker control 1% of a roughly thousand-message training inbox and fill that 1% with messages containing every word in a dictionary, each labelled spam. After retraining, the filter classified about 83% of legitimate mail as spam, and marked another 12% as unsure. A focused version of the same attack, aimed at one specific future message the attacker wanted suppressed, got it labelled spam 86% of the time. The filter’s accuracy on its own validation data had been fine.</p>

<p>That experiment contains most of what this series is about. A learning system is only as trustworthy as the data it learns from and the inputs it is asked about, and in any deployed system both of those are partly chosen by other people. The standard machine-learning curriculum teaches you to reach a target accuracy and ship. Security people find that worldview incomplete, and they have had the numbers to back it up for twenty years.</p>

<h2 id="correctness-is-not-security">Correctness is not security</h2>

<p>The distinction is old in software and new in ML. A <em>correct</em> program does what its specification says on the inputs it was designed for. A <em>secure</em> program does what its specification says even when someone is actively constructing inputs to make it fail. These are different properties, and the second is strictly harder: it quantifies over an adversary rather than over a test set.</p>

<p>Barreno et al. state the premise directly. The property that makes learning attractive, its ability to adapt to complex and changing situations, is the same property an adversary exploits [1]. Papernot, McDaniel, Sinha and Wellman’s systematisation for the deep-learning era makes the consequence precise: an ML system is a data pipeline, and an adversary can manipulate the collection of its data, corrupt the model, or tamper with its outputs [2]. A model that is 99% accurate on held-out data is still a well-optimised attack surface, because the 1% is not randomly distributed; an attacker can find it on purpose.</p>

<p>One more framing from [2] matters for everything that follows. Papernot et al. catalogue one of the earliest quantitative robustness bounds, in the style of Kearns and Li: to keep 90% accuracy under malicious training data, the adversary’s share of the data must stay below about 10%. They also argue that tensions between model complexity, accuracy and resilience “may be unavoidable.” Whether that trade-off is fundamental is a question this series returns to several times, and the field has not settled it.</p>

<h2 id="where-the-field-actually-began">Where the field actually began</h2>

<p>The origin story usually told is that adversarial machine learning started in 2014, when a group at Google found that imperceptible perturbations fool image classifiers. Biggio and Roli, in a ten-year retrospective, call that “the primary misconception” about the field [3]. The chronology they document runs from 2002 (spoofing fingerprint sensors), through Dalvi et al. in 2004 and Lowd and Meek in 2005, who attacked linear spam filters and introduced the idea of an adversary who learns enough about a classifier to evade it, through Barreno’s 2006 taxonomy, early poisoning work on intrusion detectors between 2006 and 2010, and Biggio’s own gradient-based evasion of non-linear SVMs and neural networks on MNIST in 2013. Deep-network adversarial examples were, in their words, “discovered in parallel” [3].</p>

<p>The 2014 result still deserves its reputation, because it came with two observations that reshaped the field. Szegedy et al. [4] found adversarial examples for ImageNet networks by minimising the distortion needed to change a classification, and the distortion was tiny: an average per-pixel change of 0.0065 turned 64 random images into “ostrich” for AlexNet. They also showed the examples <em>transfer</em>. On MNIST, perturbations computed against one network caused 26.2% error on a different architecture trained on the same data, and 5.9% error on the same architecture trained on a disjoint half of the data; amplified to the size of ordinary Gaussian noise, those figures rose to 98% and 43%, while the Gaussian noise itself caused at most 18% error [4]. The perturbation was not noise, and it was not specific to one model.</p>

<p>Goodfellow, Shlens and Szegedy [5] supplied the explanation and the fast attack. Their linearity hypothesis says the vulnerability comes from models being too linear in high dimensions, not too non-linear; a per-pixel nudge of ε in the direction of the gradient’s sign changes a linear activation by ε times the input dimension times the average weight. At ε = 0.25 on MNIST this one-step attack produced a 99.9% error rate against a softmax classifier and 89.4% against a maxout network, both with high confidence in the wrong answer; at ε = 0.1 on CIFAR-10 it produced 87.15% error [5]. The fourth post in this series takes that result apart in detail. Here the point is that the founding experiments were quantitative, and the numbers were not subtle.</p>

<h2 id="four-places-an-adversary-can-touch-a-model">Four places an adversary can touch a model</h2>

<p>The useful way to organise all of this is to ask who can touch the model, and when. The diagram below is the pipeline threat model from Papernot et al. [2], which refines Barreno’s three axes [1] and matches the structure of the NIST taxonomy that now serves as the US government’s reference vocabulary [6].</p>

<figure class="fig" id="fig-intro-surface">
  <div class="fig-frame"><svg class="diagram" viewBox="0 0 860 330" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="The machine-learning pipeline from data collection to output, with the four attack surfaces annotated and the adversary-knowledge axis along the bottom.">
  <defs>
    <marker id="ia" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto" markerUnits="userSpaceOnUse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor" /></marker>
  </defs>
  <!-- pipeline boxes -->
  <g style="color:var(--ink-2)">
    <rect class="box" x="0" y="120" width="140" height="54" rx="6" />
    <text x="70" y="143" text-anchor="middle">Training data</text>
    <text class="small muted" x="70" y="161" text-anchor="middle">scraped, labelled, bought</text>
    <line class="arrow" x1="140" y1="147" x2="178" y2="147" marker-end="url(#ia)" />
    <rect class="box" x="180" y="120" width="140" height="54" rx="6" />
    <text x="250" y="143" text-anchor="middle">Training</text>
    <text class="small muted" x="250" y="161" text-anchor="middle">pretraining, fine-tuning</text>
    <line class="arrow" x1="320" y1="147" x2="358" y2="147" marker-end="url(#ia)" />
    <rect class="box" x="360" y="120" width="140" height="54" rx="6" />
    <text x="430" y="143" text-anchor="middle">Model</text>
    <text class="small muted" x="430" y="161" text-anchor="middle">weights, architecture</text>
    <line class="arrow" x1="500" y1="147" x2="538" y2="147" marker-end="url(#ia)" />
    <rect class="box" x="540" y="120" width="140" height="54" rx="6" />
    <text x="610" y="143" text-anchor="middle">Inference</text>
    <text class="small muted" x="610" y="161" text-anchor="middle">user input, retrieved content</text>
    <line class="arrow" x1="680" y1="147" x2="718" y2="147" marker-end="url(#ia)" />
    <rect class="box" x="720" y="120" width="140" height="54" rx="6" />
    <text x="790" y="143" text-anchor="middle">Output</text>
    <text class="small muted" x="790" y="161" text-anchor="middle">prediction, action</text>
  </g>
  <!-- attack surfaces above -->
  <g style="color:var(--accent)">
    <rect class="box-accent" x="0" y="14" width="320" height="64" rx="6" />
    <text x="12" y="36" style="font-weight:600">1 · Training-time (poisoning)</text>
    <text class="small" x="12" y="54">1% of a spam corpus · 250 web documents</text>
    <text class="small muted" x="12" y="70">Barreno “causative”; NIST “poisoning”</text>
    <line class="arrow-accent" x1="160" y1="78" x2="160" y2="116" marker-end="url(#ia)" />
    <rect class="box-accent" x="360" y="14" width="140" height="64" rx="6" />
    <text x="372" y="36" style="font-weight:600">2 · The model</text>
    <text class="small" x="372" y="54">extraction, tampering,</text>
    <text class="small" x="372" y="70">supply chain</text>
    <line class="arrow-accent" x1="430" y1="78" x2="430" y2="116" marker-end="url(#ia)" />
    <rect class="box-accent" x="540" y="14" width="140" height="64" rx="6" />
    <text x="552" y="36" style="font-weight:600">3 · Inference-time</text>
    <text class="small" x="552" y="54">evasion, TextFooler,</text>
    <text class="small" x="552" y="70">prompt injection</text>
    <line class="arrow-accent" x1="610" y1="78" x2="610" y2="116" marker-end="url(#ia)" />
    <rect class="box-accent" x="720" y="14" width="140" height="64" rx="6" />
    <text x="732" y="36" style="font-weight:600">4 · Outputs</text>
    <text class="small" x="732" y="54">membership inference,</text>
    <text class="small" x="732" y="70">data extraction</text>
    <line class="arrow-accent" x1="790" y1="78" x2="790" y2="116" marker-end="url(#ia)" />
  </g>
  <!-- indirect channel for LLM apps -->
  <g style="color:var(--ink-2)">
    <rect class="box" x="540" y="208" width="140" height="44" rx="6" stroke-dasharray="4 3" />
    <text class="small" x="610" y="226" text-anchor="middle">web pages, e-mails,</text>
    <text class="small" x="610" y="242" text-anchor="middle">tool outputs</text>
    <line class="arrow" x1="610" y1="208" x2="610" y2="178" marker-end="url(#ia)" />
    <text class="small muted" x="690" y="234">input the user never wrote</text>
  </g>
  <!-- adversary knowledge axis -->
  <g style="color:var(--ink-3)">
    <line x1="0" y1="300" x2="860" y2="300" stroke="var(--rule-strong)" stroke-width="1" />
    <text class="small muted" x="0" y="320">white-box: weights and gradients</text>
    <text class="small muted" x="430" y="320" text-anchor="middle">grey-box: architecture or data, not weights</text>
    <text class="small muted" x="860" y="320" text-anchor="end">black-box: queries only</text>
    <text class="small muted" x="430" y="292" text-anchor="middle">what the adversary knows</text>
  </g>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 1.</span> The ML pipeline and its four attack surfaces, after Papernot et al. [2] and NIST AI 100-2 [6]. Training-time attacks are Barreno's 'causative' class, inference-time attacks are 'exploratory'; the lower axis records how much the adversary knows. The dashed box is the channel that language-model applications added: content the model reads that the user never wrote [11].</figcaption>
</figure>

<p>Barreno et al. classify an attack on three axes. <em>Influence</em>: causative attacks shape the training data, exploratory attacks probe a fixed model. <em>Security violation</em>: integrity attacks cause false negatives (the malicious input gets through), availability attacks cause false positives (the system becomes useless, as in the SpamBayes experiment). <em>Specificity</em>: targeted at one input, or indiscriminate [1]. Papernot et al. add the dimension that matters most in practice, adversary knowledge: at training time the attacker may be able to read, inject or modify data, or corrupt the learning algorithm itself; at inference time the attacker either has the weights (white-box) or only query access (black-box) [2]. The goals are the classical confidentiality, integrity and availability triad, plus privacy, which the later posts on membership inference and data extraction take up.</p>

<p>Mapped onto the pipeline, each surface has a canonical attack with a number attached.</p>

<table>
  <thead>
    <tr>
      <th>Surface</th>
      <th>Barreno / NIST class</th>
      <th>Canonical result</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Training data</td>
      <td>causative / poisoning</td>
      <td>1% of an inbox → 83% of ham marked spam [1]; 250 documents backdoor a 13B model [14]</td>
    </tr>
    <tr>
      <td>The model</td>
      <td>extraction, tampering, supply chain</td>
      <td>substitute-model transfer succeeds 96% against a hosted logistic-regression API [2]</td>
    </tr>
    <tr>
      <td>Inference input</td>
      <td>exploratory / evasion</td>
      <td>FGSM at ε = 0.25: 99.9% error on MNIST [5]; TextFooler: BERT from 86% to 11.5% [9]</td>
    </tr>
    <tr>
      <td>Outputs</td>
      <td>confidentiality / privacy</td>
      <td>membership inference, training-data extraction, system-prompt leakage [2, 7]</td>
    </tr>
  </tbody>
</table>

<p class="fig-caption">The four surfaces with one representative result each. Every entry is treated at length in a later post.</p>

<p>A common claim is that the defenses for these surfaces are orthogonal. That is not what the literature shows. Barreno’s point is that the taxonomy predicts attacker and defender <em>costs</em> [1]; Papernot’s is that robustness on one axis tends to trade against accuracy [2]; and the AgentDojo numbers in the lead figure show every tested prompt-injection defense costing 15 to 20 points of utility under attack [13]. Defenses interact, usually through the same accuracy budget.</p>

<h2 id="text-is-not-safe-either">Text is not safe either</h2>

<p>A natural reaction to the image results is that they depend on continuous pixels, and discrete text should be harder to perturb. The resistance turns out to be weak, and the reason is the geometry of word embeddings.</p>

<p>Word2vec [8] trains a shallow model to predict a word from its context, or the context from the word, and keeps the hidden representation. Trained with hierarchical softmax on 1.6 billion words in under a day, that representation places semantically similar words near each other. The neighbourhood structure is the feature that makes embeddings useful, and it is exactly the structure an attacker needs: a synonym is a nearby point.</p>

<p>TextFooler [9] exploits it mechanically. Rank the words of an input by how much deleting them changes the prediction, then replace the most important ones with their nearest neighbours in a counter-fitted embedding space, subject to part-of-speech and sentence-similarity constraints. Against BERT the effect is close to total.</p>

<figure class="fig" id="fig-intro-textfooler">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 400" width="860" height="400" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Synonym substitution breaks BERT">
<text class="title" x="0" y="18">Synonym substitution breaks BERT</text>
<text class="subtitle" x="0" y="38">Classification accuracy before and after TextFooler replaces 6–22% of the words in each input with embedding-space neighbours.</text>
<g class="legend s6"><rect class="swatch" x="0" y="55" width="12" height="12" rx="2" /><text x="18" y="66">Original</text></g>
<g class="legend s1"><rect class="swatch" x="99.2" y="55" width="12" height="12" rx="2" /><text x="117.2" y="66">After TextFooler</text></g>
<g class="grid">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<line x1="56" x2="836" y1="274.5" y2="274.5" />
<line x1="56" x2="836" y1="217.0" y2="217.0" />
<line x1="56" x2="836" y1="159.5" y2="159.5" />
<line x1="56" x2="836" y1="102.0" y2="102.0" />
</g><g class="axis">
<text x="48" y="336.0" text-anchor="end">0%</text>
<text x="48" y="278.5" text-anchor="end">25%</text>
<text x="48" y="221.0" text-anchor="end">50%</text>
<text x="48" y="163.5" text-anchor="end">75%</text>
<text x="48" y="106.0" text-anchor="end">100%</text>
</g>
<text class="axis-title" x="56" y="94" text-anchor="start">Accuracy (%)</text>
<g class="axis">
<line x1="56" x2="836" y1="332.0" y2="332.0" />
<text x="111.7" y="350.0" text-anchor="middle">MR</text>
<text x="223.1" y="350.0" text-anchor="middle">IMDB</text>
<text x="334.6" y="350.0" text-anchor="middle">Yelp</text>
<text x="446.0" y="350.0" text-anchor="middle">AG News</text>
<text x="557.4" y="350.0" text-anchor="middle">Fake News</text>
<text x="668.9" y="350.0" text-anchor="middle">SNLI</text>
<text x="780.3" y="350.0" text-anchor="middle">MNLI</text>
</g>
<g class="s6">
<path class="bar" d="M86.7,332.0 V138.2 Q86.7,134.2 90.7,134.2 H106.7 Q110.7,134.2 110.7,138.2 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;MR: 86.0%" />
<path class="bar" d="M198.1,332.0 V126.9 Q198.1,122.9 202.1,122.9 H218.1 Q222.1,122.9 222.1,126.9 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;IMDB: 90.9%" />
<path class="bar" d="M309.6,332.0 V112.9 Q309.6,108.9 313.6,108.9 H329.6 Q333.6,108.9 333.6,112.9 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;Yelp: 97.0%" />
<path class="bar" d="M421.0,332.0 V119.3 Q421.0,115.3 425.0,115.3 H441.0 Q445.0,115.3 445.0,119.3 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;AG News: 94.2%" />
<path class="bar" d="M532.4,332.0 V111.1 Q532.4,107.1 536.4,107.1 H552.4 Q556.4,107.1 556.4,111.1 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;Fake News: 97.8%" />
<path class="bar" d="M643.9,332.0 V130.4 Q643.9,126.4 647.9,126.4 H663.9 Q667.9,126.4 667.9,130.4 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;SNLI: 89.4%" />
<path class="bar" d="M755.3,332.0 V140.3 Q755.3,136.3 759.3,136.3 H775.3 Q779.3,136.3 779.3,140.3 V332.0 Z" data-tip="&lt;b&gt;Original&lt;/b&gt;&lt;br&gt;MNLI: 85.1%" />
</g>
<g class="s1">
<path class="bar" d="M112.7,332.0 V309.6 Q112.7,305.6 116.7,305.6 H132.7 Q136.7,305.6 136.7,309.6 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;MR: 11.5%" />
<path class="bar" d="M224.1,332.0 V304.7 Q224.1,300.7 228.1,300.7 H244.1 Q248.1,300.7 248.1,304.7 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;IMDB: 13.6%" />
<path class="bar" d="M335.6,332.0 V320.8 Q335.6,316.8 339.6,316.8 H355.6 Q359.6,316.8 359.6,320.8 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;Yelp: 6.6%" />
<path class="bar" d="M447.0,332.0 V307.2 Q447.0,303.2 451.0,303.2 H467.0 Q471.0,303.2 471.0,307.2 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;AG News: 12.5%" />
<path class="bar" d="M558.4,332.0 V291.6 Q558.4,287.6 562.4,287.6 H578.4 Q582.4,287.6 582.4,291.6 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;Fake News: 19.3%" />
<path class="bar" d="M669.9,332.0 V326.8 Q669.9,322.8 673.9,322.8 H689.9 Q693.9,322.8 693.9,326.8 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;SNLI: 4.0%" />
<path class="bar" d="M781.3,332.0 V313.9 Q781.3,309.9 785.3,309.9 H801.3 Q805.3,309.9 805.3,313.9 V332.0 Z" data-tip="&lt;b&gt;After TextFooler&lt;/b&gt;&lt;br&gt;MNLI: 9.6%" />
</g>
<text class="subtitle" x="0" y="394">Source: Jin et al., AAAI 2020, Table 2</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 2.</span> BERT's accuracy on seven text-classification and entailment tasks before and after TextFooler. The attack changes 6.1% (IMDB) to 22.0% (AG News) of the words in each input, and on SNLI needs a median of only 60 model queries. Data from [9], Table 2.</figcaption>
</figure>

<p>The drops are from 86.0% to 11.5% on MR, 90.9% to 13.6% on IMDB, 97.0% to 6.6% on Yelp and 89.4% to 4.0% on SNLI. Word-level CNN and LSTM models fare worse still, ending between 0% and 4% on the sentiment tasks [9]. The earlier version of this post derived the gradient of the word2vec softmax objective; that derivation is correct, but incidental. The security-relevant property is not the training objective but the neighbourhood structure it induces.</p>

<h2 id="why-language-models-widened-the-surface">Why language models widened the surface</h2>

<p>Transformers [10] did not introduce a new attack class so much as collapse a distinction older systems relied on. A classifier takes data in and puts a label out. A language-model application takes <em>instructions and data in the same channel</em>, as natural language, and it cannot reliably tell which is which.</p>

<p>Greshake et al. [11] were the first to work through the consequence. If the model reads a web page, an e-mail, or a code comment as part of answering a user’s request, the author of that content can address the model directly. They call this <em>indirect prompt injection</em>, and they demonstrated it against Bing Chat running on GPT-4, against code-completion engines and against synthetic GPT-4 applications, with outcomes that included data theft, self-propagating “worm” prompts that spread through e-mail, and contamination of the information the model later returned to other users. Their assessment of mitigations in early 2023 was that effective ones were lacking [11]. The OWASP Top 10 for LLM applications, the application-developer’s view of the same landscape, ranks prompt injection first and adds supply-chain, data-poisoning, excessive-agency, system-prompt-leakage and vector-and-embedding entries that map directly onto the four surfaces above [7].</p>

<p>The field moved from anecdotes to benchmarks in 2024. Liu et al. [12] formalised prompt injection so that existing attacks appear as special cases of one framework, and evaluated five attacks against ten defenses across ten models and seven tasks at USENIX Security. AgentDojo [13], the source of the lead figure, built a sandbox in which an agent performs 97 realistic tasks using tools, while 27 injection tasks hide in the content those tools return. The results are the ones to remember. GPT-4o completes 69.0% of user tasks with no attacker present, 50.1% with one, and the attacker’s task succeeds 47.7% of the time. Claude 3.5 Sonnet is the most useful agent at 78.2% and sees targeted attack success of 33.9%. Claude 3 Opus is the hardest to redirect at 11.3%, but completes only two-thirds of benign tasks. A tool-filtering defense drops attack success to 7.5%, and a classifier-based injection detector to 8%, but every defense costs around 15 to 20 points of utility under attack [13]. Papernot’s accuracy–robustness tension, reappearing in agents.</p>

<div class="callout">
<div class="callout-title">Jailbreak versus prompt injection</div>
<p>These are often conflated and should not be. A <em>jailbreak</em> is the user coercing a model into violating its own policy. A <em>prompt injection</em> is a third party smuggling instructions through content the model ingests, to hijack an agent acting on behalf of a benign user. The second is the one that matters as models become browser and computer-use agents, and it is the one with the weakest defenses. Post 9 in this series covers both.</p>
</div>

<h2 id="the-training-time-surprise">The training-time surprise</h2>

<p>The intuition most people carry about poisoning is that it scales with the data: to corrupt a model trained on a trillion tokens you would need to control some meaningful fraction of a trillion tokens, which no attacker can. Souly et al. [14] tested the intuition directly and found it wrong. They pretrained models from 600 million to 13 billion parameters on compute-optimal data budgets of 6 to 260 billion tokens, injecting a fixed number of documents that pair a trigger string with gibberish output. One hundred poisoned documents failed at every size. Two hundred and fifty succeeded at every size, and so did five hundred. The required number is close to constant; the required <em>fraction</em> falls with scale, from 0.0035% of training tokens for the smallest model to 0.00016% for the largest [14]. Web-scale pretraining makes the training-time surface easier to attack, not harder, because the attacker’s cost is fixed while the defender’s data grows.</p>

<p>The authors are careful about scope: the backdoor they study is a denial-of-service behaviour, and they do not claim the same law holds for more complex behaviours. But as a correction to the fraction-based intuition, the result is decisive, and Carlini’s earlier finding that 0.01% of common web-scale image datasets could be poisoned for about $60 by buying expired domains belongs beside it. Post 2 covers both.</p>

<h2 id="how-big-is-this-really">How big is this, really?</h2>

<p>It is reasonable to ask whether any of this happens outside papers. The honest answer is that we measure reporting, not attacks, and the two are only loosely related.</p>

<figure class="fig" id="fig-intro-incidents">
  <div class="fig-frame"><svg class="chart" viewBox="0 0 860 380" width="860" height="380" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Reported AI incidents per year">
<text class="title" x="0" y="18">Reported AI incidents per year</text>
<text class="subtitle" x="0" y="38">Incidents logged in the AI Incident Database, as reported by the Stanford AI Index. Counts measure reporting, and earlier years</text>
<text class="subtitle" x="0" y="56">are revised upward over time.</text>
<g class="grid">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<line x1="56" x2="836" y1="261.5" y2="261.5" />
<line x1="56" x2="836" y1="211.0" y2="211.0" />
<line x1="56" x2="836" y1="160.5" y2="160.5" />
<line x1="56" x2="836" y1="110.0" y2="110.0" />
</g><g class="axis">
<text x="48" y="316.0" text-anchor="end">0</text>
<text x="48" y="265.5" text-anchor="end">100</text>
<text x="48" y="215.0" text-anchor="end">200</text>
<text x="48" y="164.5" text-anchor="end">300</text>
<text x="48" y="114.0" text-anchor="end">400</text>
</g>
<text class="axis-title" x="56" y="102" text-anchor="start">Incidents</text>
<g class="axis">
<line x1="56" x2="836" y1="312.0" y2="312.0" />
<text x="153.5" y="330.0" text-anchor="middle">2022</text>
<text x="348.5" y="330.0" text-anchor="middle">2023</text>
<text x="543.5" y="330.0" text-anchor="middle">2024</text>
<text x="738.5" y="330.0" text-anchor="middle">2025</text>
</g>
<g class="s1">
<path class="bar" d="M141.5,312.0 V270.0 Q141.5,266.0 145.5,266.0 H161.5 Q165.5,266.0 165.5,270.0 V312.0 Z" data-tip="&lt;b&gt;Incidents&lt;/b&gt;&lt;br&gt;2022: 91" />
<text class="label" x="153.5" y="260.0" text-anchor="middle">91</text>
<path class="bar" d="M336.5,312.0 V253.9 Q336.5,249.9 340.5,249.9 H356.5 Q360.5,249.9 360.5,253.9 V312.0 Z" data-tip="&lt;b&gt;Incidents&lt;/b&gt;&lt;br&gt;2023: 123" />
<text class="label" x="348.5" y="243.9" text-anchor="middle">123</text>
<path class="bar" d="M531.5,312.0 V198.3 Q531.5,194.3 535.5,194.3 H551.5 Q555.5,194.3 555.5,198.3 V312.0 Z" data-tip="&lt;b&gt;Incidents&lt;/b&gt;&lt;br&gt;2024: 233" />
<text class="label" x="543.5" y="188.3" text-anchor="middle">233</text>
<path class="bar" d="M726.5,312.0 V133.2 Q726.5,129.2 730.5,129.2 H746.5 Q750.5,129.2 750.5,133.2 V312.0 Z" data-tip="&lt;b&gt;Incidents&lt;/b&gt;&lt;br&gt;2025: 362" />
<text class="label" x="738.5" y="123.2" text-anchor="middle">362</text>
</g>
<text class="subtitle" x="0" y="374">Source: Stanford HAI AI Index 2024, 2025 and 2026, Chapter 3; 2022 value via a June 2023 pull of the database</text>
</svg>
</div><figcaption class="fig-caption"><span class="fig-num">Figure 3.</span> AI incidents per year as recorded in the AI Incident Database and reported by the Stanford AI Index. Two caveats from the Index itself: the database is continually revised, including for earlier years (the 2025 edition's growth figure implies 2023 was revised from 123 to about 149 after the 2024 edition was published), and coverage skews toward English-language media and high-visibility events. Data from [15]; the 2022 figure comes from a June 2023 pull of the database.</figcaption>
</figure>

<p>The AI Incident Database counted 91 incidents in 2022, 123 in 2023, 233 in 2024 and 362 in 2025, with counts staying under 100 until 2022 [15]. Most of those incidents are not adversarial attacks in the sense of this series; they include failures, misuse and harms with no attacker at all. The research literature grew faster. Biggio and Roli counted more than 150 arXiv papers on adversarial examples in the two years before 2018 [3], and Carlini’s auto-updating list of adversarial-example papers passed a thousand entries in 2019, with the author noting that its bag-of-words classifier admits false positives [16]. Neither number is a measure of real-world risk. Both are measures of how many people decided the problem was worth their time.</p>

<p>Two evaluation pitfalls deserve a mention here because they recur in every later post. The first is confusing adversarial perturbation with random perturbation; Szegedy’s Gaussian-noise control [4] is the template for avoiding it. The second is the misjudged robustness claim. Biggio and Roli devote a section to misconceptions and single out a reported 0.025% evasion rate for a PDF-malware detector as an example of a result that looked like robustness and was an artefact of a weak attack [3]. The lesson that a failed attack is evidence about the attack, not the defense, took the deep-learning community until 2018 to relearn.</p>

<h2 id="what-this-series-covers">What this series covers</h2>

<p>The remaining posts follow the four surfaces. Post 2 is training time: poisoning and backdoors, from Biggio’s single poisoned point for an SVM to the 250-document result. Post 3 is a detour into explainability, because knowing <em>why</em> a model answers as it does is a precondition for trusting it under pressure, and because most explanation methods turn out to be attackable themselves. Post 4 is inference time: evasion attacks and twelve years of adversarial training. Posts 5 to 7 are the output surface: what a model leaks about its training data, and the two formal frameworks, differential privacy and PAC Privacy, that try to bound the leak. Post 8 asks what it would take to <em>prove</em> robustness rather than measure it. Post 9 is the language-model surface in full: jailbreaks, prompt injection, and the defenses that have survived adaptive red-teaming. Post 10 is fairness, where the hardest part is not the attack but deciding what the specification should have been.</p>

<div class="callout takeaways">
<div class="callout-title">What to take away</div>
<ol>
<li>Accuracy is a statement about a distribution. Security is a statement about an adversary who chooses the distribution. The second does not follow from the first.</li>
<li>The field predates deep learning by a decade, and its founding results were quantitative: 1% of training data, 0.0065 per-pixel distortion, 86% to 11.5% from synonym substitution.</li>
<li>Four surfaces: training data, the model, inference input, outputs. Defenses are not orthogonal; they share an accuracy budget.</li>
<li>Language models added a channel: content the model reads can address it directly, and no current agent is both reliably useful and reliably injection-proof.</li>
<li>Scale is not a defense at training time. Around 250 documents backdoor models from 600M to 13B parameters.</li>
</ol>
</div>

<section class="refs">
<h2>References</h2>
<ol>
<li>Barreno, Nelson, Joseph, Tygar. <em>The security of machine learning.</em> Machine Learning 81(2), 2010. <a href="https://link.springer.com/article/10.1007/s10994-010-5188-5">Springer</a></li>
<li>Papernot, McDaniel, Sinha, Wellman. <em>SoK: Security and Privacy in Machine Learning.</em> IEEE EuroS&amp;P 2018. <a href="https://arxiv.org/abs/1611.03814">arXiv:1611.03814</a></li>
<li>Biggio, Roli. <em>Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning.</em> Pattern Recognition 84, 2018. <a href="https://arxiv.org/abs/1712.03141">arXiv:1712.03141</a></li>
<li>Szegedy, Zaremba, Sutskever et al. <em>Intriguing properties of neural networks.</em> ICLR 2014. <a href="https://arxiv.org/abs/1312.6199">arXiv:1312.6199</a></li>
<li>Goodfellow, Shlens, Szegedy. <em>Explaining and Harnessing Adversarial Examples.</em> ICLR 2015. <a href="https://arxiv.org/abs/1412.6572">arXiv:1412.6572</a></li>
<li>Vassilev, Oprea, Fordyce et al. <em>Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations.</em> NIST AI 100-2 E2025, 2025. <a href="https://csrc.nist.gov/pubs/ai/100/2/e2025/final">NIST</a></li>
<li>OWASP GenAI Security Project. <em>OWASP Top 10 for LLM Applications 2025.</em> OWASP 2025. <a href="https://owasp.org/www-project-top-10-for-large-language-model-applications/">OWASP</a></li>
<li>Mikolov, Chen, Corrado, Dean. <em>Efficient Estimation of Word Representations in Vector Space.</em> ICLR 2013 Workshop. <a href="https://arxiv.org/abs/1301.3781">arXiv:1301.3781</a></li>
<li>Jin, Jin, Zhou, Szolovits. <em>Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment.</em> AAAI 2020. <a href="https://arxiv.org/abs/1907.11932">arXiv:1907.11932</a></li>
<li>Vaswani, Shazeer, Parmar et al. <em>Attention Is All You Need.</em> NeurIPS 2017. <a href="https://arxiv.org/abs/1706.03762">arXiv:1706.03762</a></li>
<li>Greshake, Abdelnabi, Mishra et al. <em>Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection.</em> AISec 2023. <a href="https://arxiv.org/abs/2302.12173">arXiv:2302.12173</a></li>
<li>Liu, Jia, Geng, Jia, Gong. <em>Formalizing and Benchmarking Prompt Injection Attacks and Defenses.</em> USENIX Security 2024. <a href="https://arxiv.org/abs/2310.12815">arXiv:2310.12815</a></li>
<li>Debenedetti, Zhang, Balunović et al. <em>AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents.</em> NeurIPS 2024 Datasets &amp; Benchmarks. <a href="https://arxiv.org/abs/2406.13352">arXiv:2406.13352</a></li>
<li>Souly, Rando, Chapman et al. <em>Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples.</em> arXiv 2025. <a href="https://arxiv.org/abs/2510.07192">arXiv:2510.07192</a></li>
<li>Stanford HAI. <em>AI Index Report, Chapter 3: Responsible AI.</em> 2024, 2025 and 2026 editions. <a href="https://hai.stanford.edu/assets/files/ai_index_report_2026_chapter_3_responsible_ai.pdf">2026 edition PDF</a></li>
<li>Carlini. <em>A Complete List of All (arXiv) Adversarial Example Papers.</em> Blog, 2019 onward. <a href="https://nicholas.carlini.com/writing/2019/all-adversarial-example-papers.html">nicholas.carlini.com</a></li>
</ol>
</section>]]></content><author><name>Prashanth Varma Dommaraju</name></author><category term="Foundations" /><category term="foundations" /><category term="threat-models" /><category term="attacks" /><category term="prompt-injection" /><summary type="html"><![CDATA[In 2010 Barreno, Nelson, Joseph and Tygar published an experiment on SpamBayes, a Bayesian spam filter of the kind that was then standard [1]. They let an attacker control 1% of a roughly thousand-message training inbox and fill that 1% with messages containing every word in a dictionary, each labelled spam. After retraining, the filter classified about 83% of legitimate mail as spam, and marked another 12% as unsure. A focused version of the same attack, aimed at one specific future message the attacker wanted suppressed, got it labelled spam 86% of the time. The filter’s accuracy on its own validation data had been fine.]]></summary></entry></feed>