WorksComputer Science
Residual Expert Routing for Text-Only Domain Adaptation of Factorized Transducer ASR
Abstract
Fine-tuning the non-blank predictor of a factorized transducer on target-domain text improves recognition on that domain but degrades performance on the source domain. A single interpolation weight between base and adapted predictors cannot resolve this: the adapted predictor helps at some prefixes and hurts at others, often within one utterance. We propose conservative residual routing: the adapted predictor becomes a residual correction to the base, and a 16k-parameter gate decides at each prefix how much of it to admit. Closing the gate reproduces the base exactly. On a 40-hour conversational corpus, routing retains essentially all of the text-only gain on two held-out domains (19.89 to 16.74, 20.91 to 16.21 WER) while leaving source-domain WER unchanged (12.90 to 12.93); the adapted predictor alone costs 1.08 WER. Routing needs no per-domain tuning on target-domain audio. Analysis reveals the gate does not behave as a simple domain-level switch: it modulates intervention through the disagreement between the two predictors, suppressing it in-domain and amplifying it out-of-domain.
Introduction
End-to-end models such as the neural transducer [1] fold acoustic, lexical and linguistic knowledge into a single network, which removes the clean separation between acoustic and language models that made text-only domain adaptation cheap in hybrid systems. Much subsequent work recovers an explicit language model (LM) at inference time: shallow fusion interpolates an external LM into the beam search [2]; the density ratio method [3] and internal LM estimation [4, 5] subtract an estimate of the model’s implicit LM before adding the external one; and the hybrid autoregressive transducer [6] makes the blank/non-blank decomposition explicit, giving a well-defined internal LM score. Recent work adapts the internal LM itself on text alone [7] and trains it jointly with the recognizer on unpaired text [8]. Factorized transducers build the separation into the architecture instead. The factorized neural transducer (FNT) [9] splits blank and vocabulary prediction and gives the vocabulary branch a standalone predictor that behaves as a genuine LM and can be fine-tuned on text alone. Later work improved baseline accuracy and the fusion of blank, acoustic and internal-LM scores [10, 11, 12], generalized the idea to modular blank and label decoders [13], and scaled the non-blank predictor up to a pre-trained LLM [14]. The recipe for a new domain is the same throughout: fine-tune the non-blank predictor on target text, then use the adapted predictor in place of the original during decoding.
The recipe works, but it trades one domain for another. In our experiments (Sec. 5), adapting the non-blank predictor on text from two unseen domains lowers WER on those domains by 15.1% and 23.0% relative, and raises WER on the original domain by 8.4% relative. Degradation on general test sets has been reported since the original FNT paper [9, 12]. The usual control is a scalar interpolation weight tuned per deployment [15], but one value must serve every prefix: a text-adapted predictor is better where the target lexicon and phrasing apply and worse elsewhere, and both kinds of prefix occur inside the same utterance.
Conditional computation is the natural response, and gating a recognizer against an LM is not new: Cold Fusion [16] trains a seq2seq decoder jointly with a fixed LM through a learned gate. Mixture-of-experts (MoE) layers [17, 18, 19] route each input to a subset of experts, and have been applied in ASR as mixtures of speaker or domain adapters [20]; parameter-space methods (adapters [21], LoRA [22], task arithmetic [23]) combine specialists offline. None fits our setting. Cold Fusion learns its gate while training the recognizer, so there is no deployed base to preserve. An MoE router selects among experts, none of which is the deployed model, so there is no exact fallback to it. Weight merging commits to one blended model before decoding begins. Adaptive fusion [15] varies the weight by a fixed rule over external and internal LM scores; ours is a learned policy over the residual between two internal predictors.
This paper proposes conservative residual routing, which inverts the framing. Rather than asking which expert should produce the output, we keep the base non-blank predictor as the output and ask how much of the text-adapted expert’s residual correction to admit at the current prefix. Our contributions are:
A learned routing policy that mixes the base and expert predictors in probability space, using a small gate that reads only the difference between their output distributions and decides, at each prefix, how much correction to admit. Clamping the gate shut exactly recovers the base model.
A training recipe that needs no target-domain audio: on paired source data the gate is trained through the full transducer objective and regularized to stay close to the base, and on target text alone it is supervised by the expert’s next-token margin advantage.
Results on a 40-hour conversational corpus showing that routing retains essentially all of the text-only gain on two held-out domains while leaving source-domain WER unchanged, and that no static interpolation weight is better on all three sets at once.
An analysis showing that the gate does not behave as a simple domain-level switch: trust is similar across domains when the predictors agree, but responds differently as disagreement grows.
Factorized Transducer
Given acoustic features and labels over a vocabulary , a transducer defines a distribution over alignments in a lattice of blank and label emissions [1]. We follow the factorized formulation of [11]. An encoder produces , and two predictors consume the label history, producing a blank state and a non-blank state . The blank probability comes from a joiner () over the encoder and blank-predictor states,
while the non-blank distribution is the softmax of summed acoustic and internal-LM scores,
The non-blank predictor is therefore a standalone LM: it never sees the encoder, and can be trained with a cross-entropy loss on text alone. Training minimizes , where is the internal-LM cross-entropy on the paired transcripts.
At decoding, writing , scores are combined as
where and are internal-LM fusion weights.
Conservative Residual Routing
Residual trust gate
Let and be the base and text-adapted non-blank distributions at output position . The expert contributes a residual . A gate network maps that residual to a trust value
and the mixed non-blank distribution is
Because and are both distributions, is a valid distribution for any , and needs no renormalization. Its deviation from the base is
so the realised intervention factorises into trust and base-expert disagreement . This distinction matters in § 5.3: the gate can hold trust roughly constant and still vary its influence enormously through .
replaces everywhere in Eq. (5), so the gate acts within the transducer rather than as a rescoring pass (Figure 1). Where the decoding rule needs log-probabilities we use . Note what the gate does not see: it has no access to the acoustics, the identity of test sets, or either predictor’s absolute confidence. Its output where the two predictors agree () is therefore a single constant shared by every domain, a fact we return to in § 5.3.

