Manuscript Offprint
arXiv:2610.32637Residual Expert Routing for Text-Only Domain Adaptation of Factorized Transducer ASR
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
Index Terms— speech recognition, text-only domain adaptation, factorized transducer, expert routing, mixture of experts
1. 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.

Fig. 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.
• 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.
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.
3. CONSERVATIVE RESIDUAL ROUTING
3.1. 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 Sec. 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 (Fig. 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 Sec. 5.3.
3.2. 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:
(9)
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.
3.3. 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
(10) 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.
4. 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, of the full model and 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.
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.
| System | Trained params | OOD | In-dom. DefinedAI | |
|---|---|---|---|---|
| Retail | Telco | |||
| 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 | |
Evaluation. Three test sets: DefinedAI-Retail (Retail; 3.3 h, 1312 utterances) and DefinedAI-Telco (Telco; 6 h, 2243 utterances), both out of domain with respect to the paired data, and the in-domain test set (DefinedAI; 3.4 h, 2009 utterances). All systems are decoded with modified beam search at beam size 4 and internal-LM fusion weights , in Eq. (5), so that the comparison between systems is not confounded by a second interpolation. We report WER, and for the analysis in Sec. 5.3 the trust , the disagreement and the intervention of Eq. (8), accumulated over all decoder states visited during decoding; the analysis statistics are collected with beam size 1 so that each utterance contributes a single well-defined path.
5. RESULTS
5.1. 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.
5.2. 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 and relative. It also costs 1.08 WER in-domain, an 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.
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
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.
| Test set | States with | Flip rate | |||
|---|---|---|---|---|---|
| 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 |
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.
5.3. 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 Fig. 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; on the in-domain set it 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 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.

Fig. 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.
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.
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.
6. 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.
7. ACKNOWLEDGMENTS
This work was supported by Idiap Research Institute and Uniphore collaboration project. Part of this work was also supported by EU Horizon 2020 project ELOQUENCE (grant number 101070558).
8. 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.
9. REFERENCES
[1] Alex Graves, “Sequence Transduction with Recurrent Neural Networks,” arXiv preprint arXiv:1211.3711, 2012.
[2] Anjuli Kannan, Yonghui Wu, Patrick Nguyen, Tara N. Sainath, ZhiJeng Chen, and Rohit Prabhavalkar, “An Analysis of Incorporating an External Language Model into a Sequence-to-Sequence Model,” in ICASSP, 2018, pp. 1–5828.
[3] Erik McDermott, Hasim Sak, and Ehsan Variani, “A Density Ratio Approach to Language Model Fusion in End-to-End Automatic Speech Recognition,” in IEEE ASRU, 2019, pp. 434–441.
[4] Zhong Meng, Sarangarajan Parthasarathy, Eric Sun, Yashesh Gaur, Naoyuki Kanda, Liang Lu, Xie Chen, Rui Zhao, Jinyu Li, and Yifan Gong, “Internal Language Model Estimation for Domain-Adaptive End-to-End Speech Recognition,” in IEEE SLT, 2021, pp. 243–250.
[5] Zhong Meng, Naoyuki Kanda, Yashesh Gaur, Sarangarajan Parthasarathy, Eric Sun, Liang Lu, Xie Chen, Jinyu Li, and Yifan Gong, “Internal Language Model Training for Domain-Adaptive End-To-End Speech Recognition,” in ICASSP, 2021, pp. 7338–7342.
[6] Ehsan Variani, David Rybach, Cyril Allauzen, and Michael Riley, “Hybrid Autoregressive Transducer (HAT),” in ICASSP, 2020, pp. 6139–6143.
[7] Zhong Meng, Yashesh Gaur, Naoyuki Kanda, Jinyu Li, Xie Chen, Yu Wu, and Yifan Gong, “Internal Language Model Adaptation with Text-Only Data for End-to-End Speech Recognition,” in Interspeech 2022, 2022, pp. 2608–2612.
[8] Zhong Meng, Weiran Wang, Rohit Prabhavalkar, Tara N. Sainath, et al., “JEIT: Joint End-to-End Model and Internal Language Model Training for Speech Recognition,” in ICASSP, 2023, pp. 1–5.
[9] Xie Chen, Zhong Meng, Sarangarajan Parthasarathy, and Jinyu Li, “Factorized Neural Transducer for Efficient Language Model Adaptation,” in ICASSP, 2022, pp. 8132–8136.
[10] Rui Zhao, Jian Xue, et al., “Fast and Accurate Factorized Neural Transducer for Text Adaption of End-to-End Speech Recognition Models,” in ICASSP, 2023, pp. 1–5.
[11] Jinxi Guo, Niko Moritz, Yingyi Ma, et al., “Effective Internal Language Model Training and Fusion for Factorized Transducer Model,” in ICASSP, 2024, pp. 12687–12691.
[12] Junzhe Liu, Jianwei Yu, and Xie Chen, “Improved Factorized Neural Transducer Model For Text-only Domain Adaptation,” in Interspeech 2024, 2024, pp. 767–771.
[13] Zhong Meng, Tongzhou Chen, Rohit Prabhavalkar, et al., “Modular Hybrid Autoregressive Transducer,” in IEEE SLT, 2023, pp. 197–204.
[14] Keqi Deng, Jinxi Guo, Yingyi Ma, et al., “Transducer-Llama: Integrating LLMs into Streamable Transducer-based Speech Recognition,” in ICASSP, 2025, pp. 1–5.
[15] Rao Ma, Xiaobo Wu, Jin Qiu, et al., “Internal Language Model Estimation Based Adaptive Language Model Fusion for Domain Adaptation,” in ICASSP, 2023, pp. 1–5.
[16] Anuroop Sriram, Heewoo Jun, Sanjeev Satheesh, and Adam Coates, “Cold Fusion: Training Seq2Seq Models Together with Language Models,” in Interspeech, 2018, pp. 387–391.
[17] Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton, “Adaptive mixtures of local experts,” Neural Computation, vol. 3, no. 1, pp. 79–87, 1991.
[18] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean, “Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer,” in ICLR, 2017.
[19] William Fedus, Barret Zoph, and Noam Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” Journal of Machine Learning Research, vol. 23, no. 120, pp. 1–39, 2022.
[20] Qiuming Zhao, Guangzhi Sun, et al., “SAML: Speaker Adaptive Mixture of LoRA Experts for End-to-End ASR,” in Interspeech 2024, 2024, pp. 777–781.
[21] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, et al., "Parameter-efficient transfer learning for NLP," in ICML. PMLR, 2019, pp. 2790–2799.
[22] Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, et al., “LoRA: Low-Rank Adaptation of Large Language Models,” in ICLR, 2022.
[23] Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi, “Editing models with task arithmetic,” in ICLR, 2023.
[24] Zengwei Yao, Liyong Guo, Xiaoyu Yang, Wei Kang, Fangjun Kuang, Yifan Yang, Zengrui Jin, Long Lin, and Daniel Povey, "Zipformer: A faster and better encoder for automatic speech recognition," in ICLR, 2024, vol. 2024, pp. 44440–44455.
[25] Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur, “Librispeech: An ASR corpus based on public domain audio books,” in ICASSP, 2015, pp. 5206–5210.
[26] Shashi Kumar et al., “Distilling Conversations: Abstract Compression of Conversational Audio Context for LLM-based ASR,” arXiv preprint arXiv:2603.26246, 2026.
[27] Andres Carofilis et al., “Text-only adaptation in LLM-based ASR through text denoising,” arXiv preprint arXiv:2601.20900, 2026.
[28] Stefan Elfwing, Eiji Uchibe, and Kenji Doya, “Sigmoid-weighted linear units for neural network function approximation in reinforcement learning,” Neural networks, vol. 107, pp. 3–11, 2018.
[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.