SING: Symbol-to-Instrument Neural Generator

Alexandre Défossez, Neil Zeghidour, Nicolas Usunier, Léon Bottou, Francis R. Bach

Introduction

State-of-the-art audio synthesis has recently shifted toward generating raw waveforms directly. However, dominant models like WaveNet and SampleRNN are autoregressive, predicting audio one sample at a time. At a standard 16kHz sample rate, generating just one second of audio requires 16,000 sequential operations, making them prohibitively slow for real-time applications and computationally expensive to train.

Furthermore, these models often treat audio samples as discrete categories using a softmax over hundreds of values, which ignores the continuous nature of sound. The Symbol-to-Instrument Neural Generator (SING) addresses these challenges by creating a model that is fast, lightweight, and capable of generating rich, polyphonic-capable sounds without the "autoregressive bottleneck."

Methods

SING departs from the sample-by-sample paradigm through three major architectural innovations:

  1. Frame-based Generation: Instead of one sample at a time, SING generates entire frames of 1024 samples with a stride of 256. This "macro" approach enables massive parallelization and speedup.
  2. The Spectral Loss: Traditional Mean Squared Error (MSE) on raw waveforms is often ineffective for audio because tiny, inaudible phase shifts result in massive loss values. SING utilizes a novel loss function that calculates the $L_1$ distance between the log power spectrograms (via Short-Time Fourier Transform) of the generated and target audio. This makes the model invariant to phase differences that do not affect perceived sound quality.
  3. Hybrid Architecture: The model combines a 3-layer LSTM sequence generator with a 4-layer convolutional decoder. The LSTM takes embeddings for instrument, pitch, velocity, and time to produce latent representations, which the decoder then "unpacks" into raw audio frames.
The SING architecture overview, showing the LSTM sequence generator, convolutional layers, and the spectral loss calculation.

To ensure convergence, the authors employ an initialization trick: they first train a convolutional autoencoder, then train the LSTM to predict the encoder's embeddings, and finally fine-tune the entire system end-to-end.

Datasets and Task

The model was evaluated on the NSynth dataset, a large-scale library containing nearly 1,000 instruments with an average of 65 pitches and 5 velocities each. The authors defined a "pitch completion" task, where the model must synthesize notes for pitch/instrument combinations it never encountered during training, testing its ability to generalize the "concept" of an instrument across the musical scale.

Key Insights

  • Phase Invariance as a Feature: By using spectral loss, the model avoids wasting capacity on memorizing exact phases, focusing instead on the frequency content that defines an instrument's timbre.
  • Overlap-Add via Deconvolution: To prevent artifacts between large frames, the authors used a squared Hann window to smooth the output of the transposed convolution, effectively implementing a learnable version of classic overlap-add synthesis.
  • Continuous Modeling: By modeling audio as continuous values rather than discrete bins, the model utilizes efficient regression techniques rather than computationally expensive softmax layers.

Key Results

SING significantly outperformed the WaveNet autoencoder baseline in both efficiency and quality. As shown in the performance comparison below, SING achieves a staggering speedup in both training and inference.

Comparison of SING against WaveNet across various performance metrics including MOS and generation speed.
  • Inference Speed: SING is 2,500 times faster than WaveNet, capable of generating 512 seconds of audio per second of processing time on a single GPU.
  • Training Efficiency: The model reaches convergence 32 times faster than the baseline.
  • Perceptual Quality: In Mean Opinion Score (MOS) tests, SING scored 3.55, significantly higher than WaveNet's 2.85. In ABX tests, listeners preferred SING's reconstruction 69.7% of the time.

Limitations and Future Work

While the spectral loss is excellent for timbre, it can theoretically lead to phase inconsistencies between frames. Although the 75% frame overlap mitigates this, it remains a potential source of artifacts. Additionally, SING currently functions as a "symbol-to-instrument" generator requiring explicit metadata (pitch, velocity). Future work may extend this to fluid inputs like continuous pitch bends or expressive control signals, as well as exploring the impact of different frame sizes on frequency synthesis.

Summary updated

BibTeX
@inproceedings{defossez2018sing,
  author = {Alexandre Défossez and Neil Zeghidour and Nicolas Usunier and Léon Bottou and Francis R. Bach},
  title = {{SING: Symbol-to-Instrument Neural Generator}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=HyZHJOZObS},
}
Figure