RPPNet: Perceptually-Grouped Rhythm-Pitch Primitives for Long-Term Structure Melody Generation via Boundary-Aware Modeling

TL;DR

RPPNet generates long-structure melodies via boundary-aware modeling, enhancing musicality and structure.

cs.SD 🔴 Advanced 2026-07-22 7 views
Tieyao Zhang Yuke Liu Jiaxing Yu Xinda Wu Kejun Zhang Genfang Chen
music generation deep learning psychology structure modeling melody

Key Findings

Methodology

RPPNet uses a two-stage deep learning architecture to generate variable-length Rhythm-Pitch Primitives (RPPs), encoding note count, rhythm, and contour, then decodes them into concrete notes. Grouping is based on acoustic cues, auditory inertia, and similarity perception from music psychology.

Key Results

  • RPPNet outperforms existing baselines in long-term structure and musicality, showing significant improvements in subjective evaluations.
  • Ablation studies confirm performance gains stem from the structural correctness of psychological representation, not model capacity.
  • RPPNet surpasses Museformer and MELONS in structural coherence and musicality.

Significance

This study offers an interdisciplinary perspective on music generation, integrating music theory, computational modeling, and music psychology, addressing fragmentation in long-structure modeling of symbolic music.

Technical Contribution

RPPNet introduces perception-driven structural representation, replacing fixed bar-level boundaries with flexible grouping units, achieving hierarchical modeling based on psychological evidence.

Novelty

RPPNet is the first to apply perceptual mechanisms from music psychology to music generation, overcoming limitations of traditional fixed bar-level units.

Limitations

  • RPPNet shows a distribution mismatch in rhythm patterns, particularly over-generating iambs.
  • Performance under complex musical textures remains unverified.

Future Work

Future work will explore hybrid data-driven and rule-driven structural strategies, extend to polyphonic music and accompaniment generation, and introduce micro-macro feedback mechanisms.

AI Executive Summary

Existing symbolic music generation models typically use bars as basic structural units, leading to fragmentation in long-structure modeling. RPPNet addresses this by generating variable-length Rhythm-Pitch Primitives (RPPs) through boundary-aware modeling. Experiments show that RPPNet outperforms existing baselines in long-term structure and musicality, particularly in structural coherence.

RPPNet employs a two-stage deep learning architecture, first generating RPP sequences and then decoding them into concrete notes. Grouping is automatically derived from acoustic cues, auditory inertia, and similarity perception based on music psychology. Ablation studies confirm that performance gains stem from the structural correctness of the psychological representation, not model capacity.

This study offers an interdisciplinary perspective on music generation, integrating music theory, computational modeling, and music psychology, providing a new solution for long-structure melody generation. Future work will explore hybrid data-driven and rule-driven structural strategies, extend to polyphonic music and accompaniment generation, and introduce micro-macro feedback mechanisms.

Deep Analysis

Background

Symbolic music generation is a core direction of generative AI in art. Researchers have drawn on language models from natural language processing to capture long-term dependencies in music, achieving structured melody generation. However, existing methods face challenges in long-structure modeling, often biasing models toward local statistical patterns, limiting long-term structure generation quality.

Core Problem

Existing symbolic music generation models face fragmentation in long-structure modeling, struggling to capture explicit associations between non-adjacent but functionally similar structural units. This problem requires integrating music theory, computational modeling, psychology, and neuroscience.

Innovation

RPPNet introduces perception-driven structural representation, replacing fixed bar-level boundaries with flexible grouping units, achieving hierarchical modeling based on psychological evidence. This method combines music theory and cognitive psychology to design a heuristic algorithm representing melodies as non-equidistant Rhythm-Pitch Primitives.

Methodology

  • �� RPPNet uses a two-stage deep learning architecture. • First, it generates variable-length Rhythm-Pitch Primitives (RPPs). • Then, it decodes RPP sequences into concrete notes. • Grouping is based on acoustic cues, auditory inertia, and similarity perception from music psychology.

Experiments

Experiments use the MelodyNet dataset, comprising over 300,000 MIDI melodies. The model is compared with Museformer and MELONS, using subjective evaluations and ablation studies to verify RPPNet's structural coherence and musicality.

Results

RPPNet outperforms existing baselines in long-term structure and musicality, showing significant improvements in subjective evaluations. Ablation studies confirm performance gains stem from the structural correctness of psychological representation, not model capacity.

Applications

RPPNet can be used in music creation, education, and music therapy, providing more structured and musical melody generation.

Limitations & Outlook

RPPNet shows a distribution mismatch in rhythm patterns, particularly over-generating iambs. Performance under complex musical textures remains unverified.

Plain Language Accessible to non-experts

Imagine you're in a kitchen cooking. Traditional music generation is like chopping ingredients at fixed times, while RPPNet adjusts chopping times based on ingredient characteristics and cooking needs. This approach results in a more harmonious overall flavor and structure, just like RPPNet's melodies are more musical and structured.

ELI14 Explained like you're 14

Imagine you're playing a music game with many levels, each with different rhythms. Traditional methods are like having fixed rhythms for each level, while RPPNet lets you adjust rhythms based on the music's feel, making the game more fun and the music more interesting!

Glossary

RPPNet (Rhythm-Pitch Primitive Network)

A two-stage deep learning architecture for generating long-structure melodies.

Used to generate variable-length rhythm-pitch primitive sequences.

Rhythm-Pitch Primitive (RPP)

Basic units encoding note count, rhythm, and contour.

Core structural units in RPPNet.

Boundary-aware modeling

Replaces fixed bar-level boundaries with perception-driven structural representation.

One of RPPNet's innovations.

Music psychology

A branch of psychology studying music perception and cognition.

Guides RPP grouping.

Ablation study

Analyzes the impact of removing certain model parts on overall performance.

Used to verify the source of RPPNet's performance gains.

Open Questions Unanswered questions from this research

  • 1 How to verify RPPNet's performance under complex musical textures?
  • 2 How to further improve RPPNet's rhythm pattern distribution matching?

Applications

Immediate Applications

Music Creation

Musicians can use RPPNet to generate more structured and musical melodies.

Long-term Vision

Music Education

RPPNet can be used in music education to help students understand musical structure.

Abstract

Existing symbolic music generation models typically use bars as the basic structural unit. However, human perception of musical phrases often does not align with notated bar lines, leading to long-term structural fragmentation. This paper proposes RPPNet-a two-stage deep learning architecture with variable structural boundaries. It first generates variable-length Rhythm-Pitch Primitive (RPP) sequences, where each RPP encodes note count, rhythm, and contour; then decodes the RPP sequences into concrete notes. The grouping of RPPs is automatically derived from acoustic cues, auditory inertia, and similarity perception based on music psychology. Experiments show that melodies generated by RPPNet are superior in both long-term structure and musicality, with significant improvements across all subjective evaluation dimensions. Ablation studies confirm that the performance gain stems from the structural correctness of the psychological representation, rather than from model capacity. This work offers an interdisciplinary perspective for music generation, integrating music theory, computational modeling, and music psychology.

cs.SD cs.AI