[Paper Review] Character-Level Language Modeling with Hierarchical Recurrent Neural Networks
This paper proposes hierarchical recurrent neural networks (HRNNs) for character-level language modeling, combining character-level input/output with multi-timescale RNN modules to capture long-term dependencies. The model achieves lower perplexity than Kneser-Ney 5-gram language models using only 2% of the parameters, and improves end-to-end speech recognition accuracy with 30% fewer parameters than standard RNNs.
Recurrent neural network (RNN) based character-level language models (CLMs) are extremely useful for modeling out-of-vocabulary words by nature. However, their performance is generally much worse than the word-level language models (WLMs), since CLMs need to consider longer history of tokens to properly predict the next one. We address this problem by proposing hierarchical RNN architectures, which consist of multiple modules with different timescales. Despite the multi-timescale structures, the input and output layers operate with the character-level clock, which allows the existing RNN CLM training approaches to be directly applicable without any modifications. Our CLM models show better perplexity than Kneser-Ney (KN) 5-gram WLMs on the One Billion Word Benchmark with only 2% of parameters. Also, we present real-time character-level end-to-end speech recognition examples on the Wall Street Journal (WSJ) corpus, where replacing traditional mono-clock RNN CLMs with the proposed models results in better recognition accuracies even though the number of parameters are reduced to 30%.
Motivation & Objective
- To address the poor performance of character-level language models (CLMs) compared to word-level models (WLMs) due to longer context requirements.
- To enable CLMs to model long-term dependencies without increasing model size or deviating from standard training procedures.
- To integrate word-level modeling capabilities within a character-level framework for better generalization and out-of-vocabulary word handling.
- To reduce model parameters significantly while maintaining or improving performance on benchmark tasks.
- To enable real-time, low-resource character-level language modeling suitable for end-to-end speech recognition.
Proposed method
- Proposes a hierarchical RNN architecture with a low-level RNN operating at the character level and a high-level RNN operating at the word/sentence boundary level, using different clock rates.
- Uses character-level input and output for the overall model, preserving compatibility with existing RNN CLM training methods.
- Employs long short-term memory (LSTM) units in both low-level and high-level modules to capture long-term dependencies.
- Trains the model using standard cross-entropy loss on character sequences, with the high-level RNN receiving compressed embeddings from the low-level RNN.
- Applies the model to end-to-end speech recognition using beam search decoding with a prefix-tree, maintaining real-time inference capability.
- Uses word boundary tokens (<w>) and sentence boundary tokens (<s>) as synchronization signals for the high-level RNN.
Experimental results
Research questions
- RQ1Can a hierarchical RNN architecture improve character-level language modeling performance by enabling multi-timescale processing?
- RQ2Can such a model achieve better perplexity than traditional n-gram models while using significantly fewer parameters?
- RQ3Can the model maintain compatibility with standard RNN training procedures despite its hierarchical structure?
- RQ4Can the model be effectively applied to real-time end-to-end speech recognition with reduced parameter count?
- RQ5Does integrating word-level abstraction within a character-level framework improve modeling of long-range dependencies?
Key findings
- The HLSTM-B model with 4x1024 units achieves a perplexity of 60.7 on the One Billion Word Benchmark, outperforming the Kneser-Ney 5-gram model despite using only 2% of its parameters.
- The HLSTM-B (4x1024) model achieves a word-level perplexity of 60.7, which is better than the 67.6 perplexity of the interpolated Kneser-Ney 5-gram model with 1.1 billion n-grams.
- On the WSJ Nov’92 20K evaluation set, replacing a 4x1024 deep LSTM LM with the proposed HLSTM-B (4x512) reduces parameters to 30% while improving WER from 7.85% to 7.78%.
- The HLSTM-B (4x512) model achieves a word-level perplexity of 73.6 and a WER of 7.79%, demonstrating strong performance with only 8.48 million parameters.
- The model shows strong correlation between language model perplexity and word error rate in end-to-end ASR, validating its effectiveness in practical applications.
- The model maintains compatibility with standard RNN CLM training, enabling direct use of existing training recipes without modification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.