FLEEK: Factual Error Detection and Correction with Evidence Retrieved from External Knowledge
Paper · 2023 · Farima Fatahi Bayat, Kun Qian, Benjamin Han et al.
Summary
A sentence can get one fact right and another wrong. A verdict on the whole sentence leaves the reader to work out which part needs attention, what evidence bears on it, and how to fix it. FLEEK is a prototype that takes on those tasks separately. It breaks a passage into claims, turns each claim into a question, and looks for answers in a curated knowledge graph and through web search. It then judges the evidence against the individual claims. A reader can select a highlighted span to inspect the evidence behind its label and request a revision when a claim is questionable.
The method pays particular attention to what a search must recover. If the original claim gives a birth year, FLEEK asks for the year so that the returned answer can be compared at the same level of detail. If the claim describes a move and gives both the destination and the person’s age at the time, FLEEK can include the age in a question about the destination. This keeps the search tied to a particular event. FLEEK checks whether each retrieved answer supports the claim and uses the available evidence to distinguish Strongly Supported, Likely Supported, and Questionable claims. Its revision stage tries to replace a questionable detail while preserving the sentence’s other assertions.
The authors tested the prototype on Bench LLM, a collection of GPT-3 answers to selected questions, and Bench Text, a collection of Wikipedia sentences altered by substituting entities. Verification credit required a correct span, the correct label, and attribution to valid evidence. With GPT-3 carrying out the prompted steps, FLEEK reached total F1 scores of 82.02 on Bench LLM and 84.45 on Bench Text. With Vicuna, the corresponding scores were 72.81 and 69.73. Both versions performed especially well on Strongly Supported claims. Their results on the other categories varied more across the benchmarks.
The proposed revisions had an average accuracy of 72.7% across the systems. The authors traced 54.1% of incorrect revisions to errors introduced earlier in the pipeline, and they report average correction precision of 87.5% when verification was correct. Claim extraction was the largest source of errors in their inspection of failed GPT-3 cases. The results describe an early demonstration on small, Wikipedia-related datasets annotated by one person. They show how evidence and editing can be made inspectable at the level of a claim, while leaving the reliability of the system on broader inputs open.
Deep dive: FLEEK: Factual Error Detection and Correction with Evidence Retrieved from External Knowledge
FLEEK checks individual claims against knowledge graph and web evidence, then proposes local corrections that preserve the rest of the sentence. · about 40 minutes to read
The problem and its context
What a verdict on a sentence leaves unresolved
Consider a sentence that places the United States in North America and gives its number of states as 51. In the authors’ example, the geographical assertion holds and the count should be 50. A system that rejects the sentence as a whole can issue a defensible verdict. The reader still has to discover that the error concerns the count, find a source for the correct figure, and decide how to change the sentence. A verdict tells the reader something went wrong. A correction requires identifying what went wrong within the sentence.
The paper presents FLEEK as a way to close that gap. When assertions share a sentence, each can call for a different piece of evidence. A source about geography can support one assertion while saying nothing about the other. An interface that assigns the source and verdict to the relevant span lets the reader see that distinction directly. The same design gives the editing step a target. A replacement for the count can be evaluated on whether it changes the intended assertion and leaves the geography intact.
The authors frame factual error as a problem for both human writing and automatically generated answers. Readers can encounter incorrect statements in online material, including prose that appears fluent and confident. The paper gives particular attention to answers generated by large language models, which can produce inaccurate details and have difficulty attributing assertions to valid external evidence. In that setting a reader may have a well-formed answer to a question and still need to discover where its factual claims came from. A similar verification task arises when a reader brings a passage they found or wrote themselves.
Attribution matters because a conclusion about a claim is easier to examine when the reader can follow the connection to its evidence. Somebody reviewing a proposed edit may want to distinguish a source that addresses the actual claim from one that discusses a related subject. A source can be relevant to the person named in a sentence and irrelevant to the date, place, or event under review. The system therefore needs a way to express the question it asked and show which answers it used. FLEEK treats those intermediate steps as part of what a reader can inspect.
The manual work the authors describe begins before the reader opens a source. The reader first isolates a candidate error and formulates a search that can verify it. They then interpret the material that comes back, compare it with what the passage says, and decide whether a correction is warranted. Searching the whole sentence can mix several of those tasks together. Asking for a fact at the same granularity as the disputed assertion gives the search a more specific purpose. The tradeoff is that the system must decide how to divide the passage and which surrounding detail to carry into the question.
How earlier verification work framed the task
The paper describes earlier systems that take a claim together with evidence sentences and classify the claim as a unit. The labels it discusses include SUPPORTED, REFUTED, and IRRELEVANT. Such a classification asks whether the evidence bears on the supplied claim and what judgment follows. The claim has already been supplied as a unit for the decision. FLEEK has to form the units it will judge from ordinary prose, where the boundaries between claims need not match the boundaries between sentences. The authors discuss earlier work including Reasoning Over Semantic-Level Graph for Fact Checking and Fine-grained Fact Verification with Kernel Graph Attention Network.
The distinction concerns what a judgment is about. A verifier can use fine distinctions among items of evidence and still return a decision about an entire supplied claim. FLEEK’s unit is a separately checkable assertion found inside that input. When the authors discuss earlier benchmarks, they emphasize that those benchmarks provide a decision for the claim as a whole given the evidence. Their proposed task asks for a span inside the passage, a status for the assertion expressed there, and evidence attributed to that assertion. They discuss FEVER as an example of the previous benchmark setting.
The paper also draws on work about the relationship between generated text and structured knowledge. Its motivation for consulting external sources includes the difficulty of grounding fluent responses, a concern it associates with Unifying Large Language Models and Knowledge Graphs: A Roadmap. At the same time, the authors regard curated knowledge as incomplete. A graph can offer a concise answer when it contains the required information. A broad web search can offer additional evidence, especially when the graph is silent or returns a list whose coverage is uncertain. The design brings those sources into the same verification process while allowing them to play different roles.
The resulting task combines finding claims, retrieving information, checking meaning, and editing. Each stage passes a different kind of object to the next. A passage becomes a collection of assertions. An assertion becomes a question whose answer can be sought independently. A retrieved answer becomes a proposed value against which the original wording can be tested. When the system proposes a change, an evidence-backed value becomes an editing target. Keeping those transitions visible helps explain both what the prototype can do and where an apparently reasonable final answer can go astray.
The method, step by step
FLEEK starts by splitting a passage into sentences and runs the verification procedure for each sentence. It identifies information that can be checked, represents it in a compact form, and generates questions whose answers can serve as evidence. The questions go to a graph-based answering system and to web search. From the answers, FLEEK builds statements comparable to the claims and assigns a status to each claim. Revision is a further operation that a user can request after reviewing the result.
FLEEK’s path from an input passage to revisions
The steps in order.
Expressing the claims as triples
A fact in the method is a unit of asserted information. It may describe an entity, state a relationship, or say something about an event. Calling it a fact at the extraction stage says what sort of material the system should identify. Its support is determined later. The representation follows an information extraction format in which a subject and a predicate are paired with an object. The subject identifies what the assertion concerns, the predicate identifies what aspect or relationship is asserted, and the object supplies the value to be checked.
The paper denotes the initial sentence collection as follows.
{s₁, …, sᵢ}
Each s stands for a sentence of the input passage, which the authors call p. The subscripts distinguish the sentences, with 1 marking the first and i the final index in this depiction of the collection. The ellipsis stands for the intervening sentences and the braces enclose the collection. In the description of extraction, sᵢ also serves as the notation for the particular sentence being processed.
The simpler representation is a flat triple. It suits a predicate that has a subject and one object. In the authors’ running examples, a statement putting Taylor Swift’s age at 30 years old is represented with Taylor Swift as the subject, age as the predicate, and 30 years old as the object. That example illustrates how the wording of a sentence is converted into fields. The extraction stage records the asserted age so later stages can investigate it.
t = (S; P; O)
Here t denotes the claim triple, S the subject, P the predicate, and O the object. The equals sign ties the name of the triple to its field representation. The parentheses group the fields and the semicolons separate them. In a flat triple, the predicate and subject together identify the relationship whose object is at issue. The object is the part of the triple that FLEEK will later replace with a retrieved answer for comparison.
A sentence can also make claims about several attributes of a single event. The paper illustrates this with a sentence about Taylor Swift moving to Nashville at age 14. The destination and age are each checkable details, and they describe the same move. FLEEK records them in separate extended triples. Both triples carry an artificial identifier for the move. One gives Nashville as the value of the place attribute, and the other gives 14 as the value of the age attribute. This makes each attribute available for a separate judgment while retaining the association between them.
t = (S; P; Pᵢd; Pₐₜₜᵣ; O)
In this form t is the extended claim triple, S is the subject, and P is the shared predicate. Pᵢd denotes the artificial identifier for the predicate instance, and Pₐₜₜᵣ denotes the name of the attribute whose value is given by O. The parentheses group the fields in order, the semicolons separate them, and the equals sign gives the representation of t. In the move example, the identifier links the destination and age even though the triples represent distinct attributes.
The added fields matter because “moved” can describe a particular occurrence with several associated values. A destination alone may be an incomplete description of that occurrence. An extended triple lets the verification stage operate on one object at a time, and its companions let question generation recover some of the event context. The identifier helps group those companions within the representation. It is an artificial marker for that purpose, so a question for an external source has to express the useful context in terms such as the age at the time.
Tᶠ = {tᶠ₁, …, tᶠₘ}
Tᶠ is the collection of flat triples for the sentence. Each tᶠ is one member, with the superscript f marking the flat format. The subscripts begin at 1 and end at m, the number of flat triples, and the ellipsis stands for any intervening members. The braces mark the set and the equals sign defines it in terms of those members.
Tᵉ = {tᵉ₁, …, tᵉₙ}
Tᵉ is the collection of extended triples. The superscript e identifies the extended format, and the indexed tᵉ symbols are its members. The first index is 1, n gives the number of extended triples, and the ellipsis represents the intervening members. The braces again enclose the set. This use of a superscript for the extended format is distinct from the later subscript on an evidence triple.
T = Tᶠ ∪ Tᵉ
T is the extraction result for the sentence, Tᶠ and Tᵉ are the flat and extended sets, and ∪ denotes their union. The equals sign defines the output as the set containing triples from either format. The next stage takes members of that combined set as its inputs. An ordinary sentence can therefore contribute straightforward assertions and event attributes to the same verification run.
The extractor gets five human-written demonstrations. The authors chose examples they considered challenging, with different mixtures of the flat and extended formats. This is few-shot learning through prompting. The demonstrations are included as examples of the task when the system is asked to process a new sentence. For extraction, they show which assertions to isolate and how to represent a sentence whose checkable content includes several attributes. The paper uses this setup with both GPT-3 and Vicuna.
The stage has to get both coverage and structure right. If it omits an assertion, the subsequent components have no triple on which to base a question about that assertion. If it assigns an object to the wrong predicate or breaks the connection among attributes, it supplies the search stage with a misleading description of what to verify. If it introduces an assertion that the sentence never made, subsequent evidence can be relevant to the generated triple without being relevant to the user’s text. These possibilities follow from the role extraction plays at the front of the pipeline.
Asking for the right kind of answer
The question answering step starts with a claim triple and aims to recover the kind of information in its object field. Asking a question turns the triple into something the external retrieval systems can use. A claim already supplies a value, but the question is designed to elicit a value from elsewhere. The later comparison can then examine whether the externally supplied answer supports what the sentence says. This depends on asking about the same subject, predicate, and situation at a suitable level of detail.
Type-aware question generation, which the authors call TQGen, handles the level of detail. Consider the authors’ birthdate triple, whose object is 1989. An ordinary question about when Taylor Swift was born could bring back a complete date. FLEEK uses the type of the claimed object to ask specifically for a year. The year is the part of the fact the original assertion commits to. Constraining the question in this way makes the retrieved value easier to compare with the claim without requiring both to supply the same amount of incidental detail.
The authors use a staged prompt. The system identifies the object’s type and then writes the question conditioned on that type. The paper describes this as an application of chain-of-thought prompting and uses two human demonstrations. The intermediate type gives the prompt a way to distinguish, for instance, a year from a full date even when the predicate in the triple covers either. The type steers the form of the question, while the subject and predicate determine what information it seeks.
Context-driven question generation, or CQGen, addresses extended triples. When checking the place attribute of the move in the paper’s example, the place triple establishes who moved and which attribute should be found. The age triple supplies a condition that helps identify the event. Using both allows the question to seek the destination of the move at age 14. A question based on the place triple alone could retrieve a destination associated with a different move by the same person. The generated question makes explicit which move the search is supposed to find.
This operation keeps the attribute being checked distinct from the information used to specify the situation. Nashville is the object to be verified when the question asks about the destination. Age is a way to narrow the question in that case. A question focused on a different attribute would have a different answer target. The authors use two examples to prompt context-driven question generation. Their account emphasizes the complementary jobs of precision about the expected answer and context about the event to which that answer belongs.
The two forms of question generation also expose different ways in which retrieval can drift. An answer may concern the right event but arrive at a different level of detail from the claim. It may have the right type but concern a different event. In the first case the comparison has to reconcile how much information is expressed. In the second case the apparent match could be misleading even if the answer fits the expected field perfectly. FLEEK addresses these issues by specifying the question before retrieval.
Collecting answers from two sources
FLEEK submits the generated questions to its graph-based answering system and to its web search engine. The graph route returns short answers. These can be a single value, such as a birthplace, or a list, such as a collection of professions. A list has a special status in the method because the graph may contain some of the appropriate values and omit others. A value that fails to appear on the list therefore calls for a different inference from a value that conflicts with a returned answer to a single-valued question.
Aₖg = {a₁, a₂, …}
Aₖg denotes the set of answers returned by the knowledge graph route for the claim under review. The symbol a denotes an answer, with subscripts 1 and 2 marking successive members and the ellipsis allowing for further members. The braces enclose the answer set, and the equals sign introduces its representation. The set can also be empty or consist of a single member, possibilities the decision rule handles explicitly.
For web evidence, FLEEK retains both the passage it found and the short answer highlighted within that passage. The short answer can be put into the claim’s object field for comparison. The passage gives a reader context for deciding whether the short answer really addresses the question. The paper describes keeping the top k passages for each question, with 5 as an example, and pooling the results for the questions. This description gives an example of the retrieval depth. It does not specify that every reported run used that value as a fixed setting.
[(p₁, a₁), (p₂, a₂), …, (pₖ, aₖ)]
The square brackets denote the web retrieval list. Each parenthesized pair contains a passage p and an answer a highlighted in that passage. The repeated subscripts associate each answer with its own passage. They begin at 1, continue through 2, and end at k, the number of retained entries in the list as illustrated. The ellipsis denotes the intervening pairs and the commas separate fields or entries. In this expression p refers to a retrieved passage, whereas the earlier p denoted the passage submitted for checking.
The paper uses A with a web subscript for the collection of those web pairs at verification time. The two kinds of retrieval output remain distinguishable at that point. A graph answer contributes a value from a curated source. A web result contributes a value accompanied by a text passage, with a source link available to the user in the interface. This distinction is important because the operation that compares values and the operation that lets a reader inspect their origin use different parts of the retrieved material.
Turning answers into evidence and assigning labels
To compare like with like, FLEEK constructs an evidence triple for each retrieved short answer. It takes the subject and predicate from the claim and uses the answer where the claimed value originally appeared. For an extended triple it also retains the predicate identifier and attribute. Putting the answer in an equivalent slot lets the verifier compare a claim about a property with an evidence statement about that property. An answer consisting of a place name or a year acquires its role through the question that elicited it and the field into which it is inserted.
A = Aₖg ∪ {aᵢ | (pᵢ, aᵢ) ∈ A𝑤}
A is the combined set of short answers used to form evidence triples. Aₖg is the graph answer set, A𝑤 is the web collection of passage–answer pairs, and ∪ combines the graph values with the web values. In the set on the right, i indexes a web hit, pᵢ is its passage, and aᵢ is its answer. The vertical bar means “such that,” and ∈ means the pair belongs to the web collection. This expression makes the answer selection explicit because the web collection contains pairs and only their answer fields enter A.
tₑ = (S; P; a)
tₑ is an evidence triple corresponding to a flat claim. S and P retain the original subject and predicate and a is the answer selected from A. The parentheses group the triple, the semicolons separate its fields, and the equals sign defines its construction. The claim’s object O is the field being replaced. The claim and evidence statement can then be presented in the same format for an entailment judgment.
tₑ = (S; P; Pᵢd; Pₐₜₜᵣ; a)
For an extended triple tₑ, S remains the subject, P the predicate, Pᵢd the identifier connecting the event’s attributes, and Pₐₜₜᵣ the name of the attribute being verified. The answer a replaces its original value. As in the flat form, parentheses group the fields, semicolons separate them, and the equals sign specifies the resulting triple. The shared fields express which claim the answer is being used to assess.
The authors call the comparison triple entailment. In this setting entailment asks whether the evidence statement supports the original assertion. The system prompts the verifier with the two triples and labels the answer as supporting or as failing to support the claim. Support is directional. The question is whether the evidence warrants the assertion that appeared in the input. Treating the two triples as statements rather than raw answer strings gives the component a way to compare what the values mean in their shared context.
|Aₖg| = 1
The vertical bars around Aₖg denote the number of answers in the knowledge graph set. The equals sign and 1 specify the condition of having a single graph answer. Under this condition, FLEEK labels the claim Strongly Supported if the answer entails the claim. It assigns Questionable otherwise. This is the branch in which the graph answer determines the decision. The rationale offered by the authors is that a single returned value often corresponds to a property for which a single value is expected.
When the graph returns a list, FLEEK checks each graph answer for support and also consults the web answers. When the graph answer is empty, the web provides the remaining evidence route. In these cases, the system looks for at least one supporting item and assigns Likely Supported when it finds one. Otherwise it uses Questionable. This gives the web a role precisely where the procedure treats the graph result as insufficient by itself. The presence of several web passages does not turn that rule into a majority vote.
The labels describe how the evidence available to the system supports a claim. In this procedure Strongly Supported corresponds to a particular graph result and an entailment judgment. Likely Supported can arise when the graph is empty or returns multiple values and the broader evidence check finds support. Questionable covers an unsuccessful search for support in the applicable branch as well as cases where evidence conflicts with the claim. The different paths to that label matter when deciding whether the available evidence supplies a plausible correction.
Revising a sentence while preserving its other assertions
The revision step begins once a questionable triple and a candidate evidence triple are available. The goal is to change the assertion expressed by the former to the one expressed by the latter. The paper’s example reuses the Taylor Swift age assertion, with 30 as the source value and 33 as the destination value. The imagined edit changes the age while keeping the assertion about Taylor Swift and preserving its form as an age statement. The example illustrates a replacement specified by the input and evidence triples.
s ⊨ tₛᵣ꜀
s is the original sentence and tₛᵣ꜀ is the source triple identified as questionable. The symbol ⊨ denotes entailment. The expression says that the original sentence asserts enough to entail the source triple. The source subscript identifies the assertion to be changed. Establishing this relationship matters because an extracted triple introduced by mistake would be a poor editing target even if a plausible alternative value could be retrieved.
s′ ⊭ tₛᵣ꜀ ∧ s′ ⊨ t𝒹ₑₛₜ
s′ denotes the edited sentence. ⊭ means that the edited sentence no longer entails the source triple, ∧ joins the requirements, and ⊨ states that the edited sentence entails the destination triple t𝒹ₑₛₜ. The destination is the triple built from the proposed evidence. The conjunction requires both conditions together. Removing the original assertion entirely would meet the first condition alone. The revision is meant to express the proposed replacement as well.
s′ ⊨ tᵢ for every tᵢ ≠ tₛᵣ꜀ that s entails
tᵢ is any triple asserted by the original sentence s, with i serving as a general index. The symbol ≠ restricts the requirement to triples other than the source triple. s′ is the revision and ⊨ requires it to entail each of these remaining triples. The expression makes preservation a condition on the sentence’s other informational content. The revision may use different wording as long as it retains the other assertions and makes the intended replacement.
The authors prompt the reviser with one demonstration. The entailment expressions state the desired behavior of the rewrite. The described implementation uses a prompted generation step to obtain it. The most direct edit might change a single value, while a different sentence could need a grammatical adjustment to accommodate the replacement. In both cases the relevant test is whether the resulting sentence still asserts what should remain and now asserts the evidence-backed alternative. A well-formed sentence can fail that test if it changes an additional detail.
There are two ways to supply text to the prototype. In one view the user sends a question to an endpoint and receives an answer that can be submitted for checking. In Playground the user supplies a passage directly. Both views use the same verification and revision sequence. The interface marks spans with colors for their status, lets the reader open each span’s evidence, and includes source links for web evidence. A user can request a revision after seeing the results. The paper says different retrieved values can make several revisions available, although the displayed example offers a single alternative.
The prototype separates the source of the text from the system that checks it. For example, the authors collected GPT-3 responses to create an evaluation dataset and then had both FLEEK configurations check those responses. The checker could be instantiated with a different prompted component while the input stayed fixed. This also explains the distinction between the two views. They offer different routes to getting a passage into the tool, and the subsequent checks concern the assertions in that passage.
Experiments and results
How the authors assembled the benchmarks
The evaluation asks how well FLEEK can identify, label, and attribute claims at the level of individual spans. The authors explain that a benchmark organized around a decision for an entire claim would fail to measure all of those actions. They manually prepared separate datasets for the prototype’s two input settings. One starts with generated answers to questions and the other with ordinary-looking sentences deliberately perturbed to introduce factual errors. The two datasets let the experiment ask about different origins of error under the same verification metric.
For Bench LLM, the authors selected 50 questions from the test set of WikiQA. They collected GPT-3 answers to the questions and used the answers as the material to annotate. The questions therefore supply the elicitation setting. What FLEEK has to verify is the response, which may contain multiple assertions. The annotation identifies the facts in each answer, gives each fact one of the three verification labels, and attaches evidence, with particular attention to questionable claims.
Bench LLM thus differs from simply scoring whether a generated response gets the WikiQA question right. An answer can offer information beyond its direct response to the question. The dataset’s unit of evaluation is the span expressing a fact within that answer. This gives the checker work even when it might be possible to summarize a response with a single broad impression of correctness. The evidence annotation also makes it possible to assess what the checker adduces for an individual assertion, alongside which label it returns.
For Bench Text, the authors sampled 50 random sentences from Wikipedia introductions, requiring each sentence to contain at least one hyperlink. For a selected link, they looked up the corresponding Wikidata entity and used its “instance of” property to identify the entity’s type. They then retrieved other entities of that type and randomly chose one to substitute for the original linked entity. The replacement could fit the type of slot in the sentence while making its specific assertion incorrect. The authors annotated the resulting sentences using the same fact, label, and evidence procedure as for Bench LLM.
The substitution gives the authors an input whose wording and much of whose content come from an existing passage. It also keeps the replacement within a class associated with the original entity. Replacing an entity with another of the same type tests whether retrieval and verification can distinguish between plausible alternatives in that slot. The annotation is still needed after the substitution because the evaluation concerns the assertions expressed by the entire altered sentence. The changed entity is the means of perturbation, while the benchmark records the spans and evidence against which the whole verification output is compared.
Bench LLM and Bench Text therefore do not give interchangeable evidence about the types of claims FLEEK will encounter. Bench LLM inherits the assertions produced in response to the selected questions. Bench Text inherits the structure and subject matter of sampled Wikipedia introductions and adds targeted entity replacements. A verifier may do differently on the two even when the same categories are used. The per-category results make that variation easier to see than a single pooled score would.
Which systems were compared and what the metric counts
The quantitative comparison uses two versions of FLEEK. One uses Vicuna, described as open source and having 33 billion parameters. The other uses GPT-3, described as closed source and having 175 billion parameters. The prompted steps of verification and correction can be instantiated with a system that follows demonstrations given in context. The reported experiment compares the two resulting pipeline configurations. It gives no separate head-to-head score against the earlier claim classifiers discussed in the paper. Their role in the evaluation discussion is to explain the difference in task and benchmark design.
The demonstration examples belong to the prompts, while the annotated benchmark instances supply the target outputs for evaluation. The paper describes a shared method across the two implementations, so both are intended to extract the same kinds of triples, formulate the same kinds of questions, and apply the same evidence decision procedure. Their outputs can nonetheless differ at each prompted stage. A stronger end-to-end score from one configuration can arise through better performance at extraction, question generation, entailment, or a combination of stages.
The paper measures verification by comparing two sets of spans.
S = {s₁, …, sₙ}
S is the set of spans generated by the system for evaluation. Each s with a subscript denotes such a span, with 1 identifying the first and n giving the number of generated spans. The ellipsis stands for the intervening members, the braces enclose the set, and the equals sign defines S. In this metric discussion the lower-case s symbols denote spans. In the sentence-by-sentence method description, a lower-case s denoted a sentence.
G = {g₁, …, gₘ}
G is the set of reference spans from the manual annotations. Each g with a subscript is a reference span, 1 marks the first, and m is the number of reference spans. The ellipsis represents the intervening members, the braces denote the set, and the equals sign defines it. The ground truth supplies more than locations in text because a reference assertion also comes with a support label and evidence.
The authors use ov for the count of successful matches. To count, a span must be correctly identified, receive the right label, and be attributed to valid supporting evidence under the evaluation. This matters when interpreting a miss. A system can identify the issue a human cares about and still lose credit because it labels it incorrectly or assigns the wrong evidence. Conversely, a correct label is insufficient when the system selects the wrong span or fails the attribution requirement. The metric captures the joint outcome of several tasks.
Precision = ov / |S|
Precision is the share of generated spans that satisfy the combined criterion. The numerator ov counts successful matches, the division sign separates that count from its denominator, and |S| is the number of spans in the system’s output set. The equals sign defines the metric. A method that generates many spurious claims can lower precision by increasing the denominator without obtaining credit for those extra spans.
Recall = ov / |G|
Recall is the share of reference spans for which the system satisfies the same criterion. ov is the successful-match count, / denotes division, and |G| is the number of manually annotated reference spans. The equals sign defines recall. Missing an assertion can lower it. So can finding a span but failing to label or substantiate it as required. Recall here is coverage of completely credited decisions, rather than coverage of detected spans in isolation.
F1 combines precision and recall through their harmonic mean. It reflects how well the system balances returning reliable checks with covering the annotated material. Table 1 reports precision, recall, and F1 for each support category and gives a total row for each configuration on each dataset. The paper reports proposed revision quality separately. The verification F1 values should therefore be read as results for locating, labeling, and attributing spans, rather than as measures of how often a finished sentence was corrected.
How the two configurations performed
On Bench LLM, FLEEK with GPT-3 had a total precision of 89.0 and a total recall of 76.06, yielding the reported total F1 of 82.02. FLEEK with Vicuna had a total precision of 88.75 and a total recall of 61.73, with total F1 of 72.81. The precision scores are close. The recall results show that the GPT-3 configuration received credit for more of the annotated facts under the joint span, label, and evidence criterion. The total comparison alone leaves open which stage accounted for any particular missed match.
Total verification F1 on Bench LLM
The GPT-3 configuration achieves the higher end-to-end verification score on generated answers.
The numbers
| System or setting | F1 |
|---|---|
| FLEEK with Vicuna | 72.81 |
| FLEEK with GPT-3 (this paper) | 82.02 |
On Bench Text, the GPT-3 configuration recorded total precision of 93.28 and total recall of 77.16, with total F1 of 84.45. The Vicuna configuration recorded total precision of 90.21 and total recall of 56.84, with total F1 of 69.73. Here, too, the separation in recall is more visible than the separation in precision. The Vicuna pipeline can return many credited decisions among the spans it proposes while leaving a substantial share of the reference material without a completely credited decision.
Total verification F1 on Bench Text
The GPT-3 configuration also scores higher on the benchmark built from perturbed Wikipedia sentences.
The numbers
| System or setting | F1 |
|---|---|
| FLEEK with Vicuna | 69.73 |
| FLEEK with GPT-3 (this paper) | 84.45 |
The authors report average F1 of 71.27 for the Vicuna configuration and discuss it in light of the difference in parameter counts. Those results establish that both configurations can carry out the overall method and that GPT-3 receives the higher total F1 on each dataset. The evaluation does not establish resource use from the scores. Parameter counts describe the two implementations, while measurements such as latency or the cost of checking an input would require separate evidence.
The category results sharpen the picture. On Bench LLM, GPT-3 reached Strongly Supported precision of 100, recall of 95.23, and F1 of 97.55. Vicuna reached precision of 91.66, recall of 84.61, and F1 of 87.99 in the same category. On Bench Text, GPT-3 recorded 100 for each of precision, recall, and F1 in this category. Vicuna reached precision of 84.61, recall of 91.66, and F1 of 87.99. The authors emphasize the strong showing of both systems for cases assigned this label, where the decision rule calls for support from a single graph answer.
For Likely Supported claims, the difference between datasets is particularly visible for Vicuna. On Bench LLM, its precision was 94.73, recall 58.69, and F1 72.47. GPT-3 recorded precision of 93.22, recall of 61.79, and F1 of 74.31. On Bench Text, Vicuna recorded precision of 87.5, recall of 37.33, and F1 of 52.33. GPT-3 recorded precision of 95.77, recall of 79.06, and F1 of 86.61. The lower recall for the Vicuna version on the altered sentences shows how frequently its output failed to earn credit for a reference span in that category. The table does not break each such miss down by cause.
For Questionable claims on Bench LLM, GPT-3 had precision of 66.66, recall of 100, and F1 of 79.99. Vicuna had precision of 54.54, recall of 60, and F1 of 57.13. The GPT-3 result gives evidence of complete recall on the annotated cases of this category under the benchmark’s matching criterion. Its precision shows that a portion of the outputs it labeled Questionable failed that criterion. A reader assessing the checker as a way of triaging potentially incorrect claims would care about both figures. They describe how many reference problems it located and how frequently its own flags earned credit.
Bench Text gives a different comparison for Questionable claims. Vicuna achieved precision of 93.61, recall of 74.57, and F1 of 83.01. GPT-3 achieved precision of 87.75, recall of 69.35, and F1 of 77.47. Vicuna leads on this category on Bench Text even though GPT-3 leads on the total for the dataset. The category comparison matters because the total reflects performance across support labels, while a user looking for possible corrections may be especially interested in the behavior of the Questionable label. The two views of performance can favor different configurations.
How often proposed corrections were accurate
The authors report that the two configurations had similar performance on the correction task, with average accuracy of 72.7%. That figure addresses the revisions proposed by the correction component when it operates with the pipeline’s preceding outputs. It is separate from the verification metric and does not follow from the verification F1 scores. The paper does not give a separate correction score for each configuration and each dataset in its account of this result, so the average is the level at which the headline finding can be stated.
The authors traced 54.1% of incorrect revisions to errors propagated from earlier components. They also report average correction precision of 87.5% given correct verification results. The first statistic concerns the causes of revisions judged incorrect. The second conditions the result on the information supplied to the correction component. Together they support an explanation for why the observed correction accuracy depends on the full system. A reviser equipped with a correctly identified claim and evidence has a more suitable editing target than one asked to act on a flawed verification result.
The correction results also highlight the difference between finding a problem and having the information needed to fix it. A Questionable label indicates that the verification procedure did not establish support in the applicable branch. A revision needs a candidate destination triple. The quality of that candidate affects whether the proposed change is factual, while the rewriting step affects whether the change is expressed and the other assertions survive. The aggregate revision result evaluates the usefulness of the proposal that emerges from those operations together.
What the ablations show
What the configuration comparison isolates
The paper contains no component-removal ablation. It compares two complete implementations, reports correction performance given correct verification, and inspects errors from the GPT-3 configuration. These analyses answer related questions, but each conditions on something different. The implementation comparison shows how performance changes when a different prompted system is used across the pipeline. The correction analysis exposes the effect of the information reaching the editor. The error inspection identifies where failures appeared in a sample of unsuccessful decisions.
The GPT-3 configuration’s higher total F1 on both datasets shows that the choice of prompted system matters for the pipeline as implemented. Several operations depend on that choice at once. Extraction can produce a different set of claims, question generation can send a different query to the same retrieval service, and entailment can assign different judgments to similar evidence. The experimental comparison leaves those mechanisms entangled. It cannot attribute the total score difference to any individual stage or to parameter count alone.
The reported category results also resist a simple ranking for every use. Strongly Supported results were high for both versions, whereas Likely Supported and Questionable performance depended more on the dataset and the configuration. Vicuna’s advantage for Questionable on Bench Text coexists with GPT-3’s higher total score there. This shows the value of asking which claims a system handles successfully and what kinds of errors matter for the intended workflow. It does not show that Vicuna would have the same category advantage on naturally occurring errors in arbitrary prose.
The system uses object type and event context in its questions, and combines graph and web evidence under distinct decision rules. The paper supplies worked examples explaining the role of these choices. It gives no isolated score for dropping object types, withholding companion triples, or relying on only one retrieval route. As a consequence, the examples explain the failure modes the design addresses. They give no separate numerical estimate for how often each feature prevents such a failure on the benchmarks.
Where the inspected errors arose
The authors randomly selected 30 examples in which the GPT-3 configuration had made erroneous decisions. They examined the failures attributed to individual components and report that roughly 49% of the total errors they found were associated with fact extraction. This percentage describes errors in the selected failure analysis. Its denominator is the errors counted there. It does not give the percentage of all input sentences that FLEEK fails to extract correctly, since the inspection began with cases already known to contain erroneous decisions.
The extraction errors included failures to produce triples in the required format, failures to preserve the structure of relationships with several attributes, omissions, and the introduction of claims absent from the source sentence. Each creates a different obstacle for later stages. A malformed triple interferes with the predictable use of its fields. An omitted triple leaves the system with nothing to verify for that assertion. A broken multi-attribute relationship can strip a question of useful context. An introduced claim can send the checker looking for evidence about something the sentence did not assert.
The concentration of errors in extraction is consistent with the stage’s position. Every question refers back to a triple, and the evidence is converted into that triple’s format before it is compared with the claim. A bad initial decomposition can therefore make the later outputs internally coherent while still misrepresenting the user’s text. A retrieved passage might answer the generated question accurately, for example, even though that question concerns the wrong relationship. Inspecting intermediate outputs makes this kind of failure easier to locate than it would be from the resulting label alone.
The authors also identify entailment as a substantial contributor to errors in the same inspection. A fault at entailment differs from a fault at extraction because there may already be an appropriate claim and a relevant returned answer. The comparison must still decide whether that answer supports the assertion. The authors take the observed contribution of this stage as reason to question how well GPT-3 handles the reasoning involved. The evidence bears on this verification setup. The inspection does not supply a general measure of reasoning ability across other tasks.
The paper distinguishes the difficulty of the structured prediction from the difficulty of judging support. Extraction has to decide which text expresses a fact and how an event’s attributes belong together. Entailment has to decide whether an independently recovered value warrants the original assertion once the respective triples are formed. Improving either could affect verification, yet the error sample gives only a description of the failures that occurred under the implemented pipeline. It does not measure the gain that would follow from repairing either component.
What changes when the editor has the right target
The correction analysis addresses propagation from a different angle. A correction can be incorrect because the sentence was rewritten badly or because the sentence was rewritten around an erroneous premise supplied by verification. The authors’ finding that 54.1% of incorrect revisions came from upstream errors shows that the second route makes up a substantial part of the failures they examined. This is a proportion of incorrect revisions. It says how failures were attributed, rather than how often the whole pipeline fails on an input.
The average precision of 87.5% under correct verification describes a more favorable condition for the editor. Correct verification narrows the problem to expressing a better-supported value while retaining the surrounding assertions. End-to-end correction includes the difficulty of reaching that condition in the first place. The paper reports average accuracy of 72.7% for proposed revisions and uses the term precision for the conditional result. The scope and terminology of the two measurements matter when comparing them.
A practical consequence of that distinction is visible in the intervention points offered by the prototype. A reader who opens the evidence for a questionable span can examine whether the proposed change is based on the right event and the right attribute before requesting a revision. The interface gives the reader access to the pieces that go into such a decision. The paper’s experiments evaluate span-level verification and the proposed corrections. They do not measure how frequently a reader would catch a pipeline error by inspecting those pieces.
Limitations
Limits the authors state
The authors describe the evaluation as preliminary. The datasets are small and both draw their subject matter from a Wikipedia-related setting. Bench LLM starts with answers to selected WikiQA questions, while Bench Text starts with Wikipedia introductions. Larger datasets from more varied sources and with different levels of difficulty are proposed as future work. The reported results establish performance for the annotated collections under the experiment’s procedures. They leave open how consistently the same method transfers to other kinds of writing.
Both datasets were manually annotated by one person. The authors plan to involve more annotators and refine the procedure. Annotation in this task requires several judgments. The annotator decides which portions of a sentence express separately checkable assertions, assigns their support labels, and identifies appropriate evidence. Agreement on a sentence’s overall accuracy would not necessarily entail agreement on the spans or evidence that should be recorded. The reported evaluation therefore reflects a single annotation process, and the paper gives no measure of agreement among annotators.
The authors also state that the system depends on the initial outputs from its prompted components. They suggest prompting a component repeatedly and using an approach such as majority voting to improve the result. That is a proposed extension. The paper’s scores and error inspection concern the described implementation, and they give no measurement of what repeated prompting or voting would accomplish. The authors likewise identify evaluation with a broader range of systems as future work.
Coverage of the knowledge graph is an acknowledged limitation that shapes the design. The authors consult web answers when the graph is empty or returns a list because the graph may omit appropriate values. That decision broadens the pool of evidence for those cases. It still leaves any finding dependent on answers that the queries and retrieval systems can recover. The procedure gives a decision from the available sources and the judgments applied to them, which is a narrower task than settling a claim independently of what retrieval returns.
Limits that follow from the experimental setup
The arbitrary-text use case is broader than the experiment designed to represent it. In Bench Text, an error is induced by substituting a linked entity with another entity of the same Wikidata type. That construction creates a particular sort of challenge. It gives evidence about checks involving the resulting Wikipedia sentences and those substitutions. Its results do not establish comparable performance for every way a date, quantity, qualification, causal assertion, or event description could become inaccurate in naturally written text. The paper uses perturbation to make a test collection feasible.
Bench LLM samples answers from GPT-3 to selected questions from a particular test set. It gives the authors naturally generated responses in that question-answering setting. The experiment compares the two verifiers on those fixed inputs. It provides no basis for assuming that responses from other systems or other kinds of requests would contain the same distribution of assertion types, support labels, or errors. A different mixture of claims could affect both the extraction stage and how frequently the verifier reaches each evidence branch.
The joint span metric is suited to a prototype whose intended output combines localization, labels, and evidence. It also makes the headline score hard to diagnose by itself. If FLEEK misses credit for a span, the count can reflect failure in one or several of those parts. The authors’ inspection gives one way to look inside failures, but it is a sample from erroneous GPT-3 decisions. A direct measure of coverage at extraction, retrieval success for correctly specified questions, or accuracy on correctly retrieved evidence would answer different questions about the pipeline.
The reported labels are tied to a transparent evidence rule, with different treatment for a single graph answer, a list, and an empty result. Their names can sound like degrees of certainty about the outside world. The implementation defines them through the source branch and whether an answer was judged to support the claim. A potentially correct claim can become Questionable because a query targeted the wrong event or retrieval failed to find relevant evidence. A support judgment is also subject to errors in the comparison itself. The evaluation reports how well the assigned labels match the annotated targets under this procedure. It gives no independent calibration of those labels as general probabilities of truth.
Applying a threshold of at least one supporting item in the broader evidence branch also means that the rule can assign support without agreement across retrieved sources. The paper explains how individual answers are checked and how a label follows from finding support. It supplies no separate experiment on cases with conflicting sources. An evidence display can help the reader examine what was retrieved, but the evaluations do not tell us how consistently the prototype navigates disagreements, chooses among plausible corrections, or handles differences in the context of similar-looking answers.
The use of short answers makes the comparison tractable. It can also place a heavy burden on the question. The evidence triple inherits the claim’s subject, predicate, and event fields. If a web passage yielded a value for a related event, those inherited fields can make the constructed triple appear more tightly aligned with the claim than the underlying passage is. The authors’ type-aware and context-driven questions are designed to reduce this problem. The reported experiments do not isolate how often the answer extraction or the inherited fields create a mismatch.
Revision has a similarly important distinction between its formal objective and the evidence about the implementation. The objective specifies both replacement and preservation. The reported average evaluates proposed corrections, and the upstream error analysis shows one way they fail. The paper does not separately quantify how often an edit changes an unaffected assertion. Success on the reported revision measure therefore cannot establish that preservation holds across all sentences or across a sequence of edits involving several questionable facts.
The user interface makes the outputs inspectable and demonstrates how a reader can request changes. Ease of inspection and time saved are motivations for the design. The reported experiments measure factual verification and correction outcomes, without a study of how people use the interface. They therefore leave open how readers interpret the three labels, how much effort they spend examining evidence, and when they accept a suggested edit. Those questions matter for the intended role of a tool supporting human review and are distinct from the benchmark scores.
What came after
Later citing work addresses several parts of the problem that FLEEK brings together. The topics named in those works range from surveys of hallucination mitigation to modular fact checking, retrieval for factual correction, and the generation of claims alongside their search queries. Their stated scopes support connections to particular decisions in FLEEK’s design. The citations alone give no basis for assigning shared implementations, direct experimental comparisons, or particular results to those connections.
A comprehensive survey of hallucination mitigation techniques places the broader problem of inaccurate generated text within a survey of methods intended to reduce it. The connection is FLEEK’s decision to intervene after a passage has been produced, using external evidence to examine individual assertions and propose corrections. The survey’s stated subject is broader than that intervention. It gives a setting in which claim checking and evidence-backed editing can be understood as one part of the response to hallucination. A Comprehensive Survey of Hallucination Mitigation Techniques in Large Language Models
Self-Checker presents fact checking in terms of plug-and-play modules. That framing connects to the separation in FLEEK between identifying an assertion, finding evidence, and judging the assertion against the evidence. In FLEEK those stages already have explicit handoffs, even though multiple stages can depend on the same prompted system. The later work’s stated focus is modular fact checking. Its title does not establish which component boundaries match FLEEK’s or whether it uses the same claim representation and support rules. Self-Checker
Mask-to-Correct⁺ focuses on retriever diversity in masking-guided factual correction. That places the evidence source and its relationship to the editing operation at the center of the problem. FLEEK gathers evidence from two kinds of retrieval systems and turns the returned answers into potential replacement values. The later work’s stated focus connects to that concern with the evidence available to a corrector while identifying masking as part of its own approach. The citation does not establish that it uses FLEEK’s triples or its policy for combining graph and web answers. Mask-to-Correct⁺
JointCQ addresses factual hallucination detection through joint claim and query generation. This concerns a handoff that FLEEK treats sequentially. In FLEEK the extractor first produces a triple, and the question generator then asks for the value of its object, using the object type or accompanying context as appropriate. A joint formulation brings the creation of the checkable assertion and the wording of its search query into the same task. The stated scope identifies the point of contact with FLEEK while leaving the details of the later system and its results unspecified. JointCQ
Cite
Cite as Farima Fatahi Bayat, Kun Qian, Benjamin Han, Yisi Sang, Anton Belyy, Samira Khorshidi, Fei Wu, Ihab Ilyas and Yunyao Li. 2023. FLEEK: Factual Error Detection and Correction with Evidence Retrieved from External Knowledge. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations.
@inproceedings{bayat2023fleek,
title = {{FLEEK: Factual Error Detection and Correction with Evidence Retrieved from External Knowledge}},
author = {Farima Fatahi Bayat, Kun Qian, Benjamin Han, Yisi Sang, Anton Belyy, Samira Khorshidi, Fei Wu, Ihab Ilyas and Yunyao Li},
booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations},
year = {2023},
doi = {10.18653/v1/2023.emnlp-demo.10},
url = {https://doi.org/10.18653/v1/2023.emnlp-demo.10}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bayat-2023-fleek-factual-error-detection-correction/