completed Jan 2018 - Nov 2018

Polysemy Embedding: Sense-based Embedding using an Iterative Embedding Approach

#NLP #Word Embedding #Polysemy #Clustering #Morphology #Tamil
Polysemy Embedding: Sense-based Embedding using an Iterative Embedding Approach

Overview

Word embedding represents a word as a low-dimensional vector learned from a large corpus and has improved many NLP applications such as machine translation, parsing and text classification. However, most embedding models capture only a single sense per word, even though nearly 40% of English words have more than one sense; the word "book", for example, can mean both "reserve" and "a set of written pages". Existing polysemy embedding models often trade accuracy for performance, and polysemy embedding libraries have not reached the standard of ordinary word embedding.

This project presents an iterative polysemy embedding approach that favours accuracy at the cost of performance. An English corpus based on the 1 Billion Word Language Model Benchmark is preprocessed through tokenization, stop-word removal, POS tagging and lemmatization, and the 500 most frequent polysemous words are selected using WordNet. Every occurrence of these words is first labelled as a distinct token, embedded with the BlazingText algorithm on Amazon SageMaker, and then clustered so that occurrences with similar meanings are merged. The corpus is relabelled and re-embedded repeatedly, using k-means in early iterations, WordNet senses as a knowledge-based step, and similarity-score clustering in later iterations. A second strand of the work explores morphological regularities in embedded space, comparing English and Tamil and introducing morpho-lexical sense based word manipulation.

Motivation & Objectives

A distinct vector for each sense of an ambiguous word yields a more powerful and accurate word representation, benefiting NLP tasks that require disambiguation such as part-of-speech tagging and semantic relatedness. Morphology is equally important, especially for morphologically rich, low-resource languages such as Tamil, where prefix and suffix based approaches fail to capture combinations of morphemes. The research pursued the following objectives:

Iterative Polysemy Embedding – To develop an effective iterative embedding and clustering algorithm that produces accurate sense-based embeddings.

Embedding Evaluation Tool – To build a single tool that evaluates word and polysemy embeddings across many relatedness, similarity and analogy datasets.

Morphological Regularities – To compare the morphological information captured in embedded space for a morphologically rich language (Tamil) and a morphologically poor language (English).

Tamil Morphological Generator – To introduce morpheme-level and admissible-word based word manipulation, and to build a corpus and morphological generator for Tamil.

Impact & Results

Performance

The polysemy embedding model was evaluated over four embedding iterations on thirteen word similarity datasets, with accuracy improving on most of them; for example, WS-353-ALL rose from 0.6094 to 0.6770, WS-353-SIM from 0.6871 to 0.7284, MEN from 0.6671 to 0.7244, SimLex-999 from 0.3272 to 0.3760 and Rare Words from 0.2316 to 0.2758. Verb-focused datasets such as Verb-143 and SimVerb-3500 declined, which the team attributes to words lost through stemming. On the sense-aware SCWS dataset, accuracy increased from 0.3470 after the first iteration to 0.5953 after the fourth. The model did not surpass the SCWS benchmark of 0.697 reported by Li and Jurafsky, which the team attributes to a smaller training corpus, but it was consistently more accurate than the underlying word embedding it started from. For Tamil morphological generation, choosing the closest word achieved around 23% accuracy, rising to 50% when the target was sought among the top 10 candidates and 60% among the top 100; restricting evaluation to forms that occur frequently in the corpus raised accuracy to 65% at N=10, with past tense forms reaching 83% at N=100 and several high-frequency forms reaching 100%.

Key Contributions

Iterative Polysemy Embedding Algorithm

A new iterative embedding and clustering approach that relabels and re-embeds the corpus until each polysemous word converges to a set of sense-specific vectors, combining k-means, WordNet-based and similarity-score clustering.

Embedding Evaluation Tool

A word and polysemy embedding evaluation tool that brings together evaluation scripts for many relatedness, similarity, analogy and sense-aware datasets, released to the NLP community.

Morpho-lexical Sense based Tamil Morphological Generator

An unsupervised approach to extract morphemes and manipulate words using morpho-lexical senses and admissible words, implemented as a morphological generator for Tamil and evaluated on a new expert-assisted dataset of inflected forms.

Real-world Impact

The project shows that iterative embedding and clustering can improve the accuracy of an embedding model irrespective of the underlying word embedding approach, offering a path towards more accurate sense-based representations. The morphological work opens the possibility of objectively analysing the morphological richness of a language and provides resources for Tamil, a low-resource language, with potential applications in speech synthesis and recognition, lemmatization, spell and grammar checking, machine translation and search.

Gallery

Iterative embedding and clustering approach: sense instances of a word (e.g. rock) are clustered and merged over successive embedding rounds

Iterative embedding and clustering approach: sense instances of a word (e.g. rock) are clustered and merged over successive embedding rounds

Word similarity accuracy (Spearman rho) across embedding iterations on thirteen English evaluation datasets

Word similarity accuracy (Spearman rho) across embedding iterations on thirteen English evaluation datasets

Senses of the word rock_N being clustered and reduced across embedding iterations

Senses of the word rock_N being clustered and reduced across embedding iterations

Project Team

J

J. Jeyanthasingam

Undergraduate Researcher

Member of the project team researching sense-based polysemy embedding and morphological regularities in word embedding.

N

N. Kavirajan

Undergraduate Researcher

Member of the project team researching sense-based polysemy embedding and morphological regularities in word embedding.

P

P. Paralogarajah

Undergraduate Researcher

Member of the project team researching sense-based polysemy embedding and morphological regularities in word embedding.

K

K. Suthagar

Undergraduate Researcher

Member of the project team researching sense-based polysemy embedding and morphological regularities in word embedding.