ConformalGuard: False-Positive-Controlled Action Gating for LM Classifiers
Organizations: Independent Researcher · University of Massachusetts Amherst
Abstract
Language model classifiers are increasingly deployed for high-stakes decisions such as phishing screening, content moderation, and fraud triage, yet validation-set thresholds provide no finite-sample control of deployment-time false positives. We present ConformalGuard, a model-agnostic calibration layer that wraps a fixed scoring function with finite-sample control over the rate at which legitimate inputs trigger an intervention tier. Our contribution is empirical and operational, not a new conformal theorem: zero-shot LM API scores can be coarse enough (10--11 unique values here) to make temperature scaling and isotonic regression operationally identical to raw thresholding for low-FPR action gating. We compare these methods with conformal calibration for fine-tuned BERT, Claude Sonnet 4, and GPT-4o on public email corpora. For Claude, conformal calibration reduces FPR from 0.040 to 0.008 while recall falls from 0.938 to 0.875. For deterministic GPT-4o scores, the 1% operating point is too conservative to deploy (recall 0.564); three-run stochastic averaging raises recall to 0.732 at FPR 0.005. At 2% prevalence with BERT, conformal calibration removes 25 false-positive reviews per 10,000 emails (95% CI [10, 43]). The guarantee is legitimate-event-rate control under exchangeability; discrimination, workload effects, and robustness to shift remain empirical.
Figures & tables
| Capability | Temp. scaling | Isotonic | ConU | CADES | Ours |
|---|---|---|---|---|---|
| Finite-sample FPR guarantee | No | No | Yes | Yes | Yes |
| Validity on tied score grids | No | No | N/A | N/A | Yes; utility limited |
| Compared across LM architectures | No | No | No | No | Yes |
| Tiered action gating | No | No | No | No | Cumulative bound |
| Split | Total | Legitimate | Phishing/Spam | 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% (legit. only) |
| Test | 7,991 | 3,911 | 4,080 | 51.1% |
| LM | Calibration | Recall | Obs. FPR | FPR viol. | Precision | F1 |
|---|---|---|---|---|---|---|
| BERT | Raw threshold | 0.996 0.001 | 0.008 | 0.992 | 0.994 | |
| BERT | Temp. scaling | 0.996 0.001 | 0.008 | 0.992 | 0.994 | |
| BERT | Isotonic reg. | 0.997 0.001 | 0.013 | +0.003 | 0.988 | 0.993 |
| BERT | Conformal | 0.995 0.001 | 0.006 | 0.994 | 0.995 | |
| Claude | Raw threshold | 0.938 0.004 | 0.040 | +0.030 | 0.961 | 0.949 |
| Claude | Temp. scaling | 0.938 0.004 | 0.040 | +0.030 | 0.961 | 0.949 |
| Runs | Unique | Conformal | Raw threshold | |||
|---|---|---|---|---|---|---|
| averaged | scores | Recall | FPR | F1 | Recall | 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 |
| Calibration | Recall | FPR | Precision | 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] |
| Calibration n | FPR (mean std) | Recall (mean std) |
|---|---|---|
| 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 (full) | 0.006 0.000 | 0.995 0.000 |
| Scorer | Cal. source | Test source | FPR | |
|---|---|---|---|---|
| BERT | Enron | SpamAssassin | 801 | 0.021 |
| BERT | SpamAssassin | Enron | 3,110 | 0.003 |
| Claude | Enron | SpamAssassin | 801 | 0.006 |
| Claude | SpamAssassin | Enron | 3,110 | 0.008 |
| GPT-4o | Enron | SpamAssassin | 801 | 0.000 |
| GPT-4o | SpamAssassin | Enron | 3,110 | 0.017 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Scorer | Method | Recall | FPR | Precision | F1 |
|---|---|---|---|---|---|
| BERT | Temp. | 0.9963 | 0.0084 | 0.9919 | 0.9941 |
| BERT | Isotonic | 0.9973 | 0.0130 | 0.9876 | 0.9924 |
| Claude | Temp. | 0.9377 | 0.0399 | 0.9608 | 0.9491 |
| Claude | Isotonic | 0.9377 | 0.0399 | 0.9608 | 0.9491 |
| GPT-4o | Temp. | 0.8870 | 0.0153 | 0.9837 | 0.9329 |
| GPT-4o | Isotonic | 0.8870 | 0.0153 | 0.9837 | 0.9329 |
| Scorer | Rec. | FPR | Rec. | FPR | Rec. | FPR | Rec. | FPR | Rec. | FPR |
|---|---|---|---|---|---|---|---|---|---|---|
| BERT | .968 | .001 | .992 | .003 | .995 | .006 | .999 | .052 | 1.000 | .097 |
| Claude | .040 | .000 | .729 | .002 | .875 | .008 | .875 | .008 | .970 | .060 |
| GPT-4o | .564 | .001 | .564 | .001 | .564 | .001 | .887 | .015 | .953 | .067 |
| Scorer | Recall | FPR | F1 | Depends on | 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% |
Language Model Calibration
Language model calibration studies whether models’ confidence estimates match their actual accuracy across tasks, prompts, and deployment settings.
See all 381 papers