Skip to content
AI.info

Speech and audio

Self-Supervised Speech Representation Learning

Explain masked prediction, contrastive learning, quantization, teacher–student targets, fine-tuning, transfer, and representation limits.

By the end you can

Key idea

Unlabeled is not unbiased

None of the four shortcuts below announces itself during pretraining. The one at the top of the list is the easiest to build in without noticing.

1) False negatives from related audio in contrastive batches. 2) Pretraining duplicates leaking into downstream benchmarks. 3) Representations encoding speaker or demographic attributes unintentionally. 4) Assuming lower fine-tuning loss proves broad transfer.

The first is not a hazard this lesson invented to have something to warn about. It is where the debiased contrastive learning paper begins, in 2020: “Without access to labels, dissimilar (negative) points are typically taken to be randomly sampled datapoints, implicitly accepting that these points may, in reality, actually have the same label.” Chuang and colleagues correct for that sampling. Representation quality improves across vision, language and reinforcement-learning benchmarks. The sampling rule was carrying the loss, not the data.

Dropping the labels did not drop the choices. Unlabeled data is not unstructured or unbiased. Recording source, language, speaker population, channel, content, filtering and duplicate material all shape what the encoder learns and where it transfers. None of that appears in the pretraining loss. The loss falls just as smoothly whether the corpus was well assembled or not.

Two clips of the same speaker pushed apart as negatives teach the encoder something false. The pretraining loss will not report it. That audit belongs to whoever assembled the corpus.

The objective decides what invariance you get

Self-supervised speech learning constructs its prediction targets from the audio itself: masked latent units, contrastive alternatives, clusters, or teacher representations. That is what makes it possible to pretrain on material nobody transcribed. It is also why pretraining can reduce how much labelled data a downstream task needs.

And it is why the corpus choices from the opening list survive into the model. The learned invariances follow the objective and the corpus together. The gap between two objectives is measurable rather than rhetorical. HuBERT throws out the contrastive objective and predicts masked offline k-means cluster targets instead. It starts from a simple k-means teacher of 100 clusters and two iterations of clustering. The result, in the authors' own summary: “Using a 1B parameter model, HuBERT shows up to 19% and 13% relative WER reduction on the more challenging dev-other and test-other evaluation subsets.” That is Hsu and colleagues, 2021. HuBERT matches or improves on wav2vec 2.0 across the 10min, 1h, 10h, 100h and 960h fine-tuning subsets. The two figures it moves most are the hard splits.

So a masking target, a contrastive one, a clustering one and a teacher-matching one each collapse a different set of differences. Each keeps a different set alive in what the encoder hands downstream. 19% and 13% on dev-other and test-other is what that difference looks like when someone measures it. The question worth asking about an encoder is not how large it is. It is whether its pretext objective left fine-tuning anything useful to hold on to.

Which puts the number everyone quotes in an awkward position. A figure showing how little labelled data the model needed cannot carry the decision by itself. And the figure that moved this whole field is very good indeed.

Pretraining on whatever audio was easy to collect writes that collection's blind spots into every task built on the encoder.

Case

Ten minutes of labels, 53,000 hours of audiobooks

The result that changed the economics is a labelled-data figure, not an accuracy figure. wav2vec 2.0 reached 1.8 and 3.3 word error rate on LibriSpeech clean and other using all the labels. With ten minutes of labelled audio and 53,000 hours of unlabelled pre-training it still reached 4.8 and 8.2. The accuracy is worse; the trade is the point. Ten minutes of transcription bought a working recognizer, because the 53,000 hours had already done the structural work.

Those hours have a name and a provenance, and both belong in the sentence. They come from Libri-Light, a 2020 corpus its authors described this way: “It contains over 60K hours of audio, which is, to our knowledge, the largest freely-available corpus of speech.” The audio is English, derived from LibriVox audiobooks, segmented by voice activity detection and tagged with SNR, speaker ID and genre. That is read English audiobooks by volunteer readers. It is not a sample of how people speak. The 53,000 hours are not a neutral quantity of "audio". They are a particular room, a particular language, a particular way of using a voice.

SUPERB then asked a different question, in 2021: how far one frozen representation carries across ten tasks, with only lightweight heads on top. That framing is what makes a pre-trained encoder a shared asset rather than one model. A shared asset also shares whatever it happens to have learned. Every gap in those 60K hours of volunteer audiobook reading is inherited by every task built on top, at no extra cost and with no separate warning.

Figure

What ten minutes of transcription buys once 53,000 hours of untranscribed audio have already been paid for.

Example

0.35 for black speakers, 0.19 for white speakers, five vendors

