Vector-Quantized Timbre Representation

Adrien Bitton, Philippe Esling, Tatsuya HaradaarXiv 2020

Abstract: Timbre is a set of perceptual attributes that identifies different types of sound sources. Although its definition is usually elusive, it can be seen from a signal processing viewpoint as all the spectral features that are perceived independently from pitch and loudness. Some works have studied high-level timbre synthesis by analyzing the feature relationships of different instruments, but acoustic properties remain entangled and generation bound to individual sounds. This paper targets a more flexible synthesis of an individual timbre by learning an approximate decomposition of its spectral properties with a set of generative features. We introduce an auto-encoder with a discrete latent space that is disentangled from loudness in order to learn a quantized representation of a given timbre distribution. Timbre transfer can be performed by encoding any variable-length input signals into the quantized latent features that are decoded according to the learned timbre. We detail results for translating audio between orchestral instruments and singing voice, as well as transfers from vocal imitations to instruments as an intuitive modality to drive sound synthesis. Furthermore, we can map the discrete latent space to acoustic descriptors and directly perform descriptor-based synthesis.

Introduction

In audio signal processing, timbre is notoriously difficult to define and isolate. It represents the unique "texture" or "color" of a sound that allows listeners to distinguish between different instruments, such as a violin and a flute, even when they play the same note at the same volume. Most existing synthesis models struggle with timbre because acoustic properties like pitch, loudness, and timbre are often entangled—changing one inadvertently affects the others.

Furthermore, many state-of-the-art models are either "black boxes" that offer little control to a musician or are restricted to specific instrument types. This research seeks a flexible, interpretable system that can handle variable-length audio and perform unsupervised translation between different sound domains, such as turning a vocal imitation into an orchestral performance.

Proposed Method

The core of the approach is a Vector-Quantized Variational Auto-Encoder (VQ-VAE) specifically tailored for audio signals. The architecture is designed to enforce disentanglement and provide a discrete representation of spectral shapes.

  1. Encoder & Disentanglement: The encoder processes short windows of audio ($x_t$) and projects them into a latent space ($z_t$). Crucially, it predicts a separate scalar gain ($g_t$) for each frame. By isolating this gain, the model is forced to capture the "pure" spectral shape in the latent features, making the representation invariant to loudness.
  2. Quantization: Instead of a continuous latent space, the model utilizes a "codebook"—a fixed set of learned vectors. Every input is mapped to its nearest neighbor in this codebook ($q^*_t$). This quantization acts as a bottleneck that filters out noise and forces the model to learn the most salient features of a specific timbre.
  3. Subtractive Synthesis Decoder: Unlike many models that use complex neural vocoders, this decoder predicts filters ($H_t$) that are applied to a simple noise source. This "subtractive synthesis" approach is computationally efficient and does not constrain the length or type of signal being processed.
The VQ-VAE architecture uses a discrete codebook and a separate gain path to ensure timbre is learned independently of loudness.

Experimental Setup

The model was trained and evaluated on several high-quality datasets to test its versatility:

  • URMP & Phenicx: Multitrack recordings of 10 orchestral instruments.
  • VocalSet: A dataset of 20 professional singers performing various techniques.
  • VocalSketch: A collection of crowd-sourced vocal imitations of everyday sounds, used to test the model's ability to handle "out-of-domain" inputs for voice-driven synthesis.

Key Insights and Results

Timbre as a Discrete Language

By using vector quantization, the model essentially learns a "vocabulary" of spectral shapes for a given instrument. This makes the representation much more interpretable than standard auto-encoders. Furthermore, because the model is trained on clean studio recordings, it naturally exhibits a "denoising" effect. When noisy vocal imitations are fed into a model trained on violins, the output is a clean violin sound that follows the vocal's timing and pitch.

Descriptor-Based Control

Because the latent space is discrete and ordered, specific latent codes can be mapped to acoustic descriptors like spectral centroid (brightness) or bandwidth. This allows a user to "drive" the synthesis by simply specifying a target descriptor level, such as increasing the brightness of a generated sound.

By mapping the discrete latent space to acoustic descriptors, the model allows for direct control over properties like fundamental frequency and bandwidth.

Performance Metrics

The VQ-VAE was compared against a standard deterministic auto-encoder baseline:

  • Classification Accuracy: To measure timbre transfer quality, a pre-trained instrument classifier was used. The VQ-VAE achieved an average accuracy of 0.6321, significantly outperforming the baseline's 0.4727.
  • Pitch and Loudness Preservation: Using Dynamic Time Warping (DTW), the researchers demonstrated that the model preserves the source's pitch and loudness curves with very low error, validating the disentanglement strategy.

Conclusion

This work introduces a robust framework for learning quantized timbre representations that are disentangled from loudness. While the model successfully enables voice-to-instrument synthesis and descriptor-based control, future work will address slight pitch precision errors introduced by the quantization bottleneck and explore more perceptually relevant frequency scales like the Mel scale or Constant-Q Transform.

Summary updated

BibTeX
@misc{bitton2020vector,
  author = {Adrien Bitton and Philippe Esling and Tatsuya Harada},
  title = {{Vector-Quantized Timbre Representation}},
  year = {2020},
  eprint = {2007.06349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06349},
}
Figure