Audio AI Itọsọna

HuBERT Ọrọ Abojuto Ara-ẹni

HuBERT (Hidden-Unit BERT) is a self-supervised speech model from Facebook AI, published in June 2021, that learns from unlabeled audio by predicting cluster labels for masked stretches of speech.

Gbọ si itọsọna yiiAI-ṣe afihan · ~8 min

Lori iwe yi9 min kika
  1. Akopọ
  2. Awọn gbigba bọtini
  3. Jin Dive
  4. Making HuBERT units from a speech clip
  5. Real-World imuse
  6. Ọjọ iwaju ti Ọrọ Abojuto Ara-ẹni HuBERT
  7. Fifi o sinu iwa
  8. Awọn orisun ati siwaju kika
  9. Tesiwaju Ṣiṣawari
  10. Awọn ibeere ti a beere nigbagbogbo

Akopọ

It matched or beat wav2vec 2.0 on LibriSpeech speech recognition, and its discrete units became a standard building block for speech generation, compression and voice research.

Awọn gbigba bọtini

  1. HuBERT learns speech representations by predicting k-means cluster labels for masked spans of unlabeled audio.
  2. Its first labels come from clustering MFCC features into 100 groups, then from clustering its own hidden layers into 500.
  3. Fine-tuned on only 10 minutes of transcripts, HuBERT X-LARGE reached 4.6% WER on test-clean and 6.8% on test-other.
  4. HuBERT computes its loss only on masked frames, forcing it to infer hidden speech from surrounding context.
  5. HuBERT's discrete units are widely used for textless speech generation and low-bitrate speech resynthesis.

Jin Dive

HuBERT, short for Hidden-Unit BERT, is a method for learning useful representations of speech from recordings that have no transcripts. It was introduced by Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov and Abdelrahman Mohamed in a paper posted on June 14, 2021, with a Facebook AI blog post the next day. The trained model turns raw audio into a sequence of vectors, one every 20 milliseconds, that capture the sounds being spoken. Those vectors can then be fine-tuned with a small amount of labeled data for speech recognition or used directly for other speech tasks.

The idea borrows from BERT, the text model that learns by hiding some words in a sentence and predicting them. Speech makes this harder in three ways that the paper names: each utterance contains many sound units, there is no dictionary of those units to predict, and units have different lengths with no marked boundaries. HuBERT's answer is to create its own targets with an offline clustering step. K-means clustering, which groups similar vectors into a fixed number of clusters, assigns every 20 ms frame a cluster number. These numbers are the hidden units. They are noisy stand-ins for phonetic categories, but they are consistent: similar sounds get similar labels.

Training then proceeds like BERT. A convolutional encoder turns 16 kHz audio into frames, downsampling by a factor of 320. About 8% of frames are chosen as starting points and spans of 10 frames from each are replaced by a learned mask embedding. A transformer encoder reads the partly masked sequence and, at every masked frame, predicts which cluster that frame was assigned. The key design choice is computing the loss only on masked frames. To predict a hidden frame's label, the model must infer it from surrounding context, which forces it to learn both what sounds are present, like an acoustic model, and how speech sequences are structured, like a language model.

The clustering improves over iterations. In the first round, the authors clustered 39-dimensional MFCC features, a classic hand-designed summary of the speech spectrum, into 100 clusters. After training the BASE model for 250,000 steps on LibriSpeech's 960 hours, they clustered the output of its sixth transformer layer into 500 clusters and trained again for 400,000 steps. The LARGE and X-LARGE models were trained for one iteration on the 60,000-hour Libri-Light collection, using labels from the ninth layer of the second-iteration BASE model. The paper notes that HuBERT depends more on the consistency of the clustering than on how accurate the cluster labels are as phonetic categories.

The results matched or exceeded wav2vec 2.0, the leading self-supervised speech model at the time, across fine-tuning sets of 10 minutes, 1 hour, 10 hours, 100 hours and 960 hours. With only 10 minutes of labels, HuBERT LARGE reached 4.7% word error rate on test-clean and 7.6% on test-other, and the 1-billion-parameter X-LARGE reached 4.6% and 6.8%. With all 960 hours of labels, X-LARGE reached 1.8% on test-clean and 2.9% on test-other, against 1.8% and 3.3% for wav2vec 2.0 LARGE in the paper's comparison. The authors summarize the gain as up to 19% and 13% relative word error rate reduction on dev-other and test-other. The exceptions were small: with 100 hours of labels, HuBERT LARGE and BASE were each 0.1 points behind wav2vec 2.0 on one test set.

The main alternative, wav2vec 2.0, also masks speech, but it learns its discrete targets during training and uses a contrastive loss that must pick the true frame from sampled distractors. The HuBERT paper points out that this requires careful choice of negative samples, an extra diversity loss and a temperature schedule. HuBERT separates the two problems, discovering units offline and then training with a simple cross-entropy loss, which made training more direct. Compared with supervised speech recognition, both approaches need far less labeled data, which matters for languages and domains where transcripts are scarce.

