Elamur Research

Learning Speech Representations with Variational Predictive Coding

Paper · 2026 · Sung-Lin Yeh, Peter Bell and Hao Tang

Summary

Learning useful representations of speech requires deciding what an encoder should learn from recordings that have no transcripts. HuBERT approaches this by hiding parts of an utterance and predicting discrete labels assigned to the missing acoustic frames. Its success leaves a methodological question: why should this combination of clustering and prediction be a good learning objective, and how can that objective be improved systematically? “Learning Speech Representations with Variational Predictive Coding” answers by deriving HuBERT’s training criterion from a more general account of prediction, compression, and reconstruction. The contribution concerns both the interpretation of an established method and practical changes to how its representations are learned.

The central idea is to treat a recording as something that can be divided into observed and hidden portions. A predictor uses the observed portion to estimate an intermediate message, and a decoder uses that message to reconstruct the hidden portion. In HuBERT, the messages are cluster identities. The authors show that predicting these identities and fitting the acoustic clusters belong to the same variational objective: a mathematical bound on the difficulty of predicting the missing signal. The classification loss measures disagreement between distributions over messages, while the clustering distortion corresponds to reconstruction under a Gaussian distribution. HuBERT’s familiar training procedure therefore optimizes different parts of a common criterion at different times.

This interpretation exposes a practical weakness. HuBERT first fits its acoustic codebook with k-means, then holds that codebook fixed while training the prediction network. The authors replace the hard choice of a nearest centroid with a distribution over centroids. This permits the codebook and predictor to learn together. They test exact averaging over possible codes and an approximation based on sampling with Gumbel softmax. Their masked-prediction variant, Masked-VPC, reaches a better pretraining objective than the HuBERT objective in the controlled comparisons. The same framework also expresses future prediction and clarifies relationships with earlier likelihood-based and contrastive approaches.

The improvement extends beyond the training criterion. Frozen representations become more useful for phone classification, speaker verification, and fundamental-frequency estimation, while speech recognition improves under both frozen-representation probing and supervised adaptation. On WSJ, CTC adaptation without a language model gives Masked-VPC word error rates of 14.1 on dev93 and 10.3 on eval92, compared with HuBERT Obj’s 15.5 and 12.5. The results are more conditional when external decoding information is added: with a 4-gram language model, Masked-VPC and HuBERT Obj both obtain 4.6 on eval92, while Masked-NCE reaches 4.4. Further training iterations help both approaches, but introduce sensitivity to codebook initialization. The paper establishes a useful design principle and several successful instances of it, rather than a guarantee that every variational formulation will improve every speech task.

Interesting ideas

Separate the criterion from the algorithm. An objective specifies what a system should optimize; a training procedure specifies how it attempts that optimization. The paper’s reinterpretation of HuBERT makes this distinction operational. Once clustering distortion and label prediction appear inside a shared criterion, fitting the clusters offline becomes an algorithmic choice that can be tested against joint learning. This way of thinking is useful whenever a pipeline contains an apparently separate preparation stage whose output becomes a fixed training target. Before changing the network, ask whether that stage is optimizing part of the same underlying problem.

Make intermediate messages explicit. A discrete target can be understood as a message connecting an observed context to a reconstruction target. That perspective forces useful questions: what information can the message carry, how is it inferred, and what makes it sufficient for reconstruction? Here, those questions distinguish an acoustic cluster identity from the continuous vector used in a contrastive comparison. Elsewhere, the same analysis could help examine systems that learn categories, bottleneck representations, or intermediate symbols. The reusable idea is the explicit accounting of information flow, instead of an assumption that any particular codebook has meaningful categories.

Relax a hard decision before optimizing jointly. Assigning every frame to its nearest centroid creates an abrupt decision that resists ordinary gradient-based updates. The authors soften that decision into a probability distribution determined by distances. The resulting uncertainty is useful computationally: it lets the full criterion influence the codebook. This suggests an experimental pattern for other staged learning systems. Identify the hard intermediate choice, introduce a smooth alternative, and compare the final task performance as well as the immediate optimization loss. The relaxation earns its place only if the resulting representations remain useful.

Treat regularization as part of the derivation. When cluster assignments become uncertain, the variational criterion contains an entropy term that disappeared under hard assignments. Its role is interpretable: minimizing negative entropy encourages a less concentrated assignment distribution. This differs from adding a separate penalty after observing a training problem. A researcher can borrow the habit of tracing regularization terms back to the probabilistic assumptions that generate them. Such a derivation does not remove the need for experiments, but it makes the effect of changing an assumption easier to understand.

Compare prediction tasks within one framework. Masked prediction and future prediction are often associated with different architectures and training traditions. The paper keeps their message distributions and reconstruction terms closely aligned, allowing the conditioning context to become the central comparison. The findings are task dependent: masked prediction better supports phone classification, while future prediction does better on the reported speaker and pitch probes. For engineering, this encourages matching the prediction task to the information a downstream application needs, rather than treating one pretraining arrangement as universally preferable.

Evaluate representation access as well as final adaptation. A system that performs well after substantial supervised training may not make useful information easily accessible beforehand. The paper therefore combines frozen-encoder probes with CTC adaptation. Linear phone and pitch probes ask whether particular information is readily recoverable; speech recognition tests ask whether the representations support a more demanding sequence task. This layered evaluation strategy can be reused whenever a representation is intended to serve several applications. It helps distinguish improved pretraining scores from improved access to information and from improved performance after adaptation.

Deep dive: Learning Speech Representations with Variational Predictive Coding

How variational predictive coding explains HuBERT, enables joint codebook training, and improves speech representations across downstream tasks. · about 32 minutes to read

How Mova uses it

