Language Models for Lexical Inference in Context

Martin Schmitt, Hinrich Schütze

TL;DR

This paper introduces the first approaches using pre-trained language models (LMs) for Lexical Inference in Context (LIiC), a task focused on understanding subtle meaning differences between similar sentences. Their novel pattern-based methods, including the use of "antipatterns" to explicitly define non-entailment, significantly outperform previous state-of-the-art results on established benchmarks.

What Problem Does This Paper Address?

The core challenge is Lexical Inference in Context (LIiC): determining if one sentence entails another when they differ by only a single word or phrase. This is a nuanced task that goes beyond simple word similarity, requiring an understanding of how a word's meaning changes based on its context. Existing Natural Language Inference (NLI) models often struggle with these fine-grained lexical phenomena, and previous LIiC approaches relied heavily on resource-based methods or vector space models that didn't fully capture contextual nuances. The authors aim to leverage the power of modern pre-trained LMs to tackle this problem more effectively.

Methods

The paper proposes three main approaches, all built upon pre-trained RoBERTa LMs:

  1. Few-Shot NLI Classifier: A standard approach where the LM is fine-tuned as a binary classifier for entailment, using a small number of labeled examples.
  2. Handcrafted Pattern-Based Classifier (MANPAT): This method uses manually designed "patterns" (templates) that express lexical inference. For example, "X because Y" can indicate entailment. They also introduce "antipatterns" (e.g., "It is not sure that X just because Y") to explicitly capture non-entailment, which they found crucial. The LM predicts the probability of a pattern generating a felicitous statement, and a score is derived from the difference between the best pattern and antipattern scores.
  3. Automatically Extracted Pattern-Based Classifier (AUTPAT): Similar to MANPAT, but the patterns are automatically mined from a large corpus. The authors experimented with different numbers of automatically extracted patterns (AUTPATn) to find the optimal balance.

A key innovation is the use of antipatterns, which explicitly define what does not constitute entailment, helping to disambiguate and improve robustness. They also explore the impact of carefully tuning a threshold for decision-making, deviating from the standard 0.5.

Datasets

The authors evaluate their methods on two established LIiC benchmarks:

  • Levy/Holt's dataset: Originally created for evaluating entailment between verbs, with a re-annotated version used here.
  • SherLIiC: A benchmark specifically designed for typed event-focused lexical inference.

They also split the development sets into dev1 (original development set) and dev2 (a smaller subset for hyperparameter tuning and validation), while keeping the test sets as is for fair comparison.

Key Insights and Ideas

  • Patterns Matter, Especially Antipatterns: While NLI classifiers are a baseline, pattern-based approaches, particularly those incorporating antipatterns, significantly outperform them. Antipatterns are crucial for achieving state-of-the-art results.
  • Handcrafted Patterns Outperform Automatic Ones (for LIiC): Despite the success of automatic pattern extraction in other NLP tasks, handcrafted patterns (MANPAT) showed an advantage for LIiC. This suggests that the general semantic relationships captured by human-designed patterns are more effective for this specific task.
  • Hyperparameter Tuning is Critical: The performance of these models is highly sensitive to hyperparameter choices. The authors found that investing in hyperparameter search (rather than just pattern search) yields better results.
  • Threshold Tuning is Key: The optimal decision threshold for both NLI and pattern-based methods often deviates significantly from the standard 0.5, indicating that models are either over-confident or require a different margin for decision-making.
  • Context is King for Lexical Inference: The success of pattern-based methods highlights that understanding the specific context in which a word appears is paramount for accurate lexical inference, a strength that pre-trained LMs can leverage when guided by appropriate patterns.

Key Results

  • State-of-the-Art Performance: All proposed approaches, especially the pattern-based ones with antipatterns, significantly outperform previous work on both Levy/Holt and SherLIiC datasets, establishing a new state of the art.
  • MANPATΦΨ and AUTPAT: The combination of handcrafted patterns and antipatterns (MANPATΦΨ) and automatically generated patterns with antipatterns (AUTPATΦΨ) consistently achieved the best results.
  • AUTPATn Performance: For automatically generated patterns, AUTPAT15 (using 15 patterns) showed the best performance on SherLIiC.
  • Robustness: The paper analyzes hyperparameter robustness, showing that while many configurations perform poorly, a well-performing setup can be found with sufficient search.

Limitations and Future Work

  • Specificity of Automatic Patterns: The authors note that automatically retrieved patterns can be overly specific, limiting their generalizability. While handcrafted patterns are more general, they are also more labor-intensive.
  • Challenges with Complex Reasoning: The error analysis reveals that certain types of reasoning (e.g., inferring "remaining" from "occupying") are handled well by patterns, while others (e.g., linking sentences for derivation) are challenging for pattern-based methods but easier for NLI.
  • Open Situations: Distinguishing between open-ended situations (like sports matches) and inevitable outcomes remains a challenge for all approaches.
  • Future Work: The authors suggest investigating alternative automatic pattern generation methods, better modeling of remaining challenges identified in the error analysis, and exploring how to better leverage the argument structure of verbs.

Summary updated

BibTeX
@inproceedings{schmitt2021language,
  author = {Martin Schmitt and Hinrich Schütze},
  title = {{Language Models for Lexical Inference in Context}},
  booktitle = {EACL},
  year = {2021},
  url = {https://openreview.net/forum?id=4wxZbvBKylU},
}

Loading related content...

Figure