Figure 1. Residual routing inside the non-blank branch of a factorized transducer. Only the shaded gate is trained; everything else is frozen. The blank branch is unchanged and omitted.
Training on paired source audio-text
On paired source data the gate is trained through the recognizer itself. The mixed predictor replaces in the transducer, and the gate is optimized through the transducer objective with two regularizers:
The first two terms of Eq. (9) measure how well the routed system recognizes the source data. The transducer loss is the only term informed by the acoustics and keeps the routed system a competent recognizer rather than a merely cautious one, while is the internal-LM cross-entropy of Sec. 2, now scored on the mixed predictor rather than on the base one. The remaining two terms discourage unnecessary deviation from the base predictor. The KL anchor penalizes the realized change in the output distribution, while the sparsity term penalizes the gate value directly.
Although the gate receives no acoustic features, source audio guides its training through the transducer loss. For each source utterance, this loss evaluates how well the mixed predictor and acoustic model together explain the reference transcript. Its gradients update only the gate; both predictors and the acoustic model remain fixed. The gate therefore learns when admitting the expert’s correction helps recognition on source data. This complements the regularizers: the KL and sparsity terms discourage intervention, while the recognition loss provides a reason to intervene when the expert is useful.
Linguistic advantage from target text
When target-domain text is available (with no audio), we supervise the gate with the expert’s lexical advantage. For model define the next-token margin
the linguistic advantage , and the soft target
The gate is then trained with
This target is the natural surrogate for the decision the gate has to make. Treating admission of the expert at position as a binary action , with conditional advantage and preservation cost , the Bayes-optimal policy is the threshold rule : trust the expert exactly where its advantage exceeds the cost of deviating from the base. is a differentiable proxy for that needs no audio, and plays the role of . Using the margin rather than the reference probability matters here: is large when the expert improves the reference token’s margin over its strongest competitor relative to the base. This captures whether the expert makes the reference more competitive, which can help change a decoding decision for the better. The cross-entropy and sparsity terms appear on both sides: the mixture is always scored against the reference tokens, and trust is only ever spent where it is earned.
The full objective is , with batches drawn alternately from paired source data and target text. Only is updated; the encoder, the blank predictor, both non-blank predictors, the joiner and the output projections stay frozen.
Experimental Setup
Base model. A Zipformer encoder [24] (six stacks, embedding dimensions 192–512) with a stateless blank predictor over a bigram label context and a single-layer transformer non-blank predictor over the full label context (hidden size 512, 8 heads, feed-forward dimension 2048; 4.7 M parameters); 69.8 M parameters in total, with a 500-unit BPE vocabulary. It is trained with the transducer loss [1] on LibriSpeech 960 h [25] for 20 epochs, then fine-tuned for 5 epochs on paired audio and text from a 40-hour corpus of call-center conversations between agents and customers (DefinedAI) [26, 27], covering the banking, healthcare and insurance domains.
Target text. The target data is text only, from DefinedAI [27], drawn from two domains absent from the paired data: 10,981 retail and 18,889 telecommunications (Telco) utterances, 29,870 in total. The same text is used for both stages below; no target-domain audio is used to train or select any routed system.
Expert. A copy of the non-blank predictor fine-tuned on that text for 5 epochs with a cross-entropy loss; no other module is updated.
Gate. is a two-layer neural network applied to the residual : a linear map from its 499 dimensions (the BPE vocabulary without blank) to 32 hidden units, a SiLU nonlinearity [28], and a linear map to the single logit of Eq. (6). This is 16,033 parameters, 0.02% of the full model and 0.3% of the predictor it gates. It is the only trainable module; the encoder, the blank predictor, both non-blank predictors, the joiner and the output projections are frozen. Training runs for 30 epochs with ScaledAdam and the Eden schedule [24] at base learning rate 0.045, alternating source batches (up to 600 s of audio) with target-text batches, and in Eq. (11). Default loss weights are and ; ablations vary and . The checkpoint is selected by lowest development loss on target text, which needs no target-domain audio; the static- baseline of Table 1 is instead tuned by best combined development WER, which does.
Results
Baseline parity
We first confirm that factorization does not cost performance. On LibriSpeech test-clean/test-other, a standard transducer of matched size reaches 3.08 / 7.51 WER and our factorized transducer reaches 3.05 / 7.40 with , , consistent with [11]; internal-LM fusion is what recovers the small loss from factorization, since , gives 3.12 / 7.67.
Text-only adaptation and routing
Table 1 gives the main result. Fine-tuning the non-blank predictor on retail and Telco text improves those domains by 15.1% and 23.0% relative. It also costs 1.08 WER in-domain, an 8.4% relative regression, the familiar price of text-only adaptation. Residual routing keeps almost all of the gain and removes the in-domain regression. The default configuration performs the same as the base in domain while recovering most of the out-of-domain improvement.
| System | Trained params | Retail | Telco | DefinedAI |
| Factorized transducer (base) | all | 19.89 | 20.91 | 12.90 |
| + text-only adaptation (expert) | pred. | 16.88 | 16.10 | 13.98 |
| + static interpolation () | none | 17.16 | 17.07 | 12.89 |
| Residual routing (default) | gate | 16.86 | 16.57 | 12.91 |
| gate | 16.87 | 16.53 | 12.95 | |
| gate | 17.06 | 17.07 | 12.80 | |
| gate | 16.74 | 16.21 | 12.93 |
Table 1. WER (%) on two out-of-domain (OOD) test sets and the in-domain test set. Static interpolation holds at a constant chosen by best combined development WER, which needs target-domain audio; routed systems train only the 16k-parameter gate and are selected on target text. Best result in each column in bold.
Removing the KL anchor () improves Retail/Telco WER from 16.86/16.57 to 16.74/16.21, while source-domain WER changes only from 12.91 to 12.93. An explicit distribution-preservation penalty is therefore not necessary for the observed source-domain retention in this setting. Paired-source recognition supervision and the sparsity penalty remain active: the former trains the gate against recognition errors on source data, while the latter penalizes expert admission directly. These mechanisms differ from the KL anchor, which penalizes the resulting change in the predictor distribution. Increasing to 1.0 shifts the trade-off toward source accuracy, reaching 12.80 WER while reducing the target-domain gains. Conversely, removing sparsity changes WER only slightly relative to the default, with the KL anchor and source supervision still present. Together, these ablations suggest that the full combination of regularizers is not required to obtain a favorable source-target trade-off; they do not, however, isolate the contribution of source supervision itself.
A per-prefix gate is only worth its complexity if a constant cannot do the same job. Static interpolation, Eq. (7) with held at the constant selected on development data, preserves the source domain as well as routing does but is 2.4% and 5.0% relative worse on Retail and Telco. Sweeping from 0.1 to 0.9 traces a clean trade-off in which out-of-domain WER falls and in-domain WER rises, sharply beyond , and no value is better than the routed system on all three sets at once. The gate is buying something a scalar cannot: it adjusts the expert’s contribution at each prefix, allowing different amounts of intervention within the same utterance. The constant also had to be chosen on target-domain audio, which the routed system never uses.
What the gate learns
The statistics in this subsection come from the default routed system of Table 1. The WER numbers are consistent with a gate that has learned to recognize the target domain and switch to the expert there. The trust statistics suggest a more selective policy. The trust distribution is strikingly similar across all three test sets: the median is 0.466 on both out-of-domain sets and 0.465 in domain, and the distributions differ mainly in the weight of the upper tail, giving mean trust of 0.49, 0.50 and 0.44. These similar trust distributions suggest that the gate does not simply assign high trust to target-domain utterances and low trust to source-domain utterances. Its behavior becomes clearer when trust is examined together with predictor disagreement.
Following Eq. (8), we bin decoder states by and measure , shown in Figure 2. All three curves start from the same point, as they must: where the predictors agree the gate has no input to act on and returns . They then diverge. On both out-of-domain sets the relationship is increasing, with trust climbing steeply at high disagreement; the in-domain set inverts, falling well below its agreement value. The gate reads the same signal in opposite directions: strong disagreement is risk on source-like data and specialization on target-like data. Since intervention is the product , this conditional response is what separates the routed system from any constant . It also rules out any policy that reads disagreement magnitude alone: at matched the three curves differ, so
Figure 2. Mean trust conditioned on base-expert disagreement, over all decoder states visited during decoding. The curves share a starting point, since the gate has no input to act on where the two predictors agree, and then separate: trust grows with disagreement out of domain and shrinks with it in domain. The gate reads the same signal as specialization on target-like data and as risk on source-like data.
the gate must be responding to the direction of and not only its size. It is given no domain label, and infers from the shape of the disagreement what kind of data it is on.
Table 2 quantifies the effect in the states that matter most. Restricted to , mean trust is roughly twice as high out of domain as in domain, mean intervention likewise, and the mixed distribution agrees with the expert’s top choice about twice as often. At the utterance level, most utterances in every set fall between the two extremes, again unlike a switch.
| Test set | Agree | decoder | fused | ||
| Retail (OOD) | 0.65 | 0.55 | 0.73 | 0.234 | 0.040 |
| Telco (OOD) | 0.69 | 0.58 | 0.77 | 0.245 | 0.047 |
| DefinedAI (in-dom.) | 0.36 | 0.29 | 0.38 | 0.168 | 0.014 |
Table 2. Routing behaviour by test set, the first three columns restricted to high-disagreement decoder states (). “Agree” is the fraction of those states where the mixed and expert distributions share an argmax; “Flip” is the fraction of emitted symbols differing from the base decision, at the decoder output and after acoustic fusion and blank competition.
Finally, the transducer architecture damps the gate’s influence considerably. Routing changes the decoder’s top-1 choice on roughly a fifth of states, but after the acoustic score is added and blank competition resolved, under five percent of emitted symbols differ from the base decision (Table 2). Routing edits a small, targeted subset of the output, consistent with a 15–21% relative WER change out of domain alongside unchanged performance in domain.
Conclusion
We presented conservative residual routing for factorized transducers: a text-adapted non-blank predictor becomes a residual correction to the base predictor, and a 16k-parameter per-prefix gate decides how much of that correction to admit. Because mixing happens in probability space, clamping the gate shut recovers the base model exactly. On two held-out domains the routed system retains essentially all of the text-only gain while leaving source-domain WER unchanged, which no static interpolation weight matches on all three sets at once, and it needs no target-domain audio to tune. The learned policy does not behave as a simple domain-level switch: at high predictor disagreement, it assigns greater trust to the expert on target-domain data and less on source-domain data. Nothing in the formulation is specific to the transducer beyond the existence of a separable output-side language model, so porting it to LLM-based transducers [14] or encoder-decoder ASR [29] is the natural next step.
Acknowledgments
This work was supported by Idiap Research Institute and Uniphone collaboration project. Part of this work was also supported by EU Horizon 2020 project ELOQUENCE (grant number 101070558).
Compliance with Ethical Standards
This research did not involve the collection of new data from human participants or animals. The experiments were conducted using existing datasets; therefore, no ethical approval was required.
References
References
- [1][1]
- [11][11]
- [14][14]
- [24]Yao, Z., Guo, L., Yang, X., Kang, W., Kuang, F., Yang, Y., Jing, Z., Lin, L., & Povey, D. (2024). Zipformer: A faster and better encoder for automatic speech recognition. ICLR, 2024, 44440–44455.
- [25]Panayotov, V., Chen, G., Povey, D., & Satheesh, S. (2015). Librispeech: An ASR corpus based on public domain audio books. ICASSP, 5206–5210.
- [26]Kumar, S., & al., . et . (2026). Distilling Conversations: Abstract Compression of Conversational Audio Context for LLM-based ASR. In arXiv preprint. arXiv:2603.26246
- [27]Carolofils, A., & al., . et . (2026). Text-only adaptation in LLM-based ASR through text denoising. In arXiv preprint. arXiv:2601.20900
- [29]Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever, “Robust Speech Recognition via Large-Scale Weak Supervision,” in Proceedings of the 40th International Conference on Machine Learning. 23–29 Jul 2023, vol. 202 of Proceedings of Machine Learning Research, pp. 28492–28518, PMLR.arxiv.org/abs/2212.04356
