Monotonicity Marking from Universal Dependency Trees

Zeming Chen, Qiyue GaoarXiv 2021

Abstract

Dependency parsing is a tool widely used in the field of Natural language processing and computational linguistics. However, there is hardly any work that connects dependency parsing to monotonicity, which is an essential part of logic and linguistic semantics. In this paper, we present a system that automatically annotates monotonicity information based on Universal Dependency parse trees. Our system utilizes surface-level monotonicity facts about quantifiers, lexical items, and token-level polarity information. We compared our system's performance with existing systems in the literature, including NatLog and ccg2mono, on a small evaluation dataset. Results show that our system outperforms NatLog and ccg2mono.

Introduction

Natural Language Inference (NLI) is a fundamental task in computational linguistics, requiring a system to determine if a premise sentence logically entails a hypothesis. While modern deep learning approaches dominate this field, they often function as "black boxes" with limited interpretability. Natural Logic offers a symbolic alternative, relying on monotonicity reasoning to derive inferences through simple word replacement.

Monotonicity describes the logical direction in which word meanings can be safely generalized or specified. For instance, in the sentence "All students carry a MacBook," the term "MacBook" is in an upward-entailing (monotone) position, meaning it can be replaced by the more general "laptop." Conversely, "students" is in a downward-entailing (antitone) position; it can only be replaced by a more specific term, such as "new students," to maintain logical validity. Automating this process requires precise "polarity marking" (arrows) for every token in a sentence.

Methodology

The proposed system transforms raw text into a logically annotated tree through a three-stage pipeline: Universal Dependency parsing, binarization, and polarization.

Universal Dependency (UD) Parsing

The system utilizes the Stanza parser to generate a standard dependency tree. Universal Dependencies are preferred over previous frameworks like Combinatory Categorial Grammar (CCG) due to their extensive training datasets and robust cross-linguistic support.

Figure 1: A standard Universal Dependency (UD) parse tree for the sentence 'All dogs eat food', which serves as the initial input for the system.

Binarization and Polarization

Because logical rules are most effectively applied to binary structures, the UD tree is converted into a binary "s-expression" using a priority hierarchy for 40 grammatical relations (e.g., nsubj, obj, det). This hierarchy ensures that the tree is structured consistently, placing logically dominant elements higher in the chain.

The final stage involves applying a lexicon of logical rules to the binarized tree. Starting from the root, the system propagates polarities downward. Polarities are flipped or inherited based on the presence of quantifiers (e.g., "Every"), downward-entailing verbs (e.g., "refuse"), and logical operators like negation.

Figure 3: A polarized binarized tree for a complex sentence containing multiple negations. The arrows indicate the final monotonicity marks assigned to each token.

Evaluation and Results

The system was trained on the UD English GUM corpus and evaluated using a specialized dataset of 56 hand-crafted sentences designed to test complex logical phenomena, such as multi-word quantifiers and triple negations. The system was benchmarked against two established baselines: NatLog and ccg2mono.

  • Token-Level Accuracy: The system achieved 96.5%, significantly outperforming ccg2mono (76.0%) and NatLog (69.9%).
  • Sentence-Level Accuracy: In this more rigorous metric, the system achieved 87.5%, nearly doubling the performance of ccg2mono (44.6%).

The system's ability to handle structural complexity, such as triple negations (e.g., "No newspapers did not report no bad news"), allows it to succeed where pattern-matching systems like NatLog often fail.

Conclusion and Future Work

By leveraging the robustness of Universal Dependencies and a deterministic binarization hierarchy, this system provides a highly accurate tool for monotonicity marking. A current limitation involves the ambiguity of scalar numbers (e.g., "exactly 2" vs. "at least 2"), which the system currently defaults to an "at least" interpretation. Future work will focus on incorporating pragmatic context to resolve these ambiguities and integrating the marker into a full end-to-end inference engine.

Summary updated

BibTeX
@misc{chen2021monotonicity,
  author = {Zeming Chen and Qiyue Gao},
  title = {{Monotonicity Marking from Universal Dependency Trees}},
  year = {2021},
  eprint = {2104.08659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.08659},
}
Figure