Who Needs Words? Lexicon-Free Speech Recognition
Tatiana Likhomanenko, Gabriel Synnaeve, Ronan Collobert

TL;DR
This paper demonstrates that lexicon-free, character-based language models can match or outperform traditional lexicon-based models in speech recognition, especially for out-of-vocabulary words, by leveraging large context through convolutional architectures.
Contribution
It shows that character-based LMs, particularly convolutional ones, can effectively replace word-based LMs in lexicon-free speech recognition, improving OOV word handling.
Findings
Character-based LMs perform as well as word-based LMs in WER.
Convolutional LMs effectively leverage large contexts.
Lexicon-free decoding outperforms lexicon-based methods on OOV words.
Abstract
Lexicon-free speech recognition naturally deals with the problem of out-of-vocabulary (OOV) words. In this paper, we show that character-based language models (LM) can perform as well as word-based LMs for speech recognition, in word error rates (WER), even without restricting the decoding to a lexicon. We study character-based LMs and show that convolutional LMs can effectively leverage large (character) contexts, which is key for good speech recognition performance downstream. We specifically show that the lexicon-free decoding performance (WER) on utterances with OOV words using character-based LMs is better than lexicon-based decoding, both with character or word-based LMs.
| Language Model | Size | Rcp. field (char.) | nov93dev |
| word 4-gram | 878 M | 32 | 156 |
| char 5-gram | 3.3 M | 5 | (714, 1285) |
| char 10-gram | 447 M | 10 | (211, 243) |
| char 15-gram | 546 M | 15 | (185, 205) |
| char 15-gram | 3.5 G | 15 | (186, 203) |
| char 20-gram | 836 M | 20 | (177, 196) |
| char 20-gram | 9.7 G | 20 | (180, 196) |
| word GCNN-14B | 1.1 G | 450 | 80 |
| char GCNN-14B | 936 M | 57 | (79, 95) |
| char GCNN-20B | 1.3 G | 81 | (76, 90) |
| Language Model | Size | dev-clean | dev-other |
|---|---|---|---|
| word 4-gram | 13 G | 148 | 137 |
| char 5-gram | 7.7 M | (597, 1000) | (515, 869) |
| char 10-gram | 2.5 G | (198, 230) | (180, 210) |
| char 15-gram | 6.5 G | (165, 180) | (151, 165) |
| char 17-gram | 9.5 G | (163, 178) | (148, 162) |
| char 20-gram | 13 G | (162, 177) | (147, 161) |
| word GCNN-14B | 1.8 G | 57 | 58 |
| char GCNN-14B | 936 M | (72, 88) | (70, 84) |
| char GCNN-20B | 1.3 G | (65, 76) | (64, 75) |
| Language Model | Lexicon | dev-clean | dev-other | test-clean | test-other | ||||
|---|---|---|---|---|---|---|---|---|---|
| WER | CER | WER | CER | WER | CER | WER | CER | ||
| CAPIO (Ensemble) [38] | yes | ||||||||
| CAPIO (Single)555Speaker adaptation; pronunciation lexicon [38] | yes | ||||||||
| Learnable front-end [17] | yes | ||||||||
| DeepSpeech266612k hours AM train set and common crawl LM [14] | yes | ||||||||
| Sequence-to-sequence [18] | yes | ||||||||
| word 4-gram | yes | ||||||||
| char 15-gram | yes | ||||||||
| char 20-gram | yes | ||||||||
| char 15-gram | no | ||||||||
| char 20-gram | no | ||||||||
| word GCNN-14B | yes | ||||||||
| char GCNN-20B | yes | ||||||||
| char GCNN-20B | no | ||||||||
| Language Model | Lexicon | nov93dev | nov92 | ||
|---|---|---|---|---|---|
| WER | CER | WER | CER | ||
| Regular LF-MMI [20] | yes | ||||
| DeepSpeech2 [14] | yes | ||||
| CNN-BLSTM-HMM777Speaker adaptation; 3k acoustic states [39] | yes | ||||
| Learnable front-end [17] | yes | ||||
| EE-LF-MMI (word LM)888Data augmentation; -gram LM [20] | yes | ||||
| EE-LF-MMI (char LM) [20] | no | ||||
| word 4-gram | yes | ||||
| char 15-gram | yes | ||||
| char 20-gram | yes | ||||
| char 15-gram | no | ||||
| char 20-gram | no | ||||
| word GCNN-14B | yes | ||||
| char GCNN-20B | yes | ||||
| char GCNN-20B | no | ||||
| Language Model | Lexicon | test-clean IV | test-other IV | test-clean OOV | test-other OOV | ||||
|---|---|---|---|---|---|---|---|---|---|
| WER | CER | WER | CER | WER | CER | WER | CER | ||
| word 4-gram | yes | ||||||||
| char 15-gram | yes | ||||||||
| char 20-gram | yes | ||||||||
| char 15-gram | no | ||||||||
| char 20-gram | no | ||||||||
| word ConvLM | yes | ||||||||
| char ConvLM-20B | yes | ||||||||
| char ConvLM-20B | no | ||||||||
| T | fauchelevent limped along behind the hearse in a very contented frame of mind |
|---|---|
| W | lochleven limped along behind the hearse in a very contented frame of mind |
| C | lochleven limped along behind the hearse in a very contented frame of mind |
| F | fauchelevent limped along behind the hearse in a very contented frame of mind |
| T | … he did not want to join his own friends that is sergey ivanovitch stepan arkadyevitch sviazhsky and … |
| W | … he did not come to join his own friends that a soldier ivanovitch step on markovitch the sky and … |
| C | … he did not own to join his own friends that a sojer ivanovitch step on radovitch totski and … |
| F | … he did not own to join his own friends that a sojer ivanovitch stepan arkadyevitch tievski and … |
| T | menahem king of israel had died and was succeeded by his son pekahiah |
| W | many a king of israel had died and was succeeded by his son pekah |
| C | many king of israel had died and was succeeded by his son pekah |
| F | many a king of israel had died and was succeeded by his son pekaiah |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Who Needs Words? Lexicon-Free Speech Recognition
Tatiana Likhomanenko
Facebook AI Research
Menlo Park, USA
&Gabriel Synnaeve
Facebook AI Research
New York, USA
&Ronan Collobert
Facebook AI Research
Menlo Park, USA
Abstract
Lexicon-free speech recognition naturally deals with the problem of out-of-vocabulary (OOV) words. In this paper, we show that character-based language models (LM) can perform as well as word-based LMs for speech recognition, in word error rates (WER), even without restricting the decoding to a lexicon. We study character-based LMs and show that convolutional LMs can effectively leverage large (character) contexts, which is key for good speech recognition performance downstream. We specifically show that the lexicon-free decoding performance (WER) on utterances with OOV words using character-based LMs is better than lexicon-based decoding, both with character or word-based LMs.
K****eywords speech recognition, beam-search decoder, out-of-vocabulary words, lexicon-free
1 Introduction
Character-based models permeated text classification [1], language modeling [2, 3, 4], machine translation [5, 6, 7, 8, 9, 10], and automatic speech recognition (ASR) [11, 12, 13]. However, most competitive ASR systems, character based or not, use a beam search decoder constrained on a word-level language model and lexicon [14, 15, 16, 17]. In recent works [18, 19], authors achieved competitive results with acoustic models (AM) and LMs operating on word pieces, and a lexicon-free decoder. To the best of our knowledge, the first ASR system to achieve competitive results with a character-based LM and without a lexicon (on Switchboard and WSJ) was [20], that our lexicon-free character-based ConvLM surpasses on WSJ (see Table 4).
The main advantage of a lexicon-free approach is that it allows the decoder to handle out-of-vocabulary (OOV) words: the decoder and the language model are responsible not only for scoring words but usually also restrict the vocabulary. Drawbacks sometimes include system complexity and most often poorer performance than in the lexicon based case. The first lexicon-free beam-search decoder aiming at dealing with OOV was benchmarked on Switchboard [21], although with a significantly worse word error rate (WER) than lexicon-based systems. Other recent works in this direction include [22, 23] on the English and [24, 25] on the Arabic and Finnish languages.
Here, we study a simple end-to-end ASR system combining a character level acoustic model with a character level language model through beam search. We show that it can yield competitive word error rates on the WSJ and Librispeech corporas, even without a lexicon. Finally, our model shows significant word error rates improvement on utterances that include out-of-vocabulary words.
2 Setup
Acoustic model (AM)
We consider in this paper 1D gated convolutional neural networks [26, 15], trained to map speech features (log-mel filterbanks) to their corresponding letter transcription. The training criterion is the auto segmentation criterion (ASG) [27]. The token set contains 31 graphemes: the standard English alphabet, the apostrophe and period, two repetition characters (e.g. the word ann is transcribed as an1), and a silence token (|) used as word boundary.
Language model (LM)
Our language models are character-based. We evaluated -gram language models, as well as gated convolutional language models (ConvLMs) [26], and show that with enough context these language models can match (in perplexity) their word-based counterparts. The LM training data was pre-processed to be consistent with the AM training data: the silence character (|) defines word boundaries, and repetition symbols are used when letter repetitions occur.
Beam-search decoder
We extended the beam-search decoder from [15] to support character-level language models. Given a word transcription , we denote the corresponding acoustic score and the corresponding LM likelihood. The beam-search decoder generates transcriptions by finding the argmax of the following score [27]:
[TABLE]
where is the sequence of letters corresponding to the transcription . The hyper-parameters , and weight the language model, word penalty and silence penalty, respectively. The decoder has two additional parameters: (i) the beam size and (ii) a beam threshold, controlling which hypothesis can make it to the beam.
Experiments
We experiment with the Wall Street Journal (WSJ) dataset [28, 29, 30] (about 81 hours of transcribed audio data) and the Librispeech dataset [31] (1000 hours with clean and noisy speech).
3 Language Model Experiments
We consider word-level -gram and ConvLM-based language models as baseline, and compare them in word perplexity with their character-level counterpart.
Data preparation
Language models for both WSJ and Librispeech are trained with the corresponding language model data available for these datasets. For word-level model training, we keep all words (162K) for WSJ and use only the most frequent 200K (out of 900K) words for Librispeech (words appearing less than 10 times are dropped). Words outside this scope are replaced by unknown.
n-gram LMs
All models were trained with KenLM [32]. For both Librispeech and WSJ, we trained -gram word-level language models as a baseline. For character-level language models, we study how the context width impacts perplexity, training -grams ranging from to . For large values of , we pruned the models by thresholding rarely-occurring -grams: 6,7,8-grams appearing once, 9-grams appearing once or twice, and all -grams for appearing times were dropped.
ConvLMs
As a baseline for ConvLMs, we use the ‘GCNN-14B‘ word-level LM architecture from [26], which achieved competitive results on several language model benchmarks. This network contains 14 convolutional-residual blocks with a growing number of channels and gated linear units as activation functions, resulting in 318M parameters and an effective receptive field of 57 tokens. An adaptive softmax [33] over words follows the convolutional layers.
For character-level LMs, we consider both the ‘GCNN-14B‘ architecture and a deeper variant (20 convolutional layers) dubbed ‘GCNN-20B‘, with a larger receptive field of 81 tokens. For both configurations a softmax (over letters) follows the last convolutional layer. The resulting number of parameters was 163M for ‘GCNN-14B‘ and 224M for ‘GCNN-20B‘. Dropout is used at each convolutional and linear layer: with probabilities 0.2 for WSJ and 0.1 for Librispeech.
ConvLMs were trained with the fairseq toolkit111https://github.com/pytorch/fairseq [34], using Nesterov accelerated gradient descent [35] with fixed learning rate. Gradient clipping and weight normalization are used following [26].
Word-level perplexity for character-level LMs
To compare word and character-level LMs, we estimate a word-level perplexity222Defined as , is a number of words in data. for character-level LMs. The word probability can be estimated with:
[TABLE]
where are letters in a word and the last letter is a silence symbol with which the word finishes, — the previous context. However, this approach does not take into account that word-level LMs are constrained to a fixed-size lexicon, while character-based LMs have virtually an infinite vocabulary. We thus re-normalize (2), taking into account only words from the word-level LM vocabulary :
[TABLE]
For large vocabulary the denominator in (3) is computationally expensive. The probability (2) can be used as an upper bound of (3) (see, for example, [36]) while the lower bound can be obtained by taking in the denominator of (3) the sum over most probable (by word-level LM) words which cover 95% of word-level LM distribution.
We then exclude from the perplexity computation words which are not presented in the word-level LM vocabulary (-gram and ConvLM models have the same ).333Only about 20 word occurrences for nov93dev in WSJ, and around 200 (300) for clean (other) in Librispeech.
Results
The comparison of different language models is presented in Tables 1 and 2 for WSJ and Librispeech, respectively. It can be seen that (as expected) increasing the context decreases perplexity for both -gram models and ConvLMs. With -grams, pruning is critical to avoid overfitting. On both benchmarks character-level language models already have similar performance for -grams with , and are clearly outperformed by ConvLMs. With enough context, character-level LMs appear to be in the same ballpark as word-level LMs.
4 ASR Experiments
In this section, we decode the output of a single acoustic model trained on WSJ or Librispeech, through a beam-search procedure constrained by the LMs trained in Section 3. Both AM training and decoding were performed with the wav2letter++ open source library444https://github.com/facebookresearch/wav2letter [37]. The decoder was adapted to support character-level LMs, as well as lexicon-free decoding, alleviating the need for a word lexicon while decoding.
Data preparation
For WSJ, we consider the standard subsets si284, nov93dev and nov92 for training, validation and test, respectively. For Librispeech, all the available training data was used for training. Validation and test were achieved according to the available two configurations (clean for clean speech and other for "noisy" speech). All hyper-parameter tuning was performed on validation sets, and only final performance was evaluated on the test sets. We kept the original 16kHz sampling rate and computed log-mel filterbanks with 40 (for Librispeech) or 80 (for WSJ) coefficients for a 25ms sliding window, strided by 10ms. All features are normalized to have zero mean and unit variance per input sequence before feeding into the neural network. No data augmentation or speaker adaptation was performed.
Acoustic model training
Models are trained with stochastic gradient descent (SGD), gradient clipping [40] and weight normalization [41]. We followed [15] for the architecture choices, picking the "high dropout" model with 19 convolutional layers for Librispeech, and the lighter version with 17 layers for WSJ. Batch size was set to 4 and 16, for Librispeech, and WSJ respectively.
Tuning the beam-search decoder
Hyper-parameters of the decoder were selected via a random search. A large fixed beam size and beam threshold were set before running a random search. The LM weight was randomly sampled from the interval , the word and silence penalties were sampled from the interval for both language model types. For each configuration and dataset up to 100 attempts of random search were run. Hyper-parameters that lead to the best WER were chosen for the final evaluation on the test sets.
Results
Models are evaluated in Word Error Rate (WER) and Character Error Rate (CER), as reported in Table 4 for WSJ and in Table 3 for Librispeech. The ASR system based on either -gram or ConvLM character-level language model achieves performance similar to its word-level language model configuration both on WSJ and Librispeech. Furthermore, the lexicon-free ASR systems, where the beam-search is not conditioned by a word-level lexicon vocabulary, are very close to their lexicon-based counterparts for both types of language models, -gram and ConvLM. On the WSJ test set (see Table 4), decoding with the character-level ConvLM (even in a lexicon-free setup) leads to better performance than with word-level and achieves state-of-the-art results.
Beam size analysis
For each utterance we can define an effective beam size as the maximum position index in the sorted beam over all frames for the final transcription. In other words, selecting a beam size larger than the effective beam size should not affect decoding. In Figure 1, we show that the effective beam size for the character-level models is significantly smaller than one for the word-level models. When decoding with word-level LMs, a large (2000-8000) beam size is often needed, while for the character-level LMs, a beam size of 2000 is always enough. This property looks promising from the computational point of view, when switching to character-level LMs.
Lexicon-free decoding analysis
We investigated how out-of-vocabulary (OOV) words are transcribed by our lexicon-free decoder, as those words cannot be output by a standard beam-search decoder conditioned with a word-level lexicon. The OOV words we consider are not present in the lexicon vocabulary, meaning these words are beyond the top- most frequent words chosen in our lexicon, or did not even appear in the acoustic and language models training/validation sets. In Table 5, we evaluated WER and CER on the isolated “out-of-vocabulary” utterances, which contain at least one OOV word. For comparison, we also report performance on “in vocabulary” utterances (IV), which contain only words present in the lexicon. The lexicon-free decoder performs significantly better on the utterances that include OOV words, while holding competitive performance on the IV utterances. The lexicon-free decoder with an -gram language model recognizes up to 25% (28.5%) and 13.5% (13.5%) OOV words (occurrences) for the clean and other test parts of Librispeech, respectively. With a ConvLM language model, this performance raises up to 31% (33%) and 10% (8%) OOV words (occurrences) for the clean and other test parts of Librispeech, respectively. A few examples of decoded transcriptions are reported in Table 6.
5 Conclusion
We built an ASR system with a beam-search decoder based on a character-level language model that achieves performance close to the state-of-the-art among end-to-end models. We also showed that transcribing with a lexicon-free beam-search decoder achieves a performance similar to transcribing with a beam-search decoder conditioned by a word-level lexicon, itself already close to the state-of-the-art. Moreover, lexicon-free ASR naturally handles out-of-vocabulary words: it has significantly better performance on the utterances with out-of-vocabulary words than when the system is conditioned by a word-level lexicon.
6 Acknowledgements
We thank Qiantong Xu for helpful discussions.
7 Addendum
In the Interspeech2019 submission paper lower bounds on the word perplexity for character-level language models were computed excluding end of sentence token while estimating the denominator from (3). In Tables 1 and 2 updated results are presented where the end of sentence is correctly accounted. This does not affect any outcomes and conclusions in the paper.
The code for experiments is open-sourced and available at https://github.com/facebookresearch/wav2letter/tree/master/recipes/models/lexicon_free.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Xiang Zhang, Junbo Zhao, and Yann Le Cun. Character-level convolutional networks for text classification. In Advances in neural information processing systems , pages 649–657, 2015.
- 2[2] Gerasimos Potamianos and Frederick Jelinek. A study of n-gram and decision tree letter language modeling methods. Speech Communication , 24(3):171–192, 1998.
- 3[3] Bob Carpenter. Scaling high-order character language models to gigabytes. In Proceedings of the Workshop on Software , pages 86–99. Association for Computational Linguistics, 2005.
- 4[4] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M Rush. Character-aware neural language models. In Thirtieth AAAI Conference on Artificial Intelligence , 2016.
- 5[5] David Vilar, Jan-T. Peter, and Hermann Ney. Can We Translate Letters? In Proceedings of the Second Workshop on Statistical Machine Translation , Stat MT ’07, pages 33–39, Stroudsburg, PA, USA, 2007. Association for Computational Linguistics.
- 6[6] Preslav Nakov and Jörg Tiedemann. Combining word-level and character-level models for machine translation between closely-related languages. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Short Papers-Volume 2 , pages 301–305. Association for Computational Linguistics, 2012.
- 7[7] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. ar Xiv preprint ar Xiv:1508.07909 , 2015.
- 8[8] Wang Ling, Isabel Trancoso, Chris Dyer, and Alan W Black. Character-based neural machine translation. ar Xiv preprint ar Xiv:1511.04586 , 2015.
