Hallucination Span Detection with Input-Side Evidence Alignment
This paper introduces a novel task and an encoder-based method for detecting hallucinated spans in LLM-generated text by leveraging the predictability of faithful tokens from input evidence to simultaneously identify hallucinations and align them with their source.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Large language models have transformed how we interact with computers, acting as powerful engines that can summarize news, answer complex questions, and draft documents. These systems work by predicting the next word in a sentence based on patterns they have learned from vast amounts of text. However, a persistent flaw undermines their reliability: they sometimes invent facts. This phenomenon, known as hallucination, occurs when a model generates information that sounds plausible but is either unsupported by the source material or directly contradicts it. For users relying on these tools for critical tasks, distinguishing between a helpful summary and a fabricated story is difficult. The core challenge lies not just in knowing that an error exists, but in pinpointing exactly which words are wrong and finding the specific part of the original text that proves they are wrong. Without this granular level of detail, verifying the truthfulness of a long document remains a tedious, manual process.
Researchers at the Institute of Science Tokyo have developed a new approach to solve this problem, shifting the focus from judging an entire text to examining individual words. Instead of asking a computer to simply label a whole paragraph as true or false, their method acts like a magnifying glass, scanning the generated output one word at a time to see if it can be traced back to the source. The team operates on a simple but powerful observation: if a word in the summary is faithful to the original text, a computer should be able to predict it using only the source material as a guide. Conversely, if a word is a hallucination, it will be impossible to predict from the source because the information simply does not exist there. By training a model to test this predictability, the researchers created a system that not only flags the invented words but also highlights the specific evidence in the input that supports the correct information.
The process begins by breaking the generated text into meaningful chunks, such as phrases or clauses, rather than treating it as a single block. The system then takes a word from one of these chunks and temporarily hides it, asking the model to guess what that word should be based solely on the original input text. If the model can confidently guess the hidden word using the source, the system marks it as faithful. If the model struggles to make a guess, or if the confidence score is low, the system flags the word as a potential hallucination. Crucially, because the model had to look at the source text to make its guess, it naturally produces a link between the output word and the specific part of the input that helped it. This creates a map of evidence, showing the user exactly where the model found its information or, in the case of an error, where it failed to find any support.
To test this idea, the researchers used a dataset containing thousands of examples where humans had already identified which parts of generated answers were factually incorrect. They compared their new method against existing techniques, including those that rely on massive, complex models to read and judge text. The results showed that their lighter, more focused approach was exceptionally good at finding the errors. While other methods sometimes missed the mistakes entirely, this new system successfully identified the vast majority of hallucinated words, particularly those that were completely made up. It also proved effective at linking the correct words in the summary back to the right sentences in the source, providing a clear trail of evidence for the user to follow.
However, the study also revealed a specific weakness in the system's ability to detect certain types of errors. The method struggled when the hallucination was a direct contradiction, such as changing a number from "four" to "twenty" in a way that still sounded grammatically and contextually similar to the original text. In these cases, the model found the surrounding context so similar that it remained confident in its prediction, failing to recognize the subtle shift in meaning. The researchers noted that while the system excels at spotting information that is entirely absent from the source, it needs further refinement to catch these more deceptive, conflicting errors. Despite this limitation, the work demonstrates a significant step forward in making artificial intelligence more transparent, offering a practical way to verify the truthfulness of machine-generated content by connecting every claim directly back to its source.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.