Paper commentary
WaveNet: A Generative Model for Raw Audio
- Problem Modelling raw audio at 16,000 or more samples per second needs a very long context, and plain causal stacks need many layers to reach it.
- Method Stacks dilated causal convolutions over µ-law quantized samples, predicts each sample with a softmax, and adds global or local conditioning.
- Results Reached 4.21 ± 0.081 MOS on North American English for WaveNet (L+F), against 3.86 ± 0.137 for the HMM-driven concatenative system.
Why sample-level audio generation is hard
Raw audio has very high temporal resolution: a wideband waveform carries at least 16,000 samples per second, so even a short clip is a long sequence to model. Autoregressive models of images and text already factorise a joint distribution into conditionals, but the reach of a plain causal stack grows only as fast as its depth and filter width.
Covering a long span with ordinary causal convolutions therefore needs many layers or large filters, which raises the cost of the model. Speech and music carry structure over spans far longer than a few samples, so the model needs a receptive field that reaches well back in time.
Sample-by-sample factorisation with causal convolutions
WaveNet writes the joint probability of a waveform as a product of conditionals, so each sample is predicted from all the samples before it: \[ p(x) = \prod_{t=1}^{T} p(x_t \mid x_1,\dots,x_{t-1}) \] Training maximises the log-likelihood of the data with respect to the parameters, and because that likelihood is tractable, hyperparameters can be tuned on a validation set and overfitting can be read directly from it.
Causal convolutions enforce the ordering, so the prediction at timestep t cannot use any later sample. For one-dimensional audio this is implemented by shifting the output of an ordinary convolution by a few timesteps, which is simpler than the masking used for images.
During training every ground-truth sample is known, so all conditional predictions can be computed in parallel. During generation the process is sequential, since each sampled value is fed back into the network before the next one is predicted.
Dilated convolutions for a long receptive field
A dilated convolution applies its filter over a span wider than the filter length by skipping input values at a fixed step. Dilation 1 gives the ordinary convolution, and the output keeps the same size as the input, which distinguishes this from pooling or strided convolutions.
The dilation doubles at each layer up to a limit and the pattern then repeats, for example 1, 2, 4, ..., 512, then the same sequence again. Exponentially increasing dilation makes the receptive field grow exponentially with depth, and one block with dilations from 1 to 512 has a receptive field of 1024 samples. The authors describe such a block as a more efficient and discriminative non-linear counterpart of a 1×1024 convolution.
Stacking these blocks adds model capacity as well as receptive field, while the computation stays moderate.
Softmax output over µ-law quantized samples
A mixture density network or a mixture of Gaussian scale mixtures could model each sample's conditional distribution, but earlier work on image pixels found that a softmax tends to work better even for implicitly continuous values. A categorical distribution makes no assumption about the shape of the distribution, so it can fit arbitrary shapes more easily.
Raw audio stored as 16-bit integers would need 65,536 output probabilities per timestep. The µ-law companding transformation compresses each value in the range -1 < x_t < 1 with µ = 255 before the values are quantized to 256 levels, so the softmax needs only 256 outputs: \[ f(x_t) = \operatorname{sign}(x_t)\, \frac{\ln(1 + \mu |x_t|)}{\ln(1 + \mu)} \]
The authors report that this non-linear quantization reconstructs the signal better than a simple linear scheme, and that the reconstructed speech sounded very similar to the original.
Gated units and residual connections
Each layer uses a gated activation, taken from the gated PixelCNN: \[ z = \tanh(W_{f,k} \ast x) \odot \sigma(W_{g,k} \ast x) \] Here the filter branch passes through tanh, the gate branch through a sigmoid, the two are multiplied element by element, k indexes the layer, and W is a learnable convolution filter.
In initial experiments this gated unit worked better than a rectified linear activation for modelling audio.
Residual connections and parameterised skip connections are used throughout, which the authors state speeds up convergence and makes much deeper models trainable. The residual block is stacked many times in the network.
Global and local conditioning
Given an extra input h, the model learns the conditional distribution of the audio, so the conditional form adds h to every prediction. Global conditioning uses one latent vector h that affects all timesteps, for example a speaker embedding: \[ z = \tanh\left(W_{f,k} \ast x + V^{T}_{f,k} h\right) \odot \sigma\left(W_{g,k} \ast x + V^{T}_{g,k} h\right) \] Here V is a learnable linear projection, and the projected vector is broadcast over the time dimension.
Local conditioning uses a second time series h_t, possibly at a lower sampling rate, such as linguistic features for TTS. A transposed convolutional network upsamples it to a series y with the audio resolution, and the gated unit becomes \[ z = \tanh(W_{f,k} \ast x + V_{f,k} \ast y) \odot \sigma(W_{g,k} \ast x + V_{g,k} \ast y) \] where V ∗ y is a 1×1 convolution.
Repeating the projected conditioning values across time, instead of using the transposed convolutional network, worked slightly worse in the authors' experiments.
A context stack is a separate, smaller stack that processes a longer part of the audio and locally conditions a larger WaveNet, which sees only a shorter, cropped segment. Stacks with longer receptive fields have fewer units per layer, and pooling lets them run at a lower frequency.
Multi-speaker speech without text
The VCTK corpus provided 44 hours of data from 109 speakers, and WaveNet was conditioned only on the speaker ID as a one-hot vector, with no text.
A single model produces speech for any of the 109 speakers, and adding speakers improved validation performance compared with training on one speaker. The authors read this as evidence that WaveNet's internal representation is shared across speakers.
The samples contain non-existent but human-like words with plausible intonation, yet they lack long-range coherence, which the authors attribute to a receptive field of about 300 milliseconds that remembers only the last 2 to 3 phonemes.
The model also reproduces acoustics, recording quality, breathing and mouth movements of the speakers, not only the voice itself.
Text-to-speech naturalness
The North American English dataset contains 24.6 hours of speech and the Mandarin Chinese dataset 34.8 hours, both from professional female speakers. WaveNets were locally conditioned on linguistic features, and a second variant also used logF0 values; external models predict logF0 values and phone durations, and the receptive field is 240 milliseconds.
The baselines are an HMM-driven unit selection concatenative synthesizer and an LSTM-RNN-based statistical parametric synthesizer, both trained on the same datasets and linguistic features as WaveNet so that the comparison is fair.
In paired comparisons, listeners could choose one sample, the other, or neutral, and WaveNet was preferred over the statistical parametric and concatenative baselines in both languages. Preference scores for the baselines, the two WaveNet variants and the best baseline against WaveNet are shown in Figure 5.
WaveNet conditioned on linguistic features alone produced natural segmental quality but sometimes stressed the wrong words. The authors attribute this to long-term dependency in F0 contours, which a 240-millisecond receptive field cannot capture. The variant conditioned on both linguistic features and F0 values, with the external F0 model running at 200 Hz, did not show this problem.
On the five-point naturalness scale, WaveNet (L+F) reached 4.21 ± 0.081 on North American English and 4.08 ± 0.085 on Mandarin Chinese, while the LSTM-RNN parametric system reached 3.67 ± 0.098 and 3.79 ± 0.084. The HMM-driven concatenative system reached 3.86 ± 0.137 and 3.47 ± 0.108, and natural 16-bit linear PCM speech reached 4.55 ± 0.075 and 4.21 ± 0.071.
The gap between the best synthetic speech and natural speech fell from 0.69 to 0.34 (51%) in US English and from 0.42 to 0.13 (69%) in Mandarin Chinese. The authors describe these as the highest MOS values reported with these training datasets and test sentences.
Music samples from unconditional and tag-conditioned models
The MagnaTagATune dataset contains about 200 hours of music, with each 29-second clip annotated by one of 188 tags. The YouTube piano dataset contains about 60 hours of solo piano, and its single instrument makes it considerably easier to model.
Quality is judged by listening, since the models are difficult to evaluate quantitatively.
The tags in MagnaTagATune were noisy and incomplete, so similar tags were merged and tags with too few clips were removed, and the authors found this approach worked reasonably well.
Speech recognition on TIMIT
Speech recognition has traditionally used log mel-filterbank energies or MFCCs, and LSTM-RNNs have supplied long context in newer pipelines built on raw audio. Dilated convolutions are presented as a cheaper way to grow the receptive field than LSTM units.
For TIMIT, a mean-pooling layer after the dilated convolutions aggregates activations into frames spanning 10 milliseconds, a 160× downsampling, and a few non-causal convolutions follow. Training uses two loss terms, one predicting the next sample and one classifying the frame.
Limits of the reported evidence
The receptive field bounds the coherence the models reach: about 300 milliseconds for free-form speech and 240 milliseconds for TTS, and the TTS prosody problem appeared at that length. For music, several seconds of receptive field were not enough to enforce long-range consistency.
Most of the reported quality comes from listening tests, in the paired comparisons and MOS ratings for TTS and in listening for music. The music evaluation has no quantitative metric.
The speech recognition result is reported for TIMIT only, with a single frame-level configuration.
Paper info
- Authors
- Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, Koray Kavukcuoglu
- Venue
- arXiv · Preprint
- First published
- 2016-9-12
- Added
- 2026-10-20
- Updated
- 2016-9-19
- Version
- v2
- arXiv
- 1609.03499
- Category
- cs.SD · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, Koray Kavukcuoglu (2016). WaveNet: A Generative Model for Raw Audio. arXiv:1609.03499v2. https://arxiv.org/abs/1609.03499v2
BibTeX
@misc{oord2016wavenet,
title = {{WaveNet: A Generative Model for Raw Audio}},
author = {Aaron van den Oord and Sander Dieleman and Heiga Zen and Karen Simonyan and Oriol Vinyals and Alex Graves and Nal Kalchbrenner and Andrew Senior and Koray Kavukcuoglu},
year = {2016},
eprint = {1609.03499},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1609.03499v2}
}