Angular-Based Word Meta-Embedding Learning

James O'Neill, Danushka BollegalaarXiv 2018

Abstract

Meta-embedding learning aims to combine multiple word embedding sets into a single, more robust representation. This paper identifies a significant flaw in standard Euclidean-based ($L_2$) loss functions for autoencoder-based meta-embeddings: they are biased by word frequency. We demonstrate that angular-based loss functions, such as Cosine Similarity and KL-Divergence, prioritize semantic direction over vector magnitude, leading to superior performance across multiple word similarity benchmarks.

Introduction

In Natural Language Processing, different word embedding algorithms (e.g., GloVe, FastText, Word2Vec) capture different semantic and syntactic nuances. Meta-embedding is the process of ensembling these various vectors to create a more robust representation. The challenge lies in how to combine them without washing out unique information or creating unwieldy vectors.

Advanced unsupervised methods use Autoencoders to compress these sets. However, most existing Autoencoders use Mean Squared Error (MSE/ $L_2$ loss). The authors point out that the $L_2$ norm of a word vector is often proportional to the word's frequency. Training meta-embeddings to minimize $L_2$ distance inadvertently forces the model to prioritize word frequency over pure semantic meaning.

Methods

The authors evaluate several Autoencoder (AE) architectures and loss functions designed to preserve "semantic orientation."

Architectures

  • Concatenated AE (CAEME): Merges all input embeddings into one long vector before encoding.
  • Decoupled AE (DAEME): Keeps input embeddings separate during encoding but uses a shared reconstruction loss.
  • Target Autoencoder (TAE): A novel variation where the model uses $N-1$ embedding sets to predict the $N^{th}$ "target" embedding set.

Angular Loss Functions

The core contribution is the shift away from standard distance metrics to angular-based losses:

  1. Squared Cosine Proximity (SCP): Measures the angle between the reconstructed vector and the target, prioritizing the "direction" of the word's meaning.
  2. KL-Divergence: Treats vectors as probability distributions to capture complex semantic relationships, particularly for rare words.

Results and Discussion

The researchers evaluated their meta-embeddings on six standard word similarity benchmarks, including Simlex-999, WordSim-353, and RareWord (RW). Source embeddings included Skipgram, CBOW, FastText, GloVe, LexVec, HPCA, and HDC.

Key Findings

  • Direction Over Magnitude: Because vector length is heavily influenced by frequency, $L_2$ loss introduces noise. Angular losses consistently outperformed standard $L_2$ and $L_1$ autoencoders.
  • KL-Divergence for Complex Semantics: KL-Divergence performed exceptionally well on Simlex and RareWord, suggesting it captures non-linear semantic relations better than linear projections.
  • Ensemble Superiority: Meta-embeddings consistently outperformed the best single individual embeddings (e.g., Skipgram), validating the ensembling approach.

On the MEN dataset, the Concatenated Cosine-AE achieved a score of 81.94, surpassing standard concatenation (80.33). On Simlex-999, the KL-AE reached 45.10, outperforming Skipgram (44.19).

Conclusion

This work demonstrates that the choice of loss function is critical in meta-embedding learning. By focusing on semantic direction through angular-based losses, models can avoid frequency bias and produce more accurate representations. Future work should explore the performance of these embeddings in downstream tasks like Sentiment Analysis and refine the target selection process in TAE models.

Summary updated

BibTeX
@misc{oneill2018angular,
  author = {James O'Neill and Danushka Bollegala},
  title = {{Angular-Based Word Meta-Embedding Learning}},
  year = {2018},
  eprint = {1808.04334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.04334},
}
Figure