Skip to main content
QUICK REVIEW

[Paper Review] Character-Word LSTM Language Models

Lyan Verwimp, Joris Pelemans|arXiv (Cornell University)|Apr 10, 2017
Natural Language Processing TechniquesComputer Science21 references18 citations
TL;DR

This paper proposes a Character-Word Long Short-Term Memory (CW-LSTM) language model that concatenates word-level and character-level embeddings to improve language modeling performance. By incorporating subword information, the model reduces perplexity by up to 4.57% on Dutch and 2.77% on English compared to baseline word-level LMs, while also reducing model parameters, especially for rare and out-of-vocabulary words.

ABSTRACT

We present a Character-Word Long Short-Term Memory Language Model which both reduces the perplexity with respect to a baseline word-level language model and reduces the number of parameters of the model. Character information can reveal structural (dis)similarities between words and can even be used when a word is out-of-vocabulary, thus improving the modeling of infrequent and unknown words. By concatenating word and character embeddings, we achieve up to 2.77% relative improvement on English compared to a baseline model with a similar amount of parameters and 4.57% on Dutch. Moreover, we also outperform baseline word-level models with a larger number of parameters.

Motivation & Objective

  • Address the limitations of word-level language models in handling rare and out-of-vocabulary (OOV) words due to insufficient training data and lack of morphological structure.
  • Improve modeling of infrequent and unknown words by leveraging subword (character-level) information to capture structural similarities.
  • Reduce the number of model parameters by shrinking the word embedding size through integration of character embeddings, without sacrificing performance.
  • Investigate the impact of character embedding size, order (forward, backward, both), weight sharing, and model architecture on language modeling performance.
  • Demonstrate that character-level information enhances OOV word probability estimation, leading to better generalization in low-resource scenarios.

Proposed method

  • Concatenate pre-trained word embeddings with character embeddings to form a joint character-word representation fed into an LSTM.
  • Use bidirectional character representations by processing characters in forward and/or backward order to capture morphological patterns.
  • Apply weight sharing across characters to reduce the size of the character embedding matrix and lower model complexity.
  • Maintain a fixed total embedding dimension by reducing the word embedding size proportionally as character embeddings are added.
  • Train the LSTM on both English (PTB) and Dutch (CGN) datasets using standard language modeling objectives.
  • Use character-level one-hot vectors as input to the character embedding layer, preserving sequential order and enabling the model to learn subword patterns.

Experimental results

Research questions

  • RQ1Can combining word and character embeddings improve perplexity in language modeling compared to word-level LMs with the same number of parameters?
  • RQ2Does incorporating character-level information reduce the number of parameters while maintaining or improving performance?
  • RQ3How does the order of character processing (forward, backward, or both) affect model performance and perplexity?
  • RQ4To what extent does the model improve OOV word probability estimation compared to a standard word-level LM?
  • RQ5Does weight sharing across characters reduce model size without significantly degrading performance?

Key findings

  • The CW-LSTM model achieves a 2.77% relative perplexity improvement on English and 4.57% on Dutch compared to a baseline word-level LM with the same number of parameters.
  • The model outperforms word-level LMs with a larger number of parameters, demonstrating that character information enhances representation efficiency.
  • Using characters in reverse (backward) order yields better perplexity than forward order, with the best results achieved by combining both forward and backward character sequences.
  • The model reduces the number of parameters by shrinking the word embedding size while maintaining performance, due to the smaller vocabulary of character embeddings.
  • The CW-LSTM assigns higher probabilities to target words following OOV words in 17,483 cases compared to 10,724 cases with the word-level model, confirming improved OOV handling.
  • Weight sharing across characters reduces model size but causes a small increase in perplexity, indicating a trade-off between efficiency and performance.

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.