Manuscript Offprint

arXiv:2610.08085

DirectSpeech2LLM: A Simple End-to-End Framework to Mitigate Prompt Overfitting in Speech-LLMs

Hemant Yadav, Sunayana Sitaram, Roger Zimmermann, Rajiv Ratn Shah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Speech-LLMs often exhibit prompt overfitting, where models solely trained on automatic speech recognition (ASR) instruction fail to generalize to new instructions such as speech translation and continue to behave primarily as ASR system. We propose DirectSpeech2LLM, a simple end-to-end framework that preserves the instruction-following ability of the LLM on unseen tasks when conditioned on speech. It computes distance-based CTC loss over the frozen LLM embedding matrix and uses greedy CTC labels to derive geometrically and temporally aligned speech embeddings respectively as an input to the LLM. Trained solely on 960 hours of LibriSpeech ASR data, DirectSpeech2LLM outperforms the cascaded system on ASR (seen task) and generalizes zero-shot to speech translation and emotion recognition (two unseen tasks), closely matching the cascaded system upper bound on these two new instructions despite seeing neither during training. We also find that geometric alignment strength plays a smaller role than previously assumed, as our modified CTC loss is shown to provide sufficient implicit geometric grounding without requiring an explicit regression loss. Results are consistent across two LLM families and scale with both more training data and model capacity.

1 Introduction

Large language models (LLMs) have shown a remarkable ability to learn rich linguistic information from raw text, enabling strong generalization across language understanding, generation, and reasoning tasks [1, 2, 3]. Speech, in contrast, is a continuous acoustic signal that conveys the same underlying linguistic information that LLMs already represent effectively in discrete textual form. The ability of a pretrained LLM (the “brain”) to process auditory inputs (the “ears”) while preserving its original generalization ability is referred to as a desirable Speech-LLM [4]. Speech also encodes other information such as speaker identity, prosody, and noise [5]. However, current large audio language models are shown to behave largely as transcription systems, relying on lexical semantics and underutilizing acoustic cues [6]. This work focuses on improving the linguistic modeling of Speech-LLMs to new tasks not seen during training and leave improving non-linguistic modeling for future.

Enabling LLMs to process linguistic content present in speech requires transforming speech into embeddings aligned with the LLM input embedding space (IES) along two dimensions: geometric

∗^{*}indicates the corresponding author.

Code available at: https://github.com/raotnameh/DirectSpeech2LLM

Preprint.

Figure

Figure 1: Overview of DirectSpeech2LLM. Given an input speech signal, the SFM produces frame representations st∈Rds_t \in \mathbb{R}^d, where dd matches the dimensionality of the LLM input embeddings QQ. Logits are computed as negative squared distances ( Zt,vZ_{t,v}) followed by log-softmax and CTC loss ( Lctc\mathcal{L}_{\text{ctc}}) is applied. Next, the resulting greedy CTC predicted labels are then used to downsample SFM output embeddings via mean pooling. The LLM is fed with the resulting updated sequence embeddings from SFM and is trained with cross-entropy loss ( Lllm\mathcal{L}_{\text{llm}}). The reader should keep in mind that the LLM-IES serves only as a geometric anchor for the SFM-OES, without being replaced or discretized with the LLM input embeddings. Commitment loss is not shown in the figure for clarity.

and temporal [7]. Geometric alignment ensures that speech derived embeddings are consistent with the geometry of the trained LLM-IES by minimizing a distance metric. Temporal alignment ensures that the embedding sequence exhibits statistical properties consistent with those observed during LLM training.

Existing Speech-LLMs connect a pretrained speech foundation model (SFM) to an LLM using a projection module 2^{2}, implemented using a linear layer [8, 9], non-linear layers [10], CNN layers [11], Q-former [12] or a combination of them. While effective on seen tasks, current models often fail to generalize to unseen tasks [13] or prompt overfitting 3^{3}. For example, a Speech-LLM model trained solely on ASR task continues to behave as an ASR system even when prompted differently to perform translation or question answering [4, 14].

