All models

sb_RNNLM

The recurrent neural network language model that predicts the next word from an unbounded context.

Language · 13 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
53.1M
Operations
13
Framework
PyTorch
Recurrent
No
Published
Interspeech 2010
Cited by
5,388 (as of 17 October 2026)
Authors
Tomáš Mikolov, Martin Karafiát, Lukáš Burget and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m9057
Graph hash
1ab6121b445f79db7edf0c50d18f7149537951c69593f1a4cdd6496ac8b3f3f8
Skeleton hash
294a396ee320ded52aa8e06f64981b0eccd1fdc08b9804f8eab30ab7fd4d22a3
Architecture hash
95d9a7a066a22fc4cce68406b6fd2dfbc41269bcd788735056ab3b5f9979d209
Diagram SHA-256
bc2c54a2d9784157b588be917078cd55546c8b16c9b07922fd0d89511e684775
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

A recurrent neural network based language model, or RNN LM, predicts the next word of a text from the words before it, and this paper introduced one with applications to speech recognition. It was presented at Interspeech 2010, pages 1045-1048. The goal of statistical language modeling is to predict the next word in textual data given context.

The authors' complaint about the earlier feedforward approach of Bengio is that its fixed length context usually lets the network see only five to ten preceding words when predicting the next one. Recurrent neural networks do not use a limited size of context. The architecture is what is usually called a simple recurrent neural network or Elman network, which the authors describe as probably the simplest possible version of a recurrent neural network. The network has an input layer x, a hidden layer s (also called context layer or state) and an output layer y. The input vector at time t concatenates a vector representing the current word with the output of the context layer at time t-1. Training computes the error vector from the cross entropy criterion and updates the weights with standard backpropagation.

One quirk is the dynamic model, which keeps updating its weights while it processes the test data so that a repeated new name stops getting a very small probability. For the dynamic model the authors use a fixed learning rate. A mixture of several RNN LMs gave around 50% reduction of perplexity compared to a state of the art backoff language model. Speech recognition experiments showed around 18% reduction of word error rate on the Wall Street Journal task when comparing models trained on the same amount of data. On the much harder NIST RT05 task the reduction was around 5%, even when the backoff model was trained on much more data than the RNN LM. The authors conclude that connectionist language models are superior to standard n-gram techniques, except for their high computational training complexity.

The captured member is the RNNLM of SpeechBrain, which lists it among its Language Modeling recipes for CommonVoice and LibriSpeech, beside n-grams and TransformerLM. SpeechBrain is an open-source PyTorch toolkit for Conversational AI development.

Key idea. A simple recurrent (Elman) network as a language model, whose recurrent connections let information cycle inside the network for arbitrarily long time instead of a fixed n-gram context.

  • RNNLM
  • RNN LM
  • recurrent neural network language model
  • Mikolov
  • Elman network
  • language modeling
  • next word prediction
  • speech recognition
  • SpeechBrain RNNLM
  • sb_RNNLM
  • perplexity

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@inproceedings{Mikolov_2010, series={interspeech_2010}, title={Recurrent neural network based language model}, url={http://dx.doi.org/10.21437/Interspeech.2010-343}, DOI={10.21437/interspeech.2010-343}, booktitle={Interspeech 2010}, publisher={ISCA}, author={Mikolov, Tomáš and Karafiát, Martin and Burget, Lukáš and Černocký, Jan and Khudanpur, Sanjeev}, year={2010}, month=Sept, pages={1045–1048}, collection={interspeech_2010} }