arXiv:2610.23409cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23409

Flash RNN-T: Memory-Efficient Joint Network and Transducer Loss Computation

Mahmoud Ashraf

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

Abstract

The recurrent neural network transducer (RNN-T) remains a practical choice for streaming speech recognition, but training requires large intermediate tensors. We present Flash RNN-T, a joint and loss implementation combining specialized kernels with optional tiled recomputation over the full alignment space and vocabulary. Tiled and untiled Flash form the entire measured throughput-memory frontier on medium and long workloads. On H100, untiled Flash achieves 24-39% higher throughput with 26-56% less memory than the fastest baseline on these workloads wherever it fits. Tiling reduces memory further through recomputation. On medium, tiled Flash uses ninefold less memory than that baseline at 16% lower throughput when both use one backward call per batch. On long, it fits where all tested alternatives with that backward schedule run out of memory with 80 GB. These comparisons use each implementation's lowest-memory configuration reaching at least 95% of its peak throughput.

1 Introduction

RNN-T remains a practical choice for streaming speech recognition, with recent systems demonstrating accurate recognition under real-time constraints [1, 2]. Training an RNN-T requires marginalizing over alignments between an input sequence and a target transcript [3]. Its joint network combines encoder and prediction network states at every valid position in the alignment lattice, producing a distribution over the vocabulary at each position. For a nonlinear joint, the resulting hidden states and vocabulary logits can occupy substantially more memory than the scalar quantities needed by the forward–backward recurrence [4, 5]. This makes the joint network and loss computation natural targets for memory optimization.

Existing approaches reduce this memory cost by packing valid alignment positions [4] and processing utterances individually [5]. However, avoiding padded positions and processing utterances separately do not, by themselves, bound the large intermediate tensors produced within a single utterance. This motivates finer-grained control over their storage and lifetime.

We introduce Flash RNN-T, a joint and loss implementation combining specialized GPU kernels with optional tiled checkpointing. Its tiled variant divides joint network computation into groups of alignment positions, including within a single utterance. For each group, it computes the blank and target transition log probabilities needed by the forward–backward recurrence, while discarding the much larger hidden states and vocabulary logits. To compute gradients without retaining these intermediates, we use activation checkpointing [6] to recompute them one group at a time during backpropagation, trading additional computation for control over their memory footprint. All valid alignment positions and the full vocabulary are still evaluated, preserving the RNN-T objective.

We evaluate tiled and untiled Flash against existing implementations and examine how specialization and recomputation contribute to their throughput–memory tradeoffs. On the evaluated medium and long workloads, the two variants together form the entire measured frontier on both GPUs, offering higher-throughput untiled execution and lower-memory tiled execution. Code, benchmark scripts and results are available online. 1^{1}