Black-Box Reliability Certification for AI Agents via Self-Consistency Sampling and Conformal Calibration
Organizations: OPIT – Open Institute of Technology, and Cohorte AI, Paris, France.
Abstract
Given a black-box AI system and a task, at what confidence level can a practitioner trust the system's output? We answer with a reliability level -- a single number per system-task pair, derived from self-consistency sampling and conformal calibration, that serves as a black-box deployment gate with exact, finite-sample, distribution-free guarantees. Self-consistency sampling reduces uncertainty exponentially; conformal calibration guarantees correctness within 1/(n+1) of the target level, regardless of the system's errors -- made transparently visible through larger answer sets for harder questions. Weaker models earn lower reliability levels (not accuracy -- see Definition 2.4): GPT-4.1 earns 94.6% on GSM8K and 96.8% on TruthfulQA, while GPT-4.1-nano earns 89.8% on GSM8K and 66.5% on MMLU. We validate across five benchmarks, five models from three families, and both synthetic and real data. Conditional coverage on solvable items exceeds 0.93 across all configurations; sequential stopping reduces API costs by around 50%.
Figures & tables
| Method | Bias | Variance | Error ? | Guarantee |
|---|---|---|---|---|
| Single sample | No | — | ||
| LLM-as-judge | (irreducible) | Prop. 3.4 † | No (bias persists) | — |
| Self-consistency (mode) | if ; if | No (bias if ) | — | |
| Ours (conformal) | Coverage gap | Yes ( as ) | ||
| † Three-term decomposition: agent variance judge variance bias variance; does not vanish with more samples. | ||||
| Dataset | / | Coverage | Mode Acc | Judge Acc | Avg. | Cov solv | |
|---|---|---|---|---|---|---|---|
| HumanEval | 82 / 82 | 2 | 0.707 ( 0.60–0.79 ) | 0.646 ( 0.54–0.74 ) | 0.915 † | 1.32 | 0.967 |
| TruthfulQA | 408 / 409 | 1 | 0.976 ( 0.96–0.99 ) | 0.976 ( 0.96–0.99 ) | 0.966 ( 0.94–0.98 ) | 1.00 | 0.980 |
| BigBench | 125 / 125 | 2 | 0.792 ( 0.71–0.85 ) | 0.768 ( 0.69–0.83 ) | 0.736 ( 0.65–0.81 ) | 1.10 | 1.000 |
| GSM8K | 500 / 500 | 1 | 0.956 ( 0.93–0.97 ) | 0.956 ( 0.93–0.97 ) | 0.986 ( 0.97–0.99 ) | 1.00 | 0.980 |
| MMLU | 500 / 500 | 2 | 0.838 ( 0.80–0.87 ) | 0.798 ( 0.76–0.83 ) | 0.962 ( 0.94–0.98 ) | 1.11 | 0.988 |
| GPT-4.1 | GPT-4.1-mini | GPT-4.1-nano | ||||
| Dataset | ||||||
| GSM8K | 1 | 1.00 | 1 | 1.00 | 2 | 1.35 |
| MMLU | 2 | 1.11 | 2 | 1.12 | 2 | 1.17 |
| GPT-4.1 | Llama 4 Maverick | Mistral Small | ||||
| Dataset | ||||||
| GSM8K | 1 | 1.00 | 1 | 1.00 | 1 | 1.00 |
| Model | Dataset | (mean std) | Coverage (mean std) |
|---|---|---|---|
| GPT-4.1 | GSM8K | ||
| GPT-4.1 | MMLU | ||
| GPT-4.1-mini | GSM8K | ||
| GPT-4.1-mini | MMLU | ||
| GPT-4.1-nano | GSM8K | ||
| GPT-4.1-nano | MMLU |
| Dataset | |||||
|---|---|---|---|---|---|
| HumanEval | .354 ( .26–.46 ) | .378 ( .28–.49 ) | .366 ( .27–.47 ) | .341 ( .25–.45 ) | .341 ( .25–.45 ) |
| TruthfulQA | .034 ( .02–.06 ) | .044 ( .03–.07 ) | .027 ( .02–.05 ) | .024 ( .01–.04 ) | .022 ( .01–.04 ) |
| BigBench | .248 ( .18–.33 ) | .240 ( .17–.32 ) | .240 ( .17–.32 ) | .240 ( .17–.32 ) | .240 ( .17–.32 ) |
| GSM8K | .064 ( .05–.09 ) | .058 ( .04–.08 ) | .048 ( .03–.07 ) | .046 ( .03–.07 ) | .046 ( .03–.07 ) |
| MMLU | .212 ( .18–.25 ) | .206 ( .17–.24 ) | .210 ( .18–.25 ) | .204 ( .17–.24 ) | .200 ( .17–.24 ) |
| Dataset | Avg. used | Savings | Seq. Coverage | Seq. Avg. |
|---|---|---|---|---|
| HumanEval | 11.05 ( 10.3–11.9 ) | 44.8% | 0.720 ( 0.61–0.81 ) | 1.28 |
| TruthfulQA | 9.67 ( 9.4–9.9 ) | 51.7% | 0.980 ( 0.96–0.99 ) | 1.00 |
| BigBench | 9.92 ( 9.4–10.4 ) | 50.4% | 0.792 ( 0.71–0.85 ) | 1.10 |
| GSM8K | 9.85 ( 9.6–10.1 ) | 50.8% | 0.952 ( 0.93–0.97 ) | 1.00 |
| MMLU | 9.98 ( 9.7–10.3 ) | 50.1% | 0.834 ( 0.80–0.86 ) | 1.11 |
| Model | Full budget | Sequential | Single sample | Judge baseline |
|---|---|---|---|---|
| GPT-4.1 | $168.01 | $125.13 | $4.20 | $3.88 |
| GPT-4.1-mini † | $20.80 | $10.40 | $1.04 | $2.40 |
| GPT-4.1-nano † | $1.60 | $0.80 | $0.08 | $2.40 |
| GPT-5 mini | $33.60 | $25.03 | $0.84 | $3.88 |
| Llama 4 Maverick ‡ | $7.84 | $3.92 | $0.39 | $2.88 |
| Mistral Small ‡ | $2.40 | $1.20 | $0.12 | $2.88 |
| Dataset | Canonical | Raw | Reduction |
|---|---|---|---|
| TruthfulQA | 1.00 | 1.00 | 0.0% |
| BigBench | 1.10 | 1.81 | 39.2% |
| MMLU | 1.11 | 1.41 | 21.3% |
| Coverage | Avg. | ||||||
|---|---|---|---|---|---|---|---|
| Model | Dataset | Rank | LAC | APS | Rank | LAC | APS |
| GPT-4.1 | GSM8K | 0.956 | 0.914 | 0.908 | 1.00 | 1.00 | 1.15 |
| GPT-4.1 | MMLU | 0.980 | 1.000 | 1.000 | 1.11 | 1.13 | 1.13 |
| GPT-4.1-mini | GSM8K | 0.954 | 0.900 | 0.902 | 1.00 | 1.00 | 1.12 |
| GPT-4.1-mini | MMLU | 0.976 | 1.000 | 1.000 | 1.12 | 1.13 | 1.13 |
| GPT-4.1-nano | GSM8K | 0.960 | 0.924 | 0.894 | 1.35 | 1.02 | 1.61 |
| Model | GSM8K | MMLU | TruthfulQA | BigBench | HumanEval |
|---|---|---|---|---|---|
| GPT-4.1 | 94.6 | 83.4 | 96.8 | 75.4 | 69.9 |
| GPT-4.1-mini | 96.0 | 81.6 | — | — | — |
| GPT-4.1-nano | 89.8 | 66.5 | — | — | — |
| Llama 4 Maverick | 95.4 | 66.7 | 85.3 | — | — |
| Mistral Small | 93.8 | 77.8 | 84.8 | — | — |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| , | Query space, answer space |
| Agent with parameters ; stochastic map | |
| Set of acceptable answers for query | |
| Canonicalization function mapping raw answers to canonical classes | |
| Number of i.i.d. samples per query | |
| Maximum samples per query (budget) |