Skip to main content
QUICK REVIEW

[Paper Review] How to Generate a Good Word Embedding?

Siwei Lai, Kang Liu|arXiv (Cornell University)|Jul 20, 2015
Topic ModelingComputer Science43 citations
TL;DR

This paper provides a systematic evaluation of word embedding training by analyzing model architecture, corpus choice, and hyperparameters. It finds that corpus domain is more critical than size, simpler models like Skip-gram perform well with sufficient data, and early stopping should be based on task-specific development sets rather than training loss, offering practical guidelines for effective word embedding generation.

ABSTRACT

We analyze three critical components of word embedding training: the model, the corpus, and the training parameters. We systematize existing neural-network-based word embedding algorithms and compare them using the same corpus. We evaluate each word embedding in three ways: analyzing its semantic properties, using it as a feature for supervised tasks and using it to initialize neural networks. We also provide several simple guidelines for training word embeddings. First, we discover that corpus domain is more important than corpus size. We recommend choosing a corpus in a suitable domain for the desired task, after that, using a larger corpus yields better results. Second, we find that faster models provide sufficient performance in most cases, and more complex models can be used if the training corpus is sufficiently large. Third, the early stopping metric for iterating should rely on the development set of the desired task rather than the validation loss of training embedding.

Motivation & Objective

  • To fairly compare existing neural-network-based word embedding models under identical conditions.
  • To identify the most influential factors in training effective word embeddings: model choice, corpus selection, and hyperparameter tuning.
  • To provide actionable, data-driven guidelines for practitioners seeking to generate high-quality word embeddings for specific NLP tasks.
  • To evaluate embeddings not only on semantic similarity but also as features and for neural network initialization.

Proposed method

  • Systematic comparison of seven word embedding models: Skip-gram, CBOW, Order, LBL, NNLM, C&W, and GloVe, all trained on the same corpora.
  • Evaluation across three task types: semantic similarity (WordSim353, TOEFL), feature-based NLP (text classification, NER), and neural network initialization (CNN sentiment, POS tagging).
  • Corpus analysis across varying sizes (1B to 10B tokens) and domains (news, biomedical, general) to assess impact on performance.
  • Hyperparameter ablation: tested embedding dimensionality (10–500) and training iterations (1–25), with early stopping based on development set performance.
  • Used early stopping on task-specific development sets to avoid overfitting and improve generalization.
  • Applied consistent training protocols across models to ensure fair comparison, including identical preprocessing and negative sampling for Skip-gram.

Experimental results

Research questions

  • RQ1How do different word embedding models (e.g., Skip-gram, CBOW, LBL) compare in performance across semantic, supervised, and initialization tasks?
  • RQ2How does corpus domain affect word embedding quality, and is it more important than corpus size?
  • RQ3What is the optimal number of training iterations for word embedding models, and should early stopping be based on training loss or task-specific development performance?
  • RQ4What dimensionality of word embeddings provides sufficient performance for different NLP tasks?

Key findings

  • Corpus domain is more important than corpus size; selecting a domain-matched corpus yields better results than using a larger but mismatched corpus.
  • Faster models like Skip-gram and CBOW provide sufficient performance in most cases, with more complex models offering gains only when trained on large, high-quality corpora.
  • Early stopping based on the development set of the target task yields better embeddings than stopping based on training loss, as it prevents overfitting and improves downstream performance.
  • For semantic similarity tasks, higher embedding dimensions (e.g., 300) improve performance, but for most NLP tasks, a dimensionality of 50 is sufficient and often optimal.
  • Multiple training iterations significantly improve performance; the original word2vec one-pass training may underperform due to insufficient optimization.
  • The C&W model showed inconsistent performance with increasing dimensionality, possibly due to its joint probability scoring mechanism, which may not scale well with higher dimensions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.