Skip to main content
QUICK REVIEW

[Paper Review] Representation Degeneration Problem in Training Natural Language Generation Models

Jun Gao, Di He|arXiv (Cornell University)|Jul 27, 2019
Topic ModelingComputer Science29 references105 citations
TL;DR

The paper identifies a representation degeneration problem where word embeddings collapse into a narrow cone during likelihood-based training with weight tying, and proposes a cosine-regularized loss (MLE-CosReg) to mitigate it, improving language modeling and machine translation performance.

ABSTRACT

We study an interesting problem in training neural network-based models for natural language generation tasks, which we call the \\emph{representation degeneration problem}. We observe that when training a model for natural language generation tasks through likelihood maximization with the weight tying trick, especially with big training datasets, most of the learnt word embeddings tend to degenerate and be distributed into a narrow cone, which largely limits the representation power of word embeddings. We analyze the conditions and causes of this problem and propose a novel regularization method to address it. Experiments on language modeling and machine translation show that our method can largely mitigate the representation degeneration problem and achieve better performance than baseline algorithms.

Motivation & Objective

  • Motivate understanding of why word embeddings degenerate under likelihood training with weight tying in NLG tasks.
  • Analyze conditions under which embeddings collapse and relate it to hidden state geometry and training dynamics.
  • Propose a practical regularization to enlarge embedding space and improve model expressiveness.
  • Empirically validate the approach on language modeling and machine translation benchmarks.
  • Offer insights into how regularization affects embedding structure and model performance.

Proposed method

  • Empirical visualization of embeddings under Transformer and comparison with Word2Vec and classification-task embeddings using 2D projections (SVD).
  • Theoretical analysis linking degeneration to the convex hull of hidden states and layer normalization.
  • Derivation of a cosine-regularized maximum likelihood objective (MLE-CosReg) that minimizes pairwise cosine similarities among normalized word embeddings.
  • Sensitivity analysis and justification showing the regularizer expands the embedding space by increasing its representational diversity.
  • Extensive experiments on WikiText-2 language modeling and WMT 2014 English↔German translation to compare against baselines.

Experimental results

Research questions

  • RQ1What causes word embeddings to degenerate when training NLG models with likelihood loss and weight tying?
  • RQ2How does the geometry of hidden states and the optimization dynamics of low-frequency words contribute to degeneration?
  • RQ3Can a simple regularization targeting cosine similarity between normalized word embeddings mitigate degeneration without adding model complexity?
  • RQ4Do embeddings regressed by MLE-CosReg translate into measurable gains in language modeling perplexity and machine translation BLEU scores?

Key findings

  • Embeddings in NLG models with weight tying tend to cluster in a narrow cone and exhibit positive correlations, unlike Word2Vec or standard classification embeddings.
  • The degeneration is linked to the structure of hidden states; if the convex hull of hidden states does not contain the origin, uniformly negative directions exist, driving rare word embeddings toward infinity in some directions.
  • Even with realistic rare word settings, optimization behaves like non-appeared tokens, promoting convergence of embeddings for low-frequency words.
  • Introducing a cosine regularization term (MLE-CosReg) alongside the standard MLE objective expands the embedding space, increasing representational diversity and decreasing dominant eigenvalue concentration.
  • Empirical results show MLE-CosReg yields improvements: language modeling—perplexity gains up to 2.0 points on WikiText-2; translation—BLEU gains of 1.08 and 0.93 on English→German and German→English respectively, with additional gains on larger Transformer variants.
  • Visualization and singular value analysis indicate embeddings become more uniformly distributed and exhibit a more balanced spectrum under MLE-CosReg.

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.