Morph-fitting: Fine-Tuning Word Vector Spaces with Simple Language-Specific Rules

Ivan Vulic, Nikola Mrksic, Roi Reichart, Diarmuid Ó Séaghdha, Steve J. Young, Anna Korhonen

Abstract

Standard word embeddings often struggle with data sparsity for rare word forms and the conflation of synonyms and antonyms, particularly in morphologically rich languages. We present morph-fitting, a lightweight post-processing technique that injects morphological knowledge into pre-trained word vector spaces using simple, language-specific heuristic rules. By pulling inflectional synonyms together and pushing derivational antonyms apart, morph-fitting significantly improves performance on word similarity benchmarks and downstream Dialogue State Tracking (DST) tasks across multiple languages.

Introduction

Distributional word embeddings like Word2Vec and GloVe are foundational to modern NLP, yet they suffer from two primary limitations. First, data sparsity affects rare surface forms of a root word (e.g., specific conjugations), leading to poor vector representations. Second, semantic conflation occurs because antonyms (e.g., expensive vs. inexpensive) often appear in similar contexts, causing models to map them to similar regions in the vector space. While semantic lexicons like WordNet can mitigate these issues, they are expensive to curate and unavailable for many languages.

Methodology: Morph-fitting

Morph-fitting addresses these challenges by fine-tuning existing word vector spaces using linguistic constraints derived from simple string-matching rules. This approach bypasses the need for curated lexicons.

Constraint Generation

The method generates two types of constraints:

  1. ATTRACT Constraints (Inflectional Synonymy): These group inflectional variants of the same root (e.g., create, created, creating). The model is incentivized to pull these vectors closer together.
  2. REPEL Constraints (Derivational Antonymy): These target common prefixes that invert meaning (e.g., respectful vs. disrespectful). The model is incentivized to push these vectors apart.
Illustration of ATTRACT and REPEL constraints applied to Italian word vectors.

The ATTRACT-REPEL Algorithm

The generated constraints are processed using a max-margin loss function. This algorithm adjusts the vector space by pulling ATTRACT pairs closer and pushing REPEL pairs further apart than any other random word in a training batch. L2 regularization is employed to preserve the original distributional semantics of the pre-trained space.

Evaluation and Results

The authors evaluated morph-fitting across four languages (English, German, Italian, and Russian) using both intrinsic and extrinsic metrics.

Intrinsic Evaluation

Using word similarity benchmarks like SimLex-999 and SimVerb-3500, morph-fitting consistently improved Spearman's $\rho$ correlation across various embedding architectures. For instance, applying the technique to Context2Vec embeddings on English SimVerb-3500 resulted in a jump from 0.388 to 0.459.

Extrinsic Evaluation: Dialogue State Tracking

The impact on downstream tasks was measured using the Multilingual WOZ 2.0 dataset for Dialogue State Tracking (DST). Morph-fitting proved particularly effective for morphologically rich languages. In Italian, joint goal accuracy rose from 74.1% to 78.1%, while German saw an increase from 60.6% to 66.3%.

Comparison of SimLex (intrinsic) and DST (extrinsic) performance across languages.

Key Insights

  • Heuristics are Powerful: Simple regex-like rules, requiring only a few hours of effort from non-experts, can effectively substitute for massive linguistic databases.
  • Morphological Encoding: Languages naturally encode semantic relationships in their structure; morph-fitting exploits this by treating inflections as synonyms and specific derivations as antonyms.
  • Language Complexity Matters: While intrinsic gains are universal, the translation to downstream task performance is most pronounced in morphologically complex languages like German and Italian.

Conclusion and Future Work

Morph-fitting provides a cost-effective way to enhance word embeddings without specialized resources. While the current heuristic rules are naive and can produce false positives (e.g., tent and intent), future work aims to refine constraint extraction and explore automated methods for learning morphological patterns across languages.

Summary updated

BibTeX
@inproceedings{vulic2017morph,
  author = {Ivan Vulic and Nikola Mrksic and Roi Reichart and Diarmuid Ó Séaghdha and Steve J. Young and Anna Korhonen},
  title = {{Morph-fitting: Fine-Tuning Word Vector Spaces with Simple Language-Specific Rules}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  url = {https://openreview.net/forum?id=BJVDk3lObB},
}
Figure