This paper from NVIDIA researchers introduces the Low Frame-rate Speech Codec (LFSC), a neural audio codec specifically optimized for the unique requirements of Speech Large Language Models (Speech LLMs). By drastically reducing the number of audio tokens produced per second, the authors demonstrate a way to make speech synthesis significantly faster without sacrificing the high-fidelity audio quality we’ve come to expect from modern neural codecs.
TL;DR
LFSC is a neural audio codec that compresses speech into just 21.5 frames per second (FPS) at a 1.89 kbps bitrate. By reducing the frame rate by nearly 4x compared to state-of-the-art models like DAC, it enables Speech LLMs to perform inference three times faster while maintaining comparable audio quality and superior intelligibility.
What Problem Does This Paper Address?
In the world of Speech LLMs (like those used for zero-shot text-to-speech), audio is typically converted into discrete "tokens" using a neural audio codec. Most current codecs, such as Encodec or Descript Audio Codec (DAC), operate at high frame rates—usually between 75 and 90 FPS.
For autoregressive models, this is a major bottleneck: to generate one second of audio, the model must perform nearly 90 sequential forward passes. While previous research has focused heavily on reducing the bitrate (total bits per second), the authors argue that for LLM efficiency, the frame rate (tokens per second) is the more critical metric. High frame rates lead to slow training and high-latency inference, making real-time applications difficult.
Methods
The LFSC architecture consists of a fully convolutional generator and a trio of discriminators.
- The Generator: Uses an encoder with aggressive strided convolutions to reach the low 21.5 FPS target. It employs Finite Scalar Quantization (FSQ) instead of the more common Residual Vector Quantization (RVQ). FSQ allows the model to predict multiple codebooks in parallel without needing complex "delay patterns," which simplifies the LLM training process. The decoder is based on the proven HiFi-GAN architecture.
- The "SLM" Discriminator: The most novel methodological contribution is the use of a pre-trained Speech Language Model (WavLM) as a discriminator. Because low frame-rate compression can often "smear" phonemes and hurt pronunciation, the authors use WavLM to force the codec to preserve the semantic and acoustic features necessary for clear speech.
- Training: The model is trained in two phases: a pre-training phase with quantization disabled to stabilize the feature space, followed by a fine-tuning phase with FSQ enabled.
Datasets
The authors utilized a massive multilingual corpus for training and evaluation:
- Training: A combination of Common Voice 13 (105 languages, 3.2k hours) and the English subset of the Multilingual LibriSpeech (MLS) dataset (25.5k hours).
- Evaluation: The MLS test set and the DAPS (Digital Archive of Pronunciation, Study) dataset for studio-quality assessment.
- Downstream Task: For the Text-to-Speech (TTS) evaluation, they used the VCTK dataset to test zero-shot capabilities on unseen speakers.
Key Insights and Ideas
- Frame Rate is the Bottleneck: The primary "aha" moment is that for LLMs, the number of steps in the sequence matters more than the complexity of each step. By cutting the sequence length by 75%, they directly address the primary cause of latency in autoregressive speech generation.
- Semantic Supervision via WavLM: Standard GAN discriminators look at waveforms or spectrograms to ensure "naturalness." By adding a Speech LLM (WavLM) as a discriminator, the authors provide a "semantic" loss that ensures the compressed tokens still contain the information needed to reconstruct accurate speech, which is why their model achieves such high intelligibility (low CER).
- Parallelism over Hierarchy: Moving from RVQ to FSQ allows all codebooks for a single frame to be predicted at once. This removes the need for the "shifted" prediction patterns used in models like Vall-E, making the downstream LLM architecture simpler.
Key Results
- Inference Speed: When integrated into a T5-based TTS model, LFSC achieved a Real-Time Factor (RTF) of 1.0, making it roughly 3x faster than models using DAC or Spectral Codec.
- Intelligibility: In zero-shot TTS tasks, LFSC achieved a Character Error Rate (CER) of 0.93%, significantly outperforming Encodec (2.97%) and DAC (2.66%). This suggests the WavLM discriminator successfully preserved pronunciation.
- Audio Quality: Despite the much lower frame rate and bitrate (1.89 kbps vs. DAC's 7.75 kbps), the Mean Opinion Score (MOS) remained comparable, with LFSC scoring 3.95 vs. DAC's 3.94.
Limitations and Future Work
The current version of LFSC is optimized for speech at a 22.05 kHz sampling rate. While this is standard for many TTS applications, the authors acknowledge the need to scale the approach to 44.1 kHz full-bandwidth audio.
Additionally, while the model excels at speech, the authors plan to investigate how this low frame-rate approach handles more complex audio domains, such as music and general sound effects, where the temporal resolution requirements might be more demanding than those of human speech.
Summary updated