All models

espnet_rnn_encoder

ESPnet's recurrent attention encoder-decoder for speech recognition, traced as its BLSTM encoder and attention decoder.

Audio and speech · 102 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 (15 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
6.8M
Operations
102
Framework
PyTorch
Recurrent
No
Published
Interspeech 2018
Cited by
1,363 (as of 18 October 2026)
Authors
Shinji Watanabe, Takaaki Hori, Shigeki Karita 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
m4770
Graph hash
9d7aba7a474abb6228634110a8c65fa8dbc0bd4c23b2bf4a94f385d73211a261
Skeleton hash
bf04528f7c8caf58960eefd66a5e0e7b0243ac2fb400d66bc63b736c767e1c93
Architecture hash
425c6cbe39fa37c493dee217791402326a4bd7d19d8ef1d4acc432e6dd3615e5
Diagram SHA-256
d5c2713236adeaa33f36a753d6be88f2fa28343017e22658050747244addb8cf
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 encoder half: a bidirectional LSTM with subsampling, the pyramid BLSTM, that turns the speech feature sequence into a shorter high-level one.

About this model's family

This is the recurrent attention encoder-decoder at the heart of ESPnet, an open source platform for end-to-end speech processing. Where most end-to-end toolkits of its day were built on CTC, ESPnet is based on an attention-based encoder-decoder network. The default encoder is a bidirectional long short-term memory network with subsampling, the so-called pyramid BLSTM, which turns a long speech feature sequence into a shorter high-level one. On the decoder side, ESPnet uses a location-aware attention mechanism as its default, with dot-product attention also supported.

Training does not lean on attention alone: ESPnet adopts hybrid CTC/attention end-to-end ASR, which effectively utilizes the advantages of both architectures in training and decoding. The two objectives share one encoder and are linearly interpolated by a single weight, usually set to 0.5. At decoding time, attention and CTC scores are combined in a one-pass beam search to further eliminate irregular alignments.

ESPnet follows the Kaldi ASR toolkit style for data processing, feature extraction and recipes. Most recipes feed the network 80-dimensional log Mel features plus pitch, 83 dimensions in all. The authors point out that ESPnet realizes speech recognition, trainer and recognizer included, in only 5K lines of Python code. With 5 GPUs, ESPnet finished training on the 581 hours of the CSJ task in only 26 hours.

Key idea. ESPnet's recurrent model couples a pyramid BLSTM encoder with a location-aware attention decoder and trains and decodes with hybrid CTC/attention, which effectively utilizes the advantages of both architectures.

  • ESPnet
  • ESPnet RNN
  • attention-based encoder-decoder
  • BLSTM encoder
  • location-aware attention
  • hybrid CTC/attention
  • end-to-end speech recognition
  • ASR
  • espnet_rnn_encoder
  • espnet_rnn_decoder

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

Cite the paper

@misc{watanabe2018espnetendtoendspeechprocessing,
      title={ESPnet: End-to-End Speech Processing Toolkit}, 
      author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and Jiro Nishitoba and Yuya Unno and Nelson Enrique Yalta Soplin and Jahn Heymann and Matthew Wiesner and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
      year={2018},
      eprint={1804.00015},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/1804.00015}, 
}