Translate the Beauty in Songs: Jointly Learning to Align Melody and Translate Lyrics

Chengxi Li, Kai Fan, Jiajun Bu, Boxing Chen, Zhongqiang Huang, Zhi Yu · DOI

Abstract

Translating songs requires more than just preserving semantic meaning; it necessitates maintaining "singability" by aligning translated lyrics with the original melody's rhythm and pitch. This paper introduces LTAG (Lyrics-Melody Translation with Adaptive Grouping), a framework that jointly learns to translate lyrics and dynamically align them to musical notes. By employing an adaptive grouping mechanism, LTAG handles complex musical features like melisma, significantly outperforming existing methods in both translation quality and singability.

Introduction: The Challenge of Automatic Song Translation

Standard machine translation (MT) focuses on semantic and grammatical accuracy. However, Automatic Song Translation (AST) introduces a rhythmic constraint: translated syllables must align perfectly with the melody. This is complicated by melisma, where a single syllable is stretched over multiple notes, and the fact that different languages have varying syllable-to-meaning ratios.

Alignment of lyrics and melody in English and Chinese, illustrating the challenge of melisma.

Existing AST systems often treat translation and alignment as separate, sequential tasks or rely on rigid "one-note-per-syllable" mappings. These approaches fail to capture the fluid nature of real music. Furthermore, the field suffers from a "data scarcity" problem, with very few high-quality parallel datasets of translated songs and their corresponding musical scores.

The LTAG Framework

To address these challenges, the authors propose LTAG, a Transformer-based encoder-decoder architecture designed for joint translation and alignment.

The overall architecture of the LTAG model, featuring the Note-pooling Embedding and Alignment Decoder.

Key Components

  1. Note-Pooling Embedding: This module encodes MIDI pitch and duration information. It "pools" these musical features to help the model associate specific notes with corresponding words in the lyrics.
  2. Adaptive Grouping Module: This is the core innovation of LTAG. Inspired by Adaptive Computation Time (ACT), it avoids fixed word-to-note mappings. Instead, it calculates a "halting probability" at each translation step to dynamically determine how many notes should be assigned to the current word. This flexibility allows the model to handle complex rhythmic alignments, such as assigning four notes to a single Chinese character like "珍" (zhēn).

Curriculum Learning

The model is trained using a curriculum learning strategy. It begins with a large volume of "noisy" data generated through back-translation and gradually transitions to high-quality, manually annotated data as training progresses.

Datasets

The study utilized several key data sources:

  • PopCV: A new, manually annotated dataset of 79 English and Chinese pop songs (approx. 3,000 lines) with their cover versions.
  • LMD (Lakh MIDI Dataset) & Changba: Used for crawling monolingual song data to support back-translation.
  • WMT: Standard translation datasets used for initial pre-training.

Results and Key Insights

LTAG was evaluated against GagaST, a state-of-the-art baseline, showing significant improvements:

  • Translation Quality: LTAG achieved a BLEU score of 16.02 (En→Zh), compared to GagaST’s 11.87.
  • Alignment Accuracy: Using a custom Alignment Score (AS), LTAG reached 0.923, far exceeding the baseline's 0.701.
  • Human Evaluation: Music majors rated LTAG higher in Mean Opinion Scores (MOS) for both singability and overall quality, noting that the translations felt more natural when sung.

The results confirm that joint modeling is essential: the melody should influence word choice, and the translation should influence note grouping. Flexibility, rather than rigid rules, allows the model to mimic the nuanced decisions of human translators.

Limitations and Future Work

While LTAG represents a significant step forward, challenges remain. The quality of Singing Voice Synthesis (SVS) used for evaluation can sometimes obscure translation quality. Additionally, the current study is limited to English and Chinese; future work will explore languages with different rhythmic structures, such as Japanese or French, and aim to better capture deep poetic nuances and cultural metaphors.

Summary updated

BibTeX
@inproceedings{li2023translate,
  author = {Chengxi Li and Kai Fan and Jiajun Bu and Boxing Chen and Zhongqiang Huang and Zhi Yu},
  title = {{Translate the Beauty in Songs: Jointly Learning to Align Melody and Translate Lyrics}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.3},
}
Figure