Training Continuous Space Language Models: Some Practical Issues

Hai Son Le, Alexandre Allauzen, Guillaume Wisniewski, François Yvon

Introduction

Continuous space language models (CSLMs) represent a significant advancement over traditional $n$-gram models by mapping words into a continuous vector space. This approach allows the model to capture semantic relationships—recognizing that "cat" and "kitten" are related—rather than treating every word as a discrete, isolated index. However, the computational cost of training these neural networks is a major barrier, often requiring weeks of processing time on large corpora.

This paper investigates the underlying causes of slow convergence in CSLMs and proposes several initialization and training strategies to accelerate the process while improving final model accuracy.

The Learning Asymmetry

A core insight of this research is the identification of a "learning imbalance" between the two primary components of a CSLM: the context space (input embeddings) and the prediction space (output weights).

In a standard neural language model, the prediction layer is updated by every single training sample. In contrast, a specific word's context embedding is only updated when that word appears in the history. This leads to an asymmetry where the prediction space learns much faster than the context space. For rare words, the context embeddings often remain near their random initialization, failing to capture meaningful semantic properties.

Table 4: Comparison of the 5 most closest words across different models and spaces. Note how the 'standard context' space often yields noisy or unrelated neighbors for rarer words compared to the 'prediction' or 'LBL' spaces.

Proposed Training Strategies

To address this imbalance and speed up convergence, the authors propose several novel training regimes:

  1. One Vector Initialization: Instead of starting with random noise, all words in the context space are initialized to the same vector. This prevents rare words from being scattered randomly and forces the model to move them only when there is sufficient statistical evidence.
  2. Re-initialization: The authors suggest training a model to convergence, then using its well-developed prediction weights to re-initialize the context weights of a new model. This "knowledge transfer" helps the second model escape local optima.
  3. Iterative Re-initialization: A more aggressive variant where the context space is re-initialized with the prediction space's parameters after every epoch, ensuring the two spaces remain synchronized throughout training.
  4. Log-Bilinear (LBL) Reformulation: The authors demonstrate that the LBL model can be viewed as a version of the standard model where context and prediction spaces are "tied" (sharing weights), naturally solving the asymmetry problem.

Experimental Results

The researchers evaluated these methods on a large monolingual English corpus (176 million words). The results demonstrated significant improvements in both efficiency and quality.

Figure 2: Perplexity vs. Epochs. The re-initialization strategies (iterative and standard) achieve lower perplexity and faster convergence compared to the standard baseline.

Key Findings:

  • Efficiency: The "one vector initialization" reached convergence in just 9 epochs, compared to 14 for the standard model, representing a 33% reduction in training time.
  • Perplexity: Re-initialization techniques reduced model perplexity by approximately 10%.
  • Translation Quality: In an Arabic-to-English translation task, these schemes yielded a 0.9 BLEU point increase over a strong $n$-gram baseline.

Conclusion

By recognizing the learning dynamics between context and prediction spaces, researchers can significantly optimize CSLM training. Strategies like re-initialization and one-vector starting points provide a practical roadmap for building more accurate language models with substantially fewer computational resources. Future work remains to adapt these techniques for models using "short-lists" or restricted vocabularies where direct weight-sharing is more complex.

Summary updated

BibTeX
@inproceedings{le2010training,
  author = {Hai Son Le and Alexandre Allauzen and Guillaume Wisniewski and François Yvon},
  title = {{Training Continuous Space Language Models: Some Practical Issues}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2010},
}
Figure