Robust Textual Inference via Graph Matching

Aria Haghighi, Andrew Y. Ng, Christopher D. Manning

Abstract

Recognizing Textual Entailment (RTE) is a fundamental task in natural language processing that requires determining whether the meaning of a hypothesis sentence can be inferred from a given text. Traditional approaches often rely on lexical overlap, which fails to capture the structural nuances of language. This paper introduces a robust system that represents sentences as dependency graphs and treats inference as a graph-matching problem. By minimizing a cost function that accounts for both lexical and structural substitutions, the model achieves state-of-the-art performance on the 2005 RTE Challenge, demonstrating the superiority of structural alignment over simple word-count metrics.

Introduction

The core challenge in semantic inference is distinguishing between sentences that share words but differ in meaning. For instance, "Israel was established in 1948" and "An institute in Israel was established in 1948" have high word overlap, but the former does not entail the latter. Traditional models like Bag-of-Words or TF-IDF are insufficient because they ignore the "who did what to whom" structure. This research addresses the need for a computationally tractable method to match these underlying structures across varying phrasings.

Methods

The proposed framework represents sentences as directed graphs where nodes are words or collapsed named entities, and edges represent syntactic dependencies or semantic roles.

  1. Graph Representation: Sentences are parsed into graphs. Named entities (e.g., "Jeff Bezos") are treated as single nodes, and prepositions are often folded into edge labels to simplify the structure. Coreference links are added to maintain entity consistency across multiple sentences.
  2. Graph Matching Model: Inference is framed as finding a mapping $M$ from the hypothesis graph $H$ to the text graph $T$ that minimizes a total entailment cost. This cost consists of:
  3. Vertex Substitution Cost: Penalties for matching dissimilar words, calculated using a hierarchy from exact matches to WordNet similarity and Latent Semantic Analysis (LSA).
  4. Relation Substitution Cost: Penalties for structural distortions, such as when a subject in the hypothesis corresponds to an object in the text.
Illustration of the graph matching process between a hypothesis (red) and text (blue), showing vertex substitution costs.
  1. Optimization and Learning: Since finding the optimal subgraph isomorphism is NP-complete, the authors use a greedy hill-climbing heuristic to refine an initial word-to-word alignment. Feature weights for the cost function are learned using coordinate ascent on training data.

Results

The system was evaluated on the 2005 Recognizing Textual Entailment (RTE) Challenge dataset, consisting of 800 test pairs across tasks like Question Answering (QA) and Information Retrieval (IR).

Comparison of the Graph Matching (GM) approach against standard baselines on the RTE test set.

The Graph Matching (GM) approach significantly outperformed standard baselines. It achieved an accuracy of 56.8%, compared to 49.5% for Bag-of-Words and 51.8% for TF-IDF. The system was particularly effective in tasks like Comparable Documents (72% accuracy) and Paraphrase Recognition (58% accuracy), where structural consistency is a strong indicator of entailment.

Conclusion

The primary insight of this work is that structural overlap is a much more reliable indicator of entailment than simple lexical overlap. While the system handles non-monotonicity through specific checks for negation and factivity, its performance remains constrained by the recall of lexical resources like WordNet. Future work involves improving optimization techniques and integrating deeper logical reasoning to handle complex semantic traps.

Summary updated

BibTeX
@inproceedings{haghighi2005robust,
  author = {Aria Haghighi and Andrew Y. Ng and Christopher D. Manning},
  title = {{Robust Textual Inference via Graph Matching}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2005},
}
Figure