Generation of lyrics lines conditioned on music audio clips

Olga Vechtomova, Gaurav Sahu, Dhruv KumararXiv 2020

Abstract

We present a system for generating novel lyrics lines conditioned on music audio. A bimodal neural network model learns to generate lines conditioned on any given short audio clip. The model consists of a spectrogram variational autoencoder (VAE) and a text VAE. Both automatic and human evaluations demonstrate effectiveness of our model in generating lines that have an emotional impact matching a given audio clip. The system is intended to serve as a creativity tool for songwriters.

Introduction

Songwriting is an inherently multimodal creative process where musical instrumentation and lyrical content work in tandem to evoke specific emotional responses. While significant progress has been made in AI-driven text and music generation independently, bridging the gap between these modalities remains a significant challenge. Most existing "stylized" text generators rely solely on textual data or coarse categorical labels (e.g., "happy" or "sad").

Researchers at the University of Waterloo have developed a system designed to act as a "creativity spark" for artists. Rather than attempting to generate an entire song, the model takes a short audio clip—such as a newly recorded riff or melody—and suggests individual lyric lines that align with the "vibe" and emotional character of the sound.

Methodology

The core of the system is a bimodal Variational Autoencoder (VAE) architecture designed to map both audio and text into a shared, continuous latent space.

The bimodal VAE architecture showing the training of spectrogram and text components, and the subsequent inference process.

The architecture consists of two primary branches:

  1. Spectrogram-VAE: This component processes 10-second audio clips. Raw waveforms are converted into MEL spectrograms and passed through a Convolutional Neural Network (CNN) encoder. This encoder learns a continuous latent representation ($z^{(s)}$) that captures the musical style and emotional nuance of the audio.
  2. Text-VAE: This branch utilizes a Long Short-Term Memory (LSTM) architecture to learn and reconstruct lyric lines.
  3. Conditioning Bridge: During the inference phase, the latent vector derived from the audio VAE is concatenated with the input at every step of the text-VAE’s decoder. This ensures that the generated text is continuously steered by the acoustic features of the input audio.

By utilizing a continuous latent space rather than discrete labels, the model can capture subtle stylistic transitions that categorical systems often miss.

Dataset and Training

The model was trained on a specialized dataset featuring seven iconic Rock artists: David Bowie, Depeche Mode, Nine Inch Nails (NIN), Neil Young, Pearl Jam, Rush, and the Doors. The training set comprised 18,210 lyric lines and 14,670 audio spectrograms.

To ensure high-quality alignment, the researchers manually marked lyric line start times for 239 songs using Sonic Visualiser, while the remaining 518 songs utilized a coarse-grained automatic alignment. For evaluation, the model was tested on instrumental tracks, specifically from Nine Inch Nails’ Ghosts I-IV album, to ensure it was generating novel content rather than simply recalling training data.

Results and Discussion

The Spectrogram-VAE successfully learned to cluster audio by artist and album without explicit supervision. Analysis of the latent space revealed that 72.9% of the nearest neighbors to any given clip belonged to the same artist, indicating a robust capture of musical "style."

Generated lyric lines for an instrumental track, showing how the lexicon shifts from 'calm' to 'intense' as the audio waveform intensity increases.

A key finding was the model's sensitivity to acoustic intensity. When testing on tracks split into "intense" and "calm" segments (based on peak dB differences), the model naturally shifted its vocabulary. As shown in the figure above, "intense" audio segments prompted more diverse and aggressive lexicons, while "calm" segments resulted in more atmospheric and consistent lines.

Human evaluation further validated these results. In a blind test where participants matched generated lyrics to audio clips, they achieved an average accuracy of 78.3%. This suggests that the model successfully captures emotional and semantic congruence that resonates with human perception.

Conclusion

This bimodal VAE approach demonstrates the potential for AI to serve as a collaborative tool in the songwriting process. While currently limited by the need for precise audio-to-lyrics alignment and a lack of global song structure (such as rhyming schemes), the model provides a foundation for more nuanced multimodal creative assistants. Future work will focus on improving automatic alignment tools and incorporating broader structural constraints to enhance the coherence of generated song sections.

Summary updated

BibTeX
@misc{vechtomova2020generation,
  author = {Olga Vechtomova and Gaurav Sahu and Dhruv Kumar},
  title = {{Generation of lyrics lines conditioned on music audio clips}},
  year = {2020},
  eprint = {2009.14375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.14375},
}
Figure