AI Wiki中文/EN

HuBERT: learn from fixed clusters by predicting hidden frames

HuBERT

Derive offline cluster targets, masked cosine classification and label-rate alignment; test consistency, gradients and a one-cluster counterexample.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

Can a model learn from labels that nobody named?

Imagine a collection of recordings with no transcripts. A clustering program groups short acoustic frames and calls the groups 0, 1 and 2. Those numbers do not mean “vowel,” “speaker” or particular words. Could predicting them still teach a speech model something useful?

HuBERT, short for Hidden-Unit BERT, turns this into a masked prediction task. An offline teacher assigns cluster IDs to complete acoustic features. A student receives audio with some latent frames hidden and predicts the teacher’s IDs at those positions. To succeed, it must use the available context. The teacher can be imperfect; what matters is whether its targets supply learnable structure. This is the paper’s motivation, not a guarantee that arbitrary mistakes are harmless. Method and motivation

Three objects need different names: the teacher’s acoustic features, the integer cluster labels, and the student’s learned representations. A cluster ID is a training target. It is not a phoneme annotation, and a low prediction loss alone does not establish speech understanding. We will test that distinction with a one-cluster counterexample and with labels that change inconsistently for identical contexts.

A fixed offline teacher supplies cluster IDs. The small student reduces prediction loss without changing the next partition; consistent labels and a useful speech representation remain different questions.
A fixed offline teacher supplies cluster IDs. The small student reduces prediction loss without changing the next partition; consistent labels and a useful speech representation remain different questions.

Freeze a teacher, hide frames, predict its classes

The teacher makes a partition

For TT feature vectors xt∈RDx_t\in\mathbb R^D and CC centers μk\mu_k, Lloyd k-means alternates nearest-center assignments and center updates. Its objective is total squared distance, also called inertia. Here AkA_k is the set assigned to center kk:

zt=arg⁡min⁡0≤k<C∥xt−μk∥2,Ak={t:zt=k},μk←1∣Ak∣∑t∈Akxt(∣Ak∣>0).z_t=\arg\min_{0\le k<C}\|x_t-\mu_k\|^2,\qquad A_k=\{t:z_t=k\},\qquad \mu_k\leftarrow\frac{1}{|A_k|}\sum_{t\in A_k}x_t\quad(|A_k|>0).

Our implementation takes explicit initial centers, breaks ties by the lowest index, retains the old center for an empty cluster, and runs a fixed number of iterations. These decisions make its behavior reproducible. The paper’s unit-discovery experiments instead describe sampled features and MiniBatchKMeans with k-means++ initialization. Its first teacher uses 39-dimensional MFCC features, including differences, with 100 clusters; a later teacher uses learned hidden features with 500 clusters. Those are experimental choices, not the definition of HuBERT. Unit discovery

During a student-training round, cluster labels stay fixed. After training, a selected layer can supply new features for another offline clustering pass. With round index rr, a schematic cycle is:

Z(r)=Cluster⁡(H(r)),θ(r+1)≈arg⁡min⁡θL(θ;Z(r)),H(r+1)=Features⁡θ(r+1)(X).Z^{(r)}=\operatorname{Cluster}(H^{(r)}),\qquad \theta^{(r+1)}\approx\arg\min_{\theta}\mathcal L(\theta;Z^{(r)}),\qquad H^{(r+1)}=\operatorname{Features}_{\theta^{(r+1)}}(X).

The approximation sign matters: finite training need not reach a global minimum. Clustering and student optimization are separate operations; there is no gradient through a fixed integer assignment in this procedure. A new partition is not automatically better. The paper also considers several clustering targets with separate prediction heads. This target ensemble differs from concatenating entries from several learned codebooks in wav2vec 2.0. Iterative refinement and ensembles

The student predicts what was hidden

The full model takes the waveform through a convolutional encoder. At selected latent positions MM, a mask embedding replaces the continuous feature before a Transformer supplies context. The unmodified acoustic input was available when making the teacher labels. For latent feature ata_t, mask vector mm and projected student representation hth_t:

