All models

sb_ContextNet

A fully convolutional speech encoder that adds squeeze-and-excitation blocks for global context.

Audio and speech · 1,830 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 (45 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
32.2M
Operations
1,830
Framework
PyTorch
Recurrent
No
Published
Interspeech 2020
Cited by
290 (as of 17 October 2026)
Authors
Wei Han, Zhengdong Zhang, Yu Zhang 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
m9046
Graph hash
dd6cf3da3d20d55db7c6cbe71db2ba0916c2568bdefcbbc02dcb34de9b2ceab3
Skeleton hash
6a73b509ee5fa89dddb6119b5c7a3bdc20e8055553a9367332030eae57cdac9f
Architecture hash
ba04920f771c153d6da7e246ed4c353dc4ae0d0530bc08848220ab9c83eba015
Diagram SHA-256
ffffb2d3f2ba89836d29a413d73f3e6b2db06280bafff2610070343146844d3d
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

ContextNet is a speech recognizer built from convolutions: a fully convolutional encoder feeding a recurrent transducer, which its authors describe as a novel CNN-RNN-transducer architecture. The starting point was that convolutional networks had shown promising results for end-to-end speech recognition, albeit still behind other state-of-the-art methods in performance. The fix is global context: the encoder incorporates global context information into convolution layers by adding squeeze-and-excitation modules. A simple scaling method that scales the widths of ContextNet trades computation against accuracy.

On LibriSpeech the paper reports a word error rate (WER) of 2.1%/4.6% without external language model (LM), 1.9%/4.1% with LM and 2.9%/7.0% with only 10M parameters on the clean/noisy test sets. The graph traced here is the SpeechBrain encoder on its own, the fully convolutional part that carries the squeeze-and-excitation blocks, without the transducer decoder. NVIDIA's NeMo recipe, saved alongside, calls its version a modified ContextNet in which the same number of filters is used throughout the model. That NeMo configuration names its model ContextNet-8x-Stride-RNNT.

Key idea. Adding squeeze-and-excitation modules to a fully convolutional speech encoder so that convolution layers see global context, plus width scaling to trade computation for accuracy.

  • ContextNet
  • ContextNet ASR
  • speech recognition
  • CNN-RNN-transducer
  • squeeze-and-excitation
  • LibriSpeech
  • SpeechBrain
  • NeMo

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

Cite the paper

@misc{han2020contextnetimprovingconvolutionalneural,
      title={ContextNet: Improving Convolutional Neural Networks for Automatic Speech Recognition with Global Context}, 
      author={Wei Han and Zhengdong Zhang and Yu Zhang and Jiahui Yu and Chung-Cheng Chiu and James Qin and Anmol Gulati and Ruoming Pang and Yonghui Wu},
      year={2020},
      eprint={2005.03191},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2005.03191}, 
}