ConformalGuard is a calibration layer on top of a frozen language-model classifier that bounds how often legitimate inputs will trigger an action. The bound is finite-sample: it holds before deployment, from the calibration data you actually have, with no assumption about the shape of the scores. In the paper, 2,000 clean emails are enough to hold a phishing gate’s false-positive rate (the share of legitimate mail it wrongly flags) under a chosen target, using split conformal prediction on a legitimate-only calibration set. The same procedure exposes why temperature scaling and isotonic regression, the two standard post-hoc calibration fixes, quietly stop working on the coarse 0-to-1 scores that zero-shot LLMs produce. We presented the paper at COLM 2026 in San Francisco. This post is the long version: the statistics, the procedure, every experiment, and the places where the guarantee ends.
Bishnu Bista, Dhanraj Haibatrao Jadhav, Vibha Choudhary, Gaurav Saxena, Arun Pandiyan Perumal, Arjun Subedi, Jignesh Ammineni. Conference on Language Modeling (COLM), 2026.
Paper (arXiv) · Code and artifact (GitHub)
Abstract. Language-model classifiers increasingly decide whether an autonomous system acts: block the email, flag the message, escalate the transaction. The threshold behind that decision is usually tuned on a validation set, which gives no finite-sample control over the false-positive rate (FPR) the system will actually show in deployment. ConformalGuard is a model-agnostic calibration layer that converts a fixed scorer’s output into a conformal p-value against a legitimate-only calibration pool and gates actions by tiers of that p-value, so each tier’s legitimate-event rate is bounded by its target α under exchangeability. We compare conformal calibration with raw thresholding, temperature scaling, and isotonic regression on a fine-tuned BERT, zero-shot Claude Sonnet 4, and zero-shot GPT-4o over 39,935 public emails. Conformal is the only method that stays under target on all three scorers. On Claude it cuts FPR from 0.040 to 0.008 at a 6.3-point recall cost; on GPT-4o the deterministic version is unusable at low FPR until stochastic score averaging widens the score grid, which lifts recall from 0.285 to 0.732 at FPR 0.005. At 2% prevalence, conformal gating on BERT removes 25 false-positive reviews per 10,000 emails (95% CI [10, 43]). The guarantee covers legitimate-event rate only; discrimination, workload, and robustness to shift are empirical and we test each.
What’s inside
- A primer: conformal prediction in ten minutes: exchangeability, the rank trick, marginal versus conditional coverage, and why a one-sided test on legitimate traffic is all this problem needs.
- The problem: a validation threshold is a promise nobody can check: the 50,000-emails-a-day arithmetic that makes 0.5 percentage points of FPR expensive.
- The method: scorer, calibration pool, p-value, tiers: the full procedure with the equation, the tie rule, Proposition 1 and its proof sketch, and the shift bound.
- Experimental design: the corpus and its cleanup, the three scorers, the four calibration baselines, and what α = 0.01 means here.
- Finding 1: conformal is the only method under target on all three scorers: the main table and the reliability plot.
- Finding 2: on coarse LLM scores, temperature scaling and isotonic regression are the raw threshold: eleven unique values, one boundary, and the balanced-validation ablation that rules out class mix.
- Finding 3: the cost is recall, and for GPT-4o the cost is the whole classifier: the α sweep and the recall plateaus it exposes.
- Finding 4: stochastic averaging buys back the score grid: three GPT-4o samples, 33 to 105 unique scores, recall 0.285 to 0.732.
- Finding 5: at realistic prevalence the saving is 25 reviews per 10,000 emails: the per-10K workload calculation with paired bootstrap intervals.
- Calibration-set analysis: how many legitimate examples are enough: the n = 100 to 2,000 sweep and the cold-start rule.
- Stress tests: source shift, randomized tie-breaking, oracle thresholds, text attacks: where the bound breaks and where it only looks like it does.
- What the guarantee does not say: the limitations, listed without softening.
- Why it matters: the deployment rule we would hand to anyone gating actions on an LM score.
A primer: conformal prediction in ten minutes
Everything below rests on one idea, so it gets its own section before the paper starts. If you already know split conformal prediction, skip to the problem.
Exchangeability is the only assumption. A sequence of random variables is exchangeable if every reordering of it has the same joint distribution. Independent and identically distributed data is exchangeable; so is data drawn without replacement from a finite pool. What matters for us: if you have n calibration examples and one new test example, all drawn exchangeably, then the test example’s rank among the n + 1 is uniform. It is equally likely to be the largest, the smallest, or anything in between. No distribution was named, and none needs to be. Think of shuffling the new email into a deck with the 2,000 calibration emails: if the shuffle is fair, no position in the deck is special, so the new card is as likely to land on top as anywhere else.
The rank trick turns that into a guarantee. Take a nonconformity score, any fixed function s(x) that is large when x looks unlike the calibration data (a weirdness score, in effect). Compute it on the n calibration points and on the test point. Define the conformal p-value as
p(x) = ( 1 + #{ i : s_i >= s(x) } ) / ( n + 1 )
which is the fraction of the n + 1 points that score at least as high as x, counting x itself. In plain terms, p(x) answers “what share of known-good emails look at least this suspicious?”, and a small p means almost nothing legitimate scores this high. Because the rank of the test point is uniform over n + 1 positions, p(x) is super-uniform: Pr(p(X) <= α) <= α for every α in [0, 1]. The ”<=” rather than ”=” comes from ties and from the discreteness of ranks; both push the probability down, never up. Put differently, a legitimate email has at most a 1% chance of getting a p-value under 0.01, at most a 5% chance of getting one under 0.05, and so on; the p-value can overstate how normal an email is, but never understate it. That one line is the whole theorem. Everything else in conformal prediction is choosing s and choosing what to do when p is small.
A trivial example: 99 calibration emails, scored. A new email scores higher than all 99. Its p-value is 1 / 100 = 0.01. If it were really drawn from the same population as the 99, it had a 1-in-100 chance of landing on top, so calling it anomalous at α = 0.01 is justified and the mistake rate on genuine members of the population is at most 1%.
Marginal versus conditional coverage is the caveat that matters most in practice. The guarantee above is marginal: it averages over the whole population the calibration set was drawn from. It does not say the error rate is at most α for emails from one sender, one language, or one mail server. Conditional coverage would promise that, and it is provably impossible to achieve in general without further assumptions. Conformal gives you a bound on the population average; subgroups can sit above or below it. An airline that is 90% on time overall can still be late on every 6 a.m. departure from one airport, and the overall number is not lying. We come back to this in the stress tests, where swapping the source of legitimate email is enough to break the bound.
Split conformal is the cheap version used here: fit the scorer on training data, hold out a separate calibration set, compute ranks once. No refitting per test point, no cross-validation. The cost is that the calibration set has to be large enough for the discrete grid of possible p-values (multiples of 1 / (n + 1)) to be finer than the α you care about. With 99 calibration emails the smallest p-value you can ever see is 0.01, so a 0.5% target is simply out of reach; with 2,000 the steps are 0.0005 wide.
One-sided and one-class. Phishing gating is a one-sided question: is this email anomalous relative to legitimate traffic? So the calibration set contains only legitimate emails, the nonconformity score is just the classifier’s phishing score, and a small p-value means “scores higher than nearly all known-good mail.” Positives never enter the calibration. That is why the guarantee is about false positives specifically: it is a statement about how often a legitimate email ranks in the top α of legitimate emails, which is α by construction. It is also why the calibration set is legitimate-only rather than a labeled mix. The quantity we want to bound is defined entirely on legitimate traffic, which is the class any deployment has in abundance, and building the pool needs no positive labels at all. We never have to know what phishing looks like to say how often clean mail will be flagged.
The problem: a validation threshold is a promise nobody can check
LM classifiers now sit in front of actions. A phishing model decides whether an email reaches an inbox, a toxicity model decides whether a post is held, a fraud model decides whether a transaction is frozen. In each case there is a score in [0, 1] and a threshold, and the threshold was picked by looking at a validation set and choosing the value that gave an acceptable FPR there.
That procedure has no finite-sample guarantee. The validation FPR is a point estimate; the deployment FPR is a different random variable, and nothing bounds the gap. You measured 1% on one sample, and nothing in the method says how far from 1% the next sample can land. The paper’s worked example: 50,000 emails a day at 1% phishing prevalence, meaning one email in a hundred is actually malicious. An FPR of 1% sends about 500 legitimate emails a day to human review. If the deployed rate drifts to 1.5%, that is about 750. Half a percentage point of FPR is 250 analyst reviews a day, every day, on a system whose documentation says “1%”.
The question the paper asks is narrow on purpose: when the threshold must be fixed before any deployment labels exist, does conformal calibration give better deployment-time FPR control than the two standard post-hoc calibration methods, temperature scaling and isotonic regression? And does the answer depend on what kind of scorer is underneath?
The second half of that question turned out to be the interesting one.
The method: scorer, calibration pool, p-value, tiers
ConformalGuard is a pipeline with three stages and a strict ordering rule.
frozen scorer g legitimate-only calibration pool C0 (n = 2,000)
email x ──► s(x) = g(x) ∈ [0,1] ──► p(x) = (1 + #{i : s_i ≥ s(x)}) / (n + 1) ──► tier(p)
│
p > 0.10 ─────────────────────────────────────────────────────────► auto-clear
0.01 < p ≤ 0.10 ──────────────────────────────────────────────────► analyst review
0.005 < p ≤ 0.01 ─────────────────────────────────────────────────► specialist escalation
p ≤ 0.005 ────────────────────────────────────────────────────────► reversible autonomous block
Stage 1, scoring. A frozen function g maps an input to a score in [0, 1]. “Frozen” is load-bearing: g must be fixed before the calibration pool is scored, otherwise the calibration scores and the test scores are not exchangeable. The failure is easy to picture: if you adjust the model after looking at how the calibration pool scored, the pool’s scores are no longer a fresh draw from the same process the test email goes through, and the shuffled-deck argument above has nothing to stand on. In the paper g is one of three things: a fine-tuned BERT’s softmax probability (the class probability its final layer outputs), or the number Claude Sonnet 4 or GPT-4o returns when asked, zero-shot, for a phishing probability. Zero-shot means no fine-tuning: the model is prompted and its answer is taken as the score.
Stage 2, calibration. Score every email in a legitimate-only calibration set C0 of size n = 2,000. Keep the sorted scores s_1, …, s_n. That is the entire state of the calibrated system: no fitted parameters, nothing to retrain, and recalibrating after a model change means rescoring 2,000 emails and sorting again.
Stage 3, p-value and gating. For a new email, compute p(x) as above and act by tier. Each tier is a nested test: “p ≤ α” for a decreasing sequence of α values. Because the p-value is super-uniform, the cumulative legitimate-event rate of every tier is bounded by that tier’s α. At most 10% of legitimate email leaves auto-clear, at most 1% reaches a specialist, at most 0.5% is autonomously blocked.
The p-value is a rank, not a probability of phishing. p(x) = 0.004 means “scores higher than 99.6% of known-good mail.” It says nothing about the base rate of phishing or the posterior; conformal is deliberately silent on that.
Ties. LLM scores are heavily tied (more on this in Finding 2). The deterministic p-value uses ”≥” in the count, which assigns every member of a tied block the least favorable rank. That keeps the guarantee conservative: a tie can only raise p, never lower it. Concretely, if 200 calibration emails scored exactly 0.9 and the new email does too, it is counted as if all 200 outranked it. It also means a tied block is gated as a unit; no amount of calibration can split it.
Proposition 1 (the guarantee). If the legitimate calibration examples and the legitimate test example are exchangeable, and g was fixed before calibration, then for any α in [0, 1],
Pr( p(X) ≤ α | Y = 0 ) ≤ α
Proof sketch: conditional on Y = 0, the test score and the n calibration scores are n + 1 exchangeable draws, so the test score’s rank is uniform on {1, …, n + 1}; p(X) ≤ α requires the rank to be in the top ⌊α(n + 1)⌋ positions, which has probability at most α. Ties lower the probability further. The bound is marginal over the legitimate population and does not extend to subgroups.
Distribution shift. If the legitimate distribution at test time differs from the calibration distribution by total variation distance ε, the bound degrades to
Pr( p(X) ≤ α | Y = 0 ) ≤ α + ε
Total variation distance is, roughly, the largest disagreement between the two distributions about how likely any kind of email is. If 2% of production traffic now comes from a mail server the calibration pool never saw, ε can be as large as 0.02, and a 1% target can quietly become 3%. That is a statement of what you lose, not a fix. Monitoring can detect shift; it cannot restore validity. Persistent shift calls for weighted, stratified, or adaptive conformal variants, which the paper does not evaluate.
Operational rules that fall out of the theory. Stratify the calibration pool to match the features the scorer sees in production (the paper’s example is SMTP-header availability): if a third of production mail arrives without headers, a third of the calibration pool should too, otherwise the pool is a sample of a different population than the one you are bounding. And after any change to the scorer, including a prompt edit on an LLM: freeze the new g, collect fresh legitimate calibration data, rescore, recompute the ranks, then deploy. A prompt change silently invalidates the old ranks.
In code, the whole calibrated decision is a few lines. The p-value is the same one-liner the repository’s generate_camera_ready_robustness.py uses to regenerate every table, standard library only; the tier function is my rendering of the paper’s tiers:
def conformal_p_value(cal_scores: list[float], s: float) -> float:
n = len(cal_scores)
return (1 + sum(c >= s for c in cal_scores)) / (n + 1)
def gate(p: float) -> str:
if p <= 0.005: return "block"
if p <= 0.01: return "escalate"
if p <= 0.10: return "review"
return "clear"
Experimental design
Corpus. 39,935 emails assembled from four public sources: Nazario, Phishing Pot (7,069 raw, 4,393 after cleaning), SpamAssassin, and the Enron-Spam AUEB collection. A fifth candidate, EPVME, was excluded after inspection showed it was a protocol-vulnerability test suite with XSS payloads rather than phishing; a scorer that catches script payloads is not thereby a better phishing detector, and keeping it would have padded the positive class with inputs no inbox classifier sees. Cleaning removed bodies under 50 characters, deduplicated by SHA-256 of the body (exact-copy removal by hashing), and removed 16 normalized-body duplicates that leaked across train/validation; test and calibration were untouched by that last step (split priority test, cal, val, train), so that pass touched only the training side and the held-out sets stayed exactly as first drawn.
| Split | Total | Legitimate | Positive | Positive rate |
|---|---|---|---|---|
| Train | 26,202 | 11,937 | 14,265 | 54.4% |
| Val | 3,742 | 1,705 | 2,037 | 54.4% |
| Cal | 2,000 | 2,000 | 0 | 0% |
| Test | 7,991 | 3,911 | 4,080 | 51.1% |
Positives are 28.7% phishing and 71.3% spam, so the task is honestly “malicious or unwanted email,” not phishing alone. One more number the paper reports against itself: a TF-IDF classifier (a bag-of-words model, no semantics) can predict which source corpus an email came from with 97.7% accuracy. The risk that number quantifies is a scorer learning “Enron formatting means legitimate” rather than anything about phishing. Corpus artifacts are present, every method inherits them, and the absolute recall figures should be read with that in mind; we would rather the reader discount them up front than discover the reason later.
Scorers.
- BERT-base-uncased, fine-tuned on the train split: 3 epochs, learning rate 2e-5, batch 16, seed 42. Its scores take 1,176 unique values across the corpus.
- Claude Sonnet 4, zero-shot. The system prompt asks for “ONLY a number between 0 and 1 representing the probability that this email is a phishing attempt.” Scores take 11 unique values: 0.0, 0.05, 0.1, 0.2, 0.3, 0.7, 0.8, 0.85, 0.9, 0.95, 1.0. Nothing between 0.3 and 0.7 ever comes back. (The prompt wording is quoted from
experiments/score_llm.pyin the artifact.) - GPT-4o, zero-shot, same prompt. 10 unique values: 0.0, 0.1, 0.2, 0.3, 0.7, 0.8, 0.9, 0.95, 0.99, 1.0.
Those three unique-value counts are the single most important design fact in the paper. Hold on to them.
Calibration methods compared, all targeting α = 0.01.
- Raw threshold: pick the score cutoff on validation that gives FPR ≤ α there.
- Temperature scaling: fit a scalar T on validation by negative log-likelihood, apply σ(logit(s) / T), threshold at the validation α-quantile of legitimate scores. The transform stretches scores away from 0.5 or squashes them toward it, but never changes which of two emails scores higher; the α-quantile is the score below which 99% of legitimate validation emails fall.
- Isotonic regression: fit a monotone map on validation, threshold the same way. This is a learned lookup table from score ranges to new values, also order-preserving.
- Conformal: p-values against the 2,000-example legitimate calibration set, flag when p ≤ α.
In the tables, recall is the fraction of malicious emails that got flagged, precision is the fraction of flagged emails that were actually malicious, and F1 is the harmonic mean of the two. Reported intervals are 95% bootstrap CIs from 1,000 resamples: redraw the test set with replacement a thousand times, recompute the metric each time, and report the range the middle 95% of those values fall in. “FPR violation” below is observed FPR minus α; positive means the method overshot its own target.
Finding 1: conformal is the only method under target on all three scorers
Takeaway: at α = 0.01, conformal gating stays under the target on BERT, Claude, and GPT-4o. Every alternative overshoots on at least one scorer. Mean absolute violation is about 0.5 percentage points for conformal and about 1.2 for the others.
| Scorer | Method | Recall | Obs. FPR | FPR violation | Precision | F1 |
|---|---|---|---|---|---|---|
| BERT | Raw threshold | 0.996 | 0.008 | -0.002 | 0.992 | 0.994 |
| BERT | Temp. scaling | 0.996 | 0.008 | -0.002 | 0.992 | 0.994 |
| BERT | Isotonic | 0.997 | 0.013 | +0.003 | 0.988 | 0.993 |
| BERT | Conformal | 0.995 | 0.006 | -0.004 | 0.994 | 0.995 |
| Claude | Raw / Temp. / Isotonic | 0.938 | 0.040 | +0.030 | 0.961 | 0.949 |
| Claude | Conformal | 0.875 | 0.008 | -0.002 | 0.991 | 0.930 |
| GPT-4o | Raw / Temp. / Isotonic | 0.887 | 0.015 | +0.005 | 0.984 | 0.933 |
| GPT-4o | Conformal | 0.564 | 0.001 | -0.009 | 0.999 | 0.721 |
The same pattern holds across the whole α range. The figure below recomputes it from the artifact’s published per-email scores: observed test FPR against target α for the raw validation threshold and for conformal, with the dashed diagonal as the ideal. (Temperature scaling and isotonic regression are omitted here because on the LLM panels they are identical to the raw curve, which is the next finding.)
Three things to read off the plot. On BERT, both curves hug the diagonal; the scorer is fine-grained enough that a validation quantile is already a good estimate. On Claude and GPT-4o, the raw curve sits well above the diagonal at every α up to 0.05, with Claude at 0.040 observed against 0.010 target. And the conformal curve on the LLM panels is a staircase with long flat runs: that is the tied-score problem, and it is the subject of the next two findings.
The BERT row is the control, and it is there to rule out an alternative explanation. If the LLM gaps came from something about the corpus, the fine-tuned scorer on the same corpus should show a gap too. It does not: with 1,176 distinct scores, a validation threshold is already a decent estimate, and raw and conformal land at 0.008 and 0.006. That small gap on the same data points at score granularity, not the dataset, as the cause of the larger LLM gaps. The LLM rows are where the method earns its keep.
Finding 2: on coarse LLM scores, temperature scaling and isotonic regression are the raw threshold
Takeaway: on Claude Sonnet 4 and GPT-4o, temperature scaling and isotonic regression produce decisions identical to the raw threshold, to the last email. Both are rank-preserving maps, and a rank-preserving map on 11 distinct values cannot create a new decision boundary.
This is the diagnostic result and, I think, the most useful one for anyone deploying an LLM-as-classifier. Temperature scaling learns one scalar T and applies a monotone transform; isotonic regression learns a monotone step function. Neither reorders inputs. Both are relabelings of the same ladder: you can rename the rungs however you like, but you cannot add one between two that exist. When the input takes 1,176 values, a monotone transform can move the α-quantile between many neighbouring scores. When the input takes 11 values, the α-quantile of legitimate validation scores lands on one of those 11, and any monotone transform leaves it between the same two adjacent values. Same boundary, same decisions, same FPR of 0.040 against a target of 0.010.
The natural objection is that the calibration fit only saw a particular class mix. The paper runs that ablation (Appendix A.1, Table 8): fit temperature scaling and isotonic regression on a class-balanced validation set, then threshold at α = 0.01 as before. The fitted values in the last column come from the artifact’s Table D; the paper’s Table 8 omits them.
| Scorer | Method | Recall | FPR | Fit detail |
|---|---|---|---|---|
| BERT | Temp. scaling, balanced-val | 0.996 | 0.008 | T = 1.574 |
| BERT | Isotonic, balanced-val | 0.997 | 0.013 | threshold 0.182 |
| Claude | Temp. scaling, balanced-val | 0.938 | 0.040 | T = 0.626 |
| Claude | Isotonic, balanced-val | 0.938 | 0.040 | threshold 0.904 |
| GPT-4o | Temp. scaling, balanced-val | 0.887 | 0.015 | T = 0.661 |
| GPT-4o | Isotonic, balanced-val | 0.887 | 0.015 | threshold 0.993 |
Nothing moves on the LLM rows. Score granularity, not class mix, is the bottleneck.
Conformal does not reorder inputs either, so it faces the same tied blocks. The difference is in what it promises. The raw threshold picks a boundary and hopes the FPR there is near α; on a coarse grid, the nearest available boundary gave 0.040. Conformal picks the boundary whose legitimate-rank bound is provably ≤ α, which on the same grid means stepping down one more block, to the boundary that gave 0.008. It is the same ladder; conformal just refuses to stand on a rung above the target.
Finding 3: the cost is recall, and for GPT-4o the cost is the whole classifier
Takeaway: holding FPR under target on a coarse score grid costs recall, and the cost is set by how far the nearest valid rung is. Claude pays 6.3 points. Deterministic GPT-4o pays 32 points and lands at recall 0.564, which no phishing operator would deploy.
The α sweep makes the plateaus explicit:
| Scorer | α = 0.001 | α = 0.005 | α = 0.01 | α = 0.05 | α = 0.10 |
|---|---|---|---|---|---|
| BERT recall / FPR | 0.968 / 0.001 | 0.992 / 0.003 | 0.995 / 0.006 | 0.999 / 0.052 | 1.000 / 0.097 |
| Claude recall / FPR | 0.040 / 0.000 | 0.729 / 0.002 | 0.875 / 0.008 | 0.875 / 0.008 | 0.970 / 0.060 |
| GPT-4o recall / FPR | 0.564 / 0.001 | 0.564 / 0.001 | 0.564 / 0.001 | 0.887 / 0.015 | 0.953 / 0.067 |
BERT’s row is smooth: 1,176 values give a rung for every α. Claude has one usable plateau at recall 0.875 that covers α = 0.01 and 0.05, and falls off a cliff at α = 0.001 (recall 0.040), because the only score block whose legitimate rank is below 0.1% contains almost nothing. GPT-4o has no rung at all between α = 0.001 and α = 0.01: the same block, recall 0.564, serves all three. Its next rung up is the one the raw threshold used, and that one violates the 0.01 target.
The paper’s reading of this is blunt and I agree with it: at a 1% FPR target, deterministic conformal gating makes zero-shot GPT-4o an undeployable phishing classifier, and the right response is to say so rather than loosen the target. The target comes from what the analyst queue can absorb. The scorer does not get a vote on it, and moving the target to fit the scorer gets the design backwards. The guarantee is doing its job by making the scorer’s inadequacy visible pre-deployment instead of in the analyst queue.
There is a way to read the table above as “conformal found a better boundary,” and that reading is wrong. The check that settles it: could a raw threshold have matched conformal if it were allowed to cheat? Yes. An oracle threshold (one chosen while looking at the test labels, which no real deployment can do) reproduces the conformal operating point exactly on all three scorers (BERT at 0.005657, Claude at 0.85, GPT-4o at 0.95). Both act on the same score ordering, so both can only land on the same rungs. Conformal’s advantage is not a better boundary; it is knowing before deployment, from legitimate data alone, which boundary is valid. The three threshold values are from the artifact’s Table C rather than the paper text.
Finding 4: stochastic averaging buys back the score grid
Takeaway: averaging three GPT-4o samples drawn at nonzero temperature raises the number of unique scores from 33 to 105 and lifts deterministic conformal recall from 0.285 to 0.732 at essentially unchanged FPR (0.0049 to 0.0051). The raw threshold improves too, but still overshoots the target.
If the problem is a coarse grid, make the grid finer. The deterministic run is a legitimate fixed-scorer evaluation, but ten output levels is unusually coarse even for a zero-shot API, so the question is whether the GPT-4o result is about the model or about asking it for one number once. The full-scale experiment, run on the complete calibration, validation, and test splits, scores every email with GPT-4o one or three times at a sampling temperature above zero and averages. Nonzero temperature lets the model’s answer vary from call to call instead of always returning its single most likely number, so three calls can land on three different values and their mean can fall between the original rungs.
| Runs averaged | Unique scores | Conformal recall | Conformal FPR | Conformal F1 | Raw recall | Raw FPR |
|---|---|---|---|---|---|---|
| 1 | 33 | 0.285 | 0.0049 | 0.442 | 0.872 | 0.0355 |
| 3 | 105 | 0.732 | 0.0051 | 0.843 | 0.882 | 0.0194 |
Two notes on reading it. First, the single-run numbers here (33 unique scores, conformal recall 0.285) differ from the main table (10 unique scores, recall 0.564) because a single draw at nonzero temperature is a different scorer from the deterministic one, with its own score grid and its own rungs; the main comparison used the deterministic scorer. Second, the raw threshold at three runs sits at FPR 0.0194, nearly double its 0.01 target, so richer scores help both methods but only one of them stays valid.
The credit splits cleanly: conformal supplies threshold validity; the averaging supplies the discrimination. The recall gain comes from a better scorer, and conformal lets you use it at a known FPR. The costs are three times the inference spend and one more thing that must be frozen before calibration (the averaging procedure itself, since changing it changes g).
Finding 5: at realistic prevalence the saving is 25 reviews per 10,000 emails
Takeaway: at 2% phishing prevalence, conformal gating on BERT produces 58 false-positive reviews per 10,000 emails against 83 for the raw threshold, a reduction of 25 with paired-bootstrap 95% CI [10, 43]. Recall is statistically indistinguishable.
The test split is 51% positive, which is nothing like an inbox. To estimate workload, the paper keeps all 3,911 legitimate test emails, subsamples positives to 2% prevalence, repeats 50 times for the precision estimate (which positives get drawn changes precision, so it is averaged over draws), and rescales FPR to a 10,000-email inbox (9,800 legitimate). The FPR side needs no subsampling because every legitimate email is kept.
| Method | Recall | FPR | Precision at 2% | FP per 10K emails [95% CI] |
|---|---|---|---|---|
| Raw threshold | 0.996 | 0.008 | 0.707 | 83 [55, 113] |
| Temp. scaling | 0.996 | 0.008 | 0.707 | 83 [55, 113] |
| Conformal | 0.995 | 0.006 | 0.776 | 58 [35, 83] |
Isotonic is omitted because its BERT FPR violation is already larger than the raw threshold’s. The interval on the difference comes from a paired bootstrap: each resample draws one set of legitimate emails and scores both methods on it, so the interval is on the gap between them rather than on each count separately, which is the right question when the two methods share every input. That interval matters more than the point estimate: it excludes zero, and at the low end it is still 10 fewer reviews per 10,000 emails on the scorer where conformal has the least room to help. A deployment at the paper’s 50,000-emails-a-day scale would see roughly 125 fewer analyst reviews a day from the calibration change alone.
Calibration-set analysis: how many legitimate examples are enough
Takeaway: the FPR bound holds in expectation at n = 100, but individual calibration draws can violate it; recall stabilizes at n ≥ 500. The paper recommends at least 1,000 legitimate examples, with full human review until that pool exists.
The conformal p-value lives on a grid of multiples of 1 / (n + 1), so n sets the finest α you can target and the variance of what you get. The sweep subsamples the BERT calibration set at each size, repeats, and reports mean and standard deviation.
| n | FPR (mean ± sd) | Recall (mean ± sd) |
|---|---|---|
| 100 | 0.006 ± 0.006 | 0.988 ± 0.012 |
| 500 | 0.006 ± 0.003 | 0.994 ± 0.002 |
| 1,000 | 0.006 ± 0.002 | 0.995 ± 0.001 |
| 2,000 | 0.006 ± 0.000 | 0.995 ± 0.000 |
At n = 100 the mean FPR is comfortably under 0.01, but a standard deviation of 0.006 means a meaningful fraction of calibration draws land above target. That is consistent with the theory: the guarantee is marginal over the calibration draw as well as the test draw, so a single unlucky calibration set can sit above α even though the average does not. The 1% promise is an average over which emails you happened to collect, too, and 100 emails is a small enough pool that the one you actually have can be a bad one. By n = 1,000 the standard deviation is 0.002 and the recall cost of a small pool has vanished. The cold-start rule follows directly: until 1,000 legitimate examples have been collected under the frozen scorer, every flagged item goes to a human.
Stress tests: source shift, randomized tie-breaking, oracle thresholds, text attacks
Takeaway: the bound holds on within-source splits, to within one email, and breaks under cross-source shift on BERT (Enron-calibrated, SpamAssassin-tested FPR 0.021 against α = 0.01). Randomized tie-breaking recovers GPT-4o recall to 0.800 but makes 17% of decisions depend on a coin flip.
Legitimate-source shift is the direct test of exchangeability. Calibrate on legitimate email from one corpus family, evaluate FPR on legitimate email from another, positives excluded so that only the FPR side is measured.
| Scorer | Calibrate on | n_cal | Test on | n_test | Observed FPR | FPR minus α |
|---|---|---|---|---|---|---|
| BERT | Enron | 2,949 | Enron | 3,110 | 0.0064 | -0.0036 |
| BERT | Enron | 2,949 | SpamAssassin | 801 | 0.0212 | +0.0112 |
| BERT | SpamAssassin | 756 | Enron | 3,110 | 0.0032 | -0.0068 |
| BERT | SpamAssassin | 756 | SpamAssassin | 801 | 0.0112 | +0.0012 |
| Claude | Enron | 2,949 | SpamAssassin | 801 | 0.0062 | -0.0038 |
| Claude | SpamAssassin | 756 | Enron | 3,110 | 0.0084 | -0.0016 |
| GPT-4o | Enron | 2,949 | SpamAssassin | 801 | 0.0000 | -0.0100 |
| GPT-4o | SpamAssassin | 756 | Enron | 3,110 | 0.0174 | +0.0074 |
Two of the six cross-source cells violate the target: BERT calibrated on Enron and tested on SpamAssassin, and GPT-4o in the reverse direction. The BERT case is the one to expect, since a scorer with fine-grained scores tracks the calibration distribution closely enough that moving the distribution moves the FPR with it. The within-source cells are the baseline that makes those two readable. Three of the four hold cleanly; the fourth, BERT calibrated and tested on SpamAssassin, reads 0.0112 against 0.01, but on 801 test emails a single extra false positive moves FPR by 0.00125, so that cell is a one-count overshoot on a small split, not a failure of the bound. The cross-source cells, at 0.0212 and 0.0174, are not one-count effects. They are the ε in α + ε made concrete, and they are why the paper’s operational rule is “stratify the calibration pool to match production” rather than “calibrate once.” (Calibration counts and four-decimal rates are from the artifact’s Table F; the paper rounds to three.)
Randomized tie-breaking is the textbook fix for tied scores. Replace the deterministic p-value with
p(x) = ( G + U · (E + 1) ) / ( n + 1 ), U ~ Uniform(0, 1)
where G counts calibration scores strictly greater than s(x) and E counts those equal to it. This makes p exactly uniform under exchangeability and lets a tied block be split. Instead of handing every email in a tied block the worst rank, it spreads the block out at random, so some members fall below α and some do not, decided by the draw of U. The paper reports 100-seed means at α = 0.01, with two extra columns: the fraction of test emails whose decision depends on the draw of U (their p-value can land on either side of α depending on the flip), and the average fraction of decisions that differ from seed 0 across the other 99 seeds.
| Scorer | Recall | FPR | F1 | Decision depends on U | Seed disagreement |
|---|---|---|---|---|---|
| BERT | 0.995 | 0.006 | 0.995 | 0.0% | 0.0% |
| Claude | 0.881 | 0.010 | 0.932 | 4.7% | 0.7% |
| GPT-4o | 0.800 | 0.011 | 0.883 | 17.2% | 7.0% |
Recall on GPT-4o jumps from 0.564 to 0.800. The mean FPR of 0.011 sits a hair above 0.01, which is what an exactly uniform p-value should do on a finite test split: it fluctuates around α instead of staying under it, and the paper reads it as noise rather than a violation. The real cost is in the last two columns. For 17.2% of emails the system’s action is decided by a random number, and rerunning with a different seed changes 7% of decisions. The recall gain is a population-level number; the 17.2% is a per-email contract. For an analyst-facing tier, where the same email must get the same disposition twice, that is disqualifying, and the paper keeps deterministic tiers for every action a human sees.
Text attacks. The paper does not run adversarial attacks, and the reason is structural rather than an omission: perturbing phishing emails can only lower recall, it cannot touch the FPR bound, because legitimate traffic is unchanged. The attack that would matter is poisoning the legitimate calibration pool, which breaks exchangeability directly, and that is listed as future work.
What the guarantee does not say
The paper lists its scope limits explicitly, and the list is worth reproducing because the method is easy to oversell.
- It bounds legitimate-event FPR only. Not recall, not workload, not precision, not fairness. Every one of those is an empirical measurement in this paper and will be in yours.
- It is marginal. Subgroups can exceed α. The source-shift table above is the demonstration.
- It assumes exchangeability, which real traffic violates over time. Monitoring detects drift; recalibration is the only repair the paper offers.
- It does not improve discrimination. The oracle-threshold check shows a cheating raw threshold matches every conformal operating point. Conformal chooses validly among the rungs a scorer offers; it does not add rungs.
- Coarse scores can make deterministic conformal unusable at the FPR you need. GPT-4o at α = 0.01 is the example. The fix is a richer scorer, not a looser target.
- The corpus has artifacts (97.7% source-identifiable), the positives mix spam with phishing, Claude and GPT-4o are zero-shot while BERT is fine-tuned, and no fine-tuned open model was evaluated.
Future work the paper names: multiclass prediction sets, regression coverage, conditional or group-wise FPR control, stronger and poisoning-style attacks, and fine-tuned open-weight LMs as scorers.
Why it matters
The question underneath all of this, when should an automated system act and when should it escalate to a human, is usually answered with a number someone eyeballed on a validation set. The contribution here is not a new theorem; split conformal prediction is twenty years old. The contribution is showing what happens when you put that twenty-year-old tool in front of the scorers people are actually deploying in 2026, and finding that the two standard calibration methods silently degrade to a raw threshold the moment the scorer is an LLM returning one of eleven numbers.
If I had to compress the paper into a deployment rule, it is this. Freeze the scorer, including the prompt and any sampling procedure. Collect at least 1,000 legitimate examples under that frozen scorer, stratified to match production. Compute ranks. Gate actions by p-value tier, with the autonomous tier at the tightest α. Measure recall at the α you need, and if the scorer cannot deliver acceptable recall there, reject the scorer rather than relax α. Recalibrate after every scorer or prompt change, and monitor legitimate-source drift because the bound is only as good as exchangeability.
The thing I keep coming back to is the eleven unique values. A classifier that returns “0.9” for most phishing and “0.1” for most legitimate email looks great in a validation table and gives you no control at all over what happens at the margin. Conformal calibration did not fix that scorer. It told us, before deployment, that it could not be fixed at 1% FPR, and that is the kind of information a validation-set threshold is structurally unable to provide.
Paper and BibTeX
The paper is on arXiv at 2610.14365 and the camera-ready artifact, with pinned download scripts, SHA-256 provenance for every split, pseudonymous score records for all three scorers, and the verification scripts that regenerate every table above from the standard library, is at github.com/bishnubista/conformalguard-colm-2026. Raw email bodies are omitted for licensing reasons; the tables reproduce without them.
@inproceedings{bista2026conformalguard,
title = {ConformalGuard: False-Positive-Controlled Action Gating for LM Classifiers},
author = {Bista, Bishnu and Jadhav, Dhanraj Haibatrao and Choudhary, Vibha and
Saxena, Gaurav and Perumal, Arun Pandiyan and Subedi, Arjun and
Ammineni, Jignesh},
booktitle = {Conference on Language Modeling (COLM)},
year = {2026},
url = {https://arxiv.org/abs/2610.14365}
}
EOF · back to posts