Abstract
As Large Language Models (LLMs) become increasingly integrated into information retrieval and content generation, the challenge of "hallucinations"—factually incorrect or inconsistent outputs—remains a critical bottleneck. Traditional Natural Language Inference (NLI) systems often provide only binary labels (e.g., contradiction vs. entailment), failing to explain the nature or location of the error. This paper introduces FICLE (Factual Inconsistency CLassification with Explanation), a novel dataset and a multi-stage neural pipeline designed to categorize inconsistencies into five linguistic types and localize the specific spans of text responsible for the conflict. Our results demonstrate that specialized encoder models like DeBERTa can achieve an 87% F1 score in classifying these errors, though pinpointing the exact "smoking gun" in the context remains a significant challenge.
Introduction
The rapid adoption of LLMs has highlighted a persistent issue: the generation of text that is fluent but factually untrustworthy. While existing research has focused on detecting broad contradictions, there is a significant gap in tools that can provide granular explanations. Most current systems treat inconsistency as a binary problem or rely on massive, external knowledge bases that are difficult to maintain. To address this, we propose a framework that categorizes the specific linguistic nature of an inconsistency and localizes the error within both the claim and the supporting context without requiring external databases.
The FICLE Dataset
A core contribution of this work is the FICLE dataset. Derived from the "refutes" subset of the well-known FEVER dataset, FICLE contains approximately 8,000 samples of claim-context pairs. Unlike its predecessors, FICLE includes rich metadata for every entry:
- Inconsistency Types: Categorized based on linguistic theory.
- Localized Spans: Precise identification of the conflicting segments in both the claim and the context.
- Entity Hierarchy: A multi-level classification of the entities involved in the inconsistency.
Methodology
Linguistic Taxonomy
We define five distinct types of factual inconsistencies to provide a more nuanced understanding of errors:
- Simple: Direct opposites or contradictions.
- Gradable: Conflicts involving relative terms (e.g., "hot" vs. "cold").
- Taxonomic Relations: Errors involving hyponyms or hypernyms (e.g., confusing a specific species with a broader genus).
- Negation: Inconsistencies created by the presence or absence of negating particles.
- Set-based: Contrasting an object against a defined list or set.
The Neural Pipeline
Our proposed system utilizes a four-stage neural pipeline ($M_1$ through $M_4$):
- $M_1$ (Extraction): Predicts the "fact triple" (Subject, Relation, Target) in the claim and identifies the inconsistent span in the context.
- $M_2$ (Classification): Uses the output of $M_1$ to classify the inconsistency type and identify the specific "culprit" component (e.g., determining if the Subject or the Relation is the source of the error).
- $M_3$ & $M_4$ (Entity Typing): Predict coarse-grained (20 classes) and fine-grained (60 classes) entity types for the identified spans.
We benchmarked several Transformer-based architectures, including NLU-focused encoders (BERT, RoBERTa, DeBERTa) and generative models (T5, BART).
Key Results and Insights
Model Performance
Our experiments revealed that DeBERTa consistently outperformed generative models like T5 and BART for classification and span extraction tasks. This superiority is likely due to DeBERTa’s disentangled attention mechanism, which more effectively manages the relationship between positional and content information.
Key metrics include:
- Inconsistency Type Classification: Weighted F1 score of ~87%.
- Entity Prediction: Coarse-grained prediction reached 86% F1; fine-grained reached 76%.
- Span Detection: The models achieved a high Intersection over Union (IoU) of 94% for claim spans.
The Localization Gap
While the models were highly effective at identifying what kind of error occurred, they struggled with where the error originated in the context. Context span detection achieved an IoU of only 65%. This suggests that while models can recognize a contradiction, pinpointing the exact "smoking gun" in a supporting sentence is significantly more complex than identifying the error in the claim itself.
Semantic Leveraging
We found that incorporating embeddings for entity class names (e.g., mapping a span to "entertainment_movie") significantly improved the model's accuracy in fine-grained entity typing. Interestingly, a "structure-ignorant" approach—predicting context spans directly from raw text—performed slightly better than a two-step approach that relied on first extracting the claim's fact triple.
Conclusion and Future Work
The FICLE framework moves beyond binary contradiction detection to provide actionable explanations for factual inconsistencies. However, several challenges remain. The current model is limited to single claim-context sentence pairs, whereas real-world hallucinations often span multiple sentences or entire paragraphs. Future work will focus on extending these models to multi-sentence localization and expanding the dataset to support multi-lingual scenarios. By improving the transparency of how and why models fail, we can build more robust and trustworthy AI systems.
Summary updated