Citation and evidence

WavLM

18 min full readUpdated 19 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

AI ModelsMachine LearningSpeech & Audio AI

Cite this article

WavLM is a self-supervised learning model for speech developed by researchers at Microsoft and described in the paper "WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing", first posted to arXiv on 26 October 2021 [1]. It learns general-purpose representations from unlabeled audio and was designed to serve the whole range of speech tasks, including speaker verification, speaker diarization, speech separation and emotion recognition, rather than only speech recognition, the main target of earlier models such as wav2vec 2.0 and HuBERT [1]. The paper was published in the IEEE Journal of Selected Topics in Signal Processing in October 2022 (volume 16, issue 6, pages 1505-1518) [2].

The WavLM paper illustrates the architecture used to learn speech representations.
The WavLM paper illustrates the architecture used to learn speech representations. Chen, Sanyuan and colleagues.

WavLM builds on HuBERT's masked prediction of clustered pseudo-labels and adds two main changes: a masked speech denoising objective, in which the model sees artificially overlapped or noisy audio but must predict the labels of the clean original, and a gated relative position bias in its Transformer encoder [1]. Microsoft also trained the larger models on 94,000 hours of English audio drawn from audiobooks, podcasts, YouTube and European Parliament recordings, instead of audiobook speech alone [1]. In the authors' evaluation, WavLM Large reached state-of-the-art results on the SUPERB benchmark and on standard tests for speaker verification, speech separation and speaker diarization [1]. The code and three pre-trained checkpoints (Base, Base+ and Large) were released through Microsoft's unilm GitHub repository, and the models were added to the Hugging Face Transformers library in December 2021 [3][4].

Background

By 2021, self-supervised pre-training had become standard for speech recognition, but most other speech tasks were still trained from scratch on task-specific data [1]. The WavLM paper argues that building a single model for all speech tasks is hard because tasks need different information from the same signal: speaker verification needs the speaker's voice characteristics regardless of what is said, while speech recognition needs the spoken content and should ignore the speaker [1]. Speaker diarization and speech separation add a further complication because they involve several people talking at once [1].

The authors identified two weaknesses in the leading pre-trained models of the time. First, they performed poorly on multi-speaker tasks: in the authors' experiments, speech separation models built on top of HuBERT gained only marginally over models trained from scratch, which the paper attributes to pre-training objectives that did not push the model to tell speakers apart and to training data containing only one speaker per recording [1]. Second, the models relied mostly on Libri-Light, a large collection of audiobook recordings, whose acoustic conditions differ from real-world speech [1].

WavLM was evaluated with the help of SUPERB (Speech processing Universal PERformance Benchmark), introduced by Shu-wen Yang and colleagues in 2021 to measure how well one frozen pre-trained model serves many speech tasks through small task-specific prediction heads [5]. Speaker-aware pre-training had also been explored in UniSpeech-SAT, which the WavLM paper describes as extending HuBERT and improving speaker-related tasks at a slight cost in speech recognition accuracy [1].

Authors

The paper lists 19 authors: Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, a second Jian Wu, Michael Zeng, Xiangzhan Yu and Furu Wei [1]. The first four authors are credited with equal contribution, and a footnote states that the work was done at Microsoft during internships of the first three authors [1]. Yu Wu is listed as the corresponding author [1][3].

Architecture

WavLM follows the overall design of wav2vec 2.0 and HuBERT: a convolutional feature encoder that turns the raw waveform into a sequence of frames, followed by a Transformer encoder [1].

Convolutional feature encoder

The feature encoder has seven blocks of temporal convolution, each followed by layer normalization and a GELU activation [1]. The convolutions have 512 channels, strides of (5, 2, 2, 2, 2, 2, 2) and kernel widths of (10, 3, 3, 3, 3, 2, 2), so each output frame covers about 25 ms of audio with a step of 20 ms [1]. The models expect audio sampled at 16 kHz [6].

