Classification-based Contextual Preferences

Shachar Mirkin, Ido Dagan, Lili Kotlerman, Idan SzpektorTextInfer @ EMNLP 2011

Abstract

This paper addresses context matching in textual inference. We formulate the task under the Contextual Preferences framework which broadly captures contextual aspects of inference. We propose a generic classification-based scheme under this framework which coherently attends to context matching in inference and may be employed in any inference-based task. As a test bed for our scheme we use the Name-based Text Categorization (TC) task. We define an integration of Contextual Preferences into the TC setting and present a concrete self-supervised model which instantiates the generic scheme and is applied to address context matching in the TC task. Experiments on standard TC datasets show that our approach outperforms the state of the art in context modeling for Name-based TC.

Introduction

In natural language processing, textual inference tasks like Question Answering or Information Extraction often rely on matching terms or applying lexical entailment rules (e.g., inferring "injure" from "hurt"). However, word ambiguity necessitates verifying that the context of a matched word aligns with its intended meaning. For example, "You hurt my feelings" is an invalid context for physical injury.

Prior work formalized this using the Contextual Preferences (CP) framework, which evaluates the compatibility between a text ($t$), an entailment rule ($r$), and a hypothesis ($h$). Previous implementations relied on symmetric vector-space models, which the authors argue are flawed because textual entailment is inherently directional. This paper proposes replacing symmetric similarity metrics with a directional, classification-based approach.

Methodology

The authors introduce a generic scheme using distinct classifiers to evaluate context validity:

  • $C_h$ (Hypothesis Classifier): Tests if the context of the text ($t$) or the rule ($r$) matches the intended meaning of $h$.
  • $C_r$ (Rule Classifier): Identifies valid contexts for applying a specific rule $r$ to the text $t$.
The Contextual Preferences framework (left) and the proposed classification-based scheme (right).

To avoid manual labeling, a self-supervised training approach is employed. Positive examples are retrieved from a corpus using target terms disambiguated with WordNet synonyms. Negative examples are generated using "cohyponyms" (e.g., using "baseball" as a negative for "hockey") to force the classifier to learn fine-grained boundaries between related concepts.

Experimental Setup

The scheme was tested on Name-based Text Categorization (TC)—an unsupervised task where documents are categorized based solely on category names. The classifiers re-weight term-vector matches based on confidence scores.

  • Datasets: Reuters-10 (R10) and 20-Newsgroups (20NG).
  • Knowledge Resources: WordNet 3.0 and a Wikipedia-derived rule-base.

Results and Discussion

The classification-based model consistently outperformed the state-of-the-art LSA-based context model ($Barak_{full}$) across both datasets.

Performance comparison on Reuters-10 and 20-Newsgroups datasets.

Key insights include:

  • Directionality: By using classifiers rather than symmetric vector similarity, the model naturally respects the asymmetric nature of logical entailment.
  • Hypothesis Classifier Impact: Ablation studies showed that $C_h(t)$—the classifier checking if the text's context matches the hypothesis—provided the most significant performance boost.
  • Self-Supervision Challenges: While viable, the method is sensitive to the quality of the underlying ontology. For instance, WordNet cohyponyms like "buyout" and "purchase" can sometimes act as near-synonyms in actual text, confusing the classifier.

Conclusion

This work demonstrates that a directional, classification-based approach to contextual preferences significantly improves textual inference performance. Future work will explore generating classifiers on the fly for dynamic hypotheses and improving domain-specific ambiguity detection.

Summary updated

BibTeX
@inproceedings{mirkin2011classification,
  author = {Shachar Mirkin and Ido Dagan and Lili Kotlerman and Idan Szpektor},
  title = {{Classification-based Contextual Preferences}},
  booktitle = {TextInfer @ EMNLP},
  year = {2011},
  url = {https://openreview.net/forum?id=BkW3uzfdZr},
}
Figure