HuBERT has clear limits. The published models were trained only on English read audiobooks from LibriVox, so they reflect that style and language, and results on other languages or spontaneous, noisy speech must be measured separately. The method needs repeated rounds of clustering and pre-training, and k-means over high-dimensional features for hundreds of hours of audio requires subsampling to fit in memory, which the authors note. HuBERT is an encoder, not a complete transcription system: it needs fine-tuning and a decoder, and the strongest reported numbers also used a language model during decoding. Its units capture mainly what is said, which is useful for content but means speaker identity and prosody must be handled by other components in generation systems.

The practical cost is concentrated in pre-training. The authors trained BASE on 32 GPUs and the LARGE and X-LARGE models on 128 and 256 GPUs for 400,000 steps each. Fine-tuning and use are far cheaper: pretrained and fine-tuned checkpoints were released through Facebook's fairseq repository and are available in Hugging Face Transformers, where a model loads in a few lines and expects raw audio sampled at 16 kHz. Three sizes exist, BASE with 95 million parameters, LARGE with 317 million and X-LARGE with 964 million.

04Apẹẹrẹ ṣiṣẹ

Making HuBERT units from a speech clip

  1. Load a 10-second English speech clip and resample it to 16 kHz, giving 160,000 samples.

  2. Pass it through a pretrained HuBERT BASE model and collect the hidden states, about 500 frames of 768 numbers each.

  3. Take the output of a middle transformer layer and fit k-means with 100 clusters on frames from many clips.

  4. Assign every frame of the test clip to its nearest cluster, giving a sequence of 500 integers.

  5. Merge consecutive repeated integers to get a shorter unit sequence, as textless speech models often do.

  6. Compare unit sequences for two speakers saying the same sentence and check which units line up.

Ohun ti o fihan

The learner gets a discrete pseudo-text for speech, one unit per 20 ms before merging. Similar unit sequences for the same words from different speakers show that HuBERT units mainly capture content, which is why they serve as tokens for spoken language models.

Real-World imuse

Low-resource speech recognition: after pre-training on 60,000 hours of unlabeled audiobook speech, HuBERT LARGE fine-tuned on only 10 minutes of transcribed audio reached 4.7% word error rate on LibriSpeech test-clean and 7.6% on test-other.

Textless speech generation: Meta's Generative Spoken Language Modeling work (2021) turned HuBERT features into discrete pseudo-text units, trained a language model on them and synthesized speech without any text.

Very low bitrate compression: Meta reported that its companion speech resynthesis work using HuBERT units reached 365 bits per second, and HuBERT ranked second only to uncompressed audio in a MUSHRA listening test.

Off-the-shelf transcription: Hugging Face Transformers hosts HuBERT checkpoints such as facebook/hubert-large-ls960-ft that transcribe 16 kHz English audio through a standard speech recognition pipeline.

Audio classification: the same library provides HubertForSequenceClassification, a HuBERT encoder with a pooled classification head, for tasks such as keyword spotting from the SUPERB benchmark.

Ọjọ iwaju ti Ọrọ Abojuto Ara-ẹni HuBERT

HuBERT's most lasting influence may be outside speech recognition. Its discrete units showed that speech can be modeled like text without any transcripts: Meta's Generative Spoken Language Modeling paper (February 2021, revised September 2021) compared HuBERT units with CPC and wav2vec 2.0 units for training language models on raw audio, and Meta's June 2021 announcement described generation and very low bitrate resynthesis built on HuBERT. Open questions include how to extend self-supervised speech models to many languages, accents and recording conditions when public pre-training data is dominated by English audiobooks, how to capture prosody, emotion and speaker identity that clustered content units tend to discard, and how to reduce the cost of iterative clustering and pre-training at large scale. The HuBERT authors said in 2021 that they planned to simplify training into a single phase instead of repeated rounds of clustering and pre-training. Comparisons also keep shifting. Newer models trained on far more varied data, with or without labels, have changed what counts as state of the art on many benchmarks since 2021, so HuBERT is now often used as a well-understood baseline and feature extractor rather than the best available recognizer. Choosing it today is mainly a question of whether its open checkpoints, 16 kHz English training data and discrete units fit the task.

Fifi o sinu iwa

Kini idi ti o ṣe pataki

  • Wiwọle ati arọwọto. O ṣe ilọsiwaju iraye si nipasẹ transcription, alaye, ati awọn atọkun ohun.
  • Iye owo ati isuna. Awọn ẹgbẹ Media le firanṣẹ ohun didan yiyara pẹlu awọn isuna-owo kekere.
  • Iyara ati iwọn. Awọn ọna ṣiṣe ti nkọju si alabara le ṣe ilana awọn ibaraẹnisọrọ sisọ ni iwọn nla.

