A Strong Lexical Matching Method for the Machine Comprehension Test

Ellery Smith, Nicola Greco, Matko Bosnjak, Andreas VlachosEMNLP 2015

Abstract: Machine comprehension of text is the overarching goal of a great deal of research in natural language processing. The Machine Comprehension Test (Richardson et al., 2013) was recently proposed to assess methods on an open-domain, extensible, and easy-to-evaluate task consisting of two datasets. In this paper we develop a lexical matching method that takes into account multiple context windows, question types and coreference resolution. We show that the proposed method outperforms the baseline of Richardson et al. (2013), and despite its relative simplicity, is comparable to recent work using machine learning. We hope that our approach will inform future work on this task. Furthermore, we argue that MC500 is harder than MC160 due to the way question answer pairs were created.

Introduction

The ultimate goal of Natural Language Processing (NLP) is machine comprehension—the ability for a computer to read a text and "understand" it well enough to answer questions. While tasks like semantic parsing or information extraction exist, they often focus on narrow niches. The Machine Comprehension Test (MCTest) was introduced as a more holistic "common sense" challenge, featuring fictional stories written at the level of a 7-year-old. Early baselines for this task were relatively weak, prompting an investigation into whether a sophisticated lexical matching approach could rival heavy-duty machine learning models.

Methodology

This research demonstrates that a "simple" lexical matching approach, when augmented with smart linguistic rules, can set a high bar for the MCTest benchmark. The authors built an enhanced scoring function that moves beyond simple keyword counting through four primary mechanisms:

  1. Multiple Context Windows: Instead of looking for a single perfect match, the algorithm uses sliding windows of different sizes (from 2 to 30 tokens) and sums these scores to capture both local context and broader relations.
  2. Coreference Resolution: Using the Stanford CoreNLP toolkit, the system replaces pronouns with their actual referents (e.g., replacing "he" with "Pauly"). This uncovers matches previously hidden by anaphoric language.
  3. Negation Handling: Standard lexical matching often fails on questions like "What did James not eat?" The system detects negated root verbs and inverts the score, penalizing answers that appear frequently in the text for negative questions.
  4. Question-Specific Rules: Linguistic analyses are applied selectively based on question categories (Who, What, Why, etc.). For instance, coreference resolution was found to be highly beneficial for "Who" questions but potentially noisy for others.
Ablation study showing the incremental performance gains from coreference rules, negation handling, and stemming.

Results and Analysis

The system was evaluated on two datasets: MC160 (160 curated stories) and MC500 (500 crowd-sourced stories). The authors highlight that MC500 is significantly more difficult because crowd-workers were instructed to avoid verbatim answers and include misleading distractors.

Performance by Category

Lexical matching proves surprisingly effective for "Who," "What," and "Where" questions, which rely on identifying specific entities. However, "Why" questions remain a significant challenge, as they require understanding causality and higher-level narrative concepts. The performance drop from MC160 to MC500 confirms that crowd-sourced datasets with intentional distractors are much more resilient to simple keyword-matching hacks.

Detailed performance breakdown by question category and reasoning type, illustrating the difficulty of 'Why' and 'Negation' questions.

Key Insights

  • Selective Linguistics: More features are not always better. Applying coreference resolution across the board actually hurt performance; it only became a benefit when applied selectively to specific question types.
  • Simplicity as a Baseline: The fact that this method remains competitive with latent-variable classifiers and discourse-level models suggests that many "advanced" models might primarily be performing sophisticated lexical matching.

Limitations and Future Work

Despite strong results, lexical matching has a clear ceiling. It struggles with numerical reasoning (e.g., "How many apples are left?"), temporal logic (event ordering), and abstract concepts like character intent or story mood. Future work should focus on these higher-level reasoning challenges, as the "low-hanging fruit" of lexical matching has now been largely addressed.

Summary updated

BibTeX
@inproceedings{smith2015strong,
  author = {Ellery Smith and Nicola Greco and Matko Bosnjak and Andreas Vlachos},
  title = {{A Strong Lexical Matching Method for the Machine Comprehension Test}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  url = {https://openreview.net/forum?id=HJEzgzz_Wr},
}
Figure