Checking that an answer citation supports its claim

← Back to Blog & Articles

Listing 4.8: false-reject and false-accept rates of the lexical verifier for 1500 pairs of each kind.

An answer with citations is a claim cc and a span ss of retrieved text offered as its support. A verifier is a function V(c,s)V(c,s) that accepts or rejects the pair. Two ground truths are in play, and they must not be confused: whether the cited span in fact supports the claim (sup(c,s)=1\mathrm{sup}(c,s)=1), and whether the claim is true. The verifier can only be tested against the first. Its two error rates are FA=ℙ(V accepts∣sup=0),FR=ℙ(V rejects∣sup=1).\mathrm{FA}=\mathbb{P}\big(V\text{ accepts}\mid \mathrm{sup}=0\big),\qquad \mathrm{FR}=\mathbb{P}\big(V\text{ rejects}\mid \mathrm{sup}=1\big). A false accept is a citation that looks like support and is not; a false reject discards a good answer.

The verifier here is a lexical support score, an entailment proxy. For a claim with tokens t∈ct\in c, with sentence-level IDF weights wt=ln⁡(Ns/nt)w_t=\ln(N_s/n_t), score(c,s)=∑t∈cwt𝟏{canon(t)∈canon(s)}∑t∈cwt,\mathrm{score}(c,s)=\frac{\sum_{t\in c}w_t\,\mathbf 1\{\mathrm{canon}(t)\in\mathrm{canon}(s)\}}{\sum_{t\in c}w_t}, and it accepts when the score is at least θ\theta. The map canon\mathrm{canon} sends aliases and attribute synonyms to canonical forms, a stand-in for stemming and entity linking. A claim is the three words (entity, attribute, value). To test the verifier on its own, the companion book example builds labelled pairs of five kinds: supported claims, and unsupported claims whose span has the wrong value, belongs to the wrong entity (same attribute and value), states the same value for the wrong attribute of the right entity, or is unrelated. The span is either a single sentence or the whole passage that contains it.

The table is a map of how a bag-of-words verifier fails.

Entity and unrelated spans are caught. The false-accept rate is 0.000 for wrong-entity and unrelated spans in every row, because the entity word carries most of the IDF mass.

Without normalisation the verifier rejects good claims. With a single-sentence span, no synonyms and θ=0.8\theta=0.8, 0.734 of the supported claims are rejected, because the claim and the sentence use different surface forms. Normalisation brings that to 0.439. What remains is the pronoun sentences, where the entity word is absent. These are about five in twelve of the fact sentences by construction, and no word-level normalisation recovers them.

A longer span repairs rejection and breaks binding. With the whole passage as the span and normalisation, the false-reject rate is 0.000. The price appears in the false-accept columns: a claim that attaches the right entity’s value of another attribute to the wrong attribute is accepted in 1.000 of cases, because all three words occur somewhere in the passage, and a wrong value is accepted in 0.147 of cases at θ=0.8\theta=0.8 (0.121 at θ=1.0\theta=1.0) because the value coincides with another attribute’s value. A bag of words has no notion of which word is bound to which.

Thresholds cannot fix this. At θ=0.6\theta=0.6 the single-sentence verifier accepts 0.561 of the wrong-value claims, since a missing value word costs well under 0.4 of the weight. At θ=1.0\theta=1.0 the false-accept rate on single sentences is 0.000 and the false-reject rate is 0.439 (with synonyms). The choice of span and threshold moves error from one column to another; it does not remove it. A trained entailment model replaces the word-overlap score in practice, and the measurement protocol (labelled pairs of each failure type, error rates per type) is unchanged.

Now the pipeline. The retriever is the hybrid of the companion book example, the top 10 documents are the context, and the generator is the template generator defined next.

The toy generator. Given a question about entity ee and attribute aa, and the context’s fact sentences, each stating a triple (e′,a′,v′)(e',a',v'), the generator builds a logit for every candidate value vv: zv=β(#{(e,a,v)∈context}+wconf#{(e′,a,v)∈context,e′≠e})+λlog⁡πa(v),z_v=\beta\Big(\#\{(e,a,v)\in\text{context}\}+w_{\mathrm{conf}}\,\#\{(e',a,v)\in\text{context},\ e'\ne e\}\Big)+\lambda\log\pi_a(v), with β=4\beta=4, wconf=0.25w_{\mathrm{conf}}=0.25 and λ=0.3\lambda=0.3, where πa\pi_a is a “memorised” prior over values for attribute aa. The answer distribution is softmax(z)\mathrm{softmax}(z). Two mechanisms produce unsupported answers by construction. When the context lacks the right sentence, the prior decides: the generator answers from “memory”. When the context holds sentences about other entities with the same attribute, they receive partial weight wconfw_{\mathrm{conf}}, and if enough of them agree they outvote the right sentence. The reported answer is the majority of 10 samples. The citation is the context sentence with the highest weight among those that state the answer; if none does, the highest-weight sentence is cited anyway, which is how a citation can exist and fail to support. The extractive answerer instead picks the context sentence with the highest IDF-weighted overlap with the query and returns its value.

The context contains a sentence about the right entity and attribute for 0.920 of the questions. The generator’s accuracy is 0.896, and 0.883 of the answers are supported by their cited sentence. Accuracy is 0.960 when the context holds the fact and 0.168 when it does not, which is what the prior and the distractors get right by chance. A correct answer is not necessarily a grounded one: 0.0134 of all answers are correct while the cited sentence does not state them, a case of being right for the wrong reason that accuracy alone would count as success. The extractive answerer is weaker, with accuracy 0.400 from sentences alone and 0.477 when each sentence is given its document’s title, because sentence-level overlap cannot tell which of several same-topic sentences names the right entity.

On the pipeline outputs, the passage-level verifier with normalisation and θ=0.8\theta=0.8 has no false rejects among 1907 supported answers and no false accepts among 253 unsupported ones. The sentence-level verifier rejects 0.388 of the supported answers. Do not read the zero as a property of the verifier. the companion book example shows that the same verifier accepts a wrong-attribute claim every time. The generator simply does not produce that error: when it is wrong, it cites a sentence about another entity, and the entity word exposes it. Zero false accepts in 253 trials supports only an upper bound, which at 95 percent confidence is 0.012. A verifier is characterised by the error types it is tested on; a clean pipeline measurement is evidence about the generator’s mistakes, not about the verifier’s blind spots.

Continue with the book

Explore the full treatment, worked examples, and exercises in Applied AI Under Uncertainty.


Companion article for Applied AI Under Uncertainty, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top