Cho RNN Encoder-Decoder
Two recurrent networks: one encodes a sentence into a fixed-length vector, the other decodes it.
Language · 351 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
- 17.3M
- Operations
- 351
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- EMNLP 2014
- Cited by
- 3,316 (as of 27 October 2026)
- Authors
- Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre and others
- 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
- m15291
- Graph hash
- df02cd6850567d93e7a87412ff71f443cf4454c6a409d0f7d1da6f4662613eff
- Skeleton hash
- 0a5b0ae54495205fbcbc63fa5cc0b27d40e1413a073896cf98084edb9a6b33db
- Architecture hash
- 15c12bd23a1e5563d52666f50f4f4c0c526215c5963db5a41c89a45070de0a8c
- Diagram SHA-256
- c7f811f6731ac6d978fd94676195f31e64bd0fd7a7eb710511d439f613dd6d08
- 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 Encoder-Decoder is a model for machine translation made of two recurrent neural networks (RNNs). One RNN encodes a sequence of symbols into a fixed-length vector, and the other decodes that vector into another sequence of symbols. The two networks are trained jointly to maximize the conditional probability of a target sequence given a source sequence.
In the paper, the conditional probabilities the model computes for phrase pairs are added as a feature to an existing log-linear statistical machine translation system, and the paper reports that this improves the system's performance. The authors also show qualitatively that the model learns a semantically and syntactically meaningful representation of linguistic phrases. A PyTorch tutorial based on this paper describes the model as one that uses GRUs.
Key idea. The paper proposes an encoder-decoder of two RNNs, one encoding a source sequence into a fixed-length vector and the other decoding the target sequence from it.
- RNN Encoder-Decoder
- Cho RNN Encoder-Decoder
- RNNencdec
- GRU encoder-decoder
- sequence to sequence
- seq2seq
- statistical machine translation
- phrase representations
- neural machine translation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{cho2014learningphraserepresentationsusing,
title={Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation},
author={Kyunghyun Cho and Bart van Merrienboer and Caglar Gulcehre and Dzmitry Bahdanau and Fethi Bougares and Holger Schwenk and Yoshua Bengio},
year={2014},
eprint={1406.1078},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/1406.1078},
}