Skip to main content
QUICK REVIEW

[Paper Review] Gated Word-Character Recurrent Language Model

Yasumasa Miyamoto, Kyunghyun Cho|arXiv (Cornell University)|Jun 6, 2016
Topic ModelingComputer Science21 references43 citations
TL;DR

This paper proposes a gated word-character recurrent language model that combines word-level and character-level representations using an adaptive gate to improve language modeling. By leveraging bidirectional LSTMs for character-level encoding and a learned gate mechanism, the model achieves lower perplexity on Penn Treebank, BBC, and IMDB datasets, especially excelling with rare and out-of-vocabulary words.

ABSTRACT

We introduce a recurrent neural network language model (RNN-LM) with long short-term memory (LSTM) units that utilizes both character-level and word-level inputs. Our model has a gate that adaptively finds the optimal mixture of the character-level and word-level inputs. The gate creates the final vector representation of a word by combining two distinct representations of the word. The character-level inputs are converted into vector representations of words using a bidirectional LSTM. The word-level inputs are projected into another high-dimensional space by a word lookup table. The final vector representations of words are used in the LSTM language model which predicts the next word given all the preceding words. Our model with the gating mechanism effectively utilizes the character-level inputs for rare and out-of-vocabulary words and outperforms word-level language models on several English corpora.

Motivation & Objective

  • Address the limitations of word-level language models in handling rare and out-of-vocabulary (OOV) words by integrating character-level information.
  • Overcome the loss of morphological information in word-level embeddings by incorporating subword-level character representations.
  • Develop a trainable gate mechanism that adaptively balances word-level and character-level representations based on input word characteristics.
  • Improve language modeling performance on diverse corpora by dynamically selecting the most informative representation for each word.
  • Demonstrate that the gating mechanism enables effective utilization of character-level inputs without requiring manual tuning of the mixture ratio.

Proposed method

  • Uses a bidirectional LSTM to encode character-level sequences of each word into a dense vector representation.
  • Employs a learned word lookup table to project word indices into high-dimensional word vectors.
  • Applies a sigmoid-gated fusion mechanism that combines the two representations: $\mathbf{x}_{w_t} = (1 - g_{w_t}) \mathbf{x}^{\text{word}}_{w_t} + g_{w_t} \mathbf{x}^{\text{char}}_{w_t}$, where $g_{w_t} = \sigma(\mathbf{v}_g^\top \mathbf{x}^{\text{word}}_{w_t} + b_g)$.
  • Introduces a two-phase pre-training strategy: first train only on word-level inputs for m epochs, then only on character-level inputs for m epochs, before jointly training both.
  • Uses a fixed learning rate of 1 for the first m epochs and 0.1 for the next m epochs to stabilize initial training dynamics.
  • Employs standard LSTM language modeling with cross-entropy loss and softmax output over the vocabulary.

Experimental results

Research questions

  • RQ1Can a gated fusion mechanism between word-level and character-level representations improve language modeling performance compared to pure word-level models?
  • RQ2Does the adaptive gate learn to prioritize character-level representations for rare or OOV words, thereby improving robustness?
  • RQ3How does pre-training affect the distribution of gating values and overall model performance?
  • RQ4To what extent do character-level representations compensate for the lack of word-level vector estimates in low-frequency or unseen words?
  • RQ5Is the learned gating mechanism more effective than a fixed mixture ratio in balancing word and character inputs?

Key findings

  • The gated word-character model with pre-training achieves the lowest perplexity on the Penn Treebank and IMDB Movie Review datasets, outperforming both word-level and character-level baselines.
  • On the BBC dataset, the model without pre-training achieves the lowest perplexity, indicating that pre-training may not always be necessary and can depend on dataset characteristics.
  • The model assigns significantly higher gating values to the OOV token <unk> on BBC and IMDB, showing effective use of character-level representations for unknown words.
  • Gating values are generally low, but the L2 norm of character-level word vectors is substantially higher (mean 52.77 vs. 6.27 for top 1000 words in IMDB), indicating that the gate compensates for scale differences.
  • Pre-training leads to less correlation between word frequency and gating values, suggesting a more balanced initialization of word and character representations.
  • The adaptive gate mechanism enables the model to learn a data-driven mixture of representations, reducing the need for manual hyperparameter tuning of the gate value.

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.