A framework for hallucinations explainability in text summarization
This paper proposes a novel framework that introduces a Hallucination Severity Score (HSS) based on semantic instability and SHAP attribution analysis within an enhanced SMILE pipeline to effectively detect, quantify, and explain hallucinations in LLM-based text summarization.
Original paper licensed under CC BY 4.0 (https://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
In the modern landscape of artificial intelligence, large language models have become powerful engines for writing, answering questions, and summarizing complex information. These systems are trained on vast amounts of text, learning to predict the next word in a sentence with remarkable fluency. However, this fluency comes with a hidden flaw: the models sometimes invent facts. In the field of natural language processing, this phenomenon is known as hallucination. It occurs when a system generates text that sounds confident and grammatically correct but is either completely made up or directly contradicts the source material it was supposed to summarize. While these errors might seem minor in a casual chat, they become dangerous in high-stakes environments like healthcare, legal analysis, or scientific research, where accuracy is non-negotiable. The core challenge for researchers has not just been to spot these lies, but to measure how severe they are and understand why they happen, moving beyond simple checks for word overlap to a deeper investigation of the model's internal logic.
A team of researchers has developed a new method to tackle this problem, creating a framework that acts like a stress test for AI summaries. Instead of simply asking if a summary is factually correct, they asked a different question: how stable is the summary when the input is slightly tweaked? Their approach relies on the idea that a trustworthy summarizer should produce a consistent result even if the source text is changed in small, meaningful ways. If the summary changes drastically or starts inventing new details after a minor edit, it suggests the model is unstable and prone to hallucinating. The researchers built a system that takes a document, makes subtle, controlled changes to the words without altering the core meaning, and then watches how the AI's output reacts. By measuring the distance between the original summary and the new ones, they can calculate a specific score that indicates the severity of the hallucination risk.
To conduct this experiment, the team worked with a collection of thirty-four documents spanning diverse topics, including news articles, scientific papers, legal texts, and product reviews. They used a sophisticated summarization model to generate a baseline summary for each document. Then, they introduced a series of perturbations, which are small, deliberate modifications to the source text. These changes were carefully designed to swap words for their closest synonyms while ensuring that names of people, places, and specific numbers remained untouched to preserve the facts. For each document, they created multiple versions of the text, each slightly different from the original, and asked the AI to summarize each one. The researchers then compared the resulting summaries to see how much they drifted from the original. They found that when the AI was forced to summarize a slightly altered text, the summaries from models prone to hallucination would shift wildly, while reliable models stayed steady.
The researchers quantified this drift using a mathematical concept that measures the difference between two groups of data, essentially calculating how far apart the meaning of the summaries had moved. They discovered that this measure of instability was not just a random fluctuation; it was tightly linked to how much the AI was lying. To make this measure useful across different types of documents, they normalized the scores, creating a final severity score that could be compared fairly whether the text was about medicine or movies. The most striking finding emerged when they looked at how the AI explained its own choices. They used a technique that highlights which words in the input were most important for generating the output. They found that when a summary was hallucinating, the importance of the input words would jump around unpredictably. In other words, the model's internal reasoning became unstable right at the moment it started to lie.
The study revealed a strong connection between this instability in the model's reasoning and the severity of the hallucinations. When the researchers compared their new severity score against other common ways of checking for errors, they found that the instability of the model's internal explanations was the most reliable predictor of a hallucination. Traditional methods that simply check if words match or if sentences sound logical were less effective at catching these deep-seated errors. The team also tested their method across different levels of difficulty. They found that as they made the changes to the text more significant, the severity score increased, proving that their system was sensitive enough to detect even subtle shifts in reliability. Furthermore, the score varied naturally across different domains; complex fields like law and science showed higher instability scores than simpler topics like social media posts, reflecting the greater difficulty and higher risk of error in those areas.
This work provides a new lens through which to view the reliability of artificial intelligence. By focusing on how a model reacts to small changes rather than just the final output, the researchers have identified a clear signal of when an AI is losing its grip on the truth. The study suggests that the best way to detect a hallucination is not to look for the lie itself, but to watch for the tremors in the model's reasoning that precede it. While the researchers tested this on a specific set of documents and a single type of AI model, the framework offers a robust path forward for building systems that can be audited and trusted. It moves the conversation from simply asking "is this true?" to "how sure can we be that this is true?", providing a quantitative way to measure the confidence we should place in machine-generated text. As these systems become more integrated into our daily lives, tools that can distinguish between a stable, factual summary and a fragile, invented one will be essential for maintaining the integrity of the information we rely on.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.