Skip to main content
QUICK REVIEW

[Paper Review] Redefining Context Windows for Word Embedding Models: An Experimental Study

Lison, Pierre, Pierre Lison|arXiv (Cornell University)|Jan 1, 2017
Topic ModelingComputer Science14 citations
TL;DR

This paper systematically evaluates four hyper-parameters of context windows in continuous Skip-gram models: window size, weighting scheme, window position (left, right, symmetric), and cross-sentential context. Key findings show that right-context windows perform comparably to symmetric windows on semantic similarity tasks, and cross-sentential contexts significantly improve performance on analogy tasks, especially in short-sentence corpora like OpenSubtitles.

ABSTRACT

Distributional semantic models learn vector representations of words through the contexts they occur in. Although the choice of context (which often takes the form of a sliding window) has a direct influence on the resulting embeddings, the exact role of this model component is still not fully understood. This paper presents a systematic analysis of context windows based on a set of four distinct hyperparameters. We train continuous Skip- Gram models on two English-language corpora for various combinations of these hyper-parameters, and evaluate them on both lexical similarity and analogy tasks. Notable experimental results are the positive impact of cross-sentential contexts and the surprisingly good performance of right-context windows.

Motivation & Objective

  • To investigate how different context window configurations affect word embedding quality in distributional semantic models.
  • To determine whether asymmetric windows (left or right) perform as well as symmetric windows in capturing semantic and syntactic relations.
  • To evaluate the impact of cross-sentential contexts—extending beyond sentence boundaries—on embedding performance.
  • To assess the influence of weighting schemes and stop word removal on model performance across similarity and analogy tasks.
  • To provide empirical guidance for hyper-parameter selection in training word embeddings using Skip-gram models.

Proposed method

  • Trained Continuous Skip-gram with Negative Sampling (SGNS) models on two English corpora: Gigaword and OpenSubtitles.
  • Varied four hyper-parameters: maximum window size (1–10), weighting schemes (linear vs. square-root decay with distance), window position (left, right, symmetric), and inclusion of cross-sentential contexts.
  • Applied linear weighting (as in Mikolov et al., 2013b) and square-root decay weighting to assess impact on training and performance.
  • Used stop word removal as a filtering technique to evaluate its effect on model efficiency and performance.
  • Evaluated models on SimLex-999 for lexical similarity (Spearman correlation) and standard analogy benchmarks.
  • Reported average performance across all configurations to identify robust trends and optimal settings.

Experimental results

Research questions

  • RQ1How does the size of the context window affect performance on lexical similarity and analogy tasks?
  • RQ2Does using only right-side context windows yield performance comparable to symmetric windows on semantic similarity and analogy tasks?
  • RQ3To what extent do cross-sentential contexts improve word embedding quality, especially in corpora with short sentences?
  • RQ4Which weighting scheme—linear or square-root decay—provides better performance and training efficiency?
  • RQ5How does stop word removal influence model performance and training speed?

Key findings

  • Right-context windows achieved a SimLex-999 Spearman correlation of 0.43 on OpenSubtitles and 0.44 on Gigaword, matching the performance of symmetric windows (0.43 and 0.45, respectively).
  • Cross-sentential contexts improved analogy task performance by 0.09 on OpenSubtitles (from 0.34 to 0.43) and 0.01 on Gigaword (from 0.66 to 0.65), with the largest gains in short-sentence corpora.
  • The linear weighting scheme outperformed the square-root decay scheme in terms of training speed (25% slower for square-root) and showed no consistent performance advantage.
  • Stop word removal improved analogy task performance by 0.09 on OpenSubtitles (from 0.34 to 0.43) and 0.04 on Gigaword (from 0.64 to 0.68), with no significant impact on similarity tasks.
  • Symmetric windows consistently outperformed single-sided windows on analogy tasks due to their larger effective context size, though right-side windows alone matched symmetric performance on similarity tasks.
  • Window size of 10 yielded the best analogy performance on OpenSubtitles, while window size 2 was optimal for Gigaword, indicating corpus-specific optimal settings.

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.