Natural Language Inference with Monotonicity

Hai Hu, Qi Chen, Larry Moss2019 · DOI

Abstract: This paper describes a working system which performs natural language inference using polarity-marked parse trees. The system handles all instances of monotonicity inference in the FraCaS data set and can be easily extended to compute inferences in other sections of FraCaS. We achieve perfect precision and an accuracy comparable to previous systems on the first section of FraCaS. Except for the initial parse, it is entirely deterministic. It handles multi-premise arguments. The kind of inference performed is essentially "logical", but it goes beyond what is representable in first-order logic. In any case, the system works on surface forms and CCG parse trees rather than on logical representations of any kind.

Introduction

Determining whether a premise entails, contradicts, or is neutral toward a hypothesis—Natural Language Inference (NLI)—is a fundamental challenge in NLP. Traditional approaches often oscillate between brittle formal logic translations and opaque deep learning models. This research proposes a "third way": Natural Logic. By operating directly on surface-level linguistic structures via Combinatory Categorial Grammar (CCG) parse trees, the system performs robust logical reasoning without the need for complex intermediate representations.

The Monotonicity-Based Inference System

The core of the system is the concept of monotonicity, which dictates how the truth value of a sentence changes when constituents are replaced with more specific or more general terms.

Polarity Marking and Inference Rules

The system first uses a CCG parser to assign a polarity to every constituent in a sentence:

  • Upward ($↑$): Allows replacement with a broader term (e.g., dog → animal).
  • Downward ($↓$): Allows replacement with a narrower term (e.g., animal → dog).
  • Neutral ($=$): No safe replacement.
Monotonicity inference tree showing polarity marking and the derivation of entailments and contradictions from a premise.

As shown in the figure above, the inference engine performs a search by iteratively applying replacement rules. replacement_infer swaps terms based on polarity to find entailments, while replacement_contra modifies quantifiers or negates verbs to identify contradictions. This process is supported by a knowledge base derived from WordNet and specific Natural Logic rules (e.g., handling the symmetry of "some").

Experimental Results

The system was evaluated on Section 1 (Generalized Quantifiers) of the FraCaS benchmark, a dataset designed to test the logical capabilities of NLP systems through multi-premise arguments.

Performance comparison of the proposed system against existing models and its confusion matrix on the FraCaS dataset.

On the 74 problems in this section, the system achieved an accuracy of 88%, which is competitive with state-of-the-art theorem provers and tableau methods. Notably, the system achieved 100% precision for entailment; it never incorrectly labeled a neutral or contradictory statement as an entailment. Most errors were "Unknown" results, occurring when the deterministic search could not find a valid path to the hypothesis, rather than making an incorrect logical leap.

Conclusion and Future Work

This system demonstrates that high-fidelity logical reasoning is possible using deterministic operations on surface-level parse trees. While highly precise, the system currently faces a bottleneck in the CCG parser's accuracy and rigid string-matching requirements. Future work will focus on extending the system to handle temporal reasoning, adjectives, and verbs across other sections of FraCaS, as well as incorporating more flexible semantic representations to improve syntactic matching.

Summary updated

Abstract

This paper describes a working system which performs natural language inference using polaritymarked parse trees. The system handles all of the instances of monotonicity inference in the FraCaS data set, and can be easily extended to compute inferences in other sections of FraCaS. We achieve perfect precision and an accuracy comparable to previous systems on the first section of FraCaS. Except for the initial parse, it is entirely deterministic. It handles multi-premise arguments. The kind of inference performed is essentially "logical", but it goes beyond what is representable in first-order logic. In any case, the system works on surface forms and CCG parse trees rather than on logical representations of any kind.
BibTeX
@misc{hu2019natural,
  author = {Hai Hu and Qi Chen and Larry Moss},
  title = {{Natural Language Inference with Monotonicity}},
  year = {2019},
  doi = {10.18653/v1/w19-0502},
}

Loading related content...

Figure