Disambiguation of Potentially Idiomatic Expressions with Contextual Embeddings

Murathan Kurfali, Robert ÖstlingMWE-LEX 2020

TL;DR

This paper tackles the challenge of distinguishing between literal and idiomatic meanings of multiword expressions (MWEs) using contextual word embeddings like BERT. They demonstrate that these embeddings, even without fine-tuning, significantly improve both supervised and unsupervised MWE disambiguation, showing promise for cross-lingual applications.

What Problem Does This Paper Address?

Many common phrases, like "kick the bucket" or "break a leg," have meanings that aren't simply the sum of their parts – they're idiomatic. However, these same word sequences can also be used literally (e.g., "He kicked the bucket across the yard"). This ambiguity, known as distinguishing "potentially idiomatic expressions" (PIEs), is a significant hurdle for many Natural Language Processing (NLP) tasks, including sentiment analysis, spelling correction, and machine translation. Previous work often relied on analyzing the contexts in which literal and idiomatic uses appear, but this paper explores whether modern contextual embeddings, which capture word meaning based on surrounding text, can directly solve this disambiguation problem.

Methods

The core of this work lies in leveraging contextual word embeddings, specifically BERT (Bidirectional Encoder Representations for Transformers). BERT is a powerful neural network that generates different vector representations for a word depending on its context. The authors use BERT in two main ways:

  • Supervised Classification: They feed the BERT embeddings of PIE tokens into a simple linear classifier (a perceptron) to predict whether the PIE is used literally or idiomatically. They experiment with both monolingual BERT models (English and German) and a multilingual BERT (mBERT) model.
  • Unsupervised Classification: They employ hierarchical agglomerative clustering (HAC) on the BERT embeddings. The underlying hypothesis is that literal PIE usages will be semantically closer to their surrounding context than idiomatic ones. They use a heuristic based on cosine similarity to label the clusters as either literal or idiomatic.

A key preprocessing step involves lemmatization of PIE words to control for inflectional variations and ensure the model focuses on semantic context rather than surface form differences.

Datasets

The authors evaluate their methods on three widely used datasets:

  • VNC dataset: Primarily for English.
  • SemEval5b dataset: For English.
  • Horbach dataset: For German.

They note that for VNC and Horbach, they created specific splits or used cross-validation due to the absence of official train/test splits.

Key Insights and Ideas

  • Contextual Embeddings are Powerful for PIE Disambiguation: BERT embeddings, even without task-specific fine-tuning, provide rich contextual information that significantly boosts performance in both supervised and unsupervised PIE disambiguation.
  • Supervised Learning Dominates: The supervised approach using BERT embeddings consistently achieves state-of-the-art results, outperforming previous methods by a substantial margin.
  • Unsupervised Learning is Surprisingly Effective: The unsupervised clustering approach also yields impressive results, often matching or exceeding previous supervised methods, demonstrating the inherent separability of literal and idiomatic meanings in BERT embeddings.
  • Multilingual BERT Shows Cross-Lingual Promise: Using mBERT for disambiguation leads to comparable performance to monolingual models, suggesting that this approach can be readily extended to many other languages with minimal adaptation.
  • Lemmatization is Beneficial: While not strictly necessary for BERT's performance, lemmatization helps control for surface form variations and allows the model to better exploit the correlation between word forms and their idiomatic/literal usages.

Key Results

  • The supervised classifier with monolingual BERT embeddings achieved the best performance, improving F-scores on English datasets from around 76% to over 91%, and accuracy on German datasets from 88% to 92%.
  • The unsupervised classification performed comparably to or better than previous state-of-the-art results on English datasets.
  • Multilingual BERT (mBERT) showed strong performance, especially in the supervised setting, indicating its potential for cross-lingual PIE disambiguation.
  • Per-idiom analysis (Appendix A) shows that while the supervised method is consistently strong across most expressions, the unsupervised method can fail completely on certain PIEs.

Limitations and Future Work

  • Unsupervised Classifier Instability: The unsupervised classifier, while powerful, is more prone to errors and can completely fail on specific expressions, leading to lower overall consistency compared to the supervised method. The authors attribute this to issues with cluster formation and heuristic labeling.
  • German PIE Complexity: The unsupervised method performed less well on German datasets, which the authors hypothesize is due to the greater polysemy and less distinct uses of German MWEs, making annotation and clustering more challenging.
  • Layer-wise Analysis: While they conducted a layer-wise analysis, the results were mixed, with the sixth layer and upwards showing better performance, and the concatenation of the last four layers sometimes leading to a slight drop. Further systematic evaluation of layer contributions is suggested.
  • Cross-Lingual Extension: While mBERT shows promise, further research is needed to fully understand and leverage its cross-lingual capabilities for PIE disambiguation across a wider range of languages.
  • Heuristic Refinement: The authors note that even updated heuristics for the unsupervised model did not fully resolve issues with certain expressions, suggesting a need for more elaborate heuristics.

Summary updated

BibTeX
@inproceedings{kurfali2020disambiguation,
  author = {Murathan Kurfali and Robert Östling},
  title = {{Disambiguation of Potentially Idiomatic Expressions with Contextual Embeddings}},
  booktitle = {MWE-LEX},
  year = {2020},
  url = {https://openreview.net/forum?id=qIl0bSJ0mXV},
}
Figure