a~t={mt∈M,att∉M,ht=P Transformer⁡(A~)t.\widetilde a_t=\begin{cases}m&t\in M,\\a_t&t\notin M,\end{cases}\qquad h_t=P\,\operatorname{Transformer}(\widetilde A)_t.

Thus “masking” describes the student’s input path, not deleting its teacher target. The student must predict a target despite the missing local feature. Our small implementation below uses visible-neighbor averages instead of this neural encoder, so its information access can be checked directly. Architecture and masking

Each class has a learned embedding eke_k in the same space as hth_t. These embeddings are classifier parameters, not the teacher’s cluster centers; the two spaces need not even have the same dimension. For nonzero vectors and temperature τ>0\tau>0, the full-class cosine head is:

stk=ht⊤ek∥ht∥∥ek∥,pt(k)=exp⁡(stk/τ)∑j=0C−1exp⁡(stj/τ).s_{tk}=\frac{h_t^\top e_k}{\|h_t\|\|e_k\|},\qquad p_t(k)=\frac{\exp(s_{tk}/\tau)}{\sum_{j=0}^{C-1}\exp(s_{tj}/\tau)}.

The fixed fairseq implementation constructs a positive column and candidate class columns, then removes candidates whose embeddings exactly equal the positive embedding. With distinct class vectors this represents the same class competition as the formula above. If different classes have exactly equal embeddings, its filtering differs from our dense CC-class head; we do not claim equivalence on that boundary. Cosine scoring and filtering

Let Nm=∣M∣N_m=|M| and Nu=T−NmN_u=T-N_m. Our objective uses separately averaged masked and unmasked losses, weighted by wm,wu≥0w_m,w_u\ge0. A term with zero weight is omitted; a positive weight requires a nonempty partition:

ℓt=−log⁡pt(zt),L=wmNm∑t∈Mℓt+wuNu∑t∉Mℓt.\ell_t=-\log p_t(z_t),\qquad \mathcal L=\frac{w_m}{N_m}\sum_{t\in M}\ell_t+\frac{w_u}{N_u}\sum_{t\notin M}\ell_t.

The early paper’s equations 1–2 print sums of log probabilities without a leading minus sign while describing cross-entropy loss. The minimization convention here uses the minus sign, consistent with the official criterion. That criterion sums losses and tracks sample size; our two partition means are not generally the same reduction. Its default masked weight is 1 and unmasked weight 0. Adding an unmasked term changes the task: an unmasked frame exposes its own local feature, which can make target prediction easier without requiring the same contextual inference. Objectives Criterion

To see how learning reaches a representation, define row weight bt=wm/Nmb_t=w_m/N_m or wu/Nuw_u/N_u, and unit vectors h^t,e^k\widehat h_t,\widehat e_k. Differentiate log-softmax first, then cosine similarity:

∂L∂stk=btτ(pt(k)−1[k=zt]),∂L∂ht=btτ∥ht∥∑k(pt(k)−1[k=zt])(e^k−stkh^t).\frac{\partial\mathcal L}{\partial s_{tk}}=\frac{b_t}{\tau}\bigl(p_t(k)-\mathbf1[k=z_t]\bigr),\qquad \frac{\partial\mathcal L}{\partial h_t}=\frac{b_t}{\tau\|h_t\|}\sum_k\bigl(p_t(k)-\mathbf1[k=z_t]\bigr)(\widehat e_k-s_{tk}\widehat h_t).

The first factor is the probability error; the second describes how changing a vector changes its angle. Embedding gradients accumulate contributions from all frames. When a row’s weight is zero, its direct feature gradient is zero. Shared upstream parameters may still change through other rows. Zero-length vectors are rejected because this formula requires their directions.

Label rates must agree

The official preparation guide distinguishes MFCC labels at 100 Hz from HuBERT features at 50 Hz. A student frame therefore does not always use the teacher label with the same array index. With waveform sample rate fsf_s, total encoder stride SS, label rate fℓf_\ell and LL available labels, the fixed implementation uses a rate ratio and trims an overly long feature sequence:

ρ=fℓSfs,it=⌊tρ⌋,T′={⌊L/ρ⌋ρT>L,TρT≤L.\rho=\frac{f_\ell S}{f_s},\qquad i_t=\lfloor t\rho\rfloor,\qquad T'=\begin{cases}\lfloor L/\rho\rfloor&\rho T>L,\\T&\rho T\le L.\end{cases}

Our helper covers only integer ratios 1 through 4. For ratio 2, frames 0, 1 and 2 use labels 0, 2 and 4. This aligns sampled pseudo-label streams according to the configured rates. It neither discovers word boundaries nor certifies precise phoneme timestamps. Label preparation Indexing and truncation

A complete small teacher-and-student experiment

Save the following program as hubert.py and run it with Python 3.12 and NumPy 1.26.4. It generates all data locally and needs no GPU. There are 12 two-dimensional points, three teacher clusters and six masked positions. A masked row receives only the mean of unmasked neighbors within radius 2; every masked input is excluded, not just the current row. No visible neighbor causes an explicit error.

The student here is a 2×22\times2 linear projection followed by the cosine head. For convenient numerical initialization, class embeddings are set to the teacher centers and kept fixed in the demonstration; that does not identify the two objects in actual HuBERT. The program computes both feature and embedding derivatives, but updates only the projection for 12 steps of size 0.03. It has no waveform convolution, Transformer, learned mask token, real speech or language decoder.

"""Offline cluster targets and a tiny masked cosine head; not HuBERT inference."""
import json
import numpy as np


def real(values, ndim):
    raw = np.asarray(values)
    if raw.ndim != ndim or raw.dtype.kind not in 'fiu':
        raise ValueError('Real numeric array of the declared rank required')
    x = raw.astype(float)
    if not np.isfinite(x).all() or np.max(np.abs(x), initial=0) > 20:
        raise ValueError('Finite entries within +/-20 required')
    return x


def labels_for(values, count, classes):
    y = np.asarray(values)
    if y.shape != (count,) or y.dtype.kind not in 'iu' or not ((y >= 0) & (y < classes)).all():
        raise ValueError('One valid integer class per frame required')
    return y.astype(int)


def mask_for(values, count):
    mask = np.asarray(values)
    if mask.shape != (count,) or mask.dtype.kind != 'b':
        raise ValueError('An explicit Boolean frame mask is required')
    return mask


def cluster(values, initial_centers, iterations=6):
    x, centers = real(values, 2), real(initial_centers, 2)
    if not (1 <= len(x) <= 32 and 1 <= x.shape[1] <= 8 and 1 <= len(centers) <= min(6,len(x))) or centers.shape[1] != x.shape[1]:
        raise ValueError('Bounded observations and matching cluster centers required')
    if type(iterations) is not int or not 0 <= iterations <= 16:
        raise ValueError('Use 0..16 Lloyd iterations')
    centers = centers.copy(); history=[]; assignments=[]
    for step in range(iterations+1):
        distance = ((x[:,None,:]-centers[None,:,:])**2).sum(axis=-1)
        labels = np.argmin(distance, axis=1)
        history.append(float(distance[np.arange(len(x)),labels].sum()))
        assignments.append(labels.copy())
        if step < iterations:
            for k in range(len(centers)):
                if np.any(labels == k): centers[k] = x[labels == k].mean(axis=0)
                # An empty cluster retains its previous center.
    return dict(centers=centers, labels=labels, inertia=history,
                assignments=assignments, tie_policy='lowest center index')


def masked_context(values, mask, radius=2):
    x = real(values, 2)
    if not (1 <= len(x) <= 32 and 1 <= x.shape[1] <= 8) or type(radius) is not int or not 1 <= radius <= 4:
        raise ValueError('Use a bounded sequence and radius1..4')
    mask = mask_for(mask, len(x)); output=x.copy()
    for t in np.flatnonzero(mask):
        neighbors=np.arange(max(0,t-radius),min(len(x),t+radius+1))
        visible=neighbors[~mask[neighbors]]
        if not len(visible): raise ValueError('A masked position has no visible local context')
        output[t]=x[visible].mean(axis=0)
    # Unmasked rows pass through; masked rows cannot access any masked input value.
    return output


def prediction(features, labels, embeddings, mask, weights=(1.,0.), tau=.2):
    x, e = real(features, 2), real(embeddings, 2)
    if not (1 <= len(x) <= 32 and 1 <= x.shape[1] <= 8 and 1 <= len(e) <= 6) or e.shape[1] != x.shape[1]:
        raise ValueError('Matching finite head dimensions required')
    y=labels_for(labels,len(x),len(e)); mask=mask_for(mask,len(x)); w=real(weights,1)
    if w.shape != (2,) or not ((w>=0)&(w<=2)).all() or w.sum() == 0:
        raise ValueError('Nonnegative masked/unmasked weights, at least one positive')
    if isinstance(tau,(bool,np.bool_)) or not isinstance(tau,(int,float,np.integer,np.floating)) or not .05 <= tau <= 5:
        raise ValueError('Temperature must be in [0.05,5]')
    xn,en=np.linalg.norm(x,axis=1),np.linalg.norm(e,axis=1)
    if (xn<1e-8).any() or (en<1e-8).any():raise ValueError('Cosine vectors must be nonzero')
    a,b=x/xn[:,None],e/en[:,None]; cosine=a@b.T; logits=cosine/tau
    peak=logits.max(axis=1,keepdims=True); exp=np.exp(logits-peak); p=exp/exp.sum(axis=1,keepdims=True)
    losses=(peak[:,0]+np.log(exp.sum(axis=1))-logits[np.arange(len(x)),y])
    row_weight=np.zeros(len(x)); means=[]
    for select,weight in zip((mask,~mask),w):
        count=int(select.sum());means.append(float(losses[select].mean()) if count else None)
        if weight and not count:raise ValueError('A positively weighted partition is empty')
        if count:row_weight[select]=weight/count
    ds=p.copy();ds[np.arange(len(x)),y]-=1;ds*=row_weight[:,None]/tau
    dx=(ds@b-(ds*cosine).sum(axis=1)[:,None]*a)/xn[:,None]
    de=(ds.T@a-(ds*cosine).sum(axis=0)[:,None]*b)/en[:,None]
    return dict(loss=float(row_weight@losses),masked_mean=means[0],unmasked_mean=means[1],
                probabilities=p, predictions=p.argmax(axis=1), row_weights=row_weight,
                feature_gradient=dx,embedding_gradient=de)


def align_labels(labels, feature_frames, ratio=2):
    raw=np.asarray(labels)
    if raw.ndim!=1 or raw.dtype.kind not in 'iu' or not 1<=len(raw)<=64 or not ((raw>=0)&(raw<6)).all():
        raise ValueError('Finite integer pseudo-label sequence required')
    if type(feature_frames) is not int or not 1<=feature_frames<=32 or type(ratio) is not int or not 1<=ratio<=4:
        raise ValueError('Integer label/feature rate ratio1..4 required')
    count=min(feature_frames,len(raw)//ratio)
    if not count:raise ValueError('No complete feature/target step remains')
    indices=np.arange(count)*ratio
    return dict(labels=raw[indices],indices=indices,retained_frames=count)


def conditional_entropy(keys, labels):
    if not isinstance(keys,(list,tuple)) or not 1<=len(keys)<=32 or any(not isinstance(k,str) or not 1<=len(k)<=20 for k in keys):
        raise ValueError('Short explicit context keys required')
    y=labels_for(labels,len(keys),6);total=0.
    for key in sorted(set(keys)):
        part=y[[k==key for k in keys]];counts=np.bincount(part,minlength=6);p=counts[counts>0]/len(part)
        total+=len(part)/len(keys)*float(-(p*np.log(p)).sum())
    return total


def clean(x):
    if isinstance(x,np.ndarray):return x.tolist()
    if isinstance(x,dict):return {k:clean(v) for k,v in x.items()}
    if isinstance(x,(list,tuple)):return [clean(v) for v in x]
    if isinstance(x,np.generic):return x.item()
    return x


def demo():
    centers=np.array([[1,-1],[1,0],[1,1]],float)
    noise=np.array([[-.04,.02],[.02,-.03],[.03,.03],[-.01,-.02]])
    x=np.vstack([c+noise for c in centers]);teacher=cluster(x,x[[0,4,8]])
    mask=np.tile([False,True,True,False],3);context=masked_context(x,mask)
    projection=np.array([[.5,.8],[-.7,.4]]);initial=prediction(context@projection,teacher['labels'],teacher['centers'],mask)
    trace=[];w=projection.copy()
    for step in range(13):
        r=prediction(context@w,teacher['labels'],teacher['centers'],mask);trace.append(r['loss'])
        if step<12:w-=.03*(context.T@r['feature_gradient'])
    final=prediction(context@w,teacher['labels'],teacher['centers'],mask)
    # A new offline clustering pass on this toy head's features; no improvement guarantee.
    refined=cluster(x@w,teacher['centers']@w)
    keys=['A']*4+['B']*4;stable=[0]*4+[1]*4
    return clean(dict(features=x,teacher=teacher,mask=mask,context=context,initial=initial,
        initial_projection=projection,trained_projection=w,training_losses=trace,final=final,
        next_teacher=refined,aligned=align_labels(np.repeat(teacher['labels'],2),12),
        entropy=dict(stable=conditional_entropy(keys,stable),
                     global_relabel=conditional_entropy(keys,[1-k for k in stable]),
                     inconsistent=conditional_entropy(keys,[0,1]*4))))


if __name__=='__main__':
    print(json.dumps(demo(),ensure_ascii=False,indent=2,allow_nan=False))

Teacher inertia falls from 0.0408 to 0.0168. The masked prediction loss falls from 1.935603 to 0.751631. Re-clustering the resulting projected features leaves all 12 labels unchanged. These are three separate observations: a better k-means fit, a lower fixed-target prediction loss, and no changed partition. None alone demonstrates improved transcription.

Try changing a masked input after fixing teacher labels: masked_context must return the same result. Change an unmasked neighbor instead and the masked representation can change. This separates a check of information access from a check that the loss decreases. Next set both loss weights to 1 and inspect the two means; adding them does not produce the average across all frames.

For II Lloyd iterations, TT frames, CC clusters and DD dimensions, the program’s clustering costs O((I+1)TCD)O((I+1)TCD) time. Its broadcast distance array uses O(TCD)O(TCD) space, and saved assignments use O(IT)O(IT) space. With radius rr, context averaging costs O(TrD)O(TrD). The dense head and its gradients cost O(TCD)O(TCD) time and O(TC+TD+CD)O(TC+TD+CD) space. The conditional-entropy helper scans each distinct context key and can take O(N2)O(N^2) time for NN examples. These bounds describe this program, not full speech pretraining.

A consistent label need not be a good label

Suppose a predictor can only distinguish two context keys, A and B. With four copies of each, assign class 0 consistently to A and class 1 to B. Swapping both class names everywhere changes no predictive information. Instead alternate labels 0 and 1 within each identical context: a predictor seeing only that key cannot know which occurred. For empirical context variable UU and target ZZ, cross-entropy satisfies:

E[−log⁡q(Z∣U)]=H(Z∣U)+EUDKL(p(⋅∣U)∥q(⋅∣U))≥H(Z∣U).\mathbb E[-\log q(Z\mid U)]=H(Z\mid U)+\mathbb E_U D_{\mathrm{KL}}\bigl(p(\cdot\mid U)\|q(\cdot\mid U)\bigr)\ge H(Z\mid U).

The program gives conditional entropy 0 for stable labels and their global renaming, but log⁡2\log2 for balanced contradictory labels under the same keys. This is an information bound for a predictor restricted to those keys. A finite-temperature cosine head need not attain the bound. Giving every frame a single common class also makes classification loss zero, while discarding all distinctions. Consistency alone therefore cannot measure teacher usefulness.

Cluster count, acoustic features and the chosen hidden layer affect what a teacher preserves. A partition can reflect nuisance variation as well as useful sound structure. Evaluate the learned representation on held-out downstream tasks, with speaker and recording conditions separated appropriately. Do not treat pseudo-label accuracy as a substitute for the task metric.

For speech recognition, labeled fine-tuning connects these representations to text through a CTC objective. The early HuBERT paper’s fine-tuning setup freezes the convolutional feature encoder; that is a reported recipe, not a requirement for every subsequent use. The official guide distinguishes greedy decoding from language-model-assisted decoding. Report that choice, labeled data, pretraining data and normalization together when comparing recognition results. We have not reproduced its benchmark tables. Fine-tuning Preparation and decoding

Predict the result before running it

  1. You rename cluster 0 to 2 and cluster 2 to 0 everywhere. What must change in the student head to preserve its predictions and loss?

    Answer: Permute the corresponding class embedding rows and target IDs consistently. Class probabilities acquire the same new names and the probability of each correct target is unchanged. Renaming only targets changes the task. No phoneme meaning is attached to the original integers.

  2. Every row assigns probability 1/2 to each of two classes. Both masked and unmasked partitions are nonempty. What loss does our formula give for weights (1, 0) and (1, 1)?

    Answer: Each partition mean is log⁡2\log2. The losses are log⁡2≈0.693147\log2\approx0.693147 and 2log⁡2≈1.3862942\log2\approx1.386294. The second is a sum of two means, regardless of their sizes; it is not a single frame-average cross-entropy.

  3. At integer ratio 2, you request four feature frames but have only seven teacher labels. Which indices survive under the helper’s truncation rule?

    Answer: It retains min⁡(4,⌊7/2⌋)=3\min(4,\lfloor7/2\rfloor)=3 frames with indices 0, 2 and 4. Index 6 exists, but this particular rule first requires complete rate steps and trims the frame count; it does not merely keep every individually in-range index. This is why alignment policy must be explicit.

  4. A one-cluster teacher gives zero classification loss. Another teacher gives two balanced labels to every identical context key. Which result proves that a useful speech representation was learned?

    Answer: Neither. The first task has no class distinction to learn; the second has conditional entropy log⁡2\log2 for a predictor restricted to those keys. Use downstream evaluation to test usefulness, and investigate whether target variation is predictable from the information the student actually sees.

Read the teacher and the loss together

Read the original method for offline targets, masking, ensembles and iterative refinement. Then compare the implementation’s cosine candidates, rate conversion and criterion reduction. These are different levels of evidence: a proposed method, one fixed implementation and our independently calculated small example. The accompanying source notes record which sections and source ranges were actually inspected. Original method Model implementation Loss implementation Data and decoding guide

Make a prediction, then check

Does zero classification loss with one teacher cluster prove useful speech learning?

Choose one answer

Learning objectives

  • Distinguish teacher centers, integer targets and student class embeddings.
  • Derive masked and unmasked losses with explicit reduction and gradients.
  • Align pseudo-label sampling rates without claiming word boundaries.
  • Test label consistency and iterative clustering without assuming useful representations.

Prerequisites & connections

Explore related knowledge →

References

  1. HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units
    Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed · 2021
  2. fairseq: HuBERT model at 3d262bb
    fairseq contributors
  3. fairseq: HuBERT criterion at 3d262bb
    fairseq contributors
  4. fairseq: HuBERT data preparation and decoding at 3d262bb
    fairseq contributors

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Codex · 2026-09-13 · Single AI author checked fixed offline teacher labels versus student embeddings, Lloyd assignments, masking and iterative refinement, full-class cosine gradients, early-PDF missing negative sign, explicit partition means versus criterion sums, distinct-embedding NCE equivalence and label-rate truncation against scoped HuBERTv1 sections and fixed fairseq model/criterion/README ranges. Eight paired equations and four explained exercises. Visible-neighbor averages and a two-dimensional projection only; unchanged re-clustering labels and conditional-entropy examples do not demonstrate speech accuracy.

  • Checked Lloyd empty clusters and distortion0.0408 to0.0168, hidden-input exclusion, cosine finite differences, separate weighted means, consistent label permutations, integer-rate truncation, one-class zero loss and entropy0/0/log2. Projection loss1.935603 to0.751631 with12 labels unchanged after reclustering.
  • Four computed SVGs bind exact bilingual MDX. The two-topic group passed nine numeric/encoding checks and 12 isolated language/width cases with four fallback fonts; eight actual screenshots inspected by the AI author. Literal-prose AST checked before freezing. Full article browser acceptance is separate; no human peer review.

Source locations checked:

  • HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units · Read methodA–E, architecture/CTC and unit-discovery experimental fragments. Visually inspected physical pages2–3 figure1, equations1–3 and architecture table. Missing negative sign in early equations stated; no benchmark reproduced or parameter-count reconciliation claimed.
  • fairseq: HuBERT model at 3d262bb · Read rate ratio267–268, cosine candidate/filter384–403, label alignment409–419, embedding and masked/unmasked paths477–532 plus limited configuration assignments. Dense-class equivalence excludes identical cross-class embeddings; not a full model/data-loader audit.
  • fairseq: HuBERT criterion at 3d262bb · Read lines1–135: masked/unmasked defaults, cross-entropy sums, sample size, additional penalty and correctness counts. Toy partition means are explicitly different. Later distributed metrics not audited.
  • fairseq: HuBERT data preparation and decoding at 3d262bb · Read model table and data/label-rate, pretraining, CTC, greedy/LM decoding and normalize instructions (opening through roughly line84). Root MIT license read; no commands or models executed.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.