All models

wav2vec2 (CTC ASR)

A speech model that encodes raw audio with convolutions and a Transformer, fine-tuned with CTC for recognition.

Audio and speech · 332 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 (34 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
94.4M
Operations
332
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2020
Cited by
400 (as of 9 October 2026)
Authors
Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli
Name in source
wav2vec2:ctc-asr
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
m11221
Graph hash
9eb084755b6b291d557936d178bddaa3cecdd1ba1f9230364790673fa90c6b61
Skeleton hash
cd4d4bd2fc93db6103b3daff197a078c289be2e03637de7be23d7c719fc8f10f
Architecture hash
a51d60d36b9e32fd32a17163eed8542f3ebe508dc8f1261ab0afdb98d69cec3c
Diagram SHA-256
0ed27228d5b1896b0cdbf8c20d90358c971f59bbffdd19c0a3ef249173cce874
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

About this model's family

wav2vec 2.0 is a framework for learning speech representations from raw audio without transcripts, then fine-tuning on labeled speech. A multi-layer convolutional network encodes the waveform into latent speech representations, and spans of those latents are masked. A Transformer then builds contextualized representations from the latents. In pre-training, the model has to identify the correct quantized latent for each masked time step among a set of distractors.

The feature encoder contains seven blocks of temporal convolutions with 512 channels each. Its output rate is 49 Hz, a stride of about 20ms between frames. In place of fixed positional embeddings, a convolutional layer acts as a relative positional embedding. The paper experiments with two configurations that share the encoder architecture and differ in the Transformer. The larger one has 24 Transformer blocks with model dimension 1,024 and 16 attention heads.

For recognition, a randomly initialized linear projection onto the task vocabulary is added on top of the context network. Models are then optimized with a CTC loss. The paper reports 4.8/8.2 WER on the Librispeech clean/other test sets using ten minutes of labeled data after pre-training on 53k hours of unlabeled data.

Key idea. wav2vec 2.0 masks the speech input in the latent space and solves a contrastive task over a jointly learned quantization of the latent representations.

  • wav2vec 2.0
  • wav2vec2
  • self-supervised speech
  • speech representation learning
  • speech recognition
  • asr
  • phoneme recognition
  • ctc
  • raw audio
  • wav2vec2-xlsr-53-espeak-cv-ft

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

Cite the paper

@misc{baevski2020wav2vec20frameworkselfsupervised,
      title={wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations}, 
      author={Alexei Baevski and Henry Zhou and Abdelrahman Mohamed and Michael Auli},
      year={2020},
      eprint={2006.11477},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2006.11477}, 
}