Skip to content

About

The benchmark for the decision your eval suite isn't grading: answer, or abstain? 270 cases, real SQuAD 2.0 traps, honest leaderboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AbstentionBench

The benchmark for the decision your eval suite isn't grading: answer, or abstain?

CI Code: MIT Data: CC BY-SA 4.0

📊 Live leaderboard →

Every retrieval-augmented answer makes a decision before it writes a word: is there enough in the context to answer at all? Get it wrong one way and you ship a confident, sourced-looking hallucination. Get it wrong the other way and your system refuses questions it could easily answer.

Faithfulness metrics can't see half of this. They grade the words of an answer, not the decision to answer. A refusal asserts nothing — so it's trivially "faithful," even when it's the wrong decision. That blind spot has a name here: over-refusal.

AbstentionBench is a meta-eval: it tests evaluation tools, not RAG systems. Given (question, context, answer), a tool must predict whether the answer/abstain decision was correct. 270 cases across the four quadrants of the decision:

system answered system abstained
context supports an answer ✅ correct ❌ over-refusal
context doesn't support one ❌ unsupported answer ✅ correct (the good "I don't know")

The dataset

data/abstentionbench.jsonl — 270 cases, two tiers:

  • core (240, 60 per quadrant) — built deterministically from SQuAD 2.0 dev (real questions, real Wikipedia passages, human answerability labels). The unsupported_answered traps use SQuAD 2.0's human-annotated plausible answers — real traps written by real annotators, not synthetic noise.
  • hard (30, hand-authored) — eight archetypes where tools actually break: partial support, distractor entities, near-miss numbers, false premises, multi-hop gaps, parametric-knowledge traps ("Canberra" is true — but it's not in the context), over-specified answers, hedged over-refusals. Every case carries a written rationale and survived unanimous 3-reviewer adversarial label verification; 2 of 32 drafts were rejected for label ambiguity and are not in the dataset.

Regenerate it yourself — the builder is deterministic (fixed seed, byte-identical output):

python src/build_dataset.py

Schema, construction details, and honest caveats: data/DATASET_CARD.md.

Run a tool against it

python src/harness.py --judges majority,lexical          # no deps, no keys
export OPENAI_API_KEY=sk-...                              # for the LLM judges
python src/harness.py --judges faithfulness_llm,abstention_llm

Adapters included: majority and lexical baselines · groundcheck (a local fine-tuned groundedness judge) · faithfulness_llm (a classic faithfulness LLM-judge) · abstention_llm (a two-boolean decision judge, the design contributed to DeepEval as AbstentionMetric, PR #2843). Add your own: one function, (question, context, answer) -> bool.

Reporting policy: the leaderboard shows only numbers actually produced by running the harness. Keyed judges you haven't run show as pending. Nothing is estimated, extrapolated, or vibes.

What the numbers say

See the live leaderboard — the headline column is catch rate on over-refusal. Faithfulness-style judges structurally score near zero there: a refusal makes no claims, so "is every claim supported?" passes it. Catching over-refusal requires grading the decision — asking both "does the context support an answer?" and "did the system abstain?" — which is exactly what the abstention_llm adapter (and AbstentionMetric) do.

Why this exists

It's the capstone of a thesis built in public: groundcheck (a groundedness judge you can run in CI) → AbstentionMetric (the decision metric, contributed to DeepEval) → shipgate (the CI gate) → AbstentionBench (the benchmark that measures whether your eval stack can see the failure at all).

Built by Daniel Enache — production AI you can audit.

License

Code MIT. Dataset CC BY-SA 4.0 (derived from SQuAD 2.0, Rajpurkar et al. 2018, CC BY-SA 4.0 — see the dataset card for attribution).

About

The benchmark for the decision your eval suite isn't grading: answer, or abstain? 270 cases, real SQuAD 2.0 traps, honest leaderboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages