Summary
Self-supervised speech models learn by predicting targets at masked audio frames. BiRQ constructs those targets from the encoder’s own intermediate representations and trains them jointly with the encoder. A second set of targets, obtained by random quantization of raw audio features, retains a fixed reference task. This combines representation-dependent target refinement with the single-loop training structure of BEST-RQ.
- Intermediate encoder features generate enhanced pseudo-labels, while fixed raw-input labels define an anchoring task. Gumbel-softmax allows gradients to pass through enhanced-target construction. Figure 1
- The penalty implementation updates one shared encoder using both loss gradients. The minimum anchoring loss is constant with respect to the parameters, so no auxiliary lower-level solve is required. Equation 9 · Algorithm 1
- For the 155M Conformer with matched 100-epoch LibriSpeech pretraining, test-clean/test-other WER decreases from 6.8%/19.6% with BEST-RQ to 5.0%/12.6% with BiRQ. Table 2
- For the 275M Conformer pretrained on YODAS, AMI headset/distant-microphone WER decreases from 18.4%/37.2% with BEST-RQ to 16.3%/34.0% with BiRQ. Table 3
Target refinement within a shared speech encoder
From fixed labels to learned representations
BEST-RQ turns unmasked audio features into pseudo-labels using a fixed random projection and codebook, then trains an encoder to predict those labels from masked audio. The targets remain unchanged as the encoder learns. HuBERT-style relabeling uses learned features to refine targets through separate labeling stages.
A target generator inside the prediction model
BiRQ reuses the first part of the acoustic encoder to generate targets from unmasked speech. Normalized intermediate features pass through a fixed random projection and a Gumbel-softmax quantizer. The resulting enhanced targets depend differentiably on the same encoder parameters used for masked prediction.
An anchoring task for joint learning
The raw-input targets are retained as a reference task independent of the encoder parameters. BiRQ minimizes the enhanced-target loss while requiring the anchoring loss to stay near its minimum. The penalty implementation brings both tasks into one training loop, with gradients through target construction as well as prediction.

A shared encoder processes unmasked speech to generate enhanced targets from intermediate features through Gumbel-softmax selection. A fixed random quantizer maps raw input to anchoring targets. The masked prediction task learns from both branches, with gradients through enhanced-target generation.
Original paper sourceTwo inputs, one encoder. The unmasked input supplies the raw-input and intermediate-feature targets. The masked input passes through the full encoder for prediction. Cross-entropy is evaluated at the masked positions.
Fixed and representation-dependent targets. The raw-input branch generates fixed anchoring labels. The intermediate-feature branch uses the first part of the encoder, a fixed random projection and a Gumbel-softmax quantizer to generate enhanced targets.
Shared parameters and gradient paths. Enhanced-target construction and masked prediction share encoder parameters. The enhanced-loss gradient includes both paths, while the anchor targets remain independent of the encoder.
Joint target generation and masked prediction
Generate both targets from unmasked speech. The anchor branch quantizes raw audio features by nearest-neighbor assignment. The enhanced branch quantizes normalized intermediate encoder features with Gumbel-softmax selection. Both branches use fixed random projections and a fixed codebook.
Predict the targets at masked frames. A masked version of the input passes through the full encoder and its prediction head. Enhanced-label and anchoring-label cross-entropy are evaluated at the masked positions.
Update the shared encoder. Algorithm 1 combines the two loss gradients. The enhanced-loss gradient passes through both the masked prediction and the unmasked target-generation path. The experiments set the enhanced and anchor loss weights to 0.1 and 2.4, respectively, and the Gumbel-softmax temperature to 0.5.
The anchor optimum is constant in this formulation
Both objectives optimize the same encoder parameters. The minimum anchoring loss in Equation 9 is a constant rather than a value function of a separate outer variable. Removing that constant leaves the weighted loss used in Algorithm 1 and avoids an auxiliary lower-level solve.
The anchor-constrained objective and its penalty implementation
Notation
- Unmasked normalized speech-feature sequence and its masked version.
- Parameters of the shared acoustic encoder.
- Layer used to generate enhanced targets and total encoder depth.
- Normalized intermediate representation from the first k encoder layers.
- Fixed raw-input anchoring target generated by nearest-neighbor quantization in Equation 2.
- Encoder-dependent enhanced target generated by Gumbel-softmax selection in Equation 4.
- Enhanced-target and anchoring-target cross-entropy losses, averaged over training utterances and evaluated at masked frames.
- The feasible encoder parameters in Equation 8 and their allowed anchoring-loss gap above its minimum. is the variable in that minimum.
- Weights on enhanced and anchoring losses. The ratio is the penalty constant in Equation 9.
- Learning rate in the Algorithm 1 parameter update.
Scroll horizontally to read the full equation.
Scroll horizontally to read the full equation.
In Equation 8, is cross-entropy against enhanced targets and is cross-entropy against fixed anchor targets. The allowed anchor-loss gap defines . Equation 9 penalizes that gap. Its minimum anchor-loss term is constant with respect to , so Algorithm 1 uses the weighted gradients of and without computing the minimum.
Scroll horizontally to read the full equation.
Scroll horizontally to read the full equation.
Equation 8
Enhanced-target learning constrained by the anchor task
The objective minimizes enhanced-label cross-entropy over encoder parameters whose anchoring loss lies within a prescribed gap of its minimum. Both losses use the shared encoder and masked-frame prediction task.
Equation 8 in the paperLemma 1
A conditional link between penalty and constrained objectives
With bounded enhanced-loss subgradients on exact anchor minimizers and a Hölderian error bound for the anchor-loss gap, a sufficiently large loss-weight ratio transfers approximate optimality from the penalty problem to the anchor-constrained problem.
Lemma 1 in the paperDifferentiating through the enhanced labels
The enhanced targets depend on the encoder through the unmasked intermediate representations. Gumbel-softmax provides a differentiable distribution over codebook entries, so the enhanced-loss gradient includes the effect of changing the targets as well as changing the predictions.
From the anchor constraint to the penalty objective
Equation 8 constrains the anchoring loss to be within a prescribed gap of its minimum. Equation 9 adds that gap to the enhanced loss with a penalty controlled by the ratio of the loss weights. The anchor minimum contributes no parameter gradient.
The role of the error-bound condition
Lemma 1 links the penalty objective to the anchor-constrained problem under bounded enhanced-loss subgradients and a Hölderian error bound for the anchor-loss gap. The condition determines how the loss-weight ratio must grow as the allowed gap shrinks.
Assumptions behind the analysis
Lemma 1 assumes bounded enhanced-loss subgradients on exact anchor minimizers and a Hölderian error bound for the anchor-loss gap, with exponent greater than one. A sufficiently large loss-weight ratio, chosen according to the error-bound exponent and allowed anchor gap, then transfers approximate optimality from the penalty problem in Equation 9 to the constrained problem in Equation 8. Algorithm 1 specifies the gradient implementation.
Section 3 · Equations 8–9, Lemma 1 and Algorithm 1 in the paperFurther details
How is the target-generating layer chosen?
The paper uses a pilot heuristic near 70% of encoder depth and selects layer 7 for the 10-layer experiments. The 5-layer ablation in Table 1 compares layers 2, 3 and 4. At 100 epochs, layer 4 yields the lowest WER among those three choices.
How does online refinement compare with staged relabeling?
Table 1 includes a 137M Conformer comparison with offline iterative relabeling, where each retraining stage uses targets from a previously trained model. The first 100-epoch relabeling stage yields 18.6% test-other WER, compared with 19.1% for the 100-epoch layer-3 BiRQ setting. BiRQ reaches 17.2% after 300 epochs. Interpreting these rows requires accounting for the preceding label-encoder training as well as the current training stage.
Related projects
BiRQ applies a penalty formulation to joint target construction and representation learning. PBGD-Free studies a different setting, where a lower-level optimum depends on an outer decision, and identifies flatness conditions for removing its value-function gradient.
Illustration
Information paths for the two target sources
Two target-generation branches
Both target sources feed the shared masked-frame prediction task.
Self-supervised pretraining for recognition
The encoder predicts pseudo-labels from unlabeled audio during pretraining. It is then fine-tuned with transcripts using CTC and evaluated by word error rate. The LibriSpeech and AMI experiments measure whether joint target refinement improves this downstream recognition task.
Recognition accuracy after self-supervised pretraining
LibriSpeech with a 155M Conformer
| Method | test-clean | test-other |
|---|---|---|
| Supervised baseline | 7.4 | 20.5 |
| BEST-RQ | 6.8 | 19.6 |
| BiRQ | 5.0 | 12.6 |
Scroll horizontally to see all columns.
BiRQ reduces test-clean WER by 1.8 percentage points and test-other WER by 7.0 percentage points. The latter corresponds to a 35.7% relative reduction from the reported BEST-RQ value. Both methods use the same C2 encoder and 100-epoch pretraining budget.
Experiment setup and comparison details
C2 is a 10-layer, 155M-parameter Conformer with full attention. BEST-RQ and BiRQ are pretrained for 100 epochs on 960h LibriSpeech. BiRQ uses layer 7 to generate enhanced targets. Pretraining uses AdamW, batch size 64 and learning rate 1×10⁻⁴. Fine-tuning uses CTC on 100h labeled LibriSpeech for a 30-epoch warmup, hold and annealing schedule. Decoding uses the LibriSpeech 4-gram language model. Table 2 reports point estimates.
YODAS pretraining and AMI meeting recognition
| Method | AMI IHM | AMI SDM |
|---|---|---|
| Supervised baseline | 25.7 | 47.0 |
| BEST-RQ | 18.4 | 37.2 |
| BiRQ | 16.3 | 34.0 |
Scroll horizontally to see all columns.
BiRQ reduces WER in both microphone conditions: by 2.1 percentage points for individual headset microphones and 3.2 percentage points for the single distant microphone. This comparison uses the same C3 encoder and pretraining corpus for both methods.
Experiment setup and comparison details
C3 is a 10-layer, 275M-parameter Conformer with an attention window of 200. BEST-RQ and BiRQ are pretrained for 100 epochs on 5k hours of YODAS. BiRQ uses layer 7 to generate enhanced targets. Pretraining uses AdamW, batch size 128 and learning rate 1×10⁻⁴. Fine-tuning uses CTC on 150h labeled AMI with the same 30-epoch schedule as LibriSpeech. Decoding uses an in-house interpolated 4-gram language model. IHM denotes individual headset microphones and SDM denotes a single distant microphone. Table 3 reports point estimates.
Evaluation protocol
Tables 2 and 3 evaluate the pretrained representations after CTC fine-tuning and 4-gram language-model decoding. They report point estimates of word error rate for the specified data and architecture configurations.
Cite this work
@inproceedings{jiang2026birq,
title = {BiRQ: Bi-Level Self-Labeling Random Quantization for Self-Supervised Speech Recognition},
author = {Liuyuan Jiang and Xiaodong Cui and Brian Kingsbury and Tianyi Chen and Lisha Chen},
booktitle = {2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
year = {2026}
}Preprint first released in 2025.