TL;DR
LACE (Layer-Adaptive Codec Encoding) introduces a layer-wise independent compression scheme for multi-codebook neural audio codecs, allowing each quantization layer to establish its own optimal segmentation boundaries. By breaking the constraint of shared boundaries across layers, LACE significantly improves the rate-quality tradeoff for audio reconstruction and enhances text-to-speech (TTS) inference efficiency without sacrificing synthesis quality.
What Problem Does This Paper Address?
Neural audio codecs (like EnCodec or SoundStream) are essential for modern speech language models, converting continuous audio into discrete tokens. However, these codecs typically operate at high frame rates, producing long token sequences that drastically increase the computational overhead for downstream Transformer-based models.
To mitigate this, dynamic frame rate codecs compress audio by merging adjacent frames into variable-length segments based on information density. The catch? Existing methods apply a single compression step before multi-layer Residual Vector Quantization (RVQ). This forces all quantization layers to share the exact same segmentation boundaries.
Because RVQ works hierarchically—where the first layer captures coarse acoustic structures and subsequent layers quantize the remaining fine-grained residuals—different layers naturally exhibit different rates of change over time. Forcing them to share boundaries is highly suboptimal and introduces an artificial error floor that quantization cannot fix.
Methods
LACE resolves this bottleneck by treating each quantization layer adaptively:
- Layer-Wise Compression: Instead of a single global compression step, LACE applies an independent compression algorithm at each individual RVQ layer. This allows each layer to define its own unique segmentation boundaries based on its specific residual embeddings.
- Union Alignment: For downstream tasks like TTS, token durations must be consistent across all layers. LACE resolves layer-wise boundary mismatches by taking the mathematical union of all layer boundaries ($B_{\text{union}}$) and re-segmenting the codes accordingly.
- Boundary Anchor: Because taking the union of all boundaries can drastically increase the effective frame rate (undoing the benefits of compression), the authors introduce an anchor layer hyperparameter ($l^*$). Layers up to $l^*$ can propose new boundaries, while deeper layers ($l > l^*$) are constrained to only reuse boundaries established by the earlier layers.
Datasets
The authors trained and evaluated their models using the standard LibriTTS dataset at a 24 kHz sampling rate:
- Training:
train-clean-100,train-clean-360, andtrain-other-500. - Evaluation:
test-clean(used for both audio reconstruction and TTS synthesis tasks).
Key Insights and Ideas
- The Residual Velocity Divergence: By analyzing the frame-to-frame cosine similarity across different layers, the authors empirically proved that deeper-layer residual embeddings change much more rapidly than earlier-layer embeddings. This strongly validates the core premise that a one-size-fits-all segmentation boundary is fundamentally flawed.
- Eliminating the Error Floor: The paper provides a rigorous mathematical proof showing that single-compression codecs suffer from a constant error floor as the number of codebooks approaches infinity. Recomputing boundaries within the residual loop (as LACE does) allows the expected quantization error bound to converge to zero.
Key Results
LACE was evaluated against leading dynamic frame rate baselines (CodecSlime, FlexiCodec, VARSTok) across three different codec backbones (DAC, SoundStream, EnCodec). At a matched bitrate of $\sim$8.6 kbps:
- Audio Reconstruction: LACE achieved substantial gains across all metrics. Notably, using a fine-tuned Descript Audio Codec (DAC) backbone, LACE reduced the Word Error Rate (WER) of transcribed audio from 4.92% (baseline) to 2.22%, while boosting the perceptual quality score (UTMOS) from 2.49 to 3.81.
- Text-to-Speech (TTS): When integrated into an autoregressive TTS model, LACE achieved a significantly better Real-Time Factor (RTF) than the uncompressed baseline (e.g., 1.73 vs 1.95), demonstrating improved inference speed while delivering superior speech naturalness (MOS) and speaker similarity (SMOS) compared to single-compression baselines.
Limitations and Future Work
While Union Alignment successfully standardizes token durations across layers for TTS training, it can occasionally split long segments into very short ones, creating sequences of repeated discrete token IDs. The authors noted that this repetition biases the downstream TTS model into repeatedly predicting the same tokens during generation, which can degrade the Word Error Rate if not properly managed.
A promising direction for future work includes integrating repetition-aware sampling techniques during TTS decoding to mitigate this bias and fully exploit LACE's efficiency gains.
Summary updated