Contextual Preferences

Idan Szpektor, Ido Dagan, Roy Bar-Haim, Jacob Goldberger

Abstract

Semantic inference systems often suffer from "semantic hallucinations" where entailment rules are applied in incorrect contexts due to lexical ambiguity. This paper introduces Contextual Preferences (CP), a generic framework that enriches text fragments and inference rules with contextual representations. By integrating global topicality with local selectional preferences, CP ensures that rules are only applied when the context of the text aligns with the context of the rule and hypothesis. Evaluations on the ACE 2005 event detection task show that CP significantly improves ranking quality in both direct matching and rule-based inference scenarios.

Introduction

In natural language processing, entailment rules such as “X charge Y” → “X accuse Y” are vital for understanding semantic equivalence. However, these rules are often context-dependent. While valid in a legal setting, the "charge" to "accuse" mapping fails in retail or electrical contexts. Traditional systems relying on structural matching frequently ignore these nuances, leading to erroneous inferences. The Contextual Preferences (CP) framework addresses this gap by providing a comprehensive, generic method for handling contextual constraints across various semantic applications.

The Contextual Preferences (CP) Framework

The authors propose representing every text fragment, hypothesis, or rule ($z$) with a contextual representation, $cp(z)$, consisting of two primary pillars:

  1. Global Context ($cp_g$): This captures the overall "topic" or "domain" using Latent Semantic Analysis (LSA). By transforming nouns and verbs into vectors, the system can prevent the application of a "sports" rule to a "cooking" text.
  2. Variable Preferences ($cp_v$): This focuses on the specific "slots" (variables $X$ and $Y$) within a template. It includes constraints on Named Entity types (e.g., $X$ must be a Person) and distributional examples learned from large corpora via clustering algorithms like Clustering By Committee (CBC).
The CP matching logic between text (t), rule (r), and hypothesis (h).

A critical aspect of CP is its directional matching logic. Semantic inference is modeled as a subsumption relationship: for a text to entail a hypothesis, the context of the hypothesis must be broader than (subsume) the context of the text. This prevents specific contexts from incorrectly triggering general rules.

Experimental Evaluation

The framework was evaluated on the ACE 2005 Event Detection benchmark, covering 24 event types and over 4,000 mentions. The LSA models for global context were trained on the British National Corpus (BNC), while distributional similarities for variables were derived from the Reuters RVC1 corpus. Initial entailment rules were automatically generated using the DIRT (Discovery of Inference Rules from Text) algorithm.

Results and Discussion

The effectiveness of CP was measured using Mean Average Precision (MAP). In direct matching scenarios (without rules), CP improved ranking quality by approximately 70%, raising the baseline MAP from 34.1% to 60.2%. For rule-based inference, the CP framework provided a 35% to 50% improvement over using the rules' raw scores alone.

Precision-Recall curves for the 50-rule inference task, comparing the baseline against CP and CP with prior knowledge.

Key insights from the study include:

  • Component Synergy: Global topic ($cp_g$) and variable preferences ($cp_v$) capture complementary information; their combined use consistently yields the best performance.
  • Unsupervised Efficacy: The results demonstrate that complex information extraction tasks can be effectively tackled using unsupervised, generic semantic tools rather than task-specific supervised classifiers.

Limitations and Future Work

Despite its success, the CP framework faces challenges with logically reversed rules (e.g., "marrying" vs. "divorcing") and complex linguistic features like negation and modality. Future research will explore more sophisticated representation models and extend the framework to lexical-level rules rather than just template-based ones.

Summary updated

BibTeX
@inproceedings{szpektor2008contextual,
  author = {Idan Szpektor and Ido Dagan and Roy Bar-Haim and Jacob Goldberger},
  title = {{Contextual Preferences}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2008},
}
Figure