That inheritance has a measured shape, and it was measured. Five commercial ASR systems were tested on structured interviews: Amazon, Apple, Google, IBM and Microsoft. The material was 19.8 hours of audio across five US cities, 42 white and 73 black speakers, matched on speaker age and gender. The finding, in the authors' words: “We found that all five ASR systems exhibited substantial racial disparities, with an average word error rate (WER) of 0.35 for black speakers compared with 0.19 for white speakers.” That is Koenecke and colleagues, in PNAS in 2020.

The gap held on identical phrases spoken by both groups. That is what let the authors trace it to the acoustic models rather than to what people were saying. Five independent vendors, one direction of error. A review that asks only how few labels the model needed downstream — the wav2vec question, the one the field learned to ask first — has no column in which 0.35 against 0.19 would appear at all.

  • The decision this lesson is really about is what masked prediction, contrastive learning, quantization, teacher–student targets, fine-tuning and transfer each buy, and where the representation they produce stops. Koenecke and colleagues found where five deployed systems stopped: 0.35 against 0.19.
  • The failure running underneath all of it is the first one on the opening list. Related audio inside a contrastive batch, scored as a negative when it is nothing of the kind — exactly the randomly sampled negatives that may in reality have the same label.
  • The evidence anyone thinks to ask for is label efficiency across several downstream tasks — the 1.8/3.3 and 4.8/8.2 kind of number — and no arrangement of those four figures reports a 0.35-against-0.19 gap.
  • The practical response is to report the hours, sources, languages, devices, speakers, rights and filters behind the corpus. That the 53,000 hours were LibriVox audiobook readings in English, for instance. A missing acoustic condition can then be found before it is inherited.

Example

Pretraining pays out differently in four places

Once the encoder is a shared asset it gets sent to jobs that have little in common. Speaker tasks inherit identity cues from the representation, whether or not anyone intended them — the third shortcut from the opening list, arriving as a feature. Audio classification gets transfer from generic encoders, with gains that depend on the domain. Low-resource ASR and on-device systems ask the same pretrained encoder for other things again.

The clearest live example of the trade sits in the first row. Meta's Massively Multilingual Speech project built self-supervised wav2vec 2.0 models covering 1,406 languages. It added an ASR model for 1,107 languages and language identification for 4,017. It more than halved Whisper's word error rate on 54 FLEURS languages. It is also open about where the audio came from: “The main ingredients are a new dataset based on readings of publicly available religious texts and effectively leveraging self-supervised learning.” That is Pratap and colleagues, 2023. A content and speaker skew, documented in the same paragraph as the win. The units differ for each of the four rows below, and so does the thing that would have to be shown.

  • In low-resource ASR, pretraining can improve label efficiency — ASR for 1,107 languages and Whisper's word error rate more than halved on 54 FLEURS languages, out of readings of publicly available religious texts.
  • In speaker tasks, the representation may retain identity cues, intentionally or accidentally, and the objective never had to be asked about it.
  • In audio classification, generic encoders transfer, with gains that depend on the domain they are pointed at.
  • On-device systems usually cannot take a large pretrained model as it stands and need compression or distillation — and a 1B-parameter model of the HuBERT kind is exactly what does not fit.

Example

A negative sample is a sampling rule

Each of those four rows would need its own proof, its own unit and its own owner. Owner is the word that matters. A pretext objective is chosen by an engineer: k-means cluster targets over a contrastive loss, 100 clusters rather than some other number, two iterations rather than one. A negative sample is chosen by a sampling rule, and somebody wrote the rule. It is the rule debiased contrastive learning describes, the one that takes dissimilar points to be randomly sampled datapoints. Neither is a fact about the data. Both are design decisions. That is why related audio scored as a negative is a mistake somebody made rather than bad luck somebody suffered. Masked prediction and fine-tuning are what sit around them.

  • A pretext objective is a learning task built out of the data itself in order to create supervision where no labels exist.
  • Masked prediction is predicting hidden portions of an input from the context around them — in HuBERT, offline k-means cluster targets on the masked spans.
  • A negative sample is an alternative representation used in a contrastive objective — the thing the model is pushed away from, and the thing debiased contrastive learning corrects for.
  • Fine-tuning is updating pretrained parameters for a downstream task, at 10min, 1h, 10h, 100h or 960h of labels.

Visual

Probe the frozen encoder before fine-tuning

The order of the work is unforgiving. The pretext objective is chosen first, and it constrains the corpus that gets built after it. Fine-tuning, at the far end, is where a team finally learns whether the constraint was met. Between those two points nothing reports on the objective directly.

