Sudowoodo: A Chinese Lyric Imitation System with Source Lyrics

Yongzhu Chang, Rongsheng Zhang, Lin Jiang, Qihang Chen, Le Zhang, Jiashu Pu

TL;DR

This paper introduces Sudowoodo, a Chinese lyric imitation system that generates new lyrics mimicking the style and content of source lyrics. Facing the challenge of a lack of parallel lyric-to-lyric corpora, the authors propose a novel framework to construct such a dataset using a keyword-based lyric generation model. The system also incorporates audio information to create complete songs, demonstrating improved lyric imitation capabilities through human evaluation.

What Problem Does This Paper Address?

Generating lyrics that accurately capture the style and content of existing lyrics, a task known as lyric imitation, is a significant challenge in natural language generation. While previous research has focused on generating lyrics based on specific keywords, themes, or styles, directly imitating the nuances of existing lyrics is more complex. A major hurdle is the scarcity of parallel corpora – datasets containing both original lyrics and their imitated counterparts. This lack of data makes it difficult to train effective imitation models. The paper aims to bridge this gap by developing a system that can generate new lyrics that closely resemble source lyrics, even incorporating musical elements to create full songs.

Methods

Sudowoodo employs an Encoder-Decoder framework, a standard architecture for sequence-to-sequence tasks. The core innovation lies in how they address the parallel corpus problem.

  1. Data Preparation and Keyword Extraction: They start with a large corpus of Chinese lyrics. For each source lyric, they extract keywords, style, and emotion attributes. This is done by segmenting lyrics, using a KBERT model for keyword extraction (5 keywords per bar, top 10% selected for the song), and training a classifier for style and emotion. This forms an attribute-based dataset ($D_A$).
  2. Keyword-to-Lyrics Model (Model K2L): To create synthetic parallel data, they train a model ($Model_{K2L}$) that generates lyrics ($D'_K$) from keywords and attributes. This model uses an encoder-decoder architecture where keywords, style, and emotion are encoded, and lyrics are decoded.
  3. Lyric Imitation Model (Model L2L): Using the synthetically generated lyrics ($D'_K$) and the original source lyrics ($D_K$), they construct a parallel corpus ($D'_K, D_K$). This corpus is then used to train the main lyric imitation model ($Model_{L2L}$), also an encoder-decoder architecture. This model takes source lyrics and their attributes as input and generates imitated lyrics.
  4. Pre-training and Initialization: To improve performance and fluency, $Model_{L2L}$ is initialized with a pre-trained transformer model (similar to GPT-2) trained on a large corpus of Chinese novels.
  5. Post-processing: To further refine the generated lyrics, a post-processing module is used. This includes:
  6. Lyrics Quality Scoring: A classification model trained to identify high-quality lyrics.
  7. Relevance Scoring: Cosine similarity between source and generated lyrics using sentence transformers to measure semantic similarity.
  8. A weighted combination of these scores is used to rank and select the top 3 generated lyrics.
  9. Composing and Singing: As an added feature, the system incorporates audio information (vocals and melody) from the source song and aligns the generated lyrics to produce a complete song.

Datasets

  • Source Lyrics Corpus: 800k Chinese lyrics from the internet, filtered down to 600k unique lyrics.
  • Synthetic Parallel Corpus: Constructed by using $Model_{K2L}$ to generate new lyrics from keywords and attributes derived from the source lyrics, resulting in a dataset of 1800k pairs.
  • Human Evaluation Dataset: 100 source lyrics, each with 3 generated imitation lyrics, scored by 3 professional lyricists.

Key Insights and Ideas

  • Synthetic Data Generation for Imitation: The core idea of using a keyword-based model to generate synthetic parallel data for training a lyric imitation model is a clever workaround for the lack of naturally occurring parallel corpora. This approach significantly expands the training data available.
  • Attribute-Guided Generation: Incorporating attributes like style and emotion alongside keywords provides richer control over the generated lyrics, leading to more nuanced imitation.
  • Multi-faceted Post-processing: Combining lyrics quality scoring and semantic relevance scoring offers a robust way to filter and rank generated lyrics, ensuring higher quality outputs.
  • Audio Integration for Complete Songs: The ability to not only generate lyrics but also to compose and sing them, by aligning with source audio, elevates the system beyond simple text generation to a more complete creative assistant.

Key Results

  • Human evaluation results showed that the $Model_{L2L}$ (lyrics imitation model) performed better than $Model_{K2L}$ (keyword-based generation) in terms of thematic and comprehensive scores.
  • The addition of keywords and writing styles improved the fluency of generated lyrics.
  • When comparing end-to-end methods, the approach using generated lyrics for training ($Model_{L2L}$) outperformed methods that only used source lyrics as input in 67.25% of cases, highlighting the effectiveness of the synthetic data strategy.
  • The system can generate smooth, high-quality lyrics in a format and writing style similar to the source lyrics.

Limitations and Future Work

  • Real-time Song Rendering: Currently, song rendering is performed offline due to technical limitations. The authors aim to integrate real-time rendering in the future to create a truly dynamic lyric imitation system.
  • Keyword Usage: Not all provided keywords are necessarily used in the generated lyrics, which is acknowledged as a characteristic of the system.
  • Limited Interaction in Demo: The demo offers limited interaction, primarily focusing on generating lyrics or songs based on selected source lyrics and desired sentiments.

Future work could focus on improving the real-time song generation capabilities and exploring more sophisticated ways to control keyword utilization and lyrical flow.

Summary updated

BibTeX
@inproceedings{chang2023sudowoodo,
  author = {Yongzhu Chang and Rongsheng Zhang and Lin Jiang and Qihang Chen and Le Zhang and Jiashu Pu},
  title = {{Sudowoodo: A Chinese Lyric Imitation System with Source Lyrics}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
}
Figure