Autoregressive models—which predict the next sample in a sequence based on all previous samples—are the gold standard for generating realistic audio, images, and video. However, they suffer from a major bottleneck: sampling speed.
High-fidelity audio typically requires 24,000 samples per second (24 kHz). In a model like WaveNet, generating just one second of audio requires 24,000 sequential steps through a deep, 30-layer network. This makes real-time applications, such as a voice assistant on a smartphone, nearly impossible without massive server-side compute.
To address this, researchers have introduced WaveRNN, a high-performance recurrent neural network that matches the audio quality of state-of-the-art models while being significantly faster. By combining a novel "dual softmax" architecture, weight pruning for extreme sparsity, and a "subscaling" technique for batched generation, WaveRNN achieves real-time, high-fidelity audio synthesis on both GPUs and standard mobile CPUs.
Core Innovations
The authors propose three primary innovations to reduce computational cost, operational overhead, and the number of sequential steps required for high-quality synthesis.
1. WaveRNN & Dual Softmax
Instead of the deep dilated convolutions used in WaveNet, WaveRNN uses a single-layer Gated Recurrent Unit (GRU). While CNNs are great for parallel training, a single-layer RNN is remarkably efficient for sequential inference because its hidden state acts as a compressed summary of the entire past.
To handle 16-bit audio (which has 65,536 possible values), the authors designed a Dual Softmax layer.
As shown above, this architecture splits the 16-bit sample into 8 "coarse" bits and 8 "fine" bits. The model predicts the coarse bits first, then uses that prediction to help predict the fine bits. This clever division reduces the output space from one massive $2^{16}$ distribution to two highly manageable $2^8$ distributions.
2. Weight Sparsification and the "Large Sparse" Advantage
To make the model run efficiently on low-power devices, the authors use magnitude-based pruning to make the weight matrices sparse (up to 96% zeros). They specifically explore Structured Sparsity (e.g., 16x1 or 4x4 blocks), which allows hardware to skip zero-value computations more efficiently than unstructured randomness.
One of the most striking findings of the paper is that for a fixed "parameter budget," a large network that has been pruned to be sparse significantly outperforms a smaller, dense network. As illustrated in the chart above, this relationship holds true even at extreme sparsity levels (above 96%), proving that capacity and sparsity can be traded off to maintain high fidelity at low computational costs.
3. Subscale WaveRNN
Finally, the authors introduce a novel generation scheme that breaks the strict "one-sample-at-a-time" rule of autoregressive models. By "folding" a long audio sequence into $B$ interleaved sub-tensors, the model can generate a batch of $B$ samples simultaneously. This introduces a small amount of "future" context into the conditioning, allowing for massive parallelization without a significant loss in audio quality.
Key Results and Performance
The models were trained and evaluated on a dataset of 44 hours of North American English speech recorded by a professional speaker. The results demonstrate that WaveRNN bridges the gap between high fidelity and high performance:
- Audio Quality: WaveRNN-896 achieved a Mean Opinion Score (MOS) of 4.37, nearly matching the original WaveNet's 4.51 and approaching the ground truth audio's 4.66.
- GPU Speed: On GPUs, the raw math (FLOPs) isn't the only bottleneck; the time it takes to "launch" each operation is a major drag. By implementing WaveRNN as a single, persistent GPU kernel, the authors bypassed this overhead, generating 24kHz audio at 96,000 samples per second on an Nvidia P100—roughly 4x faster than real-time.
- Mobile Performance: A Sparse WaveRNN with 1024 hidden units and 95% sparsity was able to run in real-time on a Snapdragon 835 mobile CPU, proving the viability of on-device high-fidelity TTS.
- Parallelism: The Subscale WaveRNN (16x) produced 16 samples per step with no significant loss in audio fidelity compared to the baseline.
Limitations and Future Work
While highly successful, the approach has a few limitations. The most impressive speed gains required custom-written GPU and CPU kernels; standard deep learning frameworks may not achieve these speeds out-of-the-box without specialized sparse matrix support. Additionally, while the Subscale method works well, a "Fused" version (which tries to generate multiple bits in a single RNN step without a separate conditioning network) saw audio quality drop quickly as the fusion factor increased beyond 2x.
Despite these hurdles, the underlying ideas of subscaling and structured sparsity represent a massive leap forward for efficient sequence generation, with likely applications extending beyond speech into image and video domains.
Summary updated