Model reliability and confidence estimation
Uncertainty quantification for language models: estimating, answer by answer, how likely an output is to be correct. This is the center of our work.
Kanseko began in model distillation research. That work led to the question at the center of what we do now: can a language model's reliability be measured one answer at a time?
Uncertainty quantification for language models: estimating, answer by answer, how likely an output is to be correct. This is the center of our work.
Ways to improve model accuracy without retraining.
Transferring capabilities from large models to small ones. This is where Kanseko started, and it remains part of our ongoing research.
Pre-registered experiments, controlled baselines, and scoring only on answers the system never saw during fitting.
Error detection, also called failure prediction or hallucination detection, asks which answers are most likely to be wrong, so that checking effort goes where the errors actually are.
Correctness certification, also called selective prediction, asks the opposite question: which answers can be trusted confidently enough to skip review entirely.
The two are complementary, and we study both. Our research also covers generation failures: answers that fail to produce a usable result.
Our detectors are not one-size-fits-all. They are fine-tuned to each task using a set of labeled examples that are representative of the work the model will actually be doing. In our benchmark that meant 300 to 2,000 labeled examples per task.
A detector is fine-tuned on labeled data representative of the specific task, so its judgments fit that data rather than a generic average.
A determination takes just three generations from the model being checked.
In testing, making a determination for a given prompt and answer added about 300 ms on top of normal generation.
Three open models, three public datasets, and 7,500 fresh questions never used while developing the system. Each test was pre-registered, and every model and dataset is reported on its own.
of Llama-3.2-3B's MATH answers auto-approved at a 99% accuracy target, met by all 20 simulated deployments. On its own, the model gets 67.5% right.
of Llama-3.2-3B's GSM8K answers auto-approved at the same 99% target, met by 19 of 20 deployments.
of flagged MATH answers really were wrong, and flagging caught 80% of all of Llama-3.2-3B's MATH errors.
Highlighted cells in the tables below show where each number comes from. Fact recall is harder: no model or setting reached 99% on TriviaQA, and we report that too.
Each model is tested on its own and never pooled with the others. To mirror real use, we simulate 20 independent deployments per dataset. Each one supplies its own small set of labeled examples to set the system up, and is then scored on 500 questions it never saw.
| Model | Type |
|---|---|
| Llama-3.2-3B-Instruct (Meta) | General instruction model |
| Llama-3.2-3B-Instruct, fine-tuned | The same model after a small math fine-tune |
| Qwen2.5-3B-Instruct (Alibaba) | General instruction model, different family |
| Setting | Value |
|---|---|
| Simulated deployments per dataset | 20 independent random draws |
| Labeled examples each one provides | 300, 600, 1,000, 1,500 or 2,000 |
| Held-out test questions each | 500, never used for setup |
| Accuracy targets tested | 97–99% (math), 95–99% (fact recall) |
| Dataset | Task | Source split | Fresh test questions | Development questions (separate) |
|---|---|---|---|---|
| MATH (Hendrycks et al.) | Competition math, multi-step | train | 2,500 | 1,953 |
| GSM8K (Cobbe et al.) | Grade-school word problems | train | 2,500 | 1,319 |
| TriviaQA (Joshi et al.) | Open-domain fact recall, no context | rc.nocontext validation | 2,500 | 1,000 |
| Total | 7,500 | 4,272 |
In total, 7,500 fresh questions × 3 models = 22,500 model–question pairs.
This is each model's normal single response, with no filtering, on 2,500 fresh questions per dataset, every answer graded. It's what you'd get without us.
| Model | MATH | GSM8K | TriviaQA |
|---|---|---|---|
| Llama-3.2-3B | 67.5% | 90.7% | 65.2% |
| Llama-3.2-3B fine-tuned | 68.3% | 91.3% | 63.8% |
| Qwen2.5-3B | 72.5% | 93.0% | 51.9% |
Without filtering, about 1 in 3 MATH answers is wrong. GSM8K starts at 91–93% correct, which is why so few of its answers end up flagged as wrong.
The system auto-approves the answers it can certify at a chosen accuracy target and sends the rest on. Each cell shows the share of all answers auto-approved, with how many of the 20 simulated deployments actually met the 99% target in brackets. These use the conservative setting.
| Model | 600 labels | 1,000 labels | 2,000 labels |
|---|---|---|---|
| MATH | |||
| Llama-3.2-3B | 45.1% (16/20) | 44.4% (16/20) | 41.3% (20/20) |
| Llama-3.2-3B fine-tuned | 40.9% (19/20) | 36.0% (20/20) | 35.2% (20/20) |
| Qwen2.5-3B | 44.9% (18/20) | 39.9% (18/20) | 36.4% (20/20) |
| GSM8K | |||
| Llama-3.2-3B | 72.9% (17/20) | 65.7% (20/20) | 68.0% (19/20) |
| Llama-3.2-3B fine-tuned | 56.7% (15/20) | 40.4% (18/20) | 34.7% (19/20) |
| Qwen2.5-3B | 44.1% (20/20) | 32.7% (20/20) | 32.8% (19/20) |
On MATH, auto-approving 35–41% of answers at ≥ 99% correct turns a model that's wrong about 1 time in 3 into an approved pile that's wrong about 1 time in 100.
The system also has a setting that approves more answers, at the cost of meeting the target slightly less often.
| Dataset | Llama-3.2-3B | Llama-3.2-3B fine-tuned | Qwen2.5-3B |
|---|---|---|---|
| MATH | 47.6% (14/20) | 42.3% (20/20) | 49.2% (18/20) |
| GSM8K | 80.4% (18/20) | 49.4% (19/20) | 48.9% (20/20) |
The fewest labeled examples at which at least 18 of 20 deployments met each target, conservative setting.
| Model | 97% | 98% | 99% |
|---|---|---|---|
| MATH | |||
| Llama-3.2-3B | 300 | 600 | 1,500 |
| Llama-3.2-3B fine-tuned | 300 | 600 | 600 |
| Qwen2.5-3B | 300 | 300 | 600 |
| GSM8K | |||
| Llama-3.2-3B | 300 | 300 | 1,000 |
| Llama-3.2-3B fine-tuned | 300 | 300 | 1,000 |
| Qwen2.5-3B | 300 | 600 | 300 |
| Target | Result |
|---|---|
| 95% | Met by ≥ 18/20 deployments from 600 labels (fine-tuned Llama) and 1,500–2,000 labels (Llama, Qwen); 24–35% of answers approved |
| 97–98% | Met only at 2,000 labels, only on the two Llama models, approving 15–25% |
| 99% | Not reached by any model or setting |
Here the target is that at least 80% of flagged answers really are wrong. Results use 2,000 labels and the conservative setting, running alongside the 99% approve target. Brackets show how many of 20 deployments met the 80% target.
| Model | Answers flagged | Flagged that are wrong | Share of all errors caught |
|---|---|---|---|
| MATH | |||
| Llama-3.2-3B | 32.3% | 80.2% (18/20) | 79.7% |
| Llama-3.2-3B fine-tuned | 33.1% | 79.0% (19/20) | 83.2% |
| Qwen2.5-3B | 25.5% | 80.0% (19/20) | 73.9% |
| GSM8K | |||
| Llama-3.2-3B | 4.4% | 77.7% (17/20) | 35.6% |
| Llama-3.2-3B fine-tuned | 2.5% | 77.3% (18/20) | 22.5% |
| Qwen2.5-3B | 1.9% | 84.7% (20/20) | 21.3% |
| TriviaQA | |||
| Llama-3.2-3B | 28.4% | 78.7% (16/20) | 65.3% |
| Llama-3.2-3B fine-tuned | 27.4% | 78.5% (14/20) | 60.2% |
| Qwen2.5-3B | 45.0% | 80.3% (18/20) | 75.3% |
GSM8K answers are already 91–93% correct, so there are few errors to flag.
The target is a setting. Raising it makes flags more certain, at the cost of catching fewer errors.
| Target: flagged are wrong | Answers flagged | Deployments meeting target | Share of all errors caught |
|---|---|---|---|
| 80% | 19.1% | 20/20 | 53.8% |
| 90% | 13.0% | 20/20 | 37.9% |
| 95% | 8.5% | 20/20 | 25.0% |
| 99% | 3.1% | 17/20 | 9.4% |
Putting both together, every answer lands in exactly one of three piles, at a 99% approve target with 2,000 labels and the conservative setting.
| Model | Auto-approve (≥ 99% correct) | Flag as wrong (~80% wrong) | Send to review |
|---|---|---|---|
| MATH | |||
| Llama-3.2-3B | 41.3% | 32.3% | 26.4% |
| Llama-3.2-3B fine-tuned | 35.2% | 33.1% | 31.7% |
| Qwen2.5-3B | 36.4% | 25.5% | 38.1% |
| GSM8K | |||
| Llama-3.2-3B | 68.0% | 4.4% | 27.6% |
| Llama-3.2-3B fine-tuned | 34.7% | 2.5% | 62.8% |
| Qwen2.5-3B | 32.8% | 1.9% | 65.3% |
When a model has to answer a factual question from memory alone, with no documents or context to draw on, our detectors are currently much weaker. On TriviaQA, a 95% target was reachable, 97–98% only in limited cases, and 99% was not reached by any model or setting.
We're reporting this plainly because it matters for anyone relying on a model's unaided factual recall. Grounding answers in source material, as in retrieval-augmented generation (RAG), is one of the next areas we're testing.
The results above cover math and fact recall on three small models. We're extending the benchmark to new kinds of work and a wider range of models, tested and reported the same way.
Detecting wrong code and certifying correct code.
Answers grounded in retrieved documents rather than memory alone.
Longer, structured outputs such as reports and summaries.
Additional model families and a range of model sizes, each reported separately.
How reliable a model is depends on the model and the task, so a single headline number rarely tells the real story. Here is how we test.
Publications coming soon.
For more information about Kanseko and our research, email us.
contact@kanseko.com