Variable-rate discrete representation learning

Sander Dieleman, Charlie Nash, Jesse H. Engel, Karen Simonyan

Introduction

Most digital signals are processed at a fixed rate, meaning an audio file uses the same number of bits to represent a second of complex speech as it does a second of total silence. While standard compression (like MP3) handles storage, it often destroys the underlying structure that machine learning models need to "understand" the data. This research introduces a method for learning variable-rate representations that are both discrete (like words or phonemes) and adaptive, allocating more "events" to complex parts of the signal.

Methods: The Slow Autoencoder Pipeline

The authors propose a two-stage pipeline to bridge the gap between raw audio and symbolic understanding:

  1. Slow Autoencoders (SlowAEs): These use a novel group-sparse slowness penalty to force the encoder to produce representations that change as infrequently as possible. This encourages the model to create "bursts" of activity that correspond to meaningful acoustic events.
  2. Schmitt Trigger Quantization (STQ): To prevent the model from "chattering" (rapidly jumping between discrete levels due to noise), the authors implement a quantization scheme with memory. A value only changes if it moves past a certain margin, ensuring stable discrete states.
The SlowAE architecture pipeline, illustrating the transition from raw audio to slow continuous outputs (z) and finally quantized discrete outputs (z') via a Schmitt trigger.
  1. Run-Length Transformers (RLTs): Once events are extracted, they are converted into (value, length) tuples via Run-Length Encoding (RLE). The RLT is a Transformer modified to predict these tuples, effectively treating speech as a sequence of variable-length discrete events.

Key Insights: Emergent Phonetics

A striking result of this unsupervised approach is the emergence of phonetic structure. Even without text-based supervision, the "events" discovered by the model correlate strongly with actual phoneme changes (Pearson’s $\rho = 0.866$). The model essentially "invents" a phonetic alphabet by optimizing for representational efficiency.

Visualization of the learned representation aligned with phoneme labels. The bottom row shows the discrete event triggers discovered by the model, demonstrating how they align with phonetic transitions.

Key Results

  • Efficiency: SlowAE event sequences achieve a bit rate of roughly 600-900 bps, which is an order of magnitude lower than standard mu-law audio (192,000 bps) and comparable to high-end neural speech codecs.
  • Intelligibility: At an Average Event Rate (AER) of 75Hz, reconstructions achieve high phoneme accuracy, approaching the original audio's baseline.
  • Generative Quality: Large-scale RLT models (up to 2.4 billion parameters) can "complete" speech prompts, maintaining the speaker's intonation and style while producing grammatically sound continuations.

Limitations and Future Work

While the model excels at local structure (grammar and phonetics), it currently struggles with long-term semantic coherence, sometimes producing "word salad" with perfect pronunciation. The authors suggest that scaling to even larger models and cleaner datasets—following the trajectory of text-based LLMs—is the most promising path toward truly coherent speech-level language modeling.

Summary updated

BibTeX
@misc{dieleman2021variable,
  author = {Sander Dieleman and Charlie Nash and Jesse H. Engel and Karen Simonyan},
  title = {{Variable-rate discrete representation learning}},
  year = {2021},
  eprint = {2103.06089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.06089},
}
Figure