Skip to main content
QUICK REVIEW

[Paper Review] Word2vec Skip-gram Dimensionality Selection via Sequential Normalized Maximum Likelihood

Pham Thuc Hung, Kenji Yamanishi|arXiv (Cornell University)|Aug 18, 2020
Natural Language Processing TechniquesComputer Science25 references5 citations
TL;DR

This paper proposes a novel information criteria-based method for selecting the optimal dimensionality in word2vec Skip-gram models using the Sequential Normalized Maximum Likelihood (SNML) criterion. By framing word2vec as a probabilistic distribution estimation problem, the method selects dimensions that best approximate the true contextual distribution, outperforming AIC, BIC, cross-validation, and PIP in empirical evaluations on both synthetic and real-world NLP tasks.

ABSTRACT

In this paper, we propose a novel information criteria-based approach to select the dimensionality of the word2vec Skip-gram (SG). From the perspective of the probability theory, SG is considered as an implicit probability distribution estimation under the assumption that there exists a true contextual distribution among words. Therefore, we apply information criteria with the aim of selecting the best dimensionality so that the corresponding model can be as close as possible to the true distribution. We examine the following information criteria for the dimensionality selection problem: the Akaike Information Criterion, Bayesian Information Criterion, and Sequential Normalized Maximum Likelihood (SNML) criterion. SNML is the total codelength required for the sequential encoding of a data sequence on the basis of the minimum description length. The proposed approach is applied to both the original SG model and the SG Negative Sampling model to clarify the idea of using information criteria. Additionally, as the original SNML suffers from computational disadvantages, we introduce novel heuristics for its efficient computation. Moreover, we empirically demonstrate that SNML outperforms both BIC and AIC. In comparison with other evaluation methods for word embedding, the dimensionality selected by SNML is significantly closer to the optimal dimensionality obtained by word analogy or word similarity tasks.

Motivation & Objective

  • To address the lack of data-driven, evaluation-dataset-free methods for selecting optimal word2vec Skip-gram dimensionality.
  • To apply information criteria—specifically SNML, AIC, and BIC—to dimensionality selection in word2vec models.
  • To develop efficient heuristics for computing the computationally expensive SNML codelength.
  • To empirically validate that SNML selects dimensionality closer to optimal than existing methods on word analogy and similarity tasks.
  • To establish a general framework applicable to other embedding models via likelihood-based NML/SNML computation.

Proposed method

  • Formalizes word2vec Skip-gram as implicit probability distribution estimation under a true contextual distribution assumption.
  • Applies information criteria (AIC, BIC, SNML) to select dimensionality that minimizes model divergence from the true distribution.
  • Introduces novel heuristics to reduce the computational cost of SNML codelength calculation, enabling practical use.
  • Employs both original Skip-gram (oSG) and Skip-gram with Negative Sampling (SGNS) models to validate the method across variants.
  • Uses likelihood functions from oSG and SGNS to compute NML and SNML codelengths for model comparison.
  • Applies the SNML criterion to select dimensionality that minimizes total codelength, balancing model fit and complexity.

Experimental results

Research questions

  • RQ1Can information criteria such as SNML be effectively applied to dimensionality selection in word2vec Skip-gram models?
  • RQ2How does SNML compare to AIC, BIC, cross-validation, and PIP in selecting dimensionality that aligns with optimal performance on NLP tasks?
  • RQ3Can efficient heuristics be developed to make SNML computationally feasible for real-world word embedding applications?
  • RQ4Does SNML selection yield dimensionality closer to the optimal dimensionality identified by word analogy and similarity tasks?
  • RQ5Can the proposed method generalize to other embedding models by defining their likelihood functions?

Key findings

  • SNML outperforms AIC, BIC, cross-validation, and PIP in selecting dimensionality that is significantly closer to the optimal dimensionality on word analogy and similarity tasks.
  • For synthetic data, the SNML-selected dimensionality produced a contextual distribution closest to the true distribution, confirming its theoretical soundness.
  • On real text datasets, SNML selected dimensionality that was closer to optimal than AIC, BIC, CV, and PIP in 4 out of 4 tasks (WA, WS, MEN, MTurk) for SGNS, and in 3 out of 4 tasks for oSG.
  • The SNML criterion consistently favors lower but sufficient dimensionality, effectively penalizing overfitting while maintaining high performance.
  • The proposed heuristics enable practical computation of SNML codelength, overcoming a major bottleneck in applying SNML to word embeddings.
  • The method is the first to apply information criteria to word embedding dimensionality selection without relying on handcrafted evaluation datasets.

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.