All models

Paraformer

Paraformer-zh, a 220M non-autoregressive speech recognizer for Mandarin and English that decodes a whole transcript in parallel.

Audio and speech · 3,272 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

This diagram has 3,272 operations (21 KB) and is drawn when you ask.

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
220.1M
Operations
3,272
Framework
PyTorch
Recurrent
No
Published
Interspeech 2022
Cited by
120 (as of 27 October 2026)
Authors
Zhifu Gao, Shiliang Zhang, Ian McLoughlin, Zhijie Yan
License
MIT
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
m19256
Graph hash
2efa4a3900ecc89e77361c845200f8112acebec2d650468b5312cf68a268f4d3
Skeleton hash
c6a642ce828d3af334577b74a6465a9015d2e061dcb2c400176677456677e947
Architecture hash
a6b70120f0807a6a51b929455cb7ca52cb53dea10c990b4f31e449669e9dd113
Diagram SHA-256
413845fbeb752f2a64b9dd0d59d8a018506fba9ee99d7f58e15ff32963fd0d92
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

Paraformer is a non-autoregressive speech recognition model: it generates the entire transcript in parallel rather than one token at a time. The paper starts from the cost of autoregressive transformer decoders, which generate tokens one by one. Single-step NAR models avoid that cost, but the paper notes that their assumption that output tokens are independent leaves them less accurate than autoregressive models.

The encoder is built from blocks of memory-equipped self-attention (SAN-M) and feed-forward layers. A predictor based on continuous integrate-and-fire (CIF) estimates how many tokens the utterance holds and generates the hidden variables the decoder reads. The paper improved CIF with a dynamic threshold in place of a predefined one, to reduce the mismatch between training and inference. During training, a glancing language model (GLM) sampler generates semantic embeddings that help the decoder model how output tokens depend on each other. At inference the sampler is inactive, and the bidirectional decoder turns the acoustic embeddings and encoder output into the transcript in a single pass.

This model is Paraformer-zh, listed by FunASR at 220M parameters for Chinese and English. On AISHELL-1, AISHELL-2 and an industrial 20,000-hour task, the paper reports accuracy comparable to an autoregressive transformer with more than 10x speedup.

Key idea. Paraformer showed that a single-step non-autoregressive speech recognizer can reach accuracy comparable to an autoregressive transformer with more than 10x speedup.

  • paraformer
  • paraformer-zh
  • paraformer-large
  • non-autoregressive asr
  • speech recognition
  • mandarin speech recognition
  • funasr
  • continuous integrate-and-fire
  • glancing language model
  • aishell

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

Cite the paper

@misc{gao2023paraformerfastaccurateparallel,
      title={Paraformer: Fast and Accurate Parallel Transformer for Non-autoregressive End-to-End Speech Recognition}, 
      author={Zhifu Gao and Shiliang Zhang and Ian McLoughlin and Zhijie Yan},
      year={2023},
      eprint={2206.08317},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/2206.08317}, 
}