# HuBERT (2021)

> BERT for speech, with targets made by clustering the audio first.

Page: https://mralbu.github.io/ai-datasets/p/hubert

## Key facts

- Title: HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units
- Authors: Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed
- Venue: IEEE/ACM Transactions on Audio, Speech, and Language Processing 2021
- Category: Audio
- Paper: https://www.alphaxiv.org/abs/2106.07447

## Why it matters

HuBERT made masked prediction work for continuous audio with a simple offline step instead of a contrastive loss. Its discrete units went on to serve as tokens for speech generation and textless language models, not only for recognition.

## The idea

Speech has no vocabulary to predict, so make one: cluster audio frames with k-means (first on MFCC features, later on the model's own features) and train a Transformer to predict the cluster of each masked frame, with the loss only on masked frames. Each round of re-clustering gives better targets.

## The result

Matched or beat wav2vec 2.0 on LibriSpeech fine-tuning with 10 minutes to 960 hours of labels; a 1-billion-parameter model cut word errors by up to 19% and 13% relative on dev-other and test-other.

## The data

- [LibriSpeech (2015)](https://mralbu.github.io/ai-datasets/d/librispeech.md): About 1,000 hours of read English audiobooks with transcripts.

## Builds on

- [wav2vec 2.0 (2020)](https://mralbu.github.io/ai-datasets/p/wav2vec2.md)
- [BERT (2018)](https://mralbu.github.io/ai-datasets/p/bert.md)

## Part of

- [Speech recognition](https://mralbu.github.io/ai-datasets/t/speech-recognition.md) (step 4 of 5)