For Mova, a small transparent language system written in Rust, the paper offers a possible design vocabulary rather than evidence of an implemented speech component. There is no established Mova integration to report. The concrete opportunity is to use the paper’s separation of context, message, and reconstruction when evaluating whether a compact intermediate representation would be useful. That is compatible with a system whose decisions should remain inspectable, but compatibility is a reason to investigate, not a measured result.

A prospective implementation could expose the codebook and its assignment process directly. For each acoustic frame, it could retain the distances to candidate centroids, the resulting assignment probabilities, and the prediction distribution obtained from surrounding speech. These quantities correspond to explicit components of the paper’s objective. Inspecting them would make it possible to distinguish several failure modes: an acoustic frame might fit no centroid well, its assignment might remain ambiguous, or the context predictor might confidently favor an unsuitable code. Such diagnostics would explain the behavior of the representation machinery without implying that the codes already correspond to linguistic categories.

The distinction between offline clustering and joint learning is particularly relevant to a transparent implementation. An offline version would provide a comparatively direct baseline: fit the acoustic centroids, freeze them, and train contextual prediction. A variational version would allow the centroid positions to change alongside the predictor. Mova could compare these alternatives using the same acoustic inputs and codebook capacity. The important borrowing would be the controlled comparison, with reconstruction and prediction measured separately, rather than assuming that the more flexible training procedure must be better.

The future-prediction variant offers another possible direction if Mova were extended to process incoming speech incrementally. It predicts representations from earlier frames rather than relying on context around a hidden span. The paper gives reasons to examine that arrangement, including its results on speaker verification and pitch estimation. It does not establish a Mova streaming recognizer, however, and it does not report the latency, memory use, or execution costs of a Rust implementation. Those would remain engineering questions requiring their own measurements.

The paper also suggests a disciplined boundary around any claim of interpretability. A finite codebook is easy to enumerate, but enumerability does not establish that its entries represent phones, speakers, or other human-readable concepts. The authors test what can be recovered from hidden representations; they do not assign a linguistic meaning to every learned code. For Mova, a sensible use would therefore combine inspectable assignments with downstream checks. A code inventory could become a useful diagnostic object without being presented as a complete explanation of speech.

Finally, the second-iteration results provide a concrete warning for such an experiment. Moving from acoustic features to richer hidden vectors changes the geometry of the assignment problem. Randomly chosen centroids can then collapse to effectively one used category, and distance-based probabilities can become excessively sharp. Any prospective Mova implementation would need to monitor code usage and assignment concentration as it changes the target representation. That is a directly motivated engineering lesson, while the existence and effectiveness of the implementation would still need to be demonstrated.

The problem and its context

Learning from speech without transcripts

The paper addresses representation learning for speech and spoken language. The aim is to turn acoustic observations into hidden vectors that make later tasks easier, while obtaining the initial training signal from the recordings themselves. Instead of requiring a transcript for every recording, a self-supervised procedure constructs a prediction problem from the signal. A downstream task can then use the resulting representations with a small supervised predictor or adapt the encoder more extensively.

The authors place training objectives at the center of this process. Transformer architectures make it possible to train powerful encoders, but an architecture alone does not determine which acoustic properties its hidden vectors will preserve. The objective supplies that pressure. Asking for future acoustic frames, asking for labels of hidden frames, and asking a system to distinguish a matching target from distractors are different ways of defining what counts as useful information.

HuBERT combines acoustic quantization with masked prediction. Quantization groups frames into a finite inventory, and a contextual encoder learns to predict the corresponding group identities at hidden positions. The paper describes this as a highly successful objective whose construction was supported mainly through experiments. Its concern is that empirical success did not yet provide a sufficiently general explanation of why these components belonged together.

That gap matters when trying to improve the method. Without a common criterion, a researcher can change the data, add another loss, or alter the architecture, but it is harder to identify which part of the original learning problem is being solved poorly. The authors want a formulation that makes those choices explicit enough to support targeted changes.

What earlier modifications changed

The introduction distinguishes improvements around HuBERT from improvements to its central objective. WavLM changes the training data through augmentation. BEST-RQ and MelHuBERT simplify aspects of training. Other approaches combine objectives, while multi-resolution training changes the resolution at which representations are learned. These are presented as productive directions, but they do not answer the authors’ question about the principle behind HuBERT’s own criterion.

The paper also traces HuBERT’s methodological ancestry. HuBERT draws on wav2vec 2.0 and DeepCluster. The former connects masked contextual processing with contrastive prediction, while the latter supplies a precedent for learning from cluster assignments. The relevant point is that HuBERT’s components come from recognizable ideas, yet their combination still benefits from a derivation that explains them together.

The authors do not claim that predictive coding is newly invented here. Instead, they argue that its general form can organize these existing speech objectives. Their task is to make that connection precise enough to include both randomly hidden spans and discrete intermediate targets.

Prediction as coding

In the paper’s account of classical predictive coding, an encoder predicts an incoming signal and communicates the residual error. A decoder makes a corresponding prediction and combines it with the residual to recover the signal. Coding is useful when communicating what the prediction missed is cheaper than communicating the original observations directly.

As predictive coding developed into learning procedures, its essential task became predicting one portion of a signal from another. The paper points to predicting later speech samples from preceding samples and predicting a central image location from its neighbors. These examples differ in what counts as context and target, but share the same conditional prediction structure.

This abstraction is important for masked speech learning. Prediction does not have to mean forecasting later time points. A randomly selected hidden span can be the target, with the remaining frames supplying context. Once the partition itself becomes a random variable, temporal prediction and masked prediction become different choices within a shared problem.

The additional ingredient needed for HuBERT is an intermediate message. Context does not directly determine a reconstructed frame in the authors’ formulation. It predicts a latent variable, and that variable supports reconstruction. This exposes both the discrete labels and the codebook that conventional descriptions of masked-label prediction can leave partly outside the main objective.

Likelihood and contrastive alternatives

The paper relates autoregressive predictive coding, or APC, to direct prediction of future frames. Its vector-quantized extension inserts a quantization stage while retaining a likelihood-based learning problem. The authors distinguish this from their variational construction: they explicitly specify latent variables and an auxiliary distribution that helps estimate the conditional likelihood.

MPC and DeCoAR replace forecasting with masked reconstruction. Their masking procedures differ: one uses multiple shorter spans, while the other hides a larger continuous region. DeCoAR 2.0 adds quantization. These connections reinforce the importance of separating the partition of the signal from the parameterization of the intermediate representation.

Contrastive approaches take another route. CPC and related quantized variants learn by distinguishing appropriate predictions from alternatives. The paper develops its most detailed contrastive connection through wav2vec 2.0, showing how a continuous latent target and an approximate normalization term lead from the shared framework toward its contrastive criterion.

The unification has limits even in the authors’ presentation. Methods that combine several objectives are outside the detailed comparison in this part of the paper. Furthermore, expressing different approaches with related distributions does not mean their original implementations become identical. The benefit is that important differences—continuous versus discrete targets, reconstruction versus no informative reconstruction, and offline versus joint codebook learning—can be stated explicitly.

The method, step by step

The method begins with a prediction problem and gradually introduces the pieces needed to recover HuBERT. The authors first define what is observed and what must be predicted. They then insert a latent message, derive a tractable training bound, and choose distributions that turn its terms into familiar clustering and classification losses. Finally, they change those choices to allow joint optimization.

From speech prediction to jointly learned codes

The steps in order.

From speech prediction to jointly learned codesStep 1: Extract acoustic frames1. Extract acoustic framesStep 2: Select visible and hidden portions2. Select visible and hidden portionsStep 3: Assign probabilities to latent codes3. Assign probabilities to latent codesStep 4: Predict codes from visible context4. Predict codes from visible contextStep 5: Reconstruct targets from codewords5. Reconstruct targets from codewordsStep 6: Update codebook and encoder together6. Update codebook and encoder together

Divide the signal into context and target

Let the signal be a sequence of acoustic frames. A partition divides it into the portion available as context and the portion that must be predicted. The basic criterion is:

E_(x_A,x_B)∼M(x) [−log p(x_B | x_A)]

Here, x denotes the complete signal. The subscript A identifies the observed portion x_A, and B identifies the target portion x_B. The distribution M(x) chooses partitions of that signal. The expectation E averages across those choices. The conditional probability p(x_B | x_A) expresses how well the target can be predicted from the context, and the negative logarithm turns a higher probability into a smaller loss.

Randomizing the partition prevents the task from being tied permanently to one selected part of an utterance. For future prediction, the division separates earlier observations from later ones. For masked prediction, the division follows a randomly generated mask. The criterion therefore describes a family of learning problems before committing to a specific encoder or codebook.

Introduce a message between prediction and reconstruction

The authors introduce z as an intermediate message. The context predicts z, and z supports reconstruction of the target. Their derivation assumes that, once z is known, the context provides no additional information needed by the reconstruction distribution:

x_B ⟂ x_A | z

The symbol ⟂ denotes conditional independence. The vertical bar means “given.” This assumption says that z mediates the relationship relevant to reconstructing x_B. It is part of the mathematical construction, rather than an empirical finding that any finite codebook perfectly captures speech.

The formulation includes an auxiliary distribution inferred from the target itself. The resulting objective is:

E_(x_A,x_B)∼M(x) [KL(q(z | x_B) ∥ p(z | x_A)) − E_z∼q(z|x_B) [log p(x_B | z)]]

The distribution q(z | x_B) describes plausible messages when the target is available during training. The distribution p(z | x_A) predicts messages from the observed context. KL is Kullback–Leibler divergence, which measures disagreement between these distributions. The decoder p(x_B | z) assigns probability to a reconstruction of the target. The inner expectation averages the reconstruction score over messages drawn from q.

This criterion is an upper bound on negative conditional log likelihood. Minimizing it seeks both agreement about the latent message and a message that supports reconstruction. The paper calls it negative free energy or negative ELBO. ELBO refers to an evidence lower bound; reversing the sign turns the lower bound on log likelihood into an upper bound on the corresponding loss.

The bound can be written for a particular partition as:

−log p(x_B | x_A) ≤ KL(q(z | x_B) ∥ p(z | x_A)) − E_z∼q(z|x_B) [log p(x_B | z)]

Every distribution has the same role as above. The inequality follows from the non-negative divergence between the chosen auxiliary distribution and the actual posterior over messages. The auxiliary distribution makes the criterion workable, but also determines how closely the bound can follow the desired likelihood.

The appendix exposes the remaining gap:

KL(q(z | x_B) ∥ p(z | x_A,x_B)) = E_z∼q [log(q(z | x_B) / (p(x_B | z)p(z | x_A)))] + log p(x_B | x_A)

The posterior p(z | x_A,x_B) conditions on both portions of the signal. The expectation on the right uses the auxiliary distribution q. This identity explains why the construction is variational: training substitutes a chosen distribution for a posterior that need not be convenient to handle directly.

Specialize the partition to hidden frames

For masked prediction, M denotes the set of hidden frame positions. The notation x_M refers to their acoustic frames, while x_\M refers to the visible frames. The outer objective becomes:

L_Masked = E_(x_\M,x_M)∼M(x) [L_(x_\M,x_M)]

L_Masked averages the loss over generated masks. L_(x_\M,x_M) denotes the variational loss for the particular visible–hidden split. The notation M(x) still refers to the process that generates a partition; M within the frame subscript identifies the selected positions.

For a selected mask, the loss is:

L_(x_\M,x_M) = KL(q(z | x_M) ∥ p(z | x_\M)) + E_z∼q [−log p(x_M | z)]

The first term trains contextual prediction of the messages. The second trains reconstruction from those messages. Both belong to the same criterion even if a particular algorithm optimizes them separately.

The paper then adopts a framewise factorization. Each target frame has its own latent variable, and its auxiliary assignment and reconstruction depend on that frame’s code. With those choices, the objective expands to:

L_(x_\M,x_M) = Σ_i∈M E_z_i∼q [log q(z_i | x_i) − log p(z_i | x_\M) − log p(x_i | z_i)]

The index i selects a masked frame. The frame is x_i, and z_i is its code identity. The summation adds contributions from all hidden positions. The logarithm of q is negative entropy after averaging; the next term is cross-entropy against the context prediction; the last is reconstruction loss.

The framewise factorization does not mean the contextual predictor ignores surrounding speech. Its distribution p(z_i | x_\M) still uses the visible context. The simplification concerns how target-side assignments and reconstructions factor across hidden frames.

Recover k-means assignments and reconstruction

To reproduce HuBERT’s targets, the authors let each frame choose its nearest centroid:

q(z_i | x_i) = 1[z_i = argmin_k∈{1,…,K} ‖x_i − v_k‖²]

The codebook contains K centroids. Its k-th centroid is v_k, and ‖x_i − v_k‖² is squared Euclidean distance. The argmin chooses the closest centroid. The indicator 1[·] places all probability on that identity and none on the others.

This is a point-mass distribution. Its entropy vanishes, so the entropy-related component of the variational loss disappears. The remaining terms correspond to predicting the selected cluster and measuring how well its centroid reconstructs the acoustic frame.

The reconstruction distribution is Gaussian:

p(x_i | z_i) = (2π)^(−d/2) exp(−‖x_i − v_z_i‖² / 2)

The dimension of the acoustic vector is d. The centroid selected by z_i is v_z_i. The constant π and exponential function supply the Gaussian normalization and shape. Taking the negative logarithm produces a squared-distance term together with a constant, connecting the probabilistic decoder to k-means distortion.

This connection is central to the paper’s argument. The clustering stage is doing more than producing convenient class labels. Its fitting criterion has a reconstruction interpretation within the same training bound as contextual prediction. That relationship makes it possible to ask whether the codebook should remain fixed once prediction training begins.

Predict the messages from context

The contextual distribution is parameterized with a softmax:

p(z_i | x_\M) = exp(enc(x_\M)_iᵀu_z_i) / Σ_k=1…K exp(enc(x_\M)_iᵀu_k)

The function enc is the contextual encoder. Its output at position i is enc(x_\M)_i. The vector u_k is the column associated with code k in the final projection matrix. The superscript ᵀ denotes a transpose, making the expression inside the exponential an inner product. The denominator sums scores across the codebook.

The codebook vectors and output-projection vectors have different jobs. A centroid v_k reconstructs an acoustic target; a projection vector u_k scores that code from contextual hidden information. Sharing the code identity does not make the two vectors interchangeable.

Under hard assignments, training this distribution becomes ordinary cluster-label prediction. The full variational account adds the observation that the fixed targets were themselves obtained by minimizing the reconstruction component.

Replace offline fitting with joint learning

HuBERT fits the codebook first and learns the contextual predictor afterwards. The authors identify this as a particular optimization strategy for the combined criterion. It resembles a staged variational procedure, but the codebook is not repeatedly revisited during the subsequent prediction training.

A direct attempt at joint gradient-based learning encounters the nearest-centroid decision. The selected identity changes abruptly when centroid distances cross. The authors replace it with a soft minimum:

q(z_i | x_i) = exp(−‖x_i − v_z_i‖² / τ) / Σ_k=1…K exp(−‖x_i − v_k‖² / τ)

The temperature τ controls concentration. Smaller temperatures place more probability on the closest centroid; in the limiting case, the assignment approaches the hard nearest-centroid choice. At a non-zero temperature, several codes can receive probability, making the assignment responsive to differentiable changes in centroid positions.

The entropy component now matters. It encourages uncertainty in the assignment distribution, while reconstruction rewards acoustically suitable centroids and contextual prediction rewards messages that can be inferred from visible frames. The learned solution reflects the interaction of these pressures.

The authors compare ways to evaluate the expected loss. Exact marginalization enumerates possible code identities and weights their contributions by q. Because the reconstruction distribution is simple, this is feasible in their setup. Sampling instead approximates the expectation using a selected code. Their sampled variant uses Gumbel softmax to obtain gradients through the discrete-choice procedure.

The paper’s experimental result is that sampling provides an effective practical route, with rapid convergence in the reported comparisons. That finding should remain distinct from the mathematical fact that exact marginalization computes the expectation directly. Exactness of an expectation does not by itself settle which full optimization procedure reaches the better solution.

Change the context to earlier frames

The same framework also supports future prediction. A selected time t divides the utterance into earlier frames and a later suffix:

L_Future = E_(x_<t,x_≥t)∼M(x) [L_(x_<t,x_≥t)]

The notation x_<t means frames preceding t; x_≥t includes t and the frames after it. The partition distribution now chooses a time boundary rather than a mask.

The expanded criterion becomes:

L_(x_<t,x_≥t) = Σ_i=t…T E_z_i∼q [log q(z_i | x_i) − log p(z_i | x_<i) − log p(x_i | z_i)]

T is the utterance length in frames. The important change is p(z_i | x_<i): the predictor uses earlier frames instead of visible context surrounding a hidden location. A unidirectional LSTM or causal Transformer can provide that conditioning.

The appendix obtains the future formulation by factoring the joint target-and-message distribution:

p(x_≥t,z_≥t | x_<t) = ∏_i=t…T p(x_i,z_i | x_<i,z_t:i−1)

The product ∏ combines contributions across future positions. The sequence z_t:i−1 contains earlier latent variables within the predicted suffix. This is the conditional-probability expansion before the simplifying assumptions.

Separating each frame from its latent variable gives:

p(x_≥t,z_≥t | x_<t) = ∏_i=t…T p(x_i | x_<i,z_t:i) p(z_i | x_<i,z_t:i−1)

The first factor reconstructs the frame; the second predicts its message. The authors then assume that the current code adequately supports its frame without earlier codes, and that observed history is sufficient for predicting the current code without separately conditioning on past codes.

The resulting factorization is:

p(x_≥t,z_≥t | x_<t) = ∏_i=t…T p(x_i | z_i) p(z_i | x_<i)

These assumptions give the future objective the same reconstruction-and-message structure as the masked version. The paper also notes a weighting issue: randomly choosing a boundary can emphasize suffix positions unevenly. Its practical discussion follows earlier work in predicting frames equally often.

Speech changes smoothly over nearby time points, so the predictor uses a temporal gap:

p(z_i | x_<i) = p(z_i | x_≤i−κ)

The positive shift κ separates the target from the latest available context. This equality expresses the additional conditional-independence assumption used in the formulation. Experimentally, the shift is 2 frames, corresponding to 40 ms.

Use learned hidden vectors as later targets

For another training iteration, the target need not remain an acoustic feature vector. A frozen encoder from the preceding iteration supplies hidden vectors:

q(z_i | h_i) = exp(−‖h_i − v_z_i‖² / τ) / Σ_k=1…K exp(−‖h_i − v_k‖² / τ)

The vector h_i is an intermediate representation for frame i. The centroid vectors now occupy that representation space. The rest of the assignment logic remains distance based.

This extension preserves the framework while changing the target geometry. It also creates a practical problem. Distances in the higher-dimensional representation space can become large enough to make assignment probabilities nearly deterministic. The second-iteration experiments therefore use temperature 10 and initialize centroids with k-means++.

Express the contrastive connection

For wav2vec 2.0, the paper considers a target-side mapping whose output is a continuous code vector:

q(z_i | x_M) = δ(z_i − g(x_M))

The mapping g contains convolutional processing and vector quantization. The Dirac delta δ concentrates the distribution on its output. Here, z_i denotes the resulting vector instead of an integer identity.

The contextual distribution uses a similarity score:

p(z_i | x_\M) = exp(sim(enc(x_\M)_i,z_i)) / ∫ exp(sim(enc(x_\M)_i,z)) dz

The function sim is cosine similarity in this construction. The integral normalizes scores across continuous candidate vectors z. This differs from the finite sum over code identities in the discrete formulation.

Substituting the concentrated target distribution gives a negative-log prediction term:

−log p(z_i | x_\M) = −log [exp(sim(enc(x_\M)_i,z_i)) / ∫ exp(sim(enc(x_\M)_i,z′)) dz′]

The variable z′ ranges over the continuous alternatives used in normalization. The PDF’s extracted contrastive expressions contain sign and ordering noise; the negative-log form here follows the cross-entropy term being derived.

Approximating the normalization with sampled alternatives produces the contrastive form:

−log [exp(sim(enc(x_\M)_i,z_i)) / Σ_z′∈S_i exp(sim(enc(x_\M)_i,z′))]

S_i denotes the finite comparison set. The essential connection is that a difficult continuous normalization is replaced by a sampled sum. The paper also distinguishes its reconstruction assumptions: a uniform decoder contributes no informative reconstruction pressure, while the Gaussian decoder in Masked-VPC actively fits the codebook to target features.

The acoustic training recipe

The main experiments use log Mel acoustic features. Each original vector has 40 dimensions and is extracted using a window of 25 ms with a hop of 10 ms. Concatenating neighboring frames creates 80-dimensional inputs at a 20 ms frame rate. For masked training, spans contain 4 frames, or 80 ms, and each frame can begin a masked span with probability 0.2. Spans can overlap.

The main encoder has 12 Transformer layers with 6 attention heads. The hidden dimension is 768, and the feedforward inner dimension is 3072. The codebook contains 100 entries. Pretraining uses the 360-hour LibriSpeech subset for 150 epochs. The appendix reports Adam with a fixed learning rate of 10⁻⁴, batch size 16, dropout 0.1, and a single A40.

Utterances are limited to 1400 frames, described as about 28 seconds. Variational training uses temperature 1 without annealing. The authors additionally repeat important optimization experiments in fairseq with waveform input and convolutional feature aggregation. These implementation families should remain distinguishable when interpreting the results, because the paper reports different objective values and downstream scores for them.

Experiments and results

The evaluation asks whether the improved variational criterion produces representations that help real tasks. It combines simple frozen-encoder probes, speech recognition on frozen representations, and supervised fine-tuning with CTC. These answer related questions, but they are not interchangeable. A linear probe tests immediate accessibility of information; full adaptation allows the representation itself to change.

What is held fixed

The main comparisons use the same encoder architecture and training hyper-parameters while changing the loss formulation or its optimization. HuBERT Obj denotes the authors’ implementation of HuBERT’s objective, instead of every aspect of the original multi-iteration HuBERT training pipeline. Masked-VPC uses soft assignments and joint codebook learning. Masked-NCE supplies a contrastive comparison, while Future-VPC changes the prediction context to earlier frames.

This naming distinction matters. The early experiments principally examine an initial training iteration. Results for another iteration are reported separately. A reader should therefore avoid interpreting the initial HuBERT Obj baseline as the strongest possible outcome of the original method under all training arrangements.

For frozen phone classification, a linear predictor is trained on WSJ phone labels obtained through forced alignment. Results use dev93 and eval92, with 10% of si284 set aside for development. The metric is phone error rate, abbreviated PER.

For pitch tracking, linear regression predicts fundamental frequency values extracted with PYIN. The reported root-mean-square error, or RMSE, is measured in Hz on WSJ eval92. Speaker verification uses VoxCeleb1: a classifier learns speaker identities, and an intermediate layer supplies speaker vectors for verification. Its metric is equal error rate, or EER, on the test set. Smaller values are preferable for all these metrics.

Frozen representations improve on several kinds of information

On WSJ phone classification, HuBERT Obj gives PER 12.8 on dev93 and 12.6 on eval92. Masked-VPC gives 11.8 and 11.3. The comparison shows that the gain is visible through a linear readout, without adapting the speech encoder to phone labels.

For VoxCeleb1 speaker verification, EER is 18.3 with HuBERT Obj and 14.4 with Masked-VPC. On WSJ eval92 pitch tracking, the corresponding RMSE values are 23.4 Hz and 20.9 Hz. Hence, the benefit is not confined to phone distinctions. The representations also support speaker-related information and a continuous acoustic quantity.

These results use the best reported layer for each task and each system. They show that useful information is available somewhere in the learned hierarchy, instead of proving that the final layer is the best universal representation. This layer selection is part of the evaluation procedure.

Recognition from frozen features

The speech-recognition probe trains a lightweight sequence-to-sequence recognizer over representations from the selected encoder layer. It predicts characters and uses neither an external language model nor a pronunciation lexicon. That setting limits the help available from additional linguistic resources and keeps attention on the learned speech features.

The downstream encoder contains convolutional processing followed by a bidirectional GRU. A unidirectional GRU provides the decoder. The authors use beam search with beam size 5 and report character error rate, or CER, alongside word error rate, or WER. The recognition results are averaged across three runs.

On WSJ dev93, the frozen-feature recognition probe obtains WER 15.2 with HuBERT Obj and 13.6 with Masked-VPC. On eval92, those values are 14.5 and 11.4. The corresponding CER values are 5.2 and 4.4 on dev93, and 5.0 and 3.6 on eval92.

Future-VPC also provides useful recognition features: WER is 15.5 on dev93 and 12.4 on eval92. VQ-APC gives 16.8 and 14.9. These comparisons support the authors’ claim that forecasting-based representations can remain competitive in this probing setting, even though the masked variational variant gives the strongest reported results among these systems.

The log Mel baseline itself obtains WER 18.2 on dev93 and 14.7 on eval92. The paper compares this lightweight recognizer with previously reported recognition baselines to argue that its downstream setup is a meaningful test. Those external baselines have their own training conditions, so they provide context instead of the same degree of control as the objective comparisons.

CTC adaptation on WSJ

The second speech-recognition setting updates the pretrained encoder using CTC with character outputs. The authors train their main implementation for 100 epochs and the fairseq implementation for 200 epochs on WSJ si284. Final parameters are obtained by averaging over the last 10 epochs.

Without an external language model, decoding is greedy. The principal comparison is:

WSJ eval92 recognition after CTC adaptation, without an LM

Masked-VPC gives the lowest word error rate in this comparison.

WSJ eval92 recognition after CTC adaptation, without an LMHuBERT Obj: 12.5HuBERT Obj12.5Masked-NCE: 11.1Masked-NCE11.1Masked-VPC (this paper): 10.3Masked-VPC (this paper)10.3
The numbers
System or settingWER
HuBERT Obj12.5
Masked-NCE11.1
Masked-VPC (this paper)10.3

On dev93, the same comparison gives WER 15.5 for HuBERT Obj, 14.7 for Masked-NCE, and 14.1 for Masked-VPC. These results support the practical value of the variational changes beyond the frozen-feature setting.

Decoding with a 4-gram word language model uses beam size 2000. On dev93, WER is 7.3 for HuBERT Obj and 6.8 for Masked-VPC, while Masked-NCE obtains 7.8. On eval92, HuBERT Obj and Masked-VPC both reach 4.6, and Masked-NCE reaches 4.4.

The external decoder therefore changes the pattern of separation. Masked-VPC retains an advantage on dev93, but it does not surpass every comparison system on eval92. This is an important qualification to a broad statement that better pretraining always yields the best recognition score.

Phone recognition on TIMIT

The paper also tests CTC adaptation for phone recognition on TIMIT. This is a sequence-recognition task, distinct from the frame-level phone-classification probe on WSJ.

TIMIT test phone recognition after CTC adaptation

Masked-VPC has the lowest test phone error rate among the reported systems.

TIMIT test phone recognition after CTC adaptation12L Transformer baseline: 24.112L Transformer baseline24.1Masked-NCE: 12.9Masked-NCE12.9HuBERT Obj: 11.3HuBERT Obj11.3Masked-VPC (this paper): 11.0Masked-VPC (this paper)11.0
The numbers
System or settingPER
12L Transformer baseline24.1
Masked-NCE12.9
HuBERT Obj11.3
Masked-VPC (this paper)11.0

Development PER is 22.1 for the Transformer baseline, 11.2 for Masked-NCE, 10.2 for HuBERT Obj, and 9.5 for Masked-VPC. The ordering supports the same broad conclusion as the main recognition comparison: the modified pretraining procedure yields representations that remain useful when adapted to a smaller supervised speech task.

The TIMIT result should not be confused with a demonstration that the codebook directly learns a phone inventory. CTC adaptation uses supervised phone targets and changes the encoder. It evaluates the usefulness of pretraining for recognition, not the linguistic identity of the original latent codes.

Another pre-training iteration

The later-iteration experiment freezes the preceding encoder to generate new target representations, then trains a freshly initialized contextual encoder. The authors use hidden vectors from the 6-th layer and train the new iteration for 160 epochs. These experiments use fairseq and apply the same subsequent CTC evaluation pattern.

Without an external language model, second-iteration HuBERT Obj obtains WER 11.1 on dev93 and 8.2 on eval92. Masked-VPC obtains 10.4 and 7.9. With the language model, HuBERT Obj gives 6.2 and 4.2, while Masked-VPC gives 5.9 and 3.8.

WSJ eval92 recognition with an LM across training iterations

Another pre-training iteration helps both objectives, with Masked-VPC lowest in the later comparison.

WSJ eval92 recognition with an LM across training iterationsFirst-iteration HuBERT Obj: 6.0First-iteration HuBERT Obj6.0First-iteration Masked-VPC: 5.3First-iteration Masked-VPC5.3Second-iteration HuBERT Obj: 4.2Second-iteration HuBERT Obj4.2Second-iteration Masked-VPC (this paper): 3.8Second-iteration Masked-VPC (this paper)3.8
The numbers
System or settingWER
First-iteration HuBERT Obj6.0
First-iteration Masked-VPC5.3
Second-iteration HuBERT Obj4.2
Second-iteration Masked-VPC (this paper)3.8

The earlier-iteration values in this experiment belong to its fairseq comparison. They should not be substituted for the first-iteration results from the authors’ other implementation. The paper’s evidence is strongest when each result remains attached to its own input pipeline, optimization setup, and decoding condition.

What the ablations show

The paper offers several controlled comparisons that explain why the proposed changes matter. They vary the assignment rule, the calculation of expectations, the centroid initialization, the prediction context, and the contrastive formulation. Together, these analyses are more informative than a comparison between the final systems alone.

Joint optimization helps, but the route matters

The optimization study compares hard offline assignments with soft assignments trained through exact marginalization or sampling. In the main implementation, HuBERT Obj ends with negative ELBO 7.79. Exact marginalization reaches 7.50 with k-means++ initialization but 8.70 with random initialization. Sampling with Gumbel softmax and random initialization reaches 7.48.

These values establish that merely making the assignments differentiable is insufficient. Exact marginalization with unfavorable initialization can finish with a worse objective than the staged baseline. The codebook’s starting geometry and the subsequent optimization procedure matter alongside the formal criterion.

The training curves add context. Offline k-means gives HuBERT Obj a favorable initial objective, but the jointly trained alternatives can improve beyond it during learning. Therefore, the eventual advantage does not come from starting with a better codebook in every case. Joint learning can change the solution after contextual prediction begins to influence the representation.

The fairseq replication shows a related but less initialization-sensitive pattern. HuBERT Obj finishes at negative ELBO 8.14. Marginalization reaches 7.91 with either initialization, while Gumbel sampling reaches 7.89. The authors report that random initialization works directly for marginalization in this waveform-based setup.

The replication supports the general optimization result while also showing dependence on the input pipeline. It would be too strong to conclude that exact marginalization always requires careful seeding, or that random initialization is always safe. The observed behavior differs between the main acoustic-feature implementation and the fairseq setting.

Pre-training scores and recognition do not align perfectly

The optimization table also links those objectives to CTC recognition. In the main implementation, HuBERT Obj produces WSJ WER 15.5 on dev93 and 12.5 on eval92. Marginalization with k-means++ gives 14.3 and 11.0, while random-initialized marginalization gives 15.0 and 11.7. Gumbel sampling gives 14.1 and 11.7.

The important pattern is that the modified training procedures improve recognition relative to the baseline. Yet the lowest pretraining loss does not uniquely identify the best recognition result on every split. The sampled procedure has the lowest reported objective in this comparison, while seeded marginalization has the better eval92 WER.

There is also a reporting boundary worth preserving. The optimization comparison gives eval92 WER 11.7 for its sampled setting, whereas the later main system comparison reports 10.3 for Masked-VPC. The paper does not provide enough detail to treat these entries as a single interchangeable measurement. Both support improvement over HuBERT Obj under their reported conditions, but they should remain attached to the experiments in which they appear.

Context requirements depend on the downstream task

Changing masked prediction to future prediction holds the broader variational construction closely aligned while changing the information available to the predictor. On phone classification, Future-VPC has PER 16.0 on dev93 and 15.5 on eval92, compared with Masked-VPC’s 11.8 and 11.3.

The ordering reverses for the other probes. Future-VPC achieves speaker-verification EER 13.6, compared with 14.4 for Masked-VPC. For WSJ eval92 pitch tracking, its RMSE is 20.5 Hz, compared with 20.9 Hz.

The paper interprets this as evidence that future prediction remains attractive for some applications, including settings where only earlier context is available. The controlled comparison does not identify a single universally superior context arrangement. Instead, it shows that the representation properties favored by prediction can differ across phone, speaker, and pitch information.

A contrastive objective is competitive without winning throughout

Masked-NCE tests the connection to contrastive learning. It uses negative examples drawn from frames in the same batch and jointly updates the codebook through Gumbel softmax. The appendix specifies 100 negative samples for this setup.

On WSJ phone classification, Masked-NCE obtains PER 12.2 on dev93 and 12.4 on eval92. Those values are close to, and slightly below, HuBERT Obj’s corresponding results, while remaining above Masked-VPC’s. For speaker verification, Masked-NCE gives EER 20.2; for pitch tracking, it gives RMSE 24.4 Hz.

This comparison supports a qualified conclusion. The contrastive system can be competitive with hard cluster prediction, especially for phones. It does not match the variational variant across the reported probes. At the same time, its strongest language-model-assisted eval92 recognition result prevents the broader experiments from supporting an unconditional claim that contrastive learning is inferior.

Hidden targets make codebook geometry more demanding

The second-iteration analysis reveals a failure mode that is less prominent during initial acoustic training. With randomly initialized centroids, frames can converge onto a single code. The paper describes this as codebook collapse.

The authors connect the problem to the higher-dimensional target representations. Larger distances can produce highly concentrated probabilities after the soft minimum. They respond with k-means++ initialization over the hidden representations and temperature 10, which keeps the auxiliary distribution from becoming effectively one-hot too early.

