Abstract
Generative AI models exhibit remarkable potential; however, hallucinations across various tasks present a significant challenge, particularly for longer inputs that current approaches struggle to address effectively. We introduce SCALE (Source Chunking Approach for Large-scale inconsistency Evaluation), a task-agnostic model for detecting factual inconsistencies using a novel chunking strategy. Specifically, SCALE is a Natural Language Inference (NLI) based model that uses large text chunks to condition over long texts. This approach achieves state-of-the-art performance in factual inconsistency detection for diverse tasks and long inputs. Additionally, we leverage the chunking mechanism and employ a novel algorithm to explain SCALE’s decisions through relevant source sentence retrieval. Our evaluations reveal that SCALE outperforms existing methods on both standard benchmarks and a new long-form dialogue dataset ScreenEval we constructed. Moreover, SCALE surpasses competitive systems in efficiency and model explanation evaluations.
Introduction
As Large Language Models (LLMs) expand their context windows to 100k tokens and beyond, the risk of "hallucinations"—generating factually incorrect information relative to the source—grows significantly. Existing detection methods usually rely on Natural Language Inference (NLI), where a model determines if a "premise" (source text) entails a "hypothesis" (the generated claim). However, these methods typically break documents down into individual sentences, leading to the Granularity Problem: a single claim might be supported by information spread across multiple sentences. Furthermore, processing long documents sentence-by-sentence is computationally expensive and often results in poorly calibrated scores.
The SCALE Framework
To address these challenges, we propose SCALE, which shifts the focus from individual sentences to chunks. SCALE breaks the source document into large chunks (e.g., 512 tokens) and uses Flan-T5 as a backbone NLI model. The model is prompted to determine if a specific chunk implies a generated sentence. The final consistency score is derived from the maximum entailment probability across all chunks.
Efficient Explanations via BST Retrieval
A key contribution of SCALE is its ability to provide model explanations by identifying the exact part of the source that supports a claim. We employ a greedy Binary Search Tree (BST) approach for source retrieval. Instead of checking every sentence individually ($O(n)$), the algorithm recursively divides the document, scores the halves, and follows the higher-scoring path. This reduces the number of model calls to $O(\log n)$, making the explanation process significantly faster.
Key Results and Insights
Our evaluation across the TRUE Benchmark and our new ScreenEval dataset (consisting of long-form TV scripts) demonstrates SCALE's superiority:
- State-of-the-Art Performance: SCALE-XXL achieved the highest scores on 10 out of 11 datasets in the TRUE benchmark.
- Efficiency: On the ScreenEval dataset, SCALE-Large was 6 times faster than previous state-of-the-art models like QAFactEval.
- Calibration: We found that providing larger context windows (up to 1,000 tokens) significantly improves model calibration, lowering the Expected Calibration Error (ECE) and making the tool more reliable for production environments.
- Superior Explanations: In source retrieval tasks, SCALE-XL identified correct supporting evidence 47% of the time, outperforming specialized models like SuperPal (41%).
Conclusion
SCALE provides a fast, accurate, and explainable framework for detecting factual inconsistencies in the era of long-context LLMs. By leveraging chunk-based NLI and efficient BST retrieval, it overcomes the limitations of sentence-level analysis while maintaining high computational efficiency. We have released our code and the ScreenEval dataset to support further research in this critical area.
Summary updated