SING: Symbol-to-Instrument Neural Generator

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

TL;DR

SING (Symbol-to-Instrument Neural Generator) is a lightweight, non-autoregressive neural synthesizer that generates high-quality musical notes directly as waveforms from symbolic inputs like pitch and instrument. By utilizing a novel "spectral loss" and a frame-based generation approach, it achieves a staggering 2,500x speedup in inference over WaveNet-based models while delivering superior perceptual quality.

What Problem Does This Paper Address?

Generating high-fidelity audio directly in the time domain (waveform synthesis) is notoriously difficult. For years, the gold standard has been autoregressive models like WaveNet or SampleRNN. While these models produce excellent results, they generate audio one sample at a time (e.g., 16,000 samples for one second of audio). This sequential nature makes them incredibly slow to train and nearly impossible to use for real-time applications without heavy low-level optimization.

Furthermore, these models typically treat audio samples as discrete categories (using quantization), which can limit resolution and requires complex loss functions. The authors of SING sought a way to generate audio that is computationally efficient, models audio as a continuous signal, and generalizes well to musical notes it hasn't seen during training.

Methods

The SING architecture breaks away from the sample-by-sample paradigm by generating audio frame-by-frame with large strides.

SING Architecture: LSTM sequence generator and Convolutional Decoder trained with Spectral Loss
  1. The Architecture: The model consists of two main parts:
  2. LSTM Sequence Generator: A 3-layer RNN that takes symbolic inputs (one-hot encoded instrument, pitch, velocity, and a time index) and produces a sequence of embeddings.
  3. Convolutional Decoder: A 4-layer network that transforms these embeddings into a raw waveform. It uses a "transposed convolution" at the end to produce frames of 1024 samples with a stride of 256.
  4. Spectral Loss: This is the paper's key innovation. Instead of comparing the generated waveform to the target using Mean Squared Error (MSE)—which is hypersensitive to tiny, inaudible phase shifts—the authors calculate the distance between the log power spectrograms (via STFT). This loss is phase-invariant, focusing on the frequency content that humans actually perceive.
  5. Training Strategy: The authors found that training the LSTM from scratch was difficult. They first trained a convolutional autoencoder to reconstruct waveforms using the spectral loss. They then trained the LSTM to "mimic" the encoder's output before fine-tuning the entire system end-to-end.

Datasets

The model was trained and evaluated on the NSynth dataset, a massive collection of roughly 289,000 high-quality musical notes from nearly 1,000 different instruments.

To test generalization, the authors created a "pitch completion" task: they held out 10% of the pitches for every instrument during training. The goal was to see if the model could successfully synthesize a "C4" on a piano if it had only seen other notes from that piano and "C4" from other instruments.

Key Insights and Ideas

  • Phase Invariance is Crucial: In audio, two signals can sound identical to a human but have totally different raw waveforms due to phase shifts. Using a standard MSE loss forces a model to waste capacity trying to predict an arbitrary phase. The spectral loss solves this by letting the model choose its own "canonical" phase.
  • Parallelism via Striding: By generating 1024 samples at once and overlapping them (overlap-add method), the model can be fully parallelized during inference, bypassing the "bottleneck" of autoregression.
  • Continuous vs. Categorical: Modeling audio as a continuous signal (regression) rather than a set of 256 or 65,536 categories (classification) simplifies the architecture and allows for higher resolution without increasing computational cost.

Key Results

SING significantly outperformed the state-of-the-art WaveNet autoencoder baseline across several metrics:

Performance comparison showing SING's improvements in MOS, training time, and generation speed over WaveNet
  • Speed: SING is 32 times faster to train and 2,500 times faster for inference. It can generate 512 seconds of audio per second of processing time on a single GPU.
  • Perceptual Quality: In Mean Opinion Score (MOS) tests with human listeners, SING scored 3.55/5, significantly higher than WaveNet's 2.85/5 (where the ground truth was 3.86).
  • Similarity: In ABX tests, humans preferred SING's version of unseen notes over WaveNet's version nearly 70% of the time.
  • Efficiency: The model is roughly 4x smaller in memory footprint (243 MB vs 948 MB).

Limitations and Future Work

  • Phase Inconsistency: While the spectral loss is powerful, it doesn't explicitly penalize phase jumps between frames. While the authors used overlapping frames to mitigate this, some artifacts can still occur.
  • Fixed Instrument Set: Because the model uses look-up tables for instruments, it cannot currently generate audio for a brand-new instrument it hasn't seen at all during training (it can only generalize to new pitches for known instruments).
  • Symbolic Constraints: The current model is designed for discrete notes. Extending this to continuous control (like a violin slide) or the complex, non-periodic nature of human speech remains a challenge for future research.

Summary updated

BibTeX
@inproceedings{defossez2018sing,
  author = {Alexandre Défossez and Neil Zeghidour and Nicolas Usunier and Léon Bottou and Francis 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