[Paper Review] Autoencoders for music sound modeling: a comparison of linear, shallow, deep, recurrent and variational models
This study compares linear (PCA), shallow, deep, recurrent (LSTM), and variational autoencoders (VAEs) for modeling music sound representations using the NSynth dataset. Contrary to image processing trends, PCA outperforms shallow autoencoders in reconstruction accuracy, while deep and recurrent autoencoders achieve the lowest reconstruction error; VAEs offer a good trade-off between reconstruction quality and disentangled, usable latent space properties suitable for sound synthesis and interpolation.
This study investigates the use of non-linear unsupervised dimensionality reduction techniques to compress a music dataset into a low-dimensional representation which can be used in turn for the synthesis of new sounds. We systematically compare (shallow) autoencoders (AEs), deep autoencoders (DAEs), recurrent autoencoders (with Long Short-Term Memory cells -- LSTM-AEs) and variational autoencoders (VAEs) with principal component analysis (PCA) for representing the high-resolution short-term magnitude spectrum of a large and dense dataset of music notes into a lower-dimensional vector (and then convert it back to a magnitude spectrum used for sound resynthesis). Our experiments were conducted on the publicly available multi-instrument and multi-pitch database NSynth. Interestingly and contrary to the recent literature on image processing, we can show that PCA systematically outperforms shallow AE. Only deep and recurrent architectures (DAEs and LSTM-AEs) lead to a lower reconstruction error. The optimization criterion in VAEs being the sum of the reconstruction error and a regularization term, it naturally leads to a lower reconstruction accuracy than DAEs but we show that VAEs are still able to outperform PCA while providing a low-dimensional latent space with nice "usability" properties. We also provide corresponding objective measures of perceptual audio quality (PEMO-Q scores), which generally correlate well with the reconstruction error.
Motivation & Objective
- To systematically compare linear and non-linear autoencoder architectures—PCA, shallow AE, deep AE, LSTM-AE, and VAE—for dimensionality reduction in music sound modeling.
- To evaluate reconstruction accuracy using objective metrics (RMSE) and perceptual quality (PEMO-Q) on the NSynth dataset.
- To analyze the structure and usability of the learned latent spaces, particularly their decorrelation and interpretability for sound synthesis.
- To demonstrate the feasibility of sound interpolation in the latent space for creating hybrid, novel musical timbres.
Proposed method
- The study uses the NSynth dataset, applying Short-Time Fourier Transform (STFT) to extract magnitude spectra as input for all models.
- Each model (PCA, AE, DAE, LSTM-AE, VAE) encodes the magnitude spectra into a low-dimensional latent vector, then decodes it back to reconstruct the original spectrum.
- Reconstruction quality is evaluated using root mean squared error (RMSE) between original and reconstructed magnitude spectra.
- Perceptual quality is assessed using the PEMO-Q metric, which correlates strongly with reconstruction error.
- Latent space interpolation is performed via linear interpolation between encoded vectors of two distinct sounds, followed by decoding and Griffin-Lim phase reconstruction.
- The models are trained and evaluated with a fixed latent dimension of 32, and results are compared across architectures.
Experimental results
Research questions
- RQ1Does PCA outperform shallow autoencoders in reconstructing music sound spectra from high-dimensional magnitude representations?
- RQ2Do deep or recurrent autoencoder architectures (DAEs, LSTM-AEs) achieve lower reconstruction error than shallow autoencoders and PCA on music sound data?
- RQ3How do variational autoencoders (VAEs) compare in reconstruction accuracy and latent space quality to other models, particularly in terms of disentanglement and usability for sound synthesis?
- RQ4To what extent does the perceptual quality of resynthesized audio correlate with reconstruction error metrics like RMSE and PEMO-Q?
- RQ5Can meaningful and smooth sound interpolations be achieved in the latent space of different autoencoder architectures, especially for creating hybrid musical timbres?
Key findings
- PCA consistently outperforms shallow autoencoders in reconstruction accuracy, contrary to findings in image processing where non-linear methods typically dominate.
- Deep autoencoders (DAEs) and LSTM-based autoencoders (LSTM-AEs) achieve the lowest reconstruction error among all models tested, indicating superior representation learning for music spectra.
- Variational autoencoders (VAEs) achieve a fair-to-good reconstruction accuracy, with a significant advantage in latent space structure: they produce more decorrelated and well-constrained latent coefficients.
- The PEMO-Q perceptual quality metric strongly correlates with reconstruction error, validating RMSE as a reliable proxy for perceptual fidelity in audio reconstruction.
- Latent space interpolation produces smooth, perceptually consistent transitions between sounds, with LSTM-AE and VAE models generating higher-quality hybrids than PCA, which exhibits blurriness and artifacts.
- The results suggest that VAEs are particularly promising for music synthesis applications due to their balance of reconstruction quality and structured, usable latent space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.