Contextual Compositionality Detection with External Knowledge Bases and Word Embeddings

Dongsheng Wang, Qiuchi Li, Lucas Chaves Lima, Jakob Grue Simonsen, Christina Lioma

Introduction

In Natural Language Processing (NLP), compositionality is the principle that the meaning of a complex expression is determined by the meanings of its constituent parts and the rules used to combine them. While a "brown dog" is purely compositional, an idiom like "hot dog" is non-compositional. Traditional research often treats compositionality as a static, binary trait. However, this paper argues that compositionality is inherently contextual. For instance, "green card" can refer literally to a green-colored card or idiomatically to a permanent residency permit. Distinguishing these nuances is critical for improving search engine precision and semantic understanding.

The Contextual Representation Model (CRM)

To address the challenge of contextual compositionality, the authors propose the Contextual Representation Model (CRM). This model determines the compositionality of a phrase within a specific "usage scenario" by comparing its semantic representation to "perturbed" versions of the same phrase.

Overview of the Contextual Representation Model (CRM) architecture, illustrating the integration of local context, global corpus data, and external knowledge bases.

The CRM operates through three primary stages:

  1. Contextual Enrichment: The model constructs a vector representation of a phrase by synthesizing data from three sources: a global corpus (ClueWeb12), the local usage scenario (the specific sentence), and external Knowledge Bases (KBs) such as DBpedia, Wiktionary, and WordNet.
  2. Perturbation: One word in the target phrase is replaced with a synonym (e.g., "hot dog" becomes "warm dog").
  3. Distance Measurement: The model calculates the semantic distance between the original context-aware vector and the perturbed vectors. A high distance suggests non-compositionality, as swapping a word for a synonym significantly alters the specialized meaning. Conversely, a low distance indicates a compositional, literal usage.

Experimental Evaluation

The authors evaluated the CRM using a dataset of 1,042 noun-noun phrases. Human assessors provided literal and idiomatic usage scenarios for these phrases, grading them on a 5-point compositionality scale. The model's performance was measured using Spearman’s $\rho$ correlation with these human judgments.

Key Results

The integration of external Knowledge Bases proved to be a significant performance driver, particularly for word embedding models like GloVe.

  • Baselines: Standard embedding and ranked list models achieved correlations between 0.131 and 0.147.
  • CRM (Word Embedding): This configuration achieved the highest performance with a score of 0.375, more than doubling the baseline effectiveness.
  • Supervised Learning: An LSTM-based Recurrent Neural Network (RNN) enhanced with CRM features (0.324) significantly outperformed a standard RNN (0.176).

Discussion and Insights

A critical finding is the "Local-Global Trade-off." The model utilizes a weighting parameter to balance the influence of the global corpus against the local scenario. Results indicate that for word embeddings, the most effective approach involves a heavy reliance on Knowledge Base data while maintaining a controlled influence from the local context. This suggests that embeddings are particularly adept at absorbing the dense, structured information provided by KBs.

Furthermore, the study confirms that compositionality exists on a spectrum rather than as a binary state. By utilizing a 5-point scale and diverse usage scenarios, the authors demonstrate that the degree of compositionality is a fluid property that shifts based on linguistic context.

Conclusion and Future Work

The CRM framework demonstrates that incorporating external knowledge and local context significantly improves the detection of multi-word expression meanings. While the current study focused on noun-noun phrases, future research will expand the model to handle more complex structures, such as verbal phraseological units (e.g., "kick the bucket"), and investigate the impact of synonym quality on the perturbation process.

Summary updated

BibTeX
@inproceedings{wang2019contextual,
  author = {Dongsheng Wang and Qiuchi Li and Lucas Chaves Lima and Jakob Grue Simonsen and Christina Lioma},
  title = {{Contextual Compositionality Detection with External Knowledge Bases and Word Embeddings}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308560.3316584},
}
Figure