Evaluating language models
LLM abstention: how to make a model say "I don't know" and measure it
LLM abstention is a model declining to answer when it should. How to test it, the metrics to report, and the methods that make models abstain.
Oct 12, 2026 · Updated Nov 9, 20265 min read4 sources
Why it matters
A system that answers from doctrine or manuals must refuse when they are silent, and a made-up answer reads like a sourced one.
The short version
- 1Abstention is a model's refusal to answer. Test it with a set that mixes answerable questions and look-alike questions the source does not answer.
- 2Report accuracy on answered questions, abstention precision, abstention recall, and coverage together. On SQuAD 2.0, always abstaining scored 48.9 F1.
- 3A model's own answer probability was overconfident out of domain. A trained calibrator answered 56.1 percent of questions at 80 percent accuracy, against 48.2.
LLM abstention is a large language model (LLM) declining to answer, for example by saying "I don't know," when it should not answer. The Wen survey defines abstention as "the refusal to answer a query" (Wen et al., Section 2).
A model should abstain when the question cannot be answered from what it has, when it is likely to be wrong, or when answering would be unsafe. Accuracy alone cannot show whether it does.
Correct answer
The goal, when it cites its source.
Over-abstention
Never wrong, and less useful.
Invented answer
The failure that matters most.
Correct refusal
Scored as a right answer.
The measures in this post score all four cells together.
When an LLM should abstain
The survey gives three reasons to abstain (Wen et al., Section 2):
| Perspective | Abstain when | Example |
|---|---|---|
| Query | The question is ambiguous, unknowable, or has "irrelevant or insufficient context to answer" | A question the supplied documents never mention |
| Model knowledge | The model is likely to answer wrongly | A long-tail fact it has barely seen |
| Human values | Answering would be harmful or unethical | A request to cause harm |
For a system that answers from a fixed set of documents, the query perspective matters most. If the documents are silent, the right answer is a refusal.
Abstention is a spectrum. Expressing uncertainty, giving conflicting conclusions, and refusing for safety reasons all count. A partial abstention answers and hedges at once.
How to measure abstention
Score answers and refusals together. The survey defines the metrics from an abstention confusion matrix (Wen et al., Section 4.2):
| Metric | What it measures |
|---|---|
| Accuracy on answered questions (reliable accuracy) | Of the questions answered, how many were right |
| Abstention precision | Of the refusals, how many were correct to refuse |
| Abstention recall | Of the questions that should be refused, how many were |
| Coverage | Share of all questions the model answered |
| Over-abstention | Share of answerable questions the model refused |
| Effective reliability | Correct answers minus wrong answers, over all questions |
Report them together. A model that refuses everything has perfect abstention recall and zero coverage. A model that never refuses has full coverage and zero recall.
The always-abstain floor
The Stanford Question Answering Dataset (SQuAD) 2.0 added 53,775 unanswerable questions to SQuAD. Crowdworkers wrote them about the same paragraphs so they look answerable. Abstaining on an unanswerable question scores 1; any answer scores 0.
| System (2018) | SQuAD 2.0 test F1 |
|---|---|
| Always abstain | 48.9 |
| Best model, DocQA + ELMo | 66.3 |
| Human | 89.5 |
Source: Rajpurkar, Jia, and Liang, Section 5.
Read every abstention score against the always-abstain floor for that test set. The same model architecture scored 85.8 F1 on SQuAD 1.1, which had no unanswerable questions.
Selective question answering
Selective question answering means answering as many questions as possible while keeping accuracy high, and abstaining on the rest (Kamath, Jia, and Liang). You set a confidence threshold. Above it, answer; below it, abstain.
Plot error on answered questions against coverage as the threshold moves. That is the risk-coverage curve. Then report coverage at a fixed accuracy, such as 80 percent.
Kamath tested a BERT-base question answering model trained on SQuAD, on a mix of SQuAD and five other datasets:
| Abstention signal | Coverage at 80% accuracy |
|---|---|
| Model's own top answer probability | 48.2% |
| Trained calibrator | 56.1% |
The model's own probability gave good confidence estimates on in-domain data but was overconfident on out-of-domain data. Do not use raw answer probability as your refusal signal when real questions differ from training data. See LLM calibration for how well model confidence tracks accuracy.
How to make an LLM abstain
The survey groups methods by when they apply (Wen et al., Section 3):
- Fine-tuning on abstention-aware data. Improves abstention but can cause over-abstention.
- Preference training. Can reduce over-abstention from fine-tuning, but can add it back if the reward model overweights safety.
- Prompting with abstention examples. Shows potential and needs no training.
- Uncertainty estimates. Probability-based and verbalized confidence can serve as the signal, but neither may be well calibrated. Sampling-based semantic entropy is one option.
- Calibrators and probes. Train a small model to predict when the main model errs, as Kamath did.
- Self-evaluation. Ask the model, often in a separate conversation, whether its answer is certain or safe, and abstain if not.
Change the scoring too. Kalai and colleagues propose stating a confidence target in the prompt: answer only if more than t confident, with a wrong answer costing t/(1 - t) points and "I don't know" scoring 0 (Kalai et al., Section 4.2). Most popular benchmarks give no credit for abstaining, which rewards guessing. See LLM hallucination.
How to build an abstention test set
- Write questions your documents answer.
- Write look-alike questions they do not answer, on the same topics and in the same style, as SQuAD 2.0 did.
- Label each question "answer" or "abstain."
- Run the system and fill the confusion matrix: correct, incorrect, or abstained.
- Report the metrics above, plus the always-abstain score on the same set.
- Add questions from outside your training distribution and check whether the refusal signal still holds.
Both SQuAD benchmarks are extractive: the answer is a span of the source. For free-form answers, deciding what counts as a correct refusal is harder to automate. A model grader can help; see LLM as a judge.
What to do next
- Add unanswerable look-alike questions to your test set and record their share.
- Report reliable accuracy, abstention precision, abstention recall, and coverage in one table.
- Compute the always-abstain score for your set and compare against it.
- Count how often the system refuses questions the documents do answer.
- Test the refusal signal on out-of-domain questions before you trust a threshold.
Azcuna's ELLMENT, the E-2D Large Language Model Entity, was proposed to NAVAIR PMA-231 under Navy SBIR Phase I topic DON26BZ01-NV010. The prototype, built at private expense on publicly available doctrine, answers with a page-level citation and refuses when the documents do not support an answer. The proposal has been submitted. The long read on air-gapped RAG goes further.
Questions people ask
What is abstention in LLMs?
Abstention is a language model's refusal to answer a query. The Wen survey defines it that way and notes it covers a spectrum: saying I don't know, expressing uncertainty, giving conflicting conclusions, or refusing because of potential harm. A model should abstain when the question cannot be answered, when it is likely to be wrong, or when answering would conflict with human values.
How do you measure LLM abstention?
Build a test set with answerable questions and similar questions the source does not answer. Then report accuracy on answered questions, abstention precision, abstention recall, and coverage. The Wen survey defines these from an abstention confusion matrix. Compare the score with a system that always abstains; on SQuAD 2.0 that baseline scored 48.9 F1 on the test set.
How do you get an LLM to say I don't know?
The Wen survey groups methods by stage: fine-tuning or preference training on abstention-aware data, and at inference, prompting with abstention examples, uncertainty estimates, calibrators, consistency checks, and self-evaluation. Kalai and colleagues also propose telling the model the scoring rule: answer only above a confidence threshold, with wrong answers penalized and I don't know scored zero.
What is over-abstention?
Over-abstention is refusing questions that should have been answered. The Wen survey says instruction tuning on abstention-aware data improves abstention but can lead to over-abstention, and that preference training can also cause it if the reward model overemphasizes safety. Measure it as the share of answerable questions the model refused.
What is selective question answering?
Selective question answering means answering as many questions as possible while keeping accuracy high, and abstaining on the rest. Kamath, Jia, and Liang score it with coverage, accuracy on answered questions, and the risk-coverage curve. In their tests a trained calibrator answered 56.1 percent of questions at 80 percent accuracy, against 48.2 percent for the model's own probability.
What is SQuAD 2.0?
SQuAD 2.0 is the Stanford Question Answering Dataset with 53,775 unanswerable questions added. Crowdworkers wrote them about the same paragraphs so they look answerable. A system must answer from the paragraph or abstain. In the 2018 paper, the best model scored 66.3 F1 on the test set against 89.5 for humans and 48.9 for always abstaining.
Sources
- 1Know Your Limits: A Survey of Abstention in Large Language Models · arXiv (Wen et al.)
- 2Know What You Don't Know: Unanswerable Questions for SQuAD · arXiv (Rajpurkar, Jia, and Liang; ACL 2018)
- 3Selective Question Answering under Domain Shift · arXiv (Kamath, Jia, and Liang; ACL 2020)
- 4Why Language Models Hallucinate · arXiv (Kalai, Nachum, Vempala, and Zhang, September 2025)
Where this shows up in our work
- CALIBER, the market testbed for AI agents measures from an AI agent's trades whether it is gullible, herds, overpays, or can be steered.
- ELLMENT, the offline LLM for E-2D crews answers a crew's question from the aircraft's own manuals and cites the page, with no network.
