JSTIP
Rethinking Speech-LLM Integration for ASR: Effective Joint Speech-Text Training by Interleaving
JSTIP interleaves speech and text within aligned pairs to preserve both LLM generative capacity and speech-conditioning during joint training. This addresses the failure of naive joint training to maintain textual priors as ASR data scales, improving entity recognition on domain-specific tasks.
Links
Paper & demos
Impact
Abstract
Speech-LLM integration has shown promising results by leveraging extensive textual pretraining, yet its specific benefits for automatic speech recognition (ASR) remain unclear. We observe that as supervised ASR training data increases, the contribution of LLM priors becomes less evident, and simple speech-text joint training under-utilizes textual knowledge. We therefore propose Joint Speech-Text Interleaved Pretraining (JSTIP), an ASR-oriented pretraining strategy that constructs word-level and segment-level interleaved speech-text sequences within aligned pairs for speech-LLM architectures that accept continuous inputs. Experiments on 38k hours of ASR data show consistent entity accuracy improvement compared to ASR-only and joint speech-text training baselines. JSTIP achieves on-par entity recognition performance using domain transcription text compared to synthetic speech-text pairs, simplifying domain adaptation. Benefiting from textual pretraining and domain text data, JSTIP is competitive with open-source ASR and Speech-LLM systems in medical entity recognition. The zero-shot speech question answering behaviors further suggest that interleaving reduces the speech-text modality gap and preserves the LLM generative prior, which is likely the reason for the entity improvements on the ASR task.
Introduction and Motivation
Large language models (LLMs) pretrained on massive text corpora have demonstrated strong linguistic modeling and broad world knowledge. A natural extension is to connect a pretrained speech encoder to an LLM decoder via a lightweight adapter, forming a decoder-only Speech-LLM architecture. In this paradigm, ASR data is used to align speech and text representations across the encoder–adapter–decoder pipeline. The hope is twofold: (1) LLM pretraining compensates for limited supervised ASR data, especially for rare words, domain-specific terminology, and long-tail entities; and (2) the aligned model inherits zero-shot instruction-following from the backbone LLM.
However, the authors observe a critical failure mode: as supervised ASR training data increases, the benefit of LLM priors becomes less evident. The decoder specializes increasingly in speech-conditioned next-token prediction, weakening the generative prior learned during text pretraining. Even when text-only data is naively mixed into training, the gains on the text side do not transfer effectively to speech-conditioned entity recognition. This motivates a fundamental rethinking of how speech and text should be combined during the pretraining stage.
The paper proposes Joint Speech–Text Interleaved Pre-Training (JSTIP), an ASR-oriented pretraining strategy that constructs interleaved speech-text sequences within each aligned speech-text pair, rather than mixing separate speech and text batches at the dataset level. The approach is designed specifically for decoder-only architectures that accept continuous speech representations, and it targets entity-rich ASR in high-data regimes.
Problem Formulation: Conventional Speech-LLM Training
The standard pipeline connects three components: a pretrained speech encoder, a modality adapter, and a pretrained decoder-only LLM. Given an audio sequence $A$, the encoder produces acoustic representations, which the adapter projects into the LLM embedding space. These projected representations, concatenated with special task tokens (e.g., <|asr|>), are fed into the decoder to generate the transcription $T = (t_1, \dots, t_N)$.
ASR-only training optimizes the standard cross-entropy loss:
$$\mathcal{L}_{\text{ASR}} = -\sum_{i=1}^{N} \log P(t_i \mid A, t_{where $t_{Speech-text joint training (the naive baseline) adds text-only data by passing zero speech inputs through the encoder for text-only batches. While this allows text sequences to update LLM parameters and improve text-side metrics, the authors find it fails to close the modality gap: text-side language modeling improvements do not propagate to speech-conditioned entity recognition in practice.
JSTIP: Joint Speech–Text Interleaved Pre-Training
JSTIP departs from dataset-level scheduling. Instead, it constructs interleaved sequences inside each aligned speech-text pair. Given a speech-text pair $(A, T)$, word-level or segment-level alignment yields a sequence of segment pairs:
$$\{(A_1, T_1), (A_2, T_2), \dots, (A_n, T_n)\}$$where each $A_i$ is the acoustic span aligned to text segment $T_i$. From this aligned pair, two complementary interleaved sequences are constructed by alternating speech and text segments:
- Speech-first variant: $(A_1, T_2, A_3, T_4, \dots, T_n)$
- Text-first variant: $(T_1, A_2, T_3, A_4, \dots, T_n)$
In both cases, the final segment is always a text segment, and all text tokens in the interleaved sequence serve as training targets. The model is thus trained to predict text conditioned on distributions of the form:
$$P(T_j \mid A_i, T_{i+1}, \dots)$$This design forces the decoder to predict text tokens after both speech and text contexts within the same sequence, preserving textual modeling behavior while simultaneously learning speech conditioning. Deterministic alternation is used in all experiments; adaptive or word-type-based selection is left for future work.
Loss Masking
Cross-entropy loss is applied only to text tokens regardless of training format. In ASR-only training, the loss covers transcript tokens. In text-only training, it covers text tokens. In interleaved training, it covers all text tokens in the interleaved sequence. Speech positions are always masked out. Special task/modality indicator tokens are excluded from the loss. When multiple examples are packed into the 8k context window, the implementation uses packed SFT with cumulative sequence lengths (cu_seqlens) in FlashAttention to prevent cross-example attention leakage.
Word-Level Interleaving
At word-level granularity, each $T_i$ is a single word (or token span) and $A_i$ is its aligned acoustic region. The sequence alternates at maximum frequency, and special tokens between speech and text segments are skipped to enforce tight cross-modal coupling at the finest available scale.
A key engineering challenge arises because continuous speech representations are used (not discrete tokens): processing many short acoustic spans independently creates large zero-padding overhead in the speech encoder, threatening GPU memory during large-batch training. The paper addresses this with a concatenate-then-reinsert strategy: all speech segments are concatenated into a single longer sequence at the encoder input level, and the resulting representations are placed back into their correct interleaved positions after the adapter forward pass. This makes word-level interleaving scalable for continuous speech inputs.
Segment-Level Interleaving
At segment granularity, consecutive words are merged into phrase- or sentence-level segments. The interleaved sequence takes the form:
$$\langle s \rangle,\; A_1,\; \langle N \rangle,\; T_2,\; \langle N \rangle,\; A_3,\; \langle N \rangle,\; T_4,\; \dots,\; \langle N \rangle,\; T_n,\; \langle /s \rangle$$where $\langle s \rangle$ and $\langle /s \rangle$ are start/end tokens and $\langle N \rangle$ is a modality boundary token. Segment boundaries can be defined by acoustic silence alone, or by both acoustic silence and punctuation signals.
Mixed Interleaving (JSTIP Full)
The best-performing configuration mixes word-level and segment-level interleaved sequences. Word-level interleaving contributes fine-grained cross-modal coupling and ASR-specific entity benefits, while segment-level interleaving provides longer-range semantic context and stronger modality-gap reduction. The combined strategy outperforms either alone.
Architecture and Training Setup
The model follows a decoder-only speech-LLM architecture:
- Speech encoder: 400M-parameter Conformer with temporal downsampling factor of 8. Input is 80-dimensional log Mel filterbanks extracted with 10 ms frame shift, yielding an effective 80 ms per speech token at the decoder.
- Decoder: An internal 7B-parameter LLM pretrained on 5 trillion text tokens.
- Adapter: A lightweight ~20M-parameter projection layer mapping encoder outputs into the LLM latent space.
Training is conducted in two stages:
- Stage 1 (adapter warm-up): Only adapter parameters are updated using ASR data to stabilize cross-modal alignment. Learning rate: $1 \times 10^{-4}$ with linear decay (AdamW), covering 10% of total ASR tokens.
- Stage 2 (full joint training): All parameters — encoder, adapter, and LLM — are jointly optimized. Learning rate: $4 \times 10^{-5}$ with linear decay (AdamW). ASR, interleaved, and text-only sequences are packed into 8k context length with packed SFT.
Training Data
ASR Data
38,000 hours of anonymized English in-house ASR data, corresponding to approximately 2.3B training tokens at a 12.5 Hz token rate. Evaluation speakers are disjoint from training speakers.
Interleaved Data
Word-level alignments are obtained on the 38k-hour ASR data using an HMM-based hybrid ASR system. Utterances with failed alignments are removed; no confidence-based filtering is applied. Two interleaving granularities are derived: word-level (each word as a unit) and segment-level (consecutive words merged by silence or silence+punctuation). 2.3B interleaved tokens are used per run to balance with the ASR data. The paper notes that segment-level interleaving is expected to be less sensitive to local boundary errors than word-level interleaving, and that robustness to CTC or timestamp-based forced alignment is left as future work.
Text Data
To preserve textual modeling capacity, the following text-only corpora are included:
- 2.3B text tokens from PubMed abstracts (medical domain).
- 0.1B text tokens from TTS-pair transcriptions.
All text data is cleaned by simple rule-based filtering and formatted for LLM pretraining (truncated at 8k context, EOS appended).
Synthetic Domain Data (TTS-Pairs)
For domain adaptation experiments, 9,000 hours of synthetic medical-domain ASR data (TTS-pairs) are created. Transcriptions are generated by prompting GPT for entity-rich utterances across medical topics; audio is synthesized using an in-house TTS model. Two uses of this data are compared: using full synthetic speech-text pairs vs. using only the transcriptions (TTS-transcription), which is cheaper to obtain.
Evaluation Protocol
General ASR (TER)
Two held-out in-house test sets are used: conversation (spontaneous short-form speech) and dictation (longer-form dictated speech with rich punctuation). Performance is measured by Token Error Rate (TER), which counts all tokens including capitalization and punctuation.
Entity Error Rate (EER)
Nine held-out in-house domain test sets are used: eight medical domain sets and one banking set. References and entity spans are human-annotated. EER is defined as $1 - \text{recall}$ over annotated entity instances, computed before text normalization (so capitalization, punctuation, and exact spelling matter; spelling variants are not accepted). EER is the primary metric because LLM knowledge transfer is concentrated on entities, while aggregate TER is dominated by common non-entity tokens.
- Medical aggregate: 261 utterances, 49.281 hours.
- Banking set: 36 utterances, 5.567 hours.
Modality Gap: Speech-MMLU
A speech version of MMLU is constructed and evaluated in 5-shot setting. Performance is measured under text-to-text (T2T) and speech-to-text (S2T) conditions. Answers are predicted via next-token selection over options {A, B, C, D} (random baseline: 25%). The gap $\Delta = \text{S2T} - \text{T2T}$ quantifies how much textual reasoning ability is lost after speech adaptation.
Zero-shot Speech Question Answering (SQA)
Three datasets from UltraEval-Audio are used: LLaMA-QA, TriviaQA, and WebQA. Average accuracy is reported. SQA requires open-ended answer generation and serves as a diagnostic for whether text-side generative behavior is preserved under speech input. The paper interprets it as supporting evidence for knowledge preservation rather than a standalone explanation for entity gains.
Main Results
Table 1 (Overall Results) shows the full set of results across configurations. Below is a summary of the key findings:
| Model Configuration | TER Conv. | TER Dict. | EER Medical-AVG (%) | EER Banking (%) | MMLU-T2T (%) | MMLU-S2T (%) | SQA-T2T (%) | SQA-S2T (%) |
|---|---|---|---|---|---|---|---|---|
| LLM-7B (text only, no speech) | — | — | — | — | 78 | — | 60.17 | — |
| ASR-only | 23.63 | 11.06 | 7.97 | 11.57 | 43.01 | 35.68 | 9.41 | 0.05 |
| ASR-only + Interleave | 22.65 | 10.81 | 7.32 | 11.29 | 51.26 | 51.77 | 45.37 | 41.92 |
| ASR + PubMed | 23.32 | 10.81 | 7.49 | 11.29 | 64.1 | 43.77 | 43.97 | 10.1 |
| ASR + PubMed + Interleave | 22.35 | 10.74 | 6.87 | 9.98 | 64.16 | 58.98 | 44.95 | 41.03 |
| ASR + TTS-pairs | 22.71 | 10.73 | 6.86 | 10.8 | 48.17 | 36.96 | 36.47 | 7.6 |
| ASR + TTS-pairs + Interleave | 22.22 | 10.54 | 6.72 | 10.53 | 54.98 | 53.89 | 44.59 | 41.12 |
| ASR + TTS-transcription | 23.69 | 11.27 | 7.85 | 11.02 | 54.44 | 37.95 | 42.63 | 6.27 |
| ASR + TTS-transcription + Interleave | 22.3 | 10.49 | 6.81 | 10.47 | 57.02 | 53.26 | 43.81 | 40.39 |
| JSTIP-Best-EER (ASR + Interleave + TTS-Interleave + PubMed + TTS-transcription) | 22.42 | 10.48 | 6.60 | 10.75 | 64.09 | 58.7 | 44.92 | 42.07 |
Key Observations from Main Results
Interleaving alone (no domain text): Adding interleaved sequences to ASR-only training reduces Medical-AVG EER from 7.97% to 7.32% and dramatically recovers zero-shot SQA capability: SQA-S2T jumps from 0.05% to 41.92%. This reveals that ASR-only training essentially destroys the LLM's generative prior for speech-conditioned generation, and interleaving restores it.
Naive joint training vs. interleaving: Adding PubMed text without interleaving (ASR+PubMed) substantially improves MMLU-T2T (43.01% → 64.1%) because text batches update LLM parameters, but MMLU-S2T improves much less (35.68% → 43.77%), and EER only drops modestly (7.97% → 7.49%). This exposes the modality gap: text-side improvements do not transfer to speech-conditioned inference without interleaving. With interleaving, MMLU-S2T reaches 58.98%, EER drops to 6.87%, and SQA-S2T reaches 41.03%.
Transcription vs. synthetic speech pairs for domain adaptation: Without interleaving, adding TTS-transcription yields negligible EER improvement (7.97% → 7.85%). With interleaving, TTS-transcription alone achieves Medical-AVG EER of 6.81%, matching the result from full synthetic TTS-pairs (6.86% without interleaving, 6.72% with interleaving on pairs). This means domain transcription text alone, when combined with interleaving, is as effective as expensive synthetic speech-text pairs for entity adaptation — a practically important finding for domain adaptation without TTS infrastructure.
JSTIP-Best-EER: Combining all resources (38k hours ASR + PubMed text + TTS-transcription + TTS-interleaved sequences + ASR-interleaved sequences) achieves the lowest Medical-AVG EER of 6.60%, representing a 17.2% relative improvement over the ASR-only baseline (7.97%).
Comparison with Open-Source Systems
| Model | Medical-AVG EER (%) | Banking EER (%) | AVG-All EER (%) |
|---|---|---|---|
| Whisper-Large-V3 | 6.94 | 8.88 | 7.16 |
| Qwen3-ASR-1.7B | 6.67 | 9.81 | 7.02 |
| Qwen2.5-Omni-7B | 12.22 | 19.13 | 12.99 |
| Qwen3-Omni-30BA3B | 5.84 | 9.87 | 6.29 |
| Voxtral-Mini-3B | 7.40 | 10.25 | 7.71 |
| Voxtral-Small-24B | 6.04 | 9.38 | 6.41 |
| Gemma-3n-E4B | 10.62 | 17.21 | 11.35 |
| JSTIP-Best-EER (Ours) | 6.60 | 10.75 | 7.06 |
The paper emphasizes that this comparison is an external reference rather than a fully controlled ranking, as the open-source models differ in architecture, training data volume (potentially millions of hours), model size, prompting, and decoding settings. Despite being trained on only 38k hours of ASR data, JSTIP-Best-EER outperforms Whisper-Large-V3, Qwen3-ASR-1.7B, Voxtral-Mini-3B, Gemma-3n-E4B, and Qwen2.5-Omni-7B on Medical-AVG EER. The benefit on medical domains is attributed to the LLM pretraining prior and medical domain text (PubMed + TTS-transcription). The model remains weaker on banking, where no comparable domain text is included in training. JSTIP is outperformed on medical domains by Qwen3-Omni-30BA3B and Voxtral-Small-24B, which the paper attributes to their larger LLM backbones.
Ablation Study: Interleaving Granularity and Segmentation Strategy
| Interleave Type | Segmentation Strategy | EER-Medical (%) | MMLU-T2T (%) | MMLU-S2T (%) | $\Delta$ (S2T − T2T) |
|---|---|---|---|---|---|
| ASR only | — | 7.97 | 43.01 | 35.68 | −7.33 |
| + Word-IL | — | 7.64 | 46.83 | 39.94 | −6.89 |
| + Segment-IL | Silence | 7.79 | 54.37 | 49.92 | −4.45 |
| + Segment-IL | Silence + Punctuation | 7.69 | 53.59 | 52.82 | −0.77 |
| + Mixed-IL | Silence | 7.55 | 56.27 | 52.16 | −4.11 |
| + Mixed-IL | Silence + Punctuation | 7.32 | 51.26 | 51.77 | +0.61 |
| With TTS-pairs (domain data) | |||||
| ASR + TTS-pair | — | 6.86 | 48.17 | 36.96 | −11.21 |
| ASR + TTS-transcription | — | 7.85 | 54.44 | 37.95 | −16.49 |
| + Mixed-IL (TTS-trans.) | Silence | 7.27 | 58.71 | 55.27 | −3.44 |
| + Mixed-IL (TTS-trans.) | Silence + Punctuation | 6.81 | 57.02 | 53.26 | −3.76 |
Key Findings from Ablation
Word-IL alone: Improves entity recognition (7.97% → 7.64%) but shows limited modality-gap reduction. The $\Delta$ metric moves only from −7.33 to −6.89. Word-level coupling helps ASR entity performance but is insufficient on its own for preserving broad text-side reasoning.
Segment-IL alone: Substantially reduces the modality gap (silence: $\Delta = -4.45$; silence+punctuation: $\Delta = -0.77$), significantly better than Word-IL. However, Segment-IL achieves similar or slightly worse EER compared to Word-IL, suggesting the two approaches are complementary.
Punctuation-based segmentation: Using both silence and punctuation for segment boundaries achieves near-zero modality gap ($\Delta = -0.77$) compared to silence-only ($\Delta = -4.45$). The reason is that acoustic silence alone can be sparse, producing very long segments; punctuation creates more balanced segment-length distributions, making the supervision signal more even.
Mixed-IL (Word + Segment): The combination with silence+punctuation segmentation achieves the best EER (7.32%) and a positive $\Delta$ (+0.61%), meaning MMLU-S2T exceeds MMLU-T2T — an indicator that speech conditioning and text-side reasoning are well-aligned. This demonstrates that word-level interleaving provides ASR-specific benefits beyond what segment-level interleaving alone (as used in prior systems such as Voxtral and Xie et al.) can offer.
Transcription vs. speech pairs under interleaving: Without interleaving, TTS-transcription gives EER of 7.85% while TTS-pairs give 6.86% — a large gap. With mixed interleaving, TTS-transcription reaches 6.81%, matching TTS-pairs performance. This confirms that interleaving is the mechanism that enables domain transcription text to transfer into speech-conditioned entity recognition.
Analysis: Why Does Interleaving Work?
The paper provides a coherent mechanistic interpretation. Under ASR-only training, the decoder specializes in speech-conditioned prediction and the text-side generative prior degrades rapidly: MMLU-S2T is 35.68% despite the 7B LLM backbone being pretrained on 5 trillion text tokens, and zero-shot SQA-S2T essentially collapses to 0.05%.
Naive joint training with separate text batches improves T2T metrics (MMLU-T2T: 43% → 64%) but fails to bridge the modality gap, as evidenced by persistently low MMLU-S2T (43.77%) and SQA-S2T (10.1%). Text-only batches update the LLM in a context-independent manner; the decoder never learns to predict text given mixed speech-and-text context.
JSTIP solves this by making text prediction occur after both speech and text contexts within the same sequence. The decoder therefore cannot ignore the textual prior when speech is present, because the training objective explicitly trains text prediction after speech spans. The near-zero or positive $\Delta$ values under Mixed-IL confirm that the modality gap is substantially closed, and the zero-shot SQA recovery (0.05% → ~42%) strongly supports knowledge preservation. The paper argues that this preserved generative prior is the likely mechanism by which domain entity recognition improves: the model can leverage the broader world knowledge and linguistic prior from LLM pretraining rather than relying solely on observed speech-text co-occurrences in the ASR training corpus.
Relation to Prior Work
The paper situates JSTIP relative to three bodies of work:
- Speech-LLM integration systems (Qwen-Audio, Phi-4-Multimodal, Moshi, Step-Audio, Kimi-Audio, Voxtral): These systems commonly report interleaved or mixed training as useful for general multimodal ability, but precise construction details and ASR-specific analysis are usually not disclosed. JSTIP isolates interleaving as an ASR-oriented mechanism.
- Spirit-LM (Nguyen et al.): Interleaves spoken and written language using discrete speech tokens in a shared decoder formulation. JSTIP differs by operating with continuous speech representations, targeting a decoder-only ASR architecture, and specifically analyzing the effect on entity recognition and the modality gap.
- Pre-LLM joint speech-text training (JOIST, MAESTRO, SpeechLM, SpeechT5, SLAM, etc.): These methods inject text-only data into AED or transducer-based ASR to exploit linguistic regularities. They required alignment heuristics (duration-based upsampling, repetition) to handle the text–speech input mismatch. JSTIP revisits text injection under the decoder-only LLM paradigm, with the specific goal of preserving the pretrained LLM prior rather than merely strengthening a learned language model decoder.
Contributions and Novelty
- Diagnosis: Identifies over-specialization to speech-conditioned decoding as the root cause of poor LLM prior transfer in the large supervised-data regime, even when text-only data is naively mixed.
- JSTIP method: An ASR-oriented interleaved pretraining strategy that constructs word-level and segment-level interleaved sequences within aligned speech-text pairs, ensuring text prediction occurs after both speech and text contexts.
- Scalable word-level interleaving: A concatenate-then-reinsert implementation that makes fine-grained word-level interleaving practical for continuous speech representations at training scale.
- Domain adaptation insight: Under JSTIP, domain transcription text alone achieves entity performance comparable to synthetic TTS speech-text pairs, enabling cost-efficient domain adaptation without requiring TTS synthesis for every text example.
- Empirical evidence: Consistent entity recognition improvement (up to 17.2% relative), near-zero modality gap, and recovery of zero-shot SQA capability — all without introducing task-specific supervision beyond ASR.
Limitations and Future Work
The paper explicitly acknowledges several limitations:
- The primary training data, domain evaluation sets, and backbone LLM are internal/proprietary. Results should be interpreted as controlled improvements within this system rather than a universal ranking over Speech-LLMs.
- Only HMM-based hybrid ASR alignments are used. Robustness to CTC alignments or timestamp-based forced alignment tools is identified as future work.
- JSTIP uses deterministic alternation for modality selection. Adaptive, random, or word-type-based modality selection strategies are left for future work.
- The analysis focuses on English medical and banking ASR. Generalization to other languages and domains remains to be demonstrated.
- The banking domain does not benefit from domain-specific text in the current setup, and the model lags behind larger open-source models (Qwen3-Omni-30BA3B, Voxtral-Small-24B) due to backbone LLM size differences.
- SQA accuracy can be affected by prompting, decoding, and answer normalization, and is interpreted as supporting evidence rather than a fully controlled diagnostic.