Gated relative position bias

The Transformer keeps a convolution-based relative position embedding layer at the bottom (kernel size 128, 16 groups) and adds a gated relative position bias to the self-attention logits of every layer [1]. The idea was taken from XLM-E, a cross-lingual language model by Chi and colleagues [1]. For hidden states $h_i$ projected to queries, keys and values $q_i, k_i, v_i$, the attention weights become

aij∝exp⁡{qi⋅kjdk+ri−j}a_{ij} \propto \exp\left\{\frac{q_i \cdot k_j}{\sqrt{d_k}} + r_{i-j}\right\}

where $d_k$ is the key dimension and $r_{i-j}$ is the gated bias for the offset between positions $i$ and $j$ [1]. The bias is computed from a learnable scalar relative position bias $d_{i-j}$ and two gates derived from the current query:

gi(update),gi(reset)=σ(qi⋅u),σ(qi⋅w)g^{(update)}_i, g^{(reset)}_i = \sigma(q_i \cdot u), \sigma(q_i \cdot w)

r~i−j=w gi(reset) di−j,ri−j=di−j+gi(update)di−j+(1−gi(update))r~i−j\tilde{r}_{i-j} = w \, g^{(reset)}_i \, d_{i-j}, \qquad r_{i-j} = d_{i-j} + g^{(update)}_i d_{i-j} + (1 - g^{(update)}_i)\tilde{r}_{i-j}

Here $\sigma$ is the sigmoid function, $u$ and $w$ are learnable vectors in the gate equation, and the $w$ in the reset term is a separate learnable scalar [1]. The base bias $d_{i-j}$ uses bucketed relative positions: 320 embeddings whose ranges grow logarithmically up to a maximum offset of 800 frames, shared across all layers so that the parameter count barely changes [1].

The paper's rationale is that a fixed bias treats the same distance between two frames identically, while the gates let the model adjust it according to content; the authors give the example that the same offset may matter differently when one frame is silence and the other is speech [1]. In an ablation on the Base model, removing this structural change hurt phoneme recognition and speech recognition most, which the authors read as evidence that the gated bias helps content-related tasks [1].

Model sizes

ModelTransformer layersHidden sizeAttention headsParametersPre-training data
WavLM Base12768894.70MLibriSpeech, 960 hours
WavLM Base+12768894.70MMix 94k hours
WavLM Large24102412316.62MMix 94k hours

Expanded article table

Figures are as stated in the paper [1]. The configuration files of the released Hugging Face checkpoints differ on attention heads: they specify 12 heads for Base and Base+ and 16 for Large, with the same layer counts, hidden sizes and 320 relative position buckets [18][19].

Pre-training

Masked speech denoising and prediction

WavLM keeps HuBERT's training target. A teacher model assigns each frame of the clean utterance a discrete pseudo-label obtained by k-means clustering, part of the input is masked, and the network is trained with a cross-entropy loss to predict the pseudo-labels of the masked frames, much as BERT predicts masked words [1]. The difference is in the input. For a share of the utterances in each training batch, WavLM mixes in either another utterance from the same batch or a background noise clip from a set of Deep Noise Suppression (DNS) noises, while the targets still come from the original, unmixed utterance [1].

The simulation follows rules set out in the paper's Algorithm 1 [1]:

  • The mixed-in segment covers less than half of the primary utterance, so the first utterance's speaker is always the main speaker.
  • For a second speaker, the energy ratio is drawn uniformly from -5 to 5 dB; for noise, from -5 to 20 dB.
  • The mixing region and start positions are chosen at random.

The model therefore has to pick out the main speaker from overlapping or noisy audio and predict what that speaker said [1]. According to the paper, this forces it to retain information about speaker identity and to handle multi-speaker signals, which helps diarization, separation and speaker recognition, while the masked prediction preserves the content modeling needed for speech recognition [1]. In the reported configuration, 20% of utterances were mixed; WavLM Base was mixed only with other speech (noise probability 0), while Base+ and Large used a 10% probability of noise instead of a second speaker [1].

