Trained on world knowledge, deployed on supplied context
16 of 30 reviewed papers validate claim-processing methods on world-knowledge data (Wikipedia, Google Search) but deploy them on supplied-context RAG settings without re-validation.
ClaimRoute decomposes a RAG answer into atomic claims, routes each to a type-specific verifier, and returns a per-claim audit trail , not just a score. Backed by a systematic review of 30 published pipelines.
A structured reading of 30 hallucination-detection papers published 2023 – mid-2026 found three patterns that no prior survey has reported together. Each is the research gap ClaimRoute addresses.
16 of 30 reviewed papers validate claim-processing methods on world-knowledge data (Wikipedia, Google Search) but deploy them on supplied-context RAG settings without re-validation.
A consistent 20 – 21 percentage-point gap between response-level and span-level accuracy, across LettuceDetect, FAVA and FullCite. Papers report both as if on one scale.
Three independent domain studies , legal (LegalHalluLens), financial (FinGround), government (RAGShield) , show claim type is the dominant source of per-case accuracy variance. No general-domain system in the corpus routes claims by type.
"No general-domain verification system in the reviewed corpus routes claims by type. ClaimRoute is that system."
, from the review paper's Section V-C (Typing gap)
ClaimRoute is an evaluation layer. It does not retrieve documents or write prompts. In production, a Context Assembler (your retriever plus a chunker) supplies the supplied context field. ClaimRoute enters at the verification stage, after answer generation.
ClaimRoute accepts the context verbatim. Default chunker is ChunkingConfig(window_sentences=25, overlap_sentences=10), swappable per sample. Any upstream retriever works, LangChain, LlamaIndex, Haystack, or a hand rolled one.
Each extracted claim is classified by type, routed to a specialist verifier, calibrated against type-specific behaviour, and logged with a full audit trail.
flowchart TB
S["Sample: question, context, answer"]
S --> E["Claim Extractor qwen3 32b"]
E --> C["N typed claims"]
C --> R{"L1 Type Router"}
R -->|factual| N["NLI DeBERTa v3 large mnli"]
R -->|numeric| NUM["Numerical regex and arithmetic"]
R -->|temporal| T["Temporal dateutil parser"]
R -->|comparison| CMP["Comparative negation augmented NLI"]
R -->|other| F["LLM fallback llama 3.3 70b"]
N --> V["VerificationResult"]
NUM --> V
T --> V
CMP --> V
F --> V
V --> P["L3 Platt calibration per type"]
P --> AG["L3 Noisy OR aggregation"]
AG --> OUT["Sample P hallucinated"]
V -.-> AUD["L4 XAI RoutingDecision per claim"]
AUD -.-> CSV["routing audit csv"]
Each sample shows context, the model's answer, and ClaimRoute's per-claim verdict with the verifier that fired. Examples illustrative; distribution of verdicts matches the actual Kaggle run on RAGTruth-Enhance (n = 1,200).
End-to-end pipeline running in your browser: sentence splitter → rule-based type classifier → the specialist verifiers from the previous section. Numerical, Temporal and Comparative execute real logic; Factual uses a lexical overlap heuristic (offline preview , DeBERTa runs server-side in production).
no accounts, no API keys, no backend.
split → classify → route → verify → aggregate
"The system that cannot explain why it thinks a claim is wrong cannot be trusted with the claim at all."
, on L4 explainability
Runs the Playground input through three variants: ClaimRoute (type routing + NLI fallback), B (uniform NLI, lexical heuristic offline), and Always flag (predicts hallucinated on every claim). Highlights where they agree and where they diverge.
Every claim L1 routes gets a verifier tuned to its logical structure. These five demos run in your browser , Numerical, Temporal and Comparative execute real logic on the inputs you type; NLI and LLM fallback reveal traced output from the actual pipeline's behaviour on representative samples.
Extracts digits and spelled-out numbers from both sides, normalizes units, performs arithmetic equality within a 1% tolerance. Catches numeric contradictions that NLI's contradiction head is silent on.
Parses dates and relative time expressions (quarters, fiscal years, "last month"), computes interval overlap. Raises VerificationUnsupported when either side is unparseable, triggering the LLM fallback.
For "higher/lower/better/worse" claims, runs NLI on the original and on a logically negated version, combines verdicts. Three modes: plain NLI, regex-negation, LLM-generated negation.
435M-parameter DeBERTa-v3-large trained on MNLI + FEVER + ANLI + LING + WaNLI. 3-class classifier over (claim, context) pairs. Batched across chunks, runs on T4 in <1 s per claim.
Catch-all for subjective claims and specialists that raise VerificationUnsupported. Constrained JSON prompt returns verdict + confidence + one-line reason. Logged in L4 audit as verifier_used = llm_fallback.
Every claim goes through a rule-based pre-classifier first (regex + heuristics for numeric / temporal / comparison keywords). Rule hit → classifier_confidence = 1.0. Rule miss → fall back to the extractor's own type label with classifier_confidence = 0.75. Both decisions are logged to L4.
"One uniform verifier for every claim is like one wrench for every bolt , it works, until the bolt is hex."
, design principle of ClaimRoute's L1 router
Fixed splitter, fixed judge, same 1,200 and 400 samples. Only the verification strategy varies. 1,000-iteration bootstrap for 95% CI, paired McNemar exact two-sided for A vs B.
| Corpus | Variant | n | F1 | 95% CI | P | R | McNemar vs B |
|---|---|---|---|---|---|---|---|
| RAGTruth-Enhance | A routed | 1200 | 0.507 | [0.469, 0.542] | 0.751 | 0.383 | p = 0.39 |
| RAGTruth-Enhance | B NLI only | 1200 | 0.485 | [0.446, 0.521] | 0.766 | 0.354 | , |
| RAGTruth-Enhance | C det. only | 1200 | 0.128 | [0.097, 0.161] | 0.704 | 0.070 | p ≪ 10⁻²⁰ |
| RAGTruth++ | A routed | 400 | 0.283 | [0.223, 0.343] | 0.836 | 0.171 | p = 0.02 |
| RAGTruth++ | B NLI only | 400 | 0.244 | [0.184, 0.307] | 0.811 | 0.144 | , |
| RAGTruth++ | C det. only | 400 | 0.108 | [0.064, 0.159] | 1.000 | 0.057 | p < 10⁻³ |
"Routing is a recall mechanism that trades precision at the current operating point , this is the empirical motivation for L2."
, from docs/results-2026-11-16.md
True hallucinations A catches that uniform NLI misses. The numeric and temporal specialists fire on claims where NLI's contradiction head is silent.
Clean samples A flags that uniform NLI does not. Specialists cry wolf on some factually consistent claims , exactly the signal that motivates L2.
Every detection system has blind spots. Documenting them is the first step to closing them. These three motivate the Gate 2 and Gate 3 work on our roadmap.
DeBERTa-MNLI's contradiction head averages 0.07 across 158 evaluations. On a paraphrased contradiction , the context says "profit margin declined 2%" and the answer says "profitability was roughly stable" , NLI returns neutral, not contradicted.
The numerical verifier parses digits with regex. An answer that says "twelve thousand dollars" instead of "$12,000" doesn't match the pattern, so the claim falls through to NLI, which treats it as a factual claim and misses the arithmetic error.
In the Gate 1 slice, 2 / 3 temporal-labelled claims were served by the LLM fallback instead of the dateutil-based TemporalVerifier, because the verifier raises VerificationUnsupported whenever dateutil fails to parse either side.
Not every system reports F1 on the same corpus; this table normalises what each reports on grounded (R3) data. Reproduced numbers are from each system's own paper.
| System | Verifier | Reported corpus | F1 / Acc | Per-claim attribution | Open weights | Routing by claim type |
|---|---|---|---|---|---|---|
| HHEM-2.1 (Vectara) | fine-tuned T5 | AggreFact | 0.78 | sentence-level | yes | no |
| Lynx-70B | Llama-3 fine-tune | HaluBench | 0.874 | no | yes | no |
| LettuceDetect-L | ModernBERT tokens | RAGTruth | 0.792 / 0.589* | span-level | yes | no |
| MiniCheck-FT5 | 770M encoder | LLM-AggreFact | 0.774 | no | yes | no |
| FAVA | trained editor | FAVABench | 0.594 / 0.366* | span-level | yes | no |
| ClaimRoute (ours) | type router + specialists | RAGTruth-Enhance | 0.507 | per-claim XAI audit | yes | yes |
* Example-level / span-level split: reports the granularity wall from the review's F2 finding. ClaimRoute's F1 is lower in absolute terms than fine-tuned systems; the differentiator is per-claim XAI attribution and routing-by-type, both of which no other system reports.
Measured on the Kaggle 2× T4 kernel (claimroute-full-eval-v2, run 2026-11-11) over 1,600 samples.
ClaimRoute is designed to plug into existing evaluation workflows, not replace them. Planned integrations ship Dec 2026.
Small team, open tooling, reproducible pipeline.
Sample-level Platt (sigmoid logistic) fit on the raw Noisy-OR probabilities against gold hallucination labels. 10-bin equal-width Expected Calibration Error before and after calibration. Numbers are from the 2026-11-24 analysis script, not estimates.
| Variant | n | ECE raw | ECE Platt | Reduction |
|---|---|---|---|---|
| A routed | 1200 | 0.1521 | 0.0192 | 87.4% |
| B NLI only | 1200 | 0.1629 | 0.0194 | 88.1% |
| C det only | 1200 | 0.3570 | 0.0635 | 82.2% |
Platt does not change ranking so F1 and AUPRC are unchanged. The ECE reduction says the raw system had a systematic probability bias that L3 corrects. C det only had an ECE of 0.36 because it flagged almost nothing (recall 0.07), so its default low-probability region was systematically under-confident about the few true hallucinations it did predict.
Break the overall A vs B p=0.39 down by task. No task shows a significant routing contribution at this n. A vs C stays highly significant everywhere, confirming NLI fallback carries the system.
| Task | n | A vs B net | A vs B p | verdict | A vs C net | A vs C p | verdict |
|---|---|---|---|---|---|---|---|
| QA | 367 | +5 | 0.3323 | not significant | +24 | 0.021 | p < 0.05 |
| Data2txt | 441 | +3 | 0.6476 | not significant | +112 | <1e-20 | highly sig |
| Summary | 392 | -1 | 1.0000 | B barely wins | +17 | 0.006 | highly sig |
Paste one row per sample, three space- or tab-separated binary values (gold model_A model_B, 0 or 1 each). Get the 2x2 contingency table, net advantage, and the exact two-sided binomial p. Pure client-side, stdlib math.
Format: y_true y_pred_A y_pred_B per line. Example shows 10 rows where A agrees with gold more often than B.
Snapshot of the repository at publish time. The badges, commits, and audit rows below come from the actual repository state, not boilerplate.
From enhance_A.jsonl on Kaggle kernel claimroute-full-eval-v2, 1,200 samples run 2026-11-11. The pipeline tagged each with task type, claim count, verdict breakdown, noisy-OR probability, and gold label.
| sample_id | task | n_claims | contra | entail | NIC | P(hall) | gold | pred | match |
|---|