This is both an optimization result and a warning about transferring a recipe between representation spaces. The same mathematical assignment rule can behave differently when the scale and dimension of its inputs change. A successful initial-iteration setting therefore does not establish a complete later-iteration training recipe.

Limitations

Boundaries acknowledged by the authors

The authors explicitly identify initialization sensitivity. Their main exact-marginalization experiment changes substantially between random and k-means++ codebooks. Later-iteration training is more demanding still, with random initialization sometimes producing collapse. The proposed framework therefore creates opportunities for improved optimization without removing familiar difficulties in training discrete representations.

They also acknowledge a computational boundary around exact marginalization. Enumerating latent codes is manageable with their simple reconstruction distribution, but may become impractical when reconstruction is expensive. Sampling is offered as an alternative in that case. The experiments establish its usefulness for the reported setup; they do not exhaust the possible reconstruction architectures or estimators.

The future-prediction derivation introduces another explicit qualification. Choosing suffixes naively can weight positions unevenly, and the temporal prediction formulation relies on additional independence assumptions. The practical procedure must account for how often each frame contributes to learning. The framework does not make the partitioning distribution an irrelevant detail.

The paper’s comparison with earlier work is also deliberately bounded. It does not analyze every combined training objective within the detailed unification. Explaining several important methods through a shared variational language is a substantial contribution, but it is not a complete taxonomy of self-supervised speech learning.

Limits visible in the experimental design

A careful reader should distinguish the scope of the derivation from the scope of the measurements. The framework is general, while the principal experiments use a particular LibriSpeech subset, a fixed codebook capacity, and a constrained family of encoders. The paper does not demonstrate that the same ranking holds across languages, domains, recording conditions, or much larger training scales.

The controlled baselines are valuable precisely because many settings are shared. That also narrows the claim. The results compare implementations designed to isolate objectives, rather than every original system with all of its preferred architectural and training choices. In particular, the main Mel-feature setup differs from the waveform-based fairseq experiments. The paper’s objective-level findings should not become an unrestricted ranking of named speech systems.

The contrastive implementation has specific departures from the reference wav2vec 2.0 arrangement. The appendix reports a single codebook, Pre-LN Transformers, and sinusoidal positional embeddings. Those choices help define the controlled experimental environment, but they mean that Masked-NCE is not evidence about every configuration associated with wav2vec 2.0.

The relationship between the variational score and downstream usefulness is empirical rather than guaranteed. Several modified procedures improve recognition, but their rankings do not match perfectly across the objective and the evaluation splits. Speaker verification and pitch tracking favor future prediction over masked prediction, while phone classification favors the latter. The usefulness of a representation remains task dependent.

External decoding information further limits a simple winner narrative. With a 4-gram language model, Masked-VPC ties HuBERT Obj on WSJ eval92, and Masked-NCE obtains a lower WER than either. This does not erase the gains in other conditions. It shows that an improved acoustic representation can interact with downstream decoding in ways that reduce or change the observed advantage.

The paper reports recognition results averaged over three runs, but it does not provide a broad statistical analysis of the differences discussed here. A numerical ordering should therefore be reported as such. The evidence supports consistent practical improvements in several controlled settings without requiring stronger claims about uncertainty than the reported evaluation supplies.

Interpretation and reproducibility cautions

The latent-message assumption gives the derivation its structure. It does not establish that a learned finite code makes all remaining contextual information unnecessary for reconstructing real speech. The variational bound is a principled surrogate, and its quality depends on the chosen distributions and assumptions.

Likewise, a useful discrete inventory is not automatically an interpretable linguistic inventory. The probing experiments examine information recoverable from hidden vectors. They do not establish a meaning for each centroid or show that the latent codes align neatly with phones. Discreteness, compression, and interpretability should remain separate claims.

There is a layer-selection detail that resists a fully unified reading. The later-iteration discussion specifies the 6-th layer as its source of hidden targets and connects that choice to recognition performance. The appendix’s layer-selection table lists layer 8 for the phone-classification and recognition evaluations of HuBERT and Masked-VPC. These statements concern related selection decisions but do not provide a single completely consistent account of them. Reproducing the experiments would require preserving this distinction and resolving the exact recipe.

Finally, the reported resource information is not a deployment study. Training on a single A40 is part of the experimental recipe, but the paper does not benchmark streaming latency, memory consumption, or execution speed for a compact application. Such properties would need their own evaluation before adopting the method in a resource-constrained system.

What came after

No identified later citing works are available to establish a documented follow-up trajectory. The paper’s own earlier-work discussion should therefore remain separate from claims about research that subsequently adopted Masked-VPC.

Its demonstrated contribution leaves clear questions for future investigation: whether richer reconstruction distributions justify sampling over exact marginalization, how to prevent collapse when targets become more complex, and how prediction context should be chosen for different downstream tasks. These are directions opened by the framework, rather than outcomes attributed to later papers.

The lasting proposal is methodological. By expressing contextual prediction, latent assignment, and reconstruction within a shared criterion, the authors make previously bundled design choices available for controlled examination. Their experiments show that this change in viewpoint can produce better training procedures and more useful speech representations, while also making the conditions and failure modes easier to state.

 Institutions

 Fields, topics and concepts

Cite

Cite as Sung-Lin Yeh, Peter Bell and Hao Tang. 2026. Learning Speech Representations with Variational Predictive Coding. Transactions of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1162/tacl.a.738

@article{yeh2026learning,
  title = {{Learning Speech Representations with Variational Predictive Coding}},
  author = {Sung-Lin Yeh, Peter Bell and Hao Tang},
  journal = {Transactions of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.1162/tacl.a.738},
  url = {https://doi.org/10.1162/tacl.a.738}
}

References

1 references, 0 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. David Arthur and Sergei Vassilvitskii. 2007. kmeans++: the advantages of careful seeding. In SODA. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/yeh-2026-learning-speech-representations-variational-predictive/