Abstract
Interpreting the subtext of song lyrics represents a significant challenge for Natural Language Processing (NLP) due to the heavy use of metaphors and cultural references. This paper introduces TRBLLmaker, a system that leverages fine-tuned GPT-2 models to "read between the lines" of song lyrics. By utilizing a custom dataset of annotations from Genius and exploring various prompt engineering techniques, we demonstrate that incorporating metadata such as artist names and song titles significantly enhances the quality and relevance of generated interpretations.
Introduction
While modern NLP models excel at literal tasks like translation and summarization, the interpretation of poetic and artistic text remains a "final frontier." Song lyrics often contain "hidden clues" rooted in an artist's personal history or broader cultural contexts. Traditional models frequently fail to grasp this subtext, often merely repeating the input text. TRBLLmaker addresses this gap by shifting the focus from sentiment analysis or recommendation toward generative interpretation—explaining the contextual meaning of specific lyrical snippets.
Methodology
The research evaluated two primary Transformer architectures: the encoder-decoder T5 and the decoder-only GPT-2. Preliminary tests indicated that T5 was less suitable for this creative task, often producing unintelligible or overly literal results. In contrast, GPT-2 and GPT-2-medium showed superior performance after fine-tuning.
A core component of the methodology involved extensive prompt engineering. Six distinct prompt types were tested, ranging from simple lyric-meaning pairs to complex "question-context" formats that integrated song metadata. To evaluate these models, a novel "Total Score" metric was introduced. This formula combines ROUGE-1 with cosine similarity while specifically penalizing high similarity between the prediction and the original lyrics to prevent verbatim copying.
The TRBLLDataset
To support this task, the authors developed the TRBLLDataset by scraping the Genius API. The dataset comprises over 60,630 samples from 8,808 unique songs across diverse genres, including pop, rap, rock, country, and R&B. Each sample includes the lyric snippet, a human-authored annotation, and metadata such as artist, title, and genre. This dataset has been made available to the research community via HuggingFace.
Results and Discussion
Quantitative analysis revealed that GPT-2-medium, when paired with a "question-context" prompt including metadata, achieved the highest performance. Fine-tuned models demonstrated a 37% improvement in Total Score over pre-trained baselines.
Key findings include:
- The Role of Metadata: Including the artist's name allowed the model to leverage learned associations, significantly improving interpretation quality.
- Decoding Strategies: Sampling-based methods like Top-p produced more fluent and human-like interpretations compared to standard beam search, though they were more prone to "hallucinating" fictional details to support their explanations.
- Stylistic Mimicry: Fine-tuned models successfully adopted the interpretive style of human annotators, frequently using phrases like "This is a reference to..." or "The artist is saying that..."
Conclusion and Future Work
TRBLLmaker represents a step toward "artistic comprehension" in AI. While successful, the study noted limitations such as compute constraints preventing the fine-tuning of larger models like GPT-Neo and the tendency for models to generate non-factual information. Future work will focus on implementing more advanced semantic metrics, such as Word Mover's Distance, and refining the model's ability to ground interpretations in factual data.
Summary updated