Manuscript Offprint

arXiv:2609.15743

Merging the Knowledge of LLMs for Automatic Speech Recognition

Hayato Futami, Tatsuya Kawahara

Abstract

Automatic speech recognition (ASR) systems, trained on paired speech-text data, have been improved by leveraging language models (LMs) trained on text-only data. LM fusion methods such as shallow fusion and density ratio are well-established methods that incorporate external LMs during ASR decoding. However, they incur additional computational costs due to LM inference, which is particularly problematic for recent larger LMs. In this study, we propose incorporating external LMs via model merging. This method integrates the LMs directly into the parameters of an LLM-based ASR model, requiring no additional computational cost at inference. We formulate domain extension and transfer via arithmetic operations on LoRA parameters. Experimental evaluations were conducted for the domain adaptation of LLM-based ASR trained on CSJ and LibriSpeech. We show that our LM merging consistently improved the ASR performance in the target domains, without degrading inference speed or memory footprint.

Index Terms: speech recognition, LLM, model merging

1. Introduction

End-to-end automatic speech recognition (ASR) models have achieved significant progress in recent years, demonstrating excellent performance in general domains [1, 2, 3]. This success has been driven mainly by large-scale, speech-text paired data coupled with scalable model architectures. Consequently, these models often suffer from performance degradation in specific domains lacking sufficient paired speech-text data. As text-only data is much easier to collect, it has been widely explored to apply external language models (LMs) trained on text of the target domains. Shallow fusion [4] is a well-established approach that runs a target-domain LM during ASR decoding, where the log-linear interpolation of the ASR and the LM scores are used. Density ratio fusion [5] is an extension of shallow fusion for better domain transfer, where the score of a source-domain LM is further subtracted from the interpolated score.

Recently, following the remarkable success of large language models (LLMs) in natural language processing [6, 7], there has been a significant trend toward applying LLMs in the field of ASR. LLM-based ASR is a prominent application, where pre-trained LLMs are fine-tuned for speech processing tasks by incorporating speech encoders [8, 9, 10]. These models can leverage the knowledge of powerful LLMs as foundations, becoming the new standard approach for ASR [11]. Beyond ASR, they are emerging as foundation models capable of solving a wide range of speech processing tasks [12, 13]. This study also focuses on the LLM-based ASR approach. LLM-based ASR incorporates the knowledge of an LLM at the initialization phase before ASR training, which cannot be dynamically adjusted according to target domains at inference time. To this end, LM fusion approaches are applied to adapt LLM-based ASR to the target domain. Recently, domain-specific LMs are often built by fine-tuning from foundational LLMs. It is computationally expensive to use such large LMs in shallow fusion or density ratio fusion, where the LMs are called at every decoding step [14, 15].

In this study, we propose integrating the knowledge of LLMs into ASR models via model merging. Model merging is a technique that integrates multiple models by performing arithmetic operations in their weight spaces [16, 17, 18]. Our proposed LM merging integrates LMs directly into the ASR model, whereas conventional LM fusion methods rely on off-the-shelf LMs at decoding steps. A key advantage of our method is that it does not introduce any additional modules or computational overhead over the ASR model. In this study, we utilize an LLM-based ASR model adapted from a pre-trained LLM using LoRA [19], following [9]. Domain-specific LMs are also built via LoRA fine-tuning from the same LLM. We perform arithmetic operations between the ASR and LM adapters. We propose two merging methods for domain extension and transfer. Domain extension merging corresponds to shallow fusion, where the adapter weights of the target-domain LM are added to ASR. Domain transfer merging corresponds to density ratio fusion, where the adapter weights of the source-domain LM are further subtracted. These methods are further enhanced by TIES-merging [20], an advanced model merging method that addresses task interference in merging.

We conducted experimental evaluations of ASR domain adaptation in Japanese and English. We built ASR models based on LLM-jp-3-980M [21] and LLaMA3.2-1B [7], trained on CSJ-SPS [22] and LibriSpeech [23] corpora, respectively. The models were then adapted to CSJ-APS and SPGISpeech [24] domains using LMs. First of all, we confirmed that the proposed LM merging methods consistently improved the ASR performance in the target domains. We also compared them with conventional LM fusion methods (shallow fusion and density ratio fusion) and n-best rescoring [25, 26]. We observed that while LM merging did not perform as well as LM fusion, it was competitive to n-best rescoring on CSJ. It is important to note that our method does not introduce any additional parameters or latency, unlike LM fusion and rescoring. We also found that the combination with LM fusion or rescoring further improved the ASR performance.

References (49)