Abstract
Neural audio codecs serve as a critical bridge between raw waveforms and discrete tokens suitable for Large Language Models (LLMs). However, existing solutions often struggle with a trade-off between high-fidelity acoustic detail (requiring high bitrates) and compact semantic representation (losing speaker identity). FocalCodec addresses this by introducing a neural speech codec that achieves high-quality reconstruction at ultra-low bitrates (0.16 to 0.65 kbps) using a single binary codebook. By leveraging focal modulation and binary spherical quantization, FocalCodec outperforms state-of-the-art models that operate at significantly higher bitrates.
Introduction
In the evolving landscape of AI speech processing, the efficiency of audio tokenization is paramount. Current neural audio codecs generally fall into two categories: acoustic codecs, such as EnCodec, which provide high fidelity but require complex multi-codebook designs (Residual Vector Quantization), and semantic codecs, which are compact but often fail to preserve prosody, speaker identity, and environmental context.
FocalCodec is designed as a hybrid solution. It aims to provide the extreme compression of semantic codecs while maintaining the rich acoustic detail of traditional codecs. Crucially, it utilizes a single codebook to simplify downstream integration with generative models, ensuring that both "what" is said and "how" it is said are preserved in a highly efficient format.
Methodology
FocalCodec introduces several architectural innovations to achieve its performance benchmarks:
Focal Modulation Networks
Traditional self-attention mechanisms, while powerful, are computationally expensive and can be overly sensitive to local noise. FocalCodec replaces these with Focal Modulation. This technique aggregates global context before modulating local interactions, providing superior inductive biases for speech—such as translation equivariance—while operating in linear time. This "fine-to-coarse" approach allows the model to capture both long-range sentence structures and short-range phonemic details more effectively than standard Transformers.
Binary Spherical Quantization (BSQ)
FocalCodec represents the first successful application of BSQ in the speech domain. Unlike traditional vector quantization, which relies on table lookups, BSQ projects features onto a unit hypersphere and binarizes them. This lookup-free approach ensures high codebook utilization and significantly reduces the computational overhead associated with quantization.
Feature Extraction and Decoupled Training
The encoder utilizes the first six layers of a pretrained WavLM-large model, which are known to contain a dense mixture of acoustic and semantic information. To prevent the model from sacrificing semantic clarity for acoustic texture, the authors employed a decoupled training strategy. First, the compressor and quantizer are trained to reconstruct continuous WavLM features. Subsequently, a decoder based on the Vocos architecture is trained to synthesize audio from these features.
Experimental Setup
The model was rigorously evaluated across several diverse benchmarks:
- Training: LibriTTS (approximately 585 hours of English speech).
- Resynthesis: LibriSpeech and Multilingual LibriSpeech (covering 7 languages).
- Robustness: VoiceBank and Libri1Mix were used to test performance in noisy environments.
- Downstream Tasks: The tokens were tested for Voice Conversion (VCTK), Emotion Recognition (IEMOCAP), and Speaker Identification.
Key Insights and Results
Bitrate Efficiency and Quality
FocalCodec operates at an impressive bitrate range of 0.16 to 0.65 kbps. In comparative tests, FocalCodec@50 (0.65 kbps) achieved a lower Word Error Rate (dWER of 2.18) than BigCodec (1.04 kbps) on clean speech, demonstrating that higher compression does not necessarily mean lower utility.
Voice Conversion and Disentanglement
In one-shot voice conversion tests on the VCTK dataset, FocalCodec achieved the highest speaker similarity scores among its peers. This suggests the model successfully disentangles the linguistic content from the speaker's unique vocal characteristics, a vital trait for high-quality speech synthesis.
Inherent Denoising
Qualitative analysis via Mel-spectrograms revealed that FocalCodec acts as a natural denoiser. Because the model is trained to reconstruct clean WavLM features, it tends to ignore background noise present in the input signal, often producing cleaner output than purely acoustic codecs.
Limitations and Future Work
While FocalCodec shows significant promise, it is currently "undertrained" compared to industry-scale models like Mimi, which utilize millions of hours of audio. FocalCodec’s current training set is limited to a few hundred hours of clean English speech.
Future research will focus on:
- Scaling: Expanding training data to include thousands of hours of multi-domain and multi-lingual audio.
- Generative Integration: Exploring the use of FocalCodec tokens within large-scale generative speech language models.
- Latency: Refining the causal (streaming) version of the model to support real-time communication applications.
Conclusion
FocalCodec demonstrates that a single, well-designed binary codebook can carry sufficient information for high-fidelity speech reconstruction and complex downstream tasks. By prioritizing efficient inductive biases and a decoupled training approach, it sets a new standard for ultra-low-bitrate neural audio coding.
Summary updated