Manuscript Offprint

arXiv:2608.31170

Context-Aware Interleaved Batching for WhisperX

Carlos Bain, Max Bain

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

Carlos Bain ∗^{*}, Max Bain †^{\dagger}

University of Oxford †^{\dagger}

Figure

Figure 1: Context-Aware Interleaved Batching for speech transcription. Long-form audio is first segmented into chunks ( ≤\leq30s) via Voice Activity Detection (VAD). These chunks are partitioned into contiguous streams and batched by drawing one chunk per stream. To preserve text context during batched transcription, each chunk is conditioned on a FIFO rolling text buffer generated from its stream's preceding chunks. Finally, to resolve the cold-start problem, the first batch is re-transcribed using the final text of chronologically preceding streams as context.

Abstract

While WhisperX accelerates speech transcription via intra-audio batching, it isolates audio segments, losing the historical context needed for coherent punctuation and terminology transcription. Conversely, standard Whisper retains context sequentially but suffers from slow inference and hallucination loops. To achieve the best of both worlds, we propose Context-Aware Interleaved Batching. By using VAD-derived segment boundaries, our algorithm stabilizes Whisper's text conditioning, allowing us to safely maintain continuous historical context across batched audio segments. As demonstrated on long-form audio benchmarks, this approach reduces Word Error Rate (WER) and improves proper noun transcription, all while maintaining high-throughput inference speeds.

1. Introduction

Large-scale speech recognition models, such as OpenAI's Whisper [1], achieve high accuracy across diverse domains. However, deploying these models on long-form audio is computationally expensive. Standard Whisper processes audio sequentially, preventing batched inference. Furthermore, while Whisper includes a condition_on_previous_text feature to maintain historical context, it is often unstable. As demonstrated in our evaluations, enabling this feature in standard Whisper can actually degrade overall Word Error Rate (WER), a known symptom of the model hallucinating or propagating errors across sequential forward passes [2]. In addition, recent work [3] further highlights the risks of autoregressive context in long-form transcription, showing that an erroneous context can propagate across successive decoding steps and trigger hallucinations.

To resolve this, WhisperX [4] introduced a Voice Activity Detection (VAD) based pipeline. By segmenting audio at natural silences rather than arbitrary fixed-length windows, WhisperX offers significant inference speedups via within-audio batched transcription, improves overall transcription accuracy, and adds highly accurate word-level timestamps via forced alignment with a CTC model [5]. Despite these advantages, batched processing inherently isolates each audio chunk. This prevents the model from conditioning on previous text, stripping it of its autoregressive context capabilities. On long-form audio, this loss of historical context degrades performance on continuous conversational threads, technical language, and proper nouns. Prior works in end-to-end ASR have long established that such context, via contextual biasing, is essential for accurately transcribing rare and domain-specific terms [6, 7, 8].

Currently, no transcription method simultaneously achieves high parallelization, reliable word-level timestamps, and stable autoregressive conditioning. We address this with Context-Aware Interleaved Batching. By propagating historical text across parallel batch boundaries, our method maintains continuous context without sacrificing inference speed. Crucially, decoupling audio chunk boundaries from Whisper's internal timestamp decoding prevents hallucination loops, stabilizing the model's conditioning on previous text and improving accuracy.

Our contributions are threefold: (i) a novel method enabling historical text conditioning within fully parallelized transcription frameworks; (ii) a new, open-source medical long-form benchmark, evaluated alongside targeted Proper Noun (Pn) and punctuation metrics; and (iii) empirical demonstration that our method improves accuracy across all metrics and integrates into any batched, segmentation-based transcription pipeline.

*Correspondence at carlos.o.bain@gmail.com

†^{\dagger}Work done whilst at University of Oxford, now currently at Google DeepMind.