[Paper Review] MELONS: generating melody with long-term structure using transformers and structure graph
MELONS is a transformer-based melody generation framework that uses an 8-type bar-level structure graph to model long-term musical coherence. By decoupling structure generation from melody generation, it produces high-quality, structurally coherent full-song melodies without requiring annotated structural data, outperforming prior methods in subjective evaluations.
The creation of long melody sequences requires effective expression of coherent musical structure. However, there is no clear representation of musical structure. Recent works on music generation have suggested various approaches to deal with the structural information of music, but generating a full-song melody with clear long-term structure remains a challenge. In this paper, we propose MELONS, a melody generation framework based on a graph representation of music structure which consists of eight types of bar-level relations. MELONS adopts a multi-step generation method with transformer-based networks by factoring melody generation into two sub-problems: structure generation and structure conditional melody generation. Experimental results show that MELONS can produce structured melodies with high quality and rich contents.
Motivation & Objective
- To address the challenge of generating long, coherent melodies with clear musical structure.
- To develop a comprehensive, data-driven representation of musical structure beyond simple repetitions and sequences.
- To enable annotation-free, flexible-length melody generation using structured conditioning.
- To improve melody quality by integrating hierarchical structural relations into the generation process.
Proposed method
- MELONS models musical structure using a graph with eight bar-level relations: repetition, transposition, pitch progression, rhythmic sequence, melody progression, surround progression, harmonious cadence, and rest.
- The framework uses a two-stage generation process: first generating a structure graph, then generating melodies conditioned on that graph.
- It employs transformer-based networks for both structure generation and melody generation, enabling long-range dependency modeling.
- The structure graph is learned from data, with relations defined by pitch, rhythm, and harmonic similarity metrics.
- The method supports flexible melody lengths and does not require parallel annotated data for training.
- Evaluation uses both automatic metrics (relation accuracy) and subjective listening tests with professional musicians.
Experimental results
Research questions
- RQ1Can a data-driven, multi-relational structure graph effectively represent long-term musical coherence in melodies?
- RQ2Does conditioning melody generation on a learned structure graph improve perceived musical quality and structure clarity?
- RQ3How does MELONS compare to prior methods like PopMNet and CP-Transformer in generating structured, high-quality melodies?
- RQ4To what extent can the model generate structurally accurate melodies without requiring annotated structural data?
Key findings
- MELONS achieved a mean opinion score (MOS) of 3.20 on the overall quality metric in subjective evaluations, significantly outperforming CP-Transformer (2.13) and PopMNet (2.17).
- The model achieved 92.88% accuracy in generating bars with rhythmic sequence relations, the highest among all relation types.
- Transposition relations were the most challenging, with 77.33% accuracy, indicating room for improvement in modeling tonal transformations.
- MELONS with real structure graphs (MELONS-R) scored 3.22 on overall quality, showing minimal performance gap from human-created melodies (4.39), suggesting high-quality structure prediction.
- The use of the full 8-relation structure graph significantly improved performance over PopMNet’s basic two-relation set, confirming the value of richer structural representation.
- T-tests confirmed that MELONS significantly outperformed all baselines on all evaluation metrics (p < 1e-6), validating its effectiveness.
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.