Segment-Level Vectorized Beam Search Based on Partially Autoregressive Inference

Masao Someki, Nicholas Eng, Yosuke Higuchi, Shinji Watanabe · DOI

Automatic Speech Recognition (ASR) has long faced a fundamental trade-off between decoding speed and transcription accuracy. Autoregressive (AR) models provide high accuracy by modeling linguistic dependencies sequentially, but their $O(N)$ complexity makes them inherently slow. Conversely, Non-Autoregressive (NAR) models offer massive parallelism but often suffer from accuracy degradation due to conditional independence assumptions and difficulties in predicting correct sequence lengths.

This paper introduces Partially Autoregressive (PAR) inference, a hybrid approach that achieves NAR-like speed while maintaining the high accuracy of AR models. By utilizing a "segment-level vectorized beam search," the authors bridge the gap between these two paradigms.

The PAR Inference Framework

The proposed method utilizes a three-step decoding process designed to work with existing pre-trained hybrid CTC/attention models without requiring additional training or architectural changes.

  1. Initial Guess: The system first performs a greedy Connectionist Temporal Classification (CTC) decoding pass to generate a "rough draft" of the transcript.
  2. Confidence-Based Masking: The system evaluates the probability of each predicted token. Tokens falling below a specific probability threshold ($P_{thres}$) are flagged as low-confidence and replaced with a mask symbol (#). Consecutive low-confidence tokens are merged into single masked segments.
  3. Segment-Level Vectorized Beam Search: This is the core innovation. Instead of running a single, long AR decoding process for the entire sentence, the system runs multiple small, independent beam searches for each masked segment in parallel.

Because these segments are short and processed simultaneously (vectorized), the decoder can apply its linguistic knowledge to fix CTC errors without the linear time penalty of standard sequential decoding. This approach also solves the "length problem" common in NAR models; because PAR uses beam search within the masked segments, it can expand or contract the number of tokens to find the most probable sequence.

Experimental Evaluation

The researchers evaluated the PAR method across several languages and diverse datasets to ensure robustness:

  • English: LibriSpeech (100h and 960h) and TED-LIUM2.
  • Mandarin: AISHELL-1.
  • Japanese: JSUT.
  • Architectures: The method was tested on state-of-the-art E-Branchformer and Conformer models.

Key Results and Insights

Performance and Efficiency

The results demonstrate a significant leap in efficiency. On the LibriSpeech 960h dataset, PAR achieved a 13.75x speedup compared to standard AR decoding. Remarkably, this speedup did not come at the cost of accuracy; the Word Error Rate (WER) remained nearly identical. For instance, on LibriSpeech test-clean, the PAR model matched the AR baseline score of 2.2% WER.

Latency Stability

In traditional AR decoding, latency increases linearly with the length of the audio. In PAR, latency is much more stable because the number of decoding iterations is capped (the authors utilized a $max\_iteration$ of 5 or 8), making it more predictable for real-time applications.

Zero-Cost Upgrade

A major practical advantage of PAR is that it functions purely as an inference-stage optimization. It does not require a specialized training strategy or a complex new architecture, allowing researchers to apply it to existing pre-trained models immediately.

Limitations and Future Directions

While PAR offers a compelling middle ground, it faces a few specific challenges:

  • Confident Errors: If the initial CTC pass predicts an incorrect token with high probability, the system will not mask it, leaving the AR decoder no opportunity to correct the mistake.
  • Memory Overhead: Parallelizing multiple masked segments increases GPU memory usage. For very long audio files with numerous low-confidence segments, there is a risk of out-of-memory (OOM) errors.
  • Edge Deployment: While highly effective on high-end GPUs, further optimization is required to adapt this framework for edge devices with limited computational and memory resources.

In conclusion, Segment-Level Vectorized Beam Search provides a scalable, efficient path forward for ASR, proving that we do not necessarily have to choose between the speed of NAR models and the precision of AR models.

Summary updated

BibTeX
@inproceedings{someki2023segment,
  author = {Masao Someki and Nicholas Eng and Yosuke Higuchi and Shinji Watanabe},
  title = {{Segment-Level Vectorized Beam Search Based on Partially Autoregressive Inference}},
  booktitle = {ASRU},
  year = {2023},
  doi = {10.1109/asru57964.2023.10389796},
}
Figure