Evaluating hallucinations in a local language model is not one task but two. When you have a source document, a small local model can act as a grounded checker: it reads the generated output and the source, then answers whether the source supports each statement. When you have no source, the same model cannot tell you whether a statement is true about the world — it would be guessing. The practical question is therefore not “can my local model detect hallucinations?” but “do I have the source?” (jev wiki).
This guide is for practitioners running models on their own hardware who need a defensible way to measure how often those models invent things. It covers the two evaluation problems, what an evaluation pipeline contains, and a step-by-step protocol you can run and reproduce. It deliberately does not publish benchmark scores: the sources below report one project figure and one survey of method coverage, and everything else here is a protocol you run on your own data.
Grounded and open-world hallucinations are different problems
The first decision in any evaluation is whether the claim can be checked against a supplied text. A grounded hallucination contradicts or extends a source you already have; an open-world hallucination is false about reality and can only be checked with world knowledge or search. The jev project documents the difference with a plain example: a summary says a meeting moved to Friday, while the email says Thursday.
| Aspect | Grounded (against a source) | Open-world (against reality) |
|---|---|---|
| Example | A summary says the meeting moved to Friday; the email says Thursday | An answer says a law was passed in 2019 |
| What the checker needs | The output and the source | Knowledge of the world, or a search |
| Small local model | Yes: it is a reading question | No: it would be guessing |
| Typical fix | Regenerate, or send for review | Retrieval, a larger model, a human |
The consequence for local evaluation is direct. Grounded checking is cheap enough to run on every output, because it is a reading comprehension task over text you already have. Open-world checking is not something a small local model can do reliably, because a small model does not hold enough reliable knowledge, and a model designed to answer questions about the text it is given is not answering from memory. If your workflow has no source — a free-form chatbot, an open-ended question — the honest options are retrieval plus a grounded check, a larger model with search, or a person.
What a hallucination evaluation pipeline actually contains
A survey of automatic hallucination evaluation on natural language generation analysed 74 evaluation methods and found that 74% of them specifically target large language models. It formulates a unified evaluation pipeline with three parts: datasets and benchmarks, evidence collection strategies, and comparison mechanisms. The survey also documents the shift from pre-LLM to post-LLM methodology and argues that the field suffers from methodological fragmentation, which hinders both theoretical understanding and practical advancement.
That framing is useful when you build your own harness, because it names the three things you must decide:
- Dataset and benchmark: the source/output pairs and the labels that define what counts as a hallucination.
- Evidence collection: where the checking model gets the text it compares against — a supplied document, a retrieval step, or nothing.
- Comparison mechanism: how a judgement is produced and how it is scored — per statement, per answer, or per field.
The survey’s list of open challenges includes enhanced interpretability mechanisms and the integration of application-specific evaluation criteria, which is a formal way of saying that a generic score tells you less than a score computed on your own task. A maintained catalogue of methods is kept at Awesome-Hallu-Eval.
Prerequisites for a local grounded evaluation
- A local model that can follow a short instruction and return a label. The jev wiki describes its checker as a small local model that reads the output and the source and answers whether the source supports each statement; the same design works with other instruction-following models.
- Source documents that pair with each generated output — the email, policy, transcript, or retrieved passage the output was supposed to summarise.
- A way to split outputs into atomic statements, since a single answer can contain several claims with different support status.
- Human labels for a subset of statements, so you can measure the checker rather than trust it.
None of this requires a large model. It requires a source, a splitter, and a labelled subset.
A reproducible grounded evaluation protocol
The steps below are a protocol, not a report of a test run. Run them on your own data and record the settings described in the final section.
- Write the evaluation question down. For example: “For each statement in the summary, does the source email support it?” A question that names the source and the unit of judgement is checkable; “is the model hallucinating?” is not.
- Build source/output pairs. Take real inputs and real generations from your workflow. Add a small number of deliberately corrupted outputs — swap a date, change a name, add a number that appears nowhere in the source — so that your test set contains known hallucinations and not only whatever the model happened to produce.
- Split outputs into atomic statements. One claim per line. This is the step most likely to introduce noise, so keep the splitter simple and inspect its output on a sample before trusting the score.
- Label the statements by hand. Mark each as supported, not supported, or contradicted by the source. This is your ground truth, and it is the only way to know whether the checker is any good.
- Run the grounded check. Feed the source and one statement at a time to the local model and record its label.
- Score the checker, not just the generator. Report how often the checker agrees with your labels, and break the errors into the two directions that matter: statements the checker called supported when they were not, and statements it flagged when the source did support them.
- Repeat with a fixed configuration and keep the raw per-statement outputs. Aggregates hide the cases you most need to read.
A minimal prompt template for step 5 keeps the model in a reading role:
Source:
---
{source_text}
---
Statement to check:
---
{statement}
---
Answer with exactly one label:
SUPPORTED - the source states or directly entails the statement
NOT_SUPPORTED - the source does not state or entail the statement
CONTRADICTED - the source states the opposite
Label:Expected observable result: one label per statement, plus a per-statement record you can join back to your human labels. If the model returns prose instead of a label, the prompt is too loose — tighten it before collecting more data.
A worked illustrative example
The following is an illustrative scenario, not an observed test result. Suppose the source email says the meeting moved to Thursday, and the local model’s summary says it moved to Friday. The splitter produces one statement: “The meeting moved to Friday.” The grounded checker receives the email and that statement and should return CONTRADICTED. Your human label is also contradicted, so the checker scores a hit. Now suppose the summary adds “the client confirmed the change.” The source never mentions the client. That statement is NOT_SUPPORTED, and a checker that returns SUPPORTED there has produced the error direction that matters most for a summarisation workflow.
Run this on twenty pairs and you will learn more about your model than any leaderboard number, because the failures are yours to read.
Cheap checks for invented names and numbers
The jev wiki lists a cheap check for invented names and numbers alongside the per-statement grounded check. That page does not publish the rule set, so treat any implementation as your own: extract proper nouns and numeric tokens from the output, look for each in the source, and flag the ones that do not appear. This is a heuristic, not an evaluation. It will miss paraphrased claims and it will flag legitimate inferences, but it is fast, deterministic, and useful as a first pass that routes suspicious statements to the grounded checker or to a human.
Limits, tradeoffs, and gaps in the evidence
- Grounded accuracy is not truthfulness. A checker that scores well on source support says nothing about whether the model’s statements are true about the world. Those are different questions with different evidence requirements.
- Small models cannot do the open-world half. The jev wiki is explicit that a small local model does not hold enough reliable knowledge to judge a statement about reality when no source is given.
- Published figures are narrow. The jev project reports that on its 999 test questions, its first jevos model was right 0.954 of the time on facts stated in the text, and notes that per-kind numbers for jevos-v4 are not published. That figure describes one model on one test set of grounded facts; it is not a general hallucination rate.
- Most methods were not designed for local hardware. The survey found that 74% of the 74 methods it analysed specifically target LLMs, and it describes the field as methodologically fragmented. Many published approaches assume API-scale models or evaluation infrastructure that a single local machine does not have.
- There is no universal pass threshold. Your acceptable error rate depends on the workflow: a support-reply draft reviewed by a person tolerates more unsupported statements than an automatically published summary.
Reporting results so others can reproduce them
If you publish numbers, record the hardware, operating system, runtime and version, model name and version, quantisation, context length, prompt template, sampling settings, dataset size, and the number of repetitions. Report the checker’s agreement with human labels separately for supported, not-supported, and contradicted statements, and state the size of the labelled subset. If you did not measure something, say so rather than estimating it. A protocol with no numbers is more useful to the community than a number with no protocol.
Where to go next
Start with the workflow you already run. Pick twenty source/output pairs, label the statements by hand, and run the grounded check with the model you have. If the checker agrees with you often enough for your risk tolerance, wire the check into the pipeline and keep the per-statement log. If it does not, the failure cases will tell you whether the problem is the splitter, the prompt, the model size, or the absence of a source. Readers who run this on their own setup are invited to share their environment, test-set size, and observed error directions in the community so others can compare protocols rather than slogans.
FAQ
Can a small local model detect hallucinations on its own?
Only grounded ones. A small local model can read an output and a source and judge whether the source supports each statement. Without a source it would be guessing, because it does not hold enough reliable knowledge to judge claims about the world.
What should I do if my workflow has no source document?
The documented options are retrieval plus a grounded check, a larger model with search, or a person. A small local model is not a valid substitute for world knowledge.
Does a good grounded score mean my model is truthful?
No. A grounded score only measures support against the text you supplied. Whether the statements are true about the world is a separate question that needs different evidence.
How do I avoid a checker that simply labels everything as supported?
Include deliberately corrupted outputs in your test set, label statements by hand, and report errors in both directions: statements wrongly called supported and statements wrongly flagged.