Ṣọra fun

  • ilokulo ohun ati awọn ewu afarawe ṣe pọ si nigbati igbanilaaye ba sonu.
  • Yiye le ju silẹ kọja awọn asẹnti, awọn ede-ede, tabi awọn agbegbe alariwo.
  • Ohun afetigbọ sintetiki le jẹ aṣiṣe fun ọrọ ododo laisi isamisi to yege.

Next awọn igbesẹ

  1. Gba ifọkansi ti o fojuhan fun gbigba ohun, ti ẹda, ati ilotunlo.
  2. Didara idanwo kọja awọn agbohunsoke oniruuru ati awọn ipo abẹlẹ.
  3. Ṣetumo nigbati eniyan gbọdọ ṣe atunyẹwo tabi fọwọsi awọn abajade.
  4. Aami ohun sintetiki ki o tọju awọn igbasilẹ provenance fun iṣiro.

Awọn orisun ati siwaju kika

  1. arXivHuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units
  2. Meta AIHuBERT: Self-supervised representation learning for speech recognition, generation, and compression
  3. arXivGenerative Spoken Language Modeling from Raw Audio
  4. Hugging Face Transformers documentationHuBERT

Tesiwaju Ṣiṣawari

Ìwé ìròyìn ọfẹ

Gba ìkànìyàn AI ojoojúmọ́

Ìtàn AI mẹta tó jẹ́rìí ní gbogbo owurọ́ ọjọ́ iṣẹ́, kọ́wé ní Gẹ̀ẹ́sì tó rọrùn. Ọfẹ́ fún gbogbo àkókò, kò sí ìpolówó.

Ìmeèlì kan ní gbogbo ọjọ́ iṣẹ́. Yọkúrò ní ìkànìyàn ní ìkànìyàn kan. A kò ta tàbí pín àdírẹ́sì rẹ.

Ṣe idanwo fun ara rẹ

Take the HuBERT Self-Supervised Speech quiz

Ìdáhùn lẹ́sẹ̀kẹsẹ̀ lórí gbogbo ìdáhùn, àti iwe-ẹ̀rí tó lè pin pẹ̀lú ID tó lè jẹ́rìí lẹ́yìn tí o bá kọ́ ẹ̀kọ́.

Bẹrẹ adanwo

Ṣe àtìlẹ́yìn ẹ̀kọ́ AI ọfẹ́. AI Understanding jẹ́ àjọ àìní èrè 501(c)(3) — kò sí ìpolówó, kò sí àkúnya owó, ní gbogbo àkókò. Ṣe ẹbun kan

Awọn ibeere ti a beere nigbagbogbo

Kini Ọrọ Abojuto Ara-ẹni HuBERT?

HuBERT (Hidden-Unit BERT) is a self-supervised speech model from Facebook AI, published in June 2021, that learns from unlabeled audio by predicting cluster labels for masked stretches of speech. It matched or beat wav2vec 2.0 on LibriSpeech speech recognition, and its discrete units became a standard building block for speech generation, compression and voice research.

Bawo ni HuBERT ṣe ipilẹṣẹ awọn ibi-afẹde ti o gbiyanju lati ṣe asọtẹlẹ lakoko ikẹkọ?

Awọn iṣupọ HuBERT awọn ẹya fireemu ohun (nipasẹ k-tumosi) sinu awọn ẹya ti o farapamọ ọtọtọ ati asọtẹlẹ awọn aami iṣupọ wọnyẹn fun awọn fireemu ti o boju-boju.

Awoṣe ọrọ ti a mọ daradara wo ni o ṣe atilẹyin ero ikẹkọ asọtẹlẹ-boju ti HuBERT?

HuBERT (Ìpamọ-Ẹyọ BERT) ya àfojúsùn-ìsọtẹ́lẹ̀ BERT tí ó bò mọ́jú, ní fífi í sí àwọn ẹ̀ka ọ̀rọ̀ sísọ ọ̀tọ̀ọ̀tọ̀ dípò àwọn àmi ọrọ̀.

Bawo ni HuBERT ṣe ilọsiwaju awọn aami ibi-afẹde rẹ lori awọn aṣetunṣe ikẹkọ atẹle?

In later iterations, HuBERT clusters the model’s learned representations to create updated pseudo-labels; the paper does not identify these labels as verified phonemes.

Awọn ẹya wo ni a kojọpọ ni igbagbogbo ni aṣetunṣe akọkọ ti HuBERT?

Awọn iṣupọ aṣetunṣe akọkọ awọn ẹya MCCC ipilẹ; nigbamii iterations lo ni oro Transformer-Layer asoju.

Kini idi ti HuBERT le kọ ẹkọ eto ti o wulo paapaa nigbati iṣupọ rẹ jẹ alaipe?

Nitoripe ibi-afẹde naa kan jẹ asọtẹlẹ awọn ID iṣupọ ti a yàn fun awọn fireemu ti o boju-boju, iṣẹ-ṣiṣe naa wa ni ẹkọ ati ni ibamu pelu awọn iṣupọ ariwo.