Abstract
This paper addresses the unique challenge of conducting research in lyric studies, where direct use of lyrics is often restricted due to copyright concerns. Unlike typical data, internet-sourced lyrics are frequently protected under copyright law, necessitating alternative approaches. Our study introduces a novel method for generating copyright-free lyrics from publicly available Bag-of-Words (BoW) datasets, which contain the vocabulary of lyrics but not the lyrics themselves. Utilizing metadata associated with BoW datasets and large language models, we successfully reconstructed lyrics. We have compiled and made available a dataset of reconstructed lyrics, LyCon, aligned with metadata from renowned sources including the Million Song Dataset, Deezer Mood Detection Dataset, and AllMusic Genre Dataset, available for public access. We believe that the integration of metadata such as mood annotations or genres enables a variety of academic experiments on lyrics, such as conditional lyric generation.
Introduction
In the field of Music Information Retrieval (MIR), lyrics are a primary source for understanding genre, emotion, and cultural trends. However, researchers face a massive legal hurdle: copyright. Unlike scientific data, lyrics are intellectual property, which often prevents the sharing of large-scale datasets.
To bypass this, researchers frequently use Bag-of-Words (BoW) datasets, such as the musiXmatch dataset. These provide word frequencies but strip away structure, grammar, and sequence. While useful for simple classification, BoW data is insufficient for tasks requiring context, such as n-gram analysis or structural modeling. This paper introduces LyCon, a method to "re-inflate" these word clouds into coherent, stylistically accurate lyrics using Large Language Models (LLMs).
Methodology
The core of the LyCon approach is a specific prompting strategy that constrains an LLM (GPT-4o) using four types of metadata to ensure the reconstructed lyrics mirror the original intent:
- Vocabulary: A frequency-sorted list of words from the original BoW dataset.
- Identity: The song title and artist name to capture specific thematic and stylistic nuances.
- Genre: Sourced from the AllMusic Style Dataset.
- Mood: Derived from the Deezer Mood Detection Dataset.
To operationalize emotional context, the authors mapped valence (positivity) and arousal (energy) scores onto a 2D plane, calculating the angle ($\theta$) to categorize songs into twelve specific moods (e.g., "Angry," "Peaceful," "Nervous").
Evaluation and Results
The resulting LyCon dataset contains 7,863 reconstructed lyrics mapped back to Million Song Dataset (MSD) IDs. To validate the method, the authors compared these reconstructions against original lyrics across several structural and linguistic metrics.
Statistical analysis shows that LyCon lyrics remarkably mirror the structure of the originals. Average word counts (319 vs 248), line counts (42 vs 38), and section counts (9.9 vs 9.8) were found to be very close. Furthermore, the total counts of unique bigrams and trigrams in LyCon closely tracked with the original lyrics, making the dataset viable for linguistic sequence analysis.
One notable difference is vocabulary diversity; LyCon had significantly fewer unique unigrams (18,921) compared to the originals (36,222), suggesting that while the LLM follows the provided vocabulary, it tends to reuse common words more frequently than human songwriters. Additionally, LyCon lyrics achieve a similar "aesthetic level" to professional songwriting, though they lean slightly more toward abstract language.
Conclusion
LyCon demonstrates that LLMs can act as effective "statistical proxies" for restricted lyric data. By leveraging metadata and BoW frequencies, researchers can generate copyright-safe alternatives that are statistically similar enough to originals to serve as a foundation for academic experiments, such as conditional lyric generation and nuanced music categorization.
The LyCon dataset is available for academic use on GitHub.
Summary updated