Differentiable Wavetable Synthesis

Siyuan Shan, Lamtharn Hantrakul, Jitong Chen, Matt Avent, David Trevelyan

TL;DR

Differentiable Wavetable Synthesis (DWTS) merges the efficiency of classic 1980s-style wavetable synthesis with modern deep learning. By making the wavetable dictionary learnable, researchers achieved high-fidelity audio synthesis that is 12x faster than state-of-the-art additive models and capable of high-quality "one-shot" learning from just seconds of audio.

What Problem Does This Paper Address?

Neural audio synthesis has seen massive leaps in quality (think WaveNet or DDSP), but it usually comes with a catch: it’s computationally expensive. Purely deep models often require heavy parallelization or custom kernels to run in real-time.

While Differentiable Digital Signal Processing (DDSP) improved this by using "inductive biases" (incorporating known DSP principles into the model), its standard additive synthesis approach—which sums up 100+ individual sinusoids—still requires significant overhead for control and smoothing. The authors sought a way to generate complex, harmonic sounds more efficiently while maintaining the "differentiability" that allows a model to learn directly from data.

Methods

The authors introduce Differentiable Wavetable Synthesis (DWTS). Instead of summing many sine waves, they use a learnable dictionary of "wavetables"—single-period waveforms that capture specific harmonic timbres.

Key components include:

  • Learnable Dictionary ($D$): A collection of $N$ waveforms (typically 10–20) that are optimized during training via gradient descent.
  • Time-Varying Attention: A neural network predicts weights to "morph" between these wavetables over time, allowing the timbre to evolve.
  • Phase Accumulator: A classic DSP tool used to read through the wavetables at different speeds to control pitch ($f_0$).
  • Anti-aliasing Filter: A critical addition. Without filtering out high frequencies that exceed the Nyquist limit during training, the model would produce artifacts that prevent it from learning meaningful waveforms.

By combining these, the model "draws" its own oscillators based on the dataset it's trained on.

Datasets

The researchers evaluated DWTS using:

  • NSynth: A standard large-scale dataset of ~70,000 musical notes (strings, brass, woodwinds, etc.) at 16kHz.
  • URMP (University of Rochester Multi-Modal Music Performance): Used for "one-shot" experiments, specifically 4-second clips of saxophone and piano to test how well the model can generalize from very little data.

Key Insights and Ideas

  • Efficiency through Compression: While an additive synthesizer might need 100 sinusoids to describe a complex sound, DWTS can achieve similar or better quality with just 10–20 learned wavetables. Each wavetable acts as a "basis vector" that compactly represents multiple harmonics at once.
  • Interpretability: Unlike the "black box" weights of a standard GRU or CNN, the learned wavetables are visually interpretable. You can actually see the fundamental frequency and the higher-order harmonics in the dictionary.
  • The "One-Shot" Advantage: Because the wavetables capture the essence of an instrument's physics, you can take a dictionary learned on a large dataset (like NSynth) and use it to reconstruct a completely new instrument (like a specific saxophone) using only a few seconds of audio.
  • Phase Matters: Unlike previous DDSP models that fixed the initial phase of harmonics to zero, DWTS learns phase relationships directly in the time domain. This leads to more "locked-in" and natural-sounding reconstructions.

Key Results

  • Superior Accuracy: DWTS achieved a lower reconstruction error (0.5712) on the NSynth dataset compared to the standard DDSP additive synthesizer (0.5834), even when using only 20 wavetables.
  • Massive Speedup: In a benchmark on a 2019 Macbook Pro, the DWTS pipeline was roughly 12 times faster than the additive approach, taking only 20.19ms to generate one second of audio compared to 251.32ms.
  • Robust Pitch Shifting: In one-shot tasks, DWTS could shift a saxophone's pitch down by three octaves without the "metallic" artifacts common in other neural or traditional DSP methods (like Librosa’s pitch shift).

Limitations and Future Work

While DWTS excels at harmonic, periodic sounds (like a sustained violin note), it still relies on a separate "filtered noise" component to handle non-harmonic sounds (like the scratch of a bow or the breath in a flute).

The authors also noted that "phase-locking" wavetables (forcing them to start and end at zero) actually hurt performance, suggesting that the model relies on complex phase relationships that are still being explored. Future directions include applying this technique to more complex signals like the human singing voice and exploring stereo or binaural audio synthesis.

Summary updated

BibTeX
@inproceedings{shan2022differentiable,
  author = {Siyuan Shan and Lamtharn Hantrakul and Jitong Chen and Matt Avent and David Trevelyan},
  title = {{Differentiable Wavetable Synthesis}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9746940},
}
Figure