Attentive Tree-structured Network for Monotonicity Reasoning

Zeming ChenarXiv 2021

Abstract

Monotonicity reasoning, a subset of Natural Language Inference (NLI) involving word replacement logic, remains a significant challenge for state-of-the-art sequential models like BERT. This paper introduces AttentiveTreeNet, a novel architecture that integrates tree-structured LSTMs with self-attention mechanisms to leverage syntactic parse trees. By explicitly modeling the linguistic principle of compositionality, AttentiveTreeNet significantly outperforms existing models on complex logical tasks, particularly downward entailment. Our results on the Monotonicity Entailment Dataset (MED) demonstrate a new state-of-the-art performance of 75.7% overall accuracy, highlighting the importance of structural scaffolding in logical reasoning.

Introduction

Natural Language Inference (NLI) is the task of determining if a premise entails a hypothesis. While modern transformers excel at general NLI, they frequently fail at monotonicity reasoning. Monotonicity involves two primary logical directions:

  1. Upward Entailment: Replacing a specific concept with a general one (e.g., "MacBook" $\rightarrow$ "laptop").
  2. Downward Entailment: Replacing a general concept with a specific one, often triggered by "negative" words like No, Few, or None (e.g., "All students" $\rightarrow$ "All new students").

Standard sequential models often miss the structural cues signaling these logical shifts. The authors argue that solving this requires accounting for the linguistic principle of compositionality—the idea that an expression's meaning is derived from its parts and their syntactic combination.

Methods: The AttentiveTreeNet Architecture

AttentiveTreeNet departs from standard sequential processing by utilizing the sentence's underlying grammatical structure to guide information flow.

Overall architecture of AttentiveTreeNet featuring Siamese Tree-LSTM encoders and a self-attentive aggregator.

The model consists of three primary components:

  • Child-Sum Tree-LSTM: Instead of a linear chain, the model uses a tree structure based on the sentence's dependency parse. Each node aggregates information from its "children," following the actual grammatical structure.
  • Attentive Tree-LSTM Encoder: The standard Tree-LSTM is enhanced with a soft-attention layer inside the cell, allowing the model to weight specific child nodes more heavily based on sentence context.
  • Self-Attentive Aggregator: After encoding the premise and hypothesis separately, a multi-hop self-attention mechanism aligns the two representations, focusing on different sentence parts simultaneously before final classification via a Multi-Layer Perceptron (MLP).

Experimental Setup

The model was evaluated primarily on the Monotonicity Entailment Dataset (MED), which contains over 5,000 pairs designed to test upward, downward, and non-monotone reasoning. Training utilized a combination of the HELP dataset (focused on lexical and logical phenomena) and a subset of MNLI (SubMNLI) to balance logic-heavy data with general-purpose language.

Results and Discussion

AttentiveTreeNet set a new high bar for monotonicity reasoning, particularly in the challenging downward inference category.

Comparison of AttentiveTreeNet against state-of-the-art models on the MED dataset.

Key results include:

  • Overall Accuracy: Achieved 75.7% on the MED dataset, outperforming BERT (71.6%) and specialized models like ESIM and KIM.
  • Downward Inference: The model reached 74.5% accuracy in this category, where standard NLI models typically struggle to exceed 50%.
  • Structural Importance: Ablation studies confirmed that the tree structure is the primary driver of performance; replacing the Tree-LSTM with a standard sequential LSTM resulted in a 17.1% drop in accuracy.

Conclusion

The success of AttentiveTreeNet suggests that providing models with syntactic "scaffolding" via parse trees is essential for mastering complex logical reasoning. While the model currently depends on external dependency parsers, future work may explore "Tree-Transformers" to combine hierarchical strengths with the parallelization benefits of Transformer architectures.

Summary updated

BibTeX
@misc{chen2021attentive,
  author = {Zeming Chen},
  title = {{Attentive Tree-structured Network for Monotonicity Reasoning}},
  year = {2021},
  eprint = {2101.00540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00540},
}
Figure