Abstract
The ability to reason with natural language is a fundamental prerequisite for many NLP tasks such as information extraction, machine translation and question answering. To quantify this ability, systems are commonly tested whether they can recognize textual entailment, i.e., whether one sentence can be inferred from another one. However, in most NLP applications only single source sentences instead of sentence pairs are available. Hence, we propose a new task that measures how well a model can generate an entailed sentence from a source sentence. We take entailment-pairs of the Stanford Natural Language Inference corpus and train an LSTM with attention. On a manually annotated test set we found that 82% of generated sentences are correct, an improvement of 10.3% over an LSTM baseline. A qualitative analysis shows that this model is not only capable of shortening input sentences, but also inferring new statements via paraphrasing and phrase entailment. We then apply this model recursively to input-output pairs, thereby generating natural language inference chains that can be used to automatically construct an entailment graph from source sentences. Finally, by swapping source and target sentences we can also train a model that given an input sentence invents additional information to generate a new sentence.
Introduction
Traditional Natural Language Inference (NLI) has primarily been framed as a classification task: given a premise and a hypothesis, a model determines if the relationship is one of entailment, contradiction, or neutrality. While useful for benchmarking, this setup is limited in real-world scenarios where a hypothesis is rarely provided. This research shifts the focus toward generative NLI, asking whether a model can autonomously "hallucinate" logical conclusions from a single source sentence. By treating logical entailment as a translation-like problem, the researchers demonstrate that neural networks can generate human-readable chains of thought that simplify, paraphrase, and abstract information.
Methodology
The researchers utilized a Sequence-to-Sequence (seq2seq) architecture, a staple in machine translation, to bridge the gap between classification and generation.
Model Architecture
The core model consists of an Encoder-Decoder LSTM. One LSTM network encodes the source sentence into a dense vector representation, while a second LSTM decodes this vector into a new, entailed sentence. A critical component is the word-by-word attention mechanism, which allows the decoder to focus on specific parts of the source sentence, ensuring the output remains factually grounded.
Recursive Generation and Inverse Inference
To move beyond single-step deductions, the model can be applied recursively: the output of one step becomes the input for the next. This creates "inference chains" that eventually terminate at a "semantic sink"—a broad, foundational statement. Additionally, by swapping source and target sentences during training, the authors developed an "inverse inference" model capable of adding specific details to a general premise (e.g., expanding "A person is outside" to "A person is walking down a street").
Data and Training
The model was trained on the Stanford Natural Language Inference (SNLI) corpus, specifically a filtered subset of approximately 183,000 "entailment" pairs. To evaluate robustness, the model was also tested on out-of-domain text from Wikipedia and news articles.
Results and Analysis
The generative approach yielded high-quality logical deductions, with human evaluators marking 82% of the attention-based model's outputs as correct. This represented a 10.3% improvement over a standard LSTM baseline, highlighting the necessity of attention for maintaining logical consistency.
Emergent Semantic Topology
One of the most striking findings was the emergence of a "topology of meaning." When the model is applied to a large set of sentences, the resulting inference chains often converge. For instance, various descriptions of social gatherings might all eventually simplify to "The people are smiling." By mapping these relationships, the authors constructed an entailment graph that visualizes how disparate linguistic expressions cluster around core semantic concepts.
Qualitative Insights
The model naturally learns to perform abstraction, such as replacing specific nouns with broader categories (e.g., "red car" to "vehicle"). However, the authors noted that standard metrics like BLEU are poorly suited for this task. Because a single premise can lead to many valid entailments, a model might produce a logically sound conclusion that differs from the specific reference in the test set, leading to an unfairly low BLEU score.
Discussion and Limitations
Despite its success, the model faces challenges with fine-grained semantics. A notable issue is the "color problem," where the model might swap "red" for "yellow" because they share similar vector embeddings, even though such a swap is logically invalid. Ambiguity also poses a hurdle; for example, the model occasionally confuses different meanings of polysemous words like "bar."
Future work aims to increase the diversity of generated conclusions and integrate these generative capabilities into larger systems for automated fact-checking and information extraction. By moving from judging logic to generating it, this research provides a more transparent and interpretable path toward machine reasoning.
Summary updated