Pseudo-labels come from earlier HuBERT models. WavLM Base used labels from clustering the 6th Transformer layer of a first-iteration HuBERT Base model, and WavLM Base+ and Large used labels from the 9th layer of the released second-iteration HuBERT Base model [1].

Early versions of the paper's abstract, still reproduced in the Hugging Face documentation and model cards, called the mixing approach an "utterance mixing training strategy" [4][6]. The final arXiv version describes it as joint masked speech prediction and denoising [1].

Training data

WavLM Base was pre-trained on the 960 hours of LibriSpeech [1]. For Base+ and Large, the authors assembled a 94,000-hour English dataset, which they call "Mix 94k hr" [1]:

SourceHours usedContent
Libri-Light60,000Audiobook recordings
GigaSpeech10,000Audiobooks, podcasts and YouTube, read and spontaneous speech
VoxPopuli (English portion)24,000European Parliament event recordings, 2009-2020

Expanded article table

GigaSpeech contains 40,000 hours in total, but the authors used only a 10,000-hour subset because, according to the paper, much of the remaining 30,000 hours was not well processed, with long silences and some utterances containing only background noise [1]. VoxPopuli as a whole holds more than 400,000 hours in 23 languages; WavLM used only the English recordings [1].

Training setup and stability

WavLM Base was trained for 400,000 steps and WavLM Large for 700,000 steps [1]. For Base+, the main text gives 1 million steps while the hyperparameter table in the appendix lists 1.2 million [1]. The paper reports using 32 NVIDIA V100 GPUs for the Base models and 64 for the Large model [1].

Training large models in 16-bit floating point (mixed precision) was unstable because attention scores could exceed the fp16 range and produce NaN losses [1]. WavLM addressed this with a trick borrowed from the CogView text-to-image model: since softmax is unchanged when the same constant is subtracted from every input, the attention logits are scaled down by a factor (32 in WavLM) and shifted by their maximum before exponentiation, keeping values within range [1].

Evaluation

SUPERB benchmark

On SUPERB, the pre-trained model is frozen and small downstream models consume a learned weighted sum of the hidden states of every layer [1][5]. The paper evaluated 15 SUPERB tasks covering five aspects of speech: content, speaker, semantics, paralinguistics and generation [1]. Selected results from the paper's Table I [1]:

ModelParametersSpeaker ID accuracy (%)Speaker verification EER (%)Diarization DER (%)ASR WER (%)Emotion accuracy (%)Overall score
wav2vec 2.0 Large317.38M86.145.655.623.7565.6470.4
HuBERT Large316.61M90.335.985.753.6267.6272.2
WavLM Base94.70M84.514.694.556.2165.9472.0
WavLM Base+94.70M89.424.073.505.5968.6573.4
WavLM Large316.62M95.493.773.243.4470.6274.6

Expanded article table

The overall score was computed by the authors themselves: they multiplied the query-by-example score by 100, converted every error rate to one minus the error rate, and averaged across tasks [1]. By that measure WavLM Large beat HuBERT Large on 14 subtasks and by 2.4 points overall, and the smaller WavLM Base+ also scored higher overall than both HuBERT Large and wav2vec 2.0 Large [1]. The paper states that WavLM Base outperformed wav2vec 2.0 Base and HuBERT Base, which used the same data and model size, on all downstream tasks, although its own table shows a tie on speech enhancement quality (PESQ) and a slightly lower voice conversion speaker-verification score than HuBERT Base (98.00 against 98.50); its largest gain was in speaker diarization, a 22.6% relative improvement over HuBERT Base [1]. Removing the denoising objective in an ablation raised the Base model's diarization error rate from 4.55% to 6.03% [1].

