completed Feb 2020 - Feb 2021

Unified Intrinsic Evaluation Framework for Word Embeddings

#NLP #Word Embeddings #Intrinsic Evaluation #Benchmarking #Representation Learning
Unified Intrinsic Evaluation Framework for Word Embeddings

Overview

Word embeddings such as word2vec, GloVe and fastText map words into low-dimensional vector spaces, yet choosing the right model for a task remains difficult. Existing intrinsic evaluations each target a narrow aspect of an embedding, there is no agreed way to choose benchmarks, and developers often report results on arbitrarily selected datasets. Even within a single test type, such as word similarity with its 14 available benchmarks, datasets built on different notions are treated as interchangeable, and an absolute score tells developers little about what the model actually captures.

This project proposes a unified intrinsic evaluation methodology. It first identifies the desired properties of a good word embedding model, including non-conflation, robustness against lexical ambiguity, multifacetedness, robustness against sparseness, resilience to the hubness problem, good geometry and a coherent neighbourhood. It then maps each property to an intrinsic test built on a carefully chosen benchmark: word similarity (WS-353-SIM/REL, MEN-Turk, Verb-143), Google syntactic analogy, BLESS concept categorisation, WordSim-500 outlier detection, MSD-1030 ambiguity and RW rare-word similarity. The tests are packaged in a scalable standalone tool with a plug-and-play architecture, a rule-based natural-language summary of model quality, and two comparative intrinsic tests that visualise how two models arrange a word's neighbourhood or a selected category of words.

Motivation & Objectives

Researchers and practitioners repeatedly face the same question of which word embedding model best fits their purpose, but current intrinsic evaluators examine only isolated characteristics and give no detailed, benchmark-level explanation of a model's strengths and weaknesses. The project aims to bring all evaluation tasks into one place and explain the results in plain terms.

Desired Properties – To identify the properties a good word embedding model should have and how they relate to each other.

Evaluation Strategies – To survey existing intrinsic evaluation strategies and link each identified property to a suitable test and benchmark.

Unified Tool – To develop a scalable, open-source unified intrinsic evaluation tool that incorporates the selected datasets.

Rule-Based Summary – To construct a rule-based summary that turns evaluation scores into a readable assessment of a model's capabilities.

Impact & Results

Performance

Design experiments showed that Spearman correlation gives a smaller standard deviation between corpora than Pearson correlation, and that the cos-mul analogy method gives more consistent scores than cos-add, so both were adopted in the unified evaluator. Four 300-dimensional models (CBOW, Skip-gram, GloVe and fastText) were evaluated in two settings: trained on the same 2017 Wikipedia corpus (more than 2 billion tokens), and trained on different large corpora. In the same-corpus setting, fastText achieved the best multifacetedness (68.76), non-conflation (74.51) and sparseness (51.24) scores, CBOW led on coherent neighbourhood (89.15) and good geometry (71.42), and GloVe scored highest on handling hubness (78.9). In the different-corpus setting, fastText reached 83.88 on non-conflation and CBOW 90.64 on coherent neighbourhood. Scores across the two settings were strongly correlated, apart from the sparseness test, which depends on vocabulary coverage. This indicates that models trained on sufficiently large corpora (above a billion tokens) can be compared directly with absolute intrinsic scores.

Key Contributions

Property-to-Test Mapping

A catalogue of seven desired word embedding properties, each paired with an intrinsic test and a selected benchmark, which gives a principled basis for choosing evaluation datasets.

Unified Evaluation Tool

A standalone tool with a plug-and-play architecture in which intrinsic tests are external plugins, so developers can add or remove tests, together with a rule-based summary that grades each property as good, average or poor.

Comparative Intrinsic Tests

Two visual comparative tests, one based on a given word's neighbourhood and one on selected categories such as rare and polysemous words, designed to reduce the subjectivity of earlier comparative evaluation.

Cross-Corpus Comparison Strategy

Empirical guidance on when absolute scores can be used to compare models trained on different corpora, and when to use comparative evaluation instead.

Real-world Impact

The framework gives researchers a single place to evaluate word embeddings from several perspectives and receive an interpretable summary instead of an abstract score. This makes it easier to select an embedding model suited to a particular NLP task, and the guidance on cross-corpus comparison removes a common barrier to comparing published pre-trained models.

Gallery

Sample GloVe and Skip-gram vector spaces visualised through comparative evaluation

Sample GloVe and Skip-gram vector spaces visualised through comparative evaluation

Plug-and-play architecture of the standalone evaluation tool

Plug-and-play architecture of the standalone evaluation tool

Intrinsic evaluation scores of CBOW, Skip-gram, GloVe and fastText trained on the same corpus

Intrinsic evaluation scores of CBOW, Skip-gram, GloVe and fastText trained on the same corpus

Unified evaluation output of the standalone tool

Unified evaluation output of the standalone tool

Project Team

R

R. Archulan

Undergraduate Researcher

Worked on the unified intrinsic evaluation methodology and the development of the evaluation tool.

S

S. Kumaramoorthy

Undergraduate Researcher

Worked on the unified intrinsic evaluation methodology and the development of the evaluation tool.