Skip to main content
QUICK REVIEW

[Paper Review] Alternative structures for character-level RNNs

Piotr Bojanowski, Armand Joulin|arXiv (Cornell University)|Nov 19, 2015
Natural Language Processing TechniquesComputer Science20 references39 citations
TL;DR

This paper proposes two novel architectural modifications to character-level RNNs to improve efficiency and performance: (1) conditioning character-level representations on prior word representations, and (2) conditioning the output softmax on recent character history. Both approaches achieve performance comparable to large character-level RNNs with significantly reduced computational cost, particularly excelling on morphologically rich languages like Finnish and Hungarian.

ABSTRACT

Recurrent neural networks are convenient and efficient models for language modeling. However, when applied on the level of characters instead of words, they suffer from several problems. In order to successfully model long-term dependencies, the hidden representation needs to be large. This in turn implies higher computational costs, which can become prohibitive in practice. We propose two alternative structural modifications to the classical RNN model. The first one consists on conditioning the character level representation on the previous word representation. The other one uses the character history to condition the output probability. We evaluate the performance of the two proposed modifications on challenging, multi-lingual real world data.

Motivation & Objective

  • Address the high computational cost and performance limitations of standard character-level RNNs, especially for languages with large vocabularies or complex morphology.
  • Overcome the inefficiency of fully connected hidden layers in character-level RNNs by introducing structural modifications that increase model capacity without increasing hidden layer size.
  • Reduce out-of-vocabulary (OoV) word issues common in word-level models by leveraging subword-level representations through character-level RNNs.
  • Develop a more efficient and scalable alternative to subword units or word embeddings for handling rare or unseen words in low-vocabulary sequence modeling.
  • Enable end-to-end learning that integrates spelling correction and language modeling, avoiding disjointed pipelines in NLP systems.

Proposed method

  • Propose a hybrid model that combines a character-level RNN with a word-level RNN, where the character representation is conditioned on the previous word's hidden state.
  • Introduce a conditional output mechanism where the softmax output layer is conditioned on the recent history of characters (e.g., N previous characters), effectively increasing model capacity without expanding the hidden layer.
  • Use a fixed-size context window of previous characters to condition the output probability distribution, allowing the model to learn long-range dependencies more efficiently.
  • Train the models end-to-end on multi-lingual, real-world data using cross-entropy loss for character prediction.
  • Compare the proposed models against standard character-level RNNs with hidden layers of size 200 and 500, using both small and large model configurations.
  • Optimize the number of history steps (N) for the conditional model on the validation set to balance performance and computational cost.

Experimental results

Research questions

  • RQ1Can conditioning character-level RNNs on word representations improve performance and reduce computational cost compared to standard character-level RNNs?
  • RQ2Can conditioning the output softmax on recent character history increase model capacity without increasing the hidden layer size or computational complexity?
  • RQ3How do the proposed models perform on low-resource and morphologically rich languages with high OoV rates, such as Finnish and Hungarian?
  • RQ4To what extent can these architectural modifications close the performance gap between character-level and word-level RNNs?
  • RQ5Can these models effectively handle out-of-vocabulary words and spelling variations without requiring separate spell-checking or normalization modules?

Key findings

  • The mixed model (character + word representation) and the conditional model (history-conditioned output) both achieve a per-character entropy of 1.36 bits per character (BPC) on average, matching the performance of a large character-level RNN with a 500-unit hidden layer.
  • The conditional model outperforms all baselines on morphologically rich languages such as Finnish and Hungarian, achieving a BPC of 1.38 and 1.36 respectively, compared to 1.43 and 1.42 for the standard CRNN with 500 units.
  • The proposed models reduce computational cost by avoiding large hidden layers, while maintaining performance comparable to larger standard RNNs.
  • On average, the conditional model achieves a 12% improvement in BPC over the standard character-level RNN with a 200-unit hidden layer, reducing error from 1.61 to 1.36 BPC.
  • The models significantly reduce the out-of-vocabulary rate (OOVR) in low-resource and agglutinative languages, with OOVR dropping from 6.91% (Finnish) in standard CRNN to 1.38% in the conditional model.
  • The results suggest that architectural innovations can close the performance gap between character-level and word-level RNNs, especially when combined with context-aware conditioning mechanisms.

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.