The learned layer weights showed where different information sits. In the Base models, lower layers contributed most to speaker identification, speaker verification and diarization, while upper layers mattered most for speech recognition, phoneme recognition, intent classification and slot filling; in the Large models, middle layers had a large influence on speaker tasks [1].

Speaker verification

For speaker verification on VoxCeleb1, the authors fed WavLM representations into an ECAPA-TDNN downstream model fine-tuned with VoxCeleb2 data [1][3]. Equal error rates (EER, lower is better) on the three official trial lists [1]:

SystemVox1-OVox1-EVox1-H
ECAPA-TDNN (published result)1.0101.2402.320
HuBERT Large0.8080.8221.678
WavLM Base+0.840.9281.758
WavLM Large0.6170.6621.318
WavLM Large, with large-margin fine-tuning and score calibration0.3830.4800.986

Expanded article table

With the extra fine-tuning and quality-aware score calibration, the best WavLM system beat the winning system of the VoxSRC 2021 speaker recognition challenge (0.461, 0.634 and 0.993) on all three trial lists [1]. Microsoft also published speaker verification checkpoints built on WavLM and other pre-trained models in its UniSpeech repository [7].

Speaker diarization

On the CALLHOME telephone dataset, a WavLM Large front end combined with an EEND-vector clustering diarization system reached a diarization error rate of 10.35%, against 11.84% for the previous best result the paper compared with (EEND-EDA clustering), a 12.6% relative reduction [1]. The WavLM Base+ system (11.78%) also beat the HuBERT Large system (12.40%) [1]. The authors attribute the gain to the overlapped speech the model saw during pre-training [1].

Speech separation

On LibriCSS, a dataset of mixed LibriSpeech utterances replayed in a meeting room, separation quality was measured by the word error rate of a speech recognizer run on the separated output [1]. With a Conformer-based separation model and frozen WavLM Large features, the average WER fell to 6.0%, against 8.3% for the authors' rerun of the previous best Conformer system, a 27.7% relative reduction; the reduction was 32.5% for the most heavily overlapped (40%) condition [1]. HuBERT Base features gave results comparable to the baseline, which the authors attribute to HuBERT's lack of multi-speaker training [1].

Speech recognition

For speech recognition, the authors fine-tuned the models on LibriSpeech with a CTC loss [1]. When fine-tuned on all 960 labeled hours and decoded with a Transformer language model, WavLM Large reached word error rates of 1.8% on test-clean and 3.2% on test-other, against 1.9% and 3.3% for HuBERT Large and 1.8% and 3.3% for wav2vec 2.0 Large [1]. The paper describes this as on par with the two best pre-training results [1]. In low-resource settings, WavLM Large fine-tuned on one hour of labeled data scored 2.9% and 5.1% with a Transformer language model, compared with 2.9% and 5.4% for HuBERT Large [1]. WavLM therefore matched rather than clearly surpassed its predecessors on recognition while improving substantially on speaker and multi-speaker tasks.

Release and availability

According to the official repository, Microsoft released the arXiv preprint in October 2021, code with the Base and Base+ checkpoints in November 2021, and the Large checkpoint with Hugging Face support in December 2021, along with a speaker verification demo on Hugging Face Spaces [3]. The code is a PyTorch implementation, and the README notes that portions are based on the fairseq project [3]. The repository also states that the s3prl toolkit supports the models and recommends using a weighted sum of all layer representations for downstream tasks [3].

The Hugging Face Transformers documentation records that WavLM was added to the library on 16 December 2021 [4]. Microsoft's Hugging Face organization hosts the Base, Base+ and Large models as well as versions fine-tuned for speaker verification (wavlm-base-sv, wavlm-base-plus-sv) and speaker diarization (wavlm-base-sd, wavlm-base-plus-sd) [8]. The wavlm-base-plus-sv model was fine-tuned on VoxCeleb1 with an X-vector head and an additive margin softmax loss [9]. As of November 2026, the Hub reported more than 22 million all-time downloads for microsoft/wavlm-large [10].

