用于内存高效大词汇量ASR训练的剪枝CTC

·

研究论文 · 2026/09/29

连接主义时间分类(CTC)天然支持离线与流式语音识别,并仅需话语级监督,但传统实现需在内存中物化帧-词汇表激活,导致使用原生LLM词汇表进行CTC训练时内存消耗过高。关键观察是,每个有效的CTC对齐仅使用目标词元和空白符,而一个批次中这些的并集通常只占完整词汇表的一小部分。我们提出Pruned CTC,将对齐计算限制在该子集内,同时保留全词汇表归一化。我们证明这种词汇表缩减在损失和梯度上与全词汇表CTC完全等价。头部与损失激活内存不再随词汇表大小线性增长。我们进一步应用有限束对齐剪枝。基于Pruned CTC,我们开发了LLM-CTC,它将预训练LLM适配为非自回归ASR,同时保留因果注意力和原生词汇表,并将其扩展到有界历史流式处理,避免块级语音-文本对齐。实验表明,使用Zipformer-M编码器和180K词汇表时,Pruned CTC将全步骤内存减少5.1倍,仅增加17%的步骤时间开销。在三个语料库上,其准确率与标准CTC相当。在GigaSpeech上,对于从0.6B到32B的六种Qwen3模型尺寸,LLM-CTC的相对WER与LLM-CE相差在7%以内,识别速度快7至10倍;当微调Qwen3-ASR用于有界历史流式处理时,LLM-CTC在测试集上的相对WER与匹配的离线模型相差在3%以内。这些结果共同表明,Pruned CTC是一种可扩展的序列目标,适用于离线和流式设置下的原生词汇表LLM ASR。

该研究解决了CTC训练中内存随词汇表线性增长的瓶颈,通过严格等价的方法大幅降低内存,并成功应用于大词汇表LLM ASR,在离线与流式场景下均保持高准确率和效率,对推动可扩展的语音识别系统具有重要意义。

Connectionist temporal classification (CTC) naturally supports offline and streaming speech recognition with utterance-level supervision, but conventional implementations materialize frame-by-vocabulary activations in memory, making CTC training with native LLM vocabularies prohibitively memory-intensive. A key observation is that every valid CTC alignment uses only target tokens and blank, and their union across a batch typically forms a small subset of the full vocabulary. We introduce Pruned CTC, which restricts alignment computation to this subset while retaining full-vocabulary normalization. We prove that this vocabulary reduction is exactly equivalent to full-vocabulary CTC in loss and gradients. Head-and-loss activation memory no longer scales linearly with vocabulary size. We further apply finite-beam alignment pruning. Building on Pruned CTC, we develop LLM-CTC, which adapts pretrained LLMs for non-autoregressive ASR while retaining causal attention and native vocabularies, and extend it to bounded-history streaming, avoiding chunk-level speech--text alignments. Experiments show that, with Zipformer-M encoder and 180K vocabulary, Pruned CTC reduces full-step memory by 5.1times with only 17% step-time overhead. Across three corpora, it matches standard CTC accuracy. On GigaSpeech, across six Qwen3 model sizes from 0.6B to 32B, LLM-CTC remains within 7% relative WER of LLM-CE with 7 to 10times faster recognition; when fine-tuning Qwen3-ASR for bounded-history streaming, LLM-CTC remains within 3% relative WER of matched offline models on the test set. Together, these results establish Pruned CTC as a scalable sequence objective for native-vocabulary LLM ASR across offline and streaming settings.

阅读原文

参与讨论