Frame-Stacked Local Transformers For Efficient Multi-Codebook Speech Generation

Roy Fejgin, Paarth Neekhara, Xuesong Yang, Edresson Casanova, Ryan Langman Jaehyeon Kim, Subhankar Ghosh, Shehzeen Hussain, Jason LiarXiv 2025 · DOI

Abstract

Modern text-to-speech (TTS) systems often treat speech as a sequence of discrete acoustic tokens. While text is one-dimensional, speech is multidimensional, requiring multiple codebooks per time frame to capture sufficient detail. Standard parallel prediction models often ignore dependencies between these codebooks, leading to reduced audio quality. We introduce a hierarchical approach using Local Transformers (LT) combined with frame stacking. This architecture achieves up to a 2.1x speedup in speech synthesis while improving audio fidelity and speaker similarity over parallel baselines.

Introduction

The representation of speech as discrete tokens has enabled the application of Large Language Model (LLM) architectures to audio synthesis. However, audio codecs like EnCodec or NanoCodec typically use Residual Vector Quantization (RVQ), resulting in $N$ codebooks per frame. Predicting these in parallel assumes independence, which is physically inaccurate as subsequent codebooks refine the first. Conversely, fully autoregressive prediction is computationally expensive. This paper addresses this bottleneck by introducing a localized refinement step that models intra-frame dependencies efficiently.

Methodology: Local Transformers and Frame Stacking

The proposed architecture splits the generation task into two stages:

  1. Primary AR Decoder: A large transformer model that handles temporal flow by predicting "coarse" embeddings at a lower resolution.
  2. Local Transformer (LT): A small, specialized transformer that takes the primary decoder's output and "resolves" the specific $N$ codebook entries for that frame. We explore two variants: an Autoregressive (AR) LT for causal dependency and a MaskGIT LT for faster, iterative bidirectional refinement.
Figure 1: The hierarchical architecture featuring a Text Encoder, Primary AR Decoder, and a Local Transformer for codebook refinement.

The "secret sauce" for efficiency is frame stacking. Instead of predicting one frame at a time, the primary decoder predicts a "stack" of $S$ frames (e.g., $S=2$ or $4$) in a single step. The LT then unpacks this stack into the full $S \times N$ grid of tokens. This offloads heavy computation from the large primary model to the efficient LT, reducing the sequence length the main transformer must process.

Experimental Results

The models were evaluated on the LibriTTS dataset (18,000 hours) using the NanoCodec (21.5 fps, 8 codebooks). Evaluation included 180 utterances each from seen and unseen speakers.

Speed and Efficiency

Frame stacking significantly improves throughput. At a stacking factor of $S=2$, the AR LT provides a 2.1x speedup, while the MaskGIT LT reaches 3.1x. At $S=4$, speedups reach up to 5.5x for MaskGIT, though this comes with quality trade-offs.

Audio Quality and Speaker Similarity

The LT-based models consistently outperformed parallel baselines (no LT) in naturalness (UTMOSv2) and distributional similarity (Frechet Distance). Notably, a stacking factor of $S=2$ acted as a "free lunch," improving quality while doubling speed. For unseen speakers, the AR LT with $S=2$ maintained high speaker similarity (SSIM) scores, whereas the parallel baseline's performance degraded significantly when attempting to use stacking.

Figure 4: Comprehensive evaluation metrics on LibriTTS, including UTMOSv2, WER, SSIM, FD, and inference speed across different stacking factors.

Conclusion

By moving the computational bottleneck from a large global transformer to small local ones, we demonstrate that modeling internal frame structure is more effective than simply increasing global parameter counts. While performance begins to degrade at a stacking factor of $S=4$, the $S=2$ configuration offers a superior balance of speed and fidelity. Future work will focus on improving the robustness of the MaskGIT variant at high stacking factors by optimizing the number of sampling iterations.

Summary updated

BibTeX
@misc{fejgin2025frame,
  author = {Roy Fejgin and Paarth Neekhara and Xuesong Yang and Edresson Casanova and Ryan Langman Jaehyeon Kim and Subhankar Ghosh and Shehzeen Hussain and Jason Li},
  title = {{Frame-Stacked Local Transformers For Efficient Multi-Codebook Speech Generation}},
  year = {2025},
  eprint = {2509.19592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.19592},
}
Figure