Which is the argument for the frozen probe. Reading the representation before fine-tuning touches it is the one moment the objective's own work can be inspected. Every later view of it comes through a downstream score that labels have already repaired. This is also what SUPERB was built to do, with lightweight heads on a frozen shared model across ten tasks. Koenecke and colleagues recorded 42 white and 73 black speakers, 19.8 hours across five US cities. Run a probe over speaker populations like those and it reports the 0.35-against-0.19 shape of a system. It reports it before the averages absorb it.

FigureProcess · 4 steps
  1. 1. Define the pretext objective

    Choose masked prediction, contrastive discrimination, clustering, or teacher targets.

  2. 2. Build the corpus

    Document language, speaker, channel, rights, duplication, and duration distributions.

  3. 3. Pretrain and probe

    Track objective behavior and evaluate frozen representations on diverse tasks.

  4. 4. Fine-tune responsibly

    Compare label efficiency, full fine-tuning, adapters, and from-scratch baselines.

Fine-tuning inherits the pretext objective as a fact about the representations, so an objective that taught the wrong thing shows up only as weak downstream results.

Analogy

Learning the structure of a language from puzzles without answer sheets

Fill-in-the-blank and matching puzzles built from the material itself teach recurring structure, and not necessarily the job that comes later. They are also only ever as broad as the material they were cut from. If the material is 60K hours of volunteer audiobook reading in English, that is the breadth. A puzzle book has an author. So do pretext targets and negatives, and an engineer's choice of them can hide a shortcut the encoder will happily take — a rule that solves every puzzle in the book without learning much of the language.

Self-supervision removes manual labels, not assumptions or dataset governance.

Steps

Create a pretraining evidence card

The corpus report asked for earlier already exists as a published standard, with a fixed field list. Gebru and colleagues set it out in Communications of the ACM in 2021: “By analogy, we propose that every dataset be accompanied with a datasheet that documents its motivation, composition, collection process, recommended uses, and so on.” Motivation, composition, collection process, recommended uses. A pretraining evidence card is that document, written for the unlabelled hours.

The test of a good one is adversarial. Another team should be able to pick it up and argue, from the card alone, that some of the negatives in a contrastive batch were not negatives at all. Three things go on it. What the pretext objective assumes. One counterexample. What fine-tuning does with the answer. Written for Libri-Light, the first would have had to say what the composition is: English LibriVox audiobook readings, segmented by voice activity detection and tagged with SNR, speaker ID and genre. The counterexample was published in PNAS in 2020, at 0.35 against 0.19.

FigureProcess · 4 steps
  1. 1. Describe the corpus

    Report hours, sources, languages, devices, speakers, rights, and filters.

  2. 2. Describe the targets

    State what information the objective rewards and ignores.

  3. 3. Choose transfer tests

    Include ASR, speaker, event, and paralinguistic probes where appropriate.

  4. 4. Define exclusions

    List tasks or populations the evidence does not support.

An evidence card that only lists what the encoder handles is advertising; the useful half is the tasks and populations you will admit it has not been shown to support.

Example

Ask what the representation remembers

That card is the difference between four numbers and one. Label efficiency across several downstream tasks is the first. Frozen-probe and fine-tuned performance is a second, and the distance between the two is where the objective's own contribution becomes visible. Difficult slices — the ones where related audio was treated as a negative example — are a third. Privacy leakage, memorization and demographic probe behavior is a fourth. It is the only one that asks what the representation remembers about the people in the corpus, rather than what it can do for you.

SUPERB shows how much that fourth question turns up when someone bothers to ask it. The method is plain: “We present a simple framework to solve SUPERB tasks by learning task-specialized lightweight prediction heads on top of the frozen shared model.” That is Yang and colleagues, 2021. On speaker identification, their Table 2 puts frozen HuBERT Large at 90.33% accuracy and wav2vec 2.0 Large at 86.14%. FBANK features, under the same linear head, reach 8.5E-4%. Nobody asked either encoder to learn who was speaking. That difference is a memory of the people in the corpus, sitting in the weights where the fine-tuning score will never mention it.

Report the first number without the other three and it is carrying the release claim by itself. 0.35 against 0.19 is what that omission cost five deployed systems.

  • For the core task, the evidence is label efficiency across several downstream tasks — 1.8/3.3 with all the labels, 4.8/8.2 with ten minutes.
  • For system behavior, it is frozen-probe and fine-tuned performance, reported side by side rather than one instead of the other, as SUPERB does across ten tasks.
  • The robustness slice is transfer across language, device and domain — 1,107 languages in one direction, 42 white and 73 black speakers across five US cities in the other.
  • Over the model's working life, the evidence is privacy leakage, memorization and demographic probe behavior. 90.33% speaker identification from a frozen encoder against 8.5E-4% from FBANK is the memorization question already answered.

Report label efficiency across several downstream tasks together with privacy leakage, memorization, and demographic probe behavior.

Key takeaways