Abstract
Automated lyric generation requires balancing semantic meaning with rigid musical constraints. This paper introduces a multi-channel Sequence-to-Sequence (Seq2Seq) model designed for Chinese lyrics, where each character corresponds to a single syllable. By utilizing a dual-encoder architecture—a structure encoder for rhythmic patterns and a content encoder for semantic flow—the model achieves high-fidelity alignment between text and melody. Experimental results demonstrate that this approach significantly outperforms standard baselines in length control, rhythmic matching, and human-rated fluency.
Introduction
Most automated lyric generation models treat lyrics as a form of poetry, focusing primarily on rhyme and meaning. However, lyrics are fundamentally tied to melody. In Chinese, this relationship is particularly rigid because one character represents exactly one syllable. Previous models often failed to account for three critical factors: length constraints (matching note counts), rhythmic alignment (aligning with rests and phrases), and contextual flow across the entire song. This research addresses these issues by incorporating syllable-structured information directly into the neural architecture, moving beyond simple text-to-text generation.
Methodology
The core innovation is a multi-channel Sequence-to-Sequence (Seq2Seq) model with an attention mechanism. The architecture employs a dual-encoder setup to separate "style" (structure) from "substance" (semantics).
- Structure Encoder: A bidirectional LSTM (Bi-LSTM) that processes "syllable tokens" (S, B, M, E) representing the start, beginning, middle, and end of musical segments. This allows the model to learn the "skeleton" of the melody.
- Content Encoder: A Bi-LSTM processing semantic input. Two variants were tested: Sentence-aware (SG), which uses the previous sentence as context, and Keyword-aware (KG), which uses a specific keyword extracted via the TextRank algorithm to guide generation.
- Decoder: A forward LSTM that uses an attention mechanism to fuse outputs from both encoders. It calculates a context vector based on the concatenation of the structure and content hidden states, ensuring the generated character fits both the intended meaning and the musical beat.
Experimental Results
The models were trained on a massive dataset of 160,000 Chinese pop song lyrics and 50,000 manually aligned music-lyric pairs, totaling over 4 million training pairs. The multi-channel models (SG and KG) significantly outperformed the standard Seq2Seq baseline across all metrics.
As shown in the results, the SG model achieved 100% accuracy in length control, while the KG model reached a BLEU score of 16.22%, nearly six times higher than the baseline. Human evaluations by language experts further confirmed these findings, with the KG model receiving the highest ratings for fluency (4.25/5), meaningfulness (4.54/5), and diversity (4.43/5). The Keyword-aware model's success suggests that keywords provide a stronger global anchor for meaning than the potentially noisy context of a single preceding sentence.
Discussion and Conclusion
The success of this approach highlights the importance of treating lyric generation as a constrained optimization problem. By leveraging the 1:1 ratio of Chinese characters to syllables, the researchers transformed a creative task into one where "singability" is mathematically verifiable.
While the model excels at local structure and line-by-line coherence, maintaining a consistent emotional arc or complex narrative theme across an entire song remains a challenge. Future work will explore adding more channels to encode specific sentiments, literary styles, or global themes to enhance the human-like quality and narrative depth of the generated lyrics.
Summary updated