The model cards warn that the checkpoints were pre-trained on English audio only and should be expected to perform well only in English, that they have no tokenizer, and that they must be fine-tuned before being used for speech recognition [6]. The licensing is stated in two places: the unilm repository that holds the WavLM code carries the MIT License [11], while the Hugging Face model cards point to the license of Microsoft's UniSpeech repository, which is the Creative Commons Attribution-ShareAlike 3.0 Unported license [6][12].

Use in later work

WavLM has been reused widely in later speech research. Crossref counted about 1,960 works citing the journal version as of November 2026 [2]. Examples include:

  • Speaker similarity scoring. Microsoft's VALL-E text-to-speech paper (January 2023) measured how closely synthesized speech matched a prompt speaker with WavLM-TDNN, which it described as a state-of-the-art speaker verification model that ranked first on the VoxSRC 2021 and 2022 leaderboards [13]. See VALL-E.
  • Voice conversion. kNN-VC, by Matthew Baas, Benjamin van Niekerk and Herman Kamper (Interspeech 2023), converts a voice by replacing each frame of WavLM-Large features from the source with the average of its nearest neighbours among the target speaker's frames, then vocoding the result with HiFi-GAN [14]. The authors chose layer 6 of WavLM-Large because later layers gave worse pitch and energy reconstruction, and layer 6 correlated strongly with speaker identification [14]. See audio-to-audio models.
  • Text-to-speech training. StyleTTS 2, by Yinghao Aaron Li and colleagues (NeurIPS 2023), used large pre-trained speech language models such as WavLM as discriminators during adversarial training [15]. See text-to-speech models.
  • Multilingual successors. WavLabLM (ASRU 2023), by William Chen and colleagues, applied WavLM's joint prediction and denoising to 40,000 hours of speech in 136 languages [16]. XEUS (2024), from an overlapping group of authors, was trained on more than 1 million hours across 4,057 languages and combined HuBERT-style masked prediction with WavLM-style denoising and a new dereverberation objective [17]. Its paper called WavLM the state-of-the-art model on the SUPERB leaderboard for almost all tasks and used WavLM Large as its English-only point of comparison [17].

Limitations

The released models cover English only, as the training data was English and the model cards state [1][6]. The paper's results were reported by the model's own authors, and the SUPERB overall score in Table I was an aggregate they calculated themselves rather than an official leaderboard figure [1]. For separation and diarization, the authors found that updating WavLM's parameters during fine-tuning gave worse results on real recordings than keeping them frozen, which they attributed to overfitting on simulated training mixtures [1]. The paper's conclusion lists larger models, model compression and joint pre-training on text and speech as future directions [1].

Continue reading

More to read

Topics:AI ModelsMachine LearningSpeech & Audio AI

References

  1. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22 ^23 ^24 ^25 ^26 ^27 ^28 ^29 ^30 ^31 ^32 ^33 ^34 ^35 ^36 ^37 ^38 ^39 ^40 ^41 ^42 ^43 ^44 ^45 ^46 ^47 ^48 ^49 ^50 ^51 ^52 ^53 ^54 ^55 ^56 ^57 ^58 ^59 ^60 ^61 ^62 ^63 ^64 ^65 ^66 ^67Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Jian Wu, Michael Zeng, Xiangzhan Yu, Furu Wei. "WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing". arXiv:2110.13900 (v5), 2022-06-17. arxiv.org/...2110.13900
  2. ^1 ^2Crossref. "WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing". IEEE Journal of Selected Topics in Signal Processing, vol. 16, no. 6, pp. 1505-1518, October 2022 (DOI 10.1109/JSTSP.2022.3188113). api.crossref.org/...JSTSP.2022.3188113
  3. ^1 ^2 ^3 ^4 ^5 ^6Microsoft. "WavLM" (README). GitHub, microsoft/unilm repository. github.com/...wavlm
  4. ^1 ^2 ^3Hugging Face. "WavLM". Transformers documentation. huggingface.co/...wavlm
  5. ^1 ^2Shu-wen Yang, Po-Han Chi, Yung-Sung Chuang, et al. "SUPERB: Speech processing Universal PERformance Benchmark". arXiv:2105.01051, Interspeech 2021. arxiv.org/...2105.01051
  6. ^1 ^2 ^3 ^4 ^5Microsoft. "WavLM-Large" (model card). Hugging Face. huggingface.co/...wavlm-large
  7. ^Microsoft. "Pre-training Representations for Speaker Verification". GitHub, microsoft/UniSpeech repository. github.com/...speaker_verification
  8. ^Hugging Face. "Models by microsoft matching wavlm" (Hub API listing). Retrieved 2026-11-18. huggingface.co/...models
  9. ^Microsoft. "WavLM-Base-Plus for Speaker Verification" (model card). Hugging Face. huggingface.co/...wavlm-base-plus-sv
  10. ^Hugging Face. "microsoft/wavlm-large" (Hub API, downloadsAllTime). Retrieved 2026-11-18. huggingface.co/...wavlm-large]=downloadsAllTime
  11. ^Microsoft. "LICENSE" (MIT License). GitHub, microsoft/unilm repository. github.com/...LICENSE
  12. ^Microsoft. "LICENSE" (Attribution-ShareAlike 3.0 Unported). GitHub, microsoft/UniSpeech repository. github.com/...LICENSE
  13. ^Chengyi Wang, Sanyuan Chen, Yu Wu, Ziqiang Zhang, Long Zhou, Shujie Liu, Zhuo Chen, Yanqing Liu, Huaming Wang, Jinyu Li, Lei He, Sheng Zhao, Furu Wei. "Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers". arXiv:2301.02111, 2023-01-05. arxiv.org/...2301.02111
  14. ^1 ^2Matthew Baas, Benjamin van Niekerk, Herman Kamper. "Voice Conversion With Just Nearest Neighbors". arXiv:2305.18975, Interspeech 2023. arxiv.org/...2305.18975
  15. ^Yinghao Aaron Li, Cong Han, Vinay S. Raghavan, Gavin Mischler, Nima Mesgarani. "StyleTTS 2: Towards Human-Level Text-to-Speech through Style Diffusion and Adversarial Training with Large Speech Language Models". arXiv:2306.07691, NeurIPS 2023. arxiv.org/...2306.07691
  16. ^William Chen, Jiatong Shi, Brian Yan, Dan Berrebbi, Wangyou Zhang, Yifan Peng, Xuankai Chang, Soumi Maiti, Shinji Watanabe. "Joint Prediction and Denoising for Large-scale Multilingual Self-supervised Learning". arXiv:2309.15317, ASRU 2023. arxiv.org/...2309.15317
  17. ^1 ^2William Chen, Wangyou Zhang, Yifan Peng, Xinjian Li, Jinchuan Tian, Jiatong Shi, Xuankai Chang, Soumi Maiti, Karen Livescu, Shinji Watanabe. "Towards Robust Speech Representation Learning for Thousands of Languages". arXiv:2407.00837, 2024. arxiv.org/...2407.00837
  18. ^Microsoft. "config.json" (microsoft/wavlm-base-plus). Hugging Face. Retrieved 2026-11-18. huggingface.co/...config.json
  19. ^Microsoft. "config.json" (microsoft/wavlm-large). Hugging Face. Retrieved 2026-11-18. huggingface.co/...config.json

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

2 revisions · v2 · 3,583 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Independent fact-check before publication on November 18, 2026: 118 claims checked against 24 cited and independent sources; 1 material and 3 minor corrections applied before publication.

Cite this page: AI Wiki. "WavLM." aiwiki.ai, updated 5 Dec 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/wavlm

Edit article