[Paper Review] DopeLearning: A Computational Approach to Rap Lyrics Generation
This paper presents DopeLearning, a computational rap lyrics generation system that frames lyric generation as an information retrieval task, using a hybrid model combining RankSVM with a novel deep neural network for semantic feature learning. The system achieves 17% accuracy in identifying the true next line among 299 candidates—over 50× better than random—and outperforms top human rappers by 21% in rhyme density, with user preference logs confirming alignment with machine-learned rankings.
Writing rap lyrics requires both creativity to construct a meaningful, interesting story and lyrical skills to produce complex rhyme patterns, which form the cornerstone of good flow. We present a rap lyrics generation method that captures both of these aspects. First, we develop a prediction model to identify the next line of existing lyrics from a set of candidate next lines. This model is based on two machine-learning techniques: the RankSVM algorithm and a deep neural network model with a novel structure. Results show that the prediction model can identify the true next line among 299 randomly selected lines with an accuracy of 17%, i.e., over 50 times more likely than by random. Second, we employ the prediction model to combine lines from existing songs, producing lyrics with rhyme and a meaning. An evaluation of the produced lyrics shows that in terms of quantitative rhyme density, the method outperforms the best human rappers by 21%. The rap lyrics generator has been deployed as an online tool called DeepBeat, and the performance of the tool has been assessed by analyzing its usage logs. This analysis shows that machine-learned rankings correlate with user preferences.
Motivation & Objective
- To develop a computational approach to rap lyrics generation that captures both lyrical flow and semantic coherence.
- To model the task of next-line prediction in rap lyrics as an information retrieval problem.
- To evaluate the system’s performance using quantitative metrics like rhyme density and user preference logs.
- To explore the role of semantic embeddings from deep neural networks in generating semantically coherent and artistically valuable lyrics.
- To deploy and validate the system in the real world via the DeepBeat web tool, assessing alignment with human preferences.
Proposed method
- The system frames rap lyrics generation as an information retrieval task: given a sequence of lines (query), it retrieves the most relevant next line from a candidate pool.
- It extracts three types of features: rhyme features (phonetic and pattern-based), structural features (syntactic and lexical), and semantic features using a deep neural network for sentence embedding.
- The deep neural network maps lyrics into a high-dimensional vector space to capture semantic similarity, serving as the most predictive feature in the model.
- A RankSVM model combines these features to rank candidate next lines, optimizing for relevance to the query.
- The model is trained on a dataset of over 500,000 rap lines from 104 artists, with evaluation via next-line prediction accuracy and rhyme density metrics.
- The system was deployed as DeepBeat (deepbeat.org), and usage logs were analyzed to validate correlation between machine rankings and user preferences.
Experimental results
Research questions
- RQ1Can a machine learning model effectively predict the next line in a rap song with high accuracy, surpassing random selection?
- RQ2To what extent can a deep neural network for semantic representation improve the coherence and relevance of generated rap lyrics?
- RQ3Does the generated lyrics outperform human rappers in technical metrics like rhyme density, and is this perceived as higher quality by human evaluators?
- RQ4How well do machine-learned relevance scores correlate with actual user preferences in a real-world deployment?
- RQ5Can an information retrieval framework be effectively adapted to creative text generation tasks such as rap lyrics composition?
Key findings
- The model achieved a 17% accuracy in identifying the true next line among 299 randomly selected candidates—over 50 times more likely than random selection.
- The true next line was ranked in the top 30% of candidates with 53% accuracy, demonstrating strong predictive performance.
- The system outperformed the best human rappers by 21% in rhyme density, a quantitative measure of technical lyrical quality.
- The rhyme density metric was validated through a human experiment, showing strong correlation with a rapper’s own assessment of technical skill.
- Usage logs from DeepBeat.org revealed that user selection of lines strongly correlated with the model’s predicted relevance scores, confirming real-world alignment with human preferences.
- The deep neural network for semantic embedding emerged as the single most predictive feature in the model, underscoring its importance for semantic coherence in generated lyrics.
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.