We hypothesize that this lack of generalization arises because of two factors. First, the SFM output embedding space (OES) is not constrained geometrically with the LLM-IES, so embeddings can occupy arbitrary regions in RdR^{d} during training, degrading the LLM's generalization ability. Prior work has shown that LLMs do tolerate small perturbations in their input embeddings, but performance degrades sharply beyond a threshold [15]. Since the LLM is frozen, only the SFM outputs can be

2^{2}for simplicity, from now on we assume the projection module is also part of SFM.

3^{3}The terms prompt overfitting and failure to generalize to unseen tasks are used interchangeably to describe the same phenomenon. Both refer to the loss of the original instruction-following ability of the underlying LLM in Speech-LLMs constrained to lie close to the LLM-IES, otherwise the system reduces to a task-specific pipeline similar to Whisper [16].

Second, most approaches rely on fixed temporal downsampling [17, 18, 19], which is inherently misaligned with the highly variable temporal dynamics of continuous speech. Because phoneme durations vary across speakers, speaking rates, and linguistic contexts, fixed downsampling produces inconsistent sequence boundaries for identical linguistic units causing overfitting. Consequently, the embedding sequence length for a given token becomes an artifact of speaking rate rather than semantic content. Given the LLM is fixed, such temporal mismatch shifts the input distribution away from that seen during LLM's training, impacting its generalization ability [20].

In this work, we propose DirectSpeech2LLM, a simple end-to-end Speech-LLM framework that jointly enforces geometric and temporal alignment. Figure 1 illustrates the overall framework. To save compute time DirectSpeech2LLM is trained in two stages to save on compute time. In Stage 1, the SFM is trained using a modified CTC objective augmented with vector quantization (VQ) to enforce alignment along the two dimensions of LLM. In Stage 2 (end-to-end), we add the LLM cross-entropy loss to the Stage 1 objectives to further improve performance.

AlignFormer enforces temporal alignment by dynamically downsampling the speech embeddings using Connectionist Temporal Classification (CTC) to match the LLM's input temporal distribution [13]. However, they do not enforce geometric constraint between the SFM-OES and LLM-IES. A similar work, Wav2Prompt [7] uses continuous integrate-and-fire (CIF) module to align temporally and regression loss to map speech embeddings to equivalent LLM tokens but suffers from a train/inference mismatch due to length dependent weight scaling and the performance is very sensitive to geometric alignment strength on unseen tasks, unlike our method.

Empirically, DirectSpeech2LLM achieves strong performance on ASR (seen task) and generalizes zero-shot to speech translation and emotion recognition (two unseen tasks or two new instructions). DirectSpeech2LLM also demonstrates robustness to out-of-domain setting on the ASR task, similar to CTC trained methods, which is shown to be a limitation of simple adapter based methods [21, 22].

Our main contributions are as follows.

  1. We propose DirectSpeech2LLM, a simple end-to-end Speech-LLM framework that preserves LLM's generalization ability to new instructions without relying on (i) large amount of multitask instruction tuning dataset or (ii) costly multiple forward passes to LLM.

  2. Our method treats CTC as a primary objective rather than an auxiliary loss, giving the SFM three independently usable operating modes at test time: (i) standalone CTC-based ASR, (ii) CTC + n-gram LM ASR, or (iii) full end-to-end Speech-LLM. Unlike most prior approaches that tightly couple the SFM and LLM into a single pipeline, SFM output embeddings here are fed directly to the LLM without any projection module, discretization, or separate adapter – hence the name DirectSpeech2LLM.

The rest of the paper is organized as follows: Section 2 reviews related work, Section 3 describes the proposed method, Section 4 details the experimental setup, Section 5 presents results and ablations, and Section 6 concludes with future directions and limitations.

References (47)