Scaling Forced Alignment to End-User Devices

Lawry Sorenson, Michael Crandall, Eric K. Ringger, Stephen D. Richardson
9/17/2026
cs.CLcs.DS

No confident code implementation found for this paper.

Abstract

The Viterbi algorithm has been previously used to perform forced alignment of audio to text to mine training data from online resources. However, many existing implementations have quadratic time and space complexity, scaling poorly to long input sequences.

Show full abstract

We propose two optimizations to address this issue. First, we apply the Hirschberg algorithm to perform the alignment in place using linear memory. Second, we model the alignment between speech and text as a constrained random walk, allowing us to prune the search space with arbitrary confidence while accounting for transcription errors. The Hirschberg optimization reduces memory usage from 140 GB to 5 MB for three-hour inputs while producing identical alignments in one-third the time of torchaudio when both run on a CPU. We achieve an additional 2x speedup with pruning on inputs longer than 20 minutes while preserving alignment accuracy in more than 98% of tested cases.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sorenson2026scaling,
  title  = {Scaling Forced Alignment to End-User Devices},
  author = {Lawry Sorenson and Michael Crandall and Eric K. Ringger and Stephen D. Richardson},
  year   = {2026},
  eprint = {2609.21145},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.21145v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.21145.svg)](https://codeofpaper.com/paper/2609.21145)

Discussion