Elman RNN language model
A simple recurrent (Elman) network that predicts the next word from the words before it.
Language · 8 operations Checked
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
- Task
- Language
- Parameters
- 13.4M
- Operations
- 8
- Framework
- PyTorch
- Recurrent
- No
- Published
- Interspeech 2010
- Cited by
- 5,388 (as of 23 October 2026)
- Authors
- Tomáš Mikolov, Martin Karafiát, Lukáš Burget and others
- Source
- GitHub: pytorch/examples
- Name in source
- RNN-LM-elman
- License
- BSD-3-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2426
- Graph hash
- eceb001b0c2c2285535ec8af0bb38644f9b62e0e8b24729cef7f45804f793feb
- Skeleton hash
- d10ac526824de0cf570efb9562d0cd121751e8800a6ae04235dbd195538343cd
- Architecture hash
- cd42857b820c47aa566f81945ba189d3cf4b8b76651b489dd300e99bed88e7a8
- Diagram SHA-256
- e2949eeac451d3c41bbaafffccf91ffe636b503ca49a554e13dca8332b999572
- 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
The RNN LM is a recurrent neural network language model, a network that predicts the next word in text from the context that precedes it. It was presented with speech recognition as its application. Earlier neural language models were feedforward networks, and the paper names their main weakness as a fixed-length context that has to be specified before training. A recurrent network has no such limit, because its recurrent connections let information cycle inside the network for an arbitrarily long time.
The architecture is the one usually called a simple recurrent neural network or Elman network, with an input layer, a hidden layer that is also called the context layer or state, and an output layer. At each step the input is the current word together with the hidden layer's output from the previous step, and a softmax output gives a probability distribution over the next word. The authors note that for this model only the size of the hidden layer needs to be selected before training.
The paper reports around 50% reduction of perplexity from a mixture of several RNN LMs compared with a backoff language model, and around 18% reduction of word error rate on the Wall Street Journal task. Its stated drawback is the high computational complexity of training. Tomas Mikolov's rnnlm toolkit can be used to train, evaluate and use such models.
Key idea. The paper presents a language model built on a simple recurrent (Elman) network and reports around 50% perplexity reduction over a backoff model from a mixture of RNN LMs.
- rnn lm
- rnnlm
- recurrent neural network language model
- rnn language model
- elman network
- simple recurrent network
- language modeling
- next word prediction
- speech recognition
- rnnlm toolkit
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} }