All models

data2vec-audio (speaker x-vector)

Self-supervised speech encoder that regresses a teacher's contextualized representations from masked audio.

Audio and speech · 412 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 (23 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
99.3M
Operations
412
Framework
PyTorch
Recurrent
No
Published
ICML 2022
Cited by
231 (as of 19 October 2026)
Authors
Alexei Baevski, Wei-Ning Hsu, Qiantong Xu and others
Name in source
data2vec-audio:speaker-xvector
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
m4089
Graph hash
ea3b67fd5d085ce68e640e331c57599007ef75133b1e339b8a1cca76d6073c01
Skeleton hash
8f55540d10e460dfa428c2ff4cbcfa1258428f08fd0af2a2eaf26a5d85ce159d
Architecture hash
c90caab60929d3d90d1c46169d658626abbe54d61fbbf67301c148b67afaebf1
Diagram SHA-256
07e976fc681885eb9da106d588acb38a13fd0d7b6315a1b5a066cbdc2345ee82
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

data2vec is a self-supervised learning framework that applies one learning method to speech, natural language processing and computer vision. Instead of predicting words, visual tokens or units of speech, it predicts contextualized latent representations that contain information from the entire input from a masked view of that input. A teacher copy of the Transformer encodes the unmasked sample, its weights an exponentially moving average of the student, and the student regresses the average of the top K teacher layers for the masked time-steps.

For speech, the input is a 16 kHz waveform processed by a feature encoder of seven temporal convolutions with 512 channels. Unlike wav2vec 2.0, data2vec directly predicts contextualized latent representations without quantization, and unlike HuBERT it predicts the average over multiple layers rather than discretized units. On Librispeech test-other the paper reports improvements for most labeled data setups, with the largest gain at 10 minutes of labeled data, a 20% relative word error rate improvement for the Base models.

Music2Vec applies the same recipe to music audio, following the standard pretraining protocols of data2vec with the fairseq framework. With 95M parameters, the card reports performance comparable to the Jukebox-5B representation on music information retrieval tasks at under 2% of its size. The music paper found that the CNN representations sometimes outperform the Transformer layers, especially for key detection.

Key idea. A single masked self-distillation objective, regressing contextualized teacher representations, works across speech, vision and language and improves speech recognition in low-resource Libri-light setups.

  • data2vec
  • data2vec-audio
  • data2vec speech
  • music2vec
  • map-music2vec
  • self-supervised learning
  • speech representation
  • audio pretraining
  • masked prediction
  • self-distillation

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

Cite the paper

@misc{baevski2022data2vecgeneralframeworkselfsupervised,
      title={data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language}, 
      author={Alexei Baevski and Wei-Ning Hsu and Qiantong Xu and Arun Babu and Jiatao Gu and Michael Auli},
      year={2022},
      eprint={2202.03555},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2202.03555}, 
}