Abstract
State-of-the-art neural models can now reach human performance levels across various natural language understanding tasks. However, despite this impressive performance, models are known to learn from annotation artefacts at the expense of the underlying task. While interpretability methods can identify influential features for each prediction, there are no guarantees that these features are responsible for the model decisions. Instead, we introduce a model-agnostic logical framework to determine the specific information in an input responsible for each model decision. This method creates interpretable Natural Language Inference (NLI) models that maintain their predictive power. We achieve this by generating facts that decompose complex NLI observations into individual logical atoms. Our model makes predictions for each atom and uses logical rules to decide the class of the observation based on the predictions for each atom. We apply our method to the highly challenging ANLI dataset, where our framework improves the performance of both a DeBERTa-base and BERT baseline. Our method performs best on the most challenging examples, achieving a new state-of-the-art for the ANLI round 3 test set. We outperform every baseline in a reduced-data setting, and despite using no annotations for the generated facts, our model predictions for individual facts align with human expectations.
Introduction
In the field of Natural Language Processing (NLP), state-of-the-art models are often criticized as "black boxes"—they provide accurate predictions but lack the ability to explain their internal reasoning in a way that is faithful to their decision-making process. This paper introduces Fact-Generated Logical Reasoning (FGLR), a method that decomposes complex reasoning into "atomic" facts. This approach provides a clear, faithful roadmap of how a model reaches its conclusion, ensuring that the final label is a direct logical consequence of fine-grained, human-readable components.
Methodology
The FGLR framework operates in five distinct stages to ensure both interpretability and performance:
- Fact Decomposition: Using an LLM (such as GPT-3), the model decomposes a premise into a comprehensive list of individual facts.
- Hypothesis-Conditioned Facts: To ensure no critical information is missed, the LLM generates an additional fact specifically relevant to the hypothesis, acting as a safety net for the inference process.
- Fact-Level Representations: Each fact is paired with the hypothesis and encoded using a transformer (e.g., DeBERTa) to create a representation.
- Atoms-in-the-Loop Training: The model is trained using an attention-based architecture that calculates weights for "entailment" and "contradiction" for every fact. A specialized loss function encourages the model to identify which specific facts trigger the overall label.
- Logical Inference: During evaluation, the model follows deterministic logical rules: if any fact contradicts the hypothesis, the label is Contradiction; otherwise, if any fact entails it, the label is Entailment; otherwise, it is Neutral.
Experimental Results
The primary benchmark for evaluation is the Adversarial NLI (ANLI) dataset, which consists of three rounds (R1, R2, R3) of increasingly difficult examples. The model was also tested on Out-of-Distribution (OOD) datasets including ConTRoL, RTE, and WNLI to assess robustness.
As shown in the results, FGLR achieved 60.7% accuracy on ANLI-all, outperforming the DeBERTa-base baseline (58.5%) and significantly larger generative models like GPT-3.5-turbo (59.4%) and LLaMA2-70B (59.0%). The model demonstrated particular strength on the challenging ANLI R3 test set, where it achieved 55.3% accuracy, significantly improving over the DeBERTa-base baseline of 51.7%.
In out-of-distribution tests, FGLR showed significant gains over standard atomic baselines. On the ConTRoL dataset, FGLR (49.1%) and its sentence-level counterpart SenLR (53.4%) outperformed the basic FactAI (46.6%) and SenAI (50.0%) models. This indicates that training with the atomic decomposition "in-the-loop" is crucial for the model to learn to weigh facts correctly.
Key Insights and Conclusion
FGLR demonstrates that decomposing text into facts provides a more granular level of interpretability than sentence-level or span-level decomposition. Because the final decision is reached via a deterministic logical rule applied to atom-level predictions, the explanation (the facts highlighted by the model) is guaranteed to be faithful to the decision.
While the current model assumes a single fact is enough to trigger a label and does not yet handle multi-hop reasoning, it sets a new standard for interpretable NLI. Future work will explore more complex "natural logic" operators to handle sophisticated reasoning chains and multi-sentence hypotheses.
Summary updated