Generating coherent and efficient melodic continuations with deterministic discrete diffusion

Melody continuation aims to automatically generate coherent melodic sequences conditioned on an initial musical motif, presenting significant challenges due to the intricate balance required between structural consistency, rhythmic coherence, and computational efficiency. This paper introduces Deterministic Discrete Diffusion for Melody Continuation (D3MC), a novel framework leveraging discrete diffusion processes with a deterministic mask-based sampling strategy. Unlike conventional autoregressive models suffering from slow sequential inference, or traditional diffusion models susceptible to rhythmic inconsistency, D3MC integrates a progressive timestep sampling schedule and a predominantly mask-driven noise injection strategy. This combination systematically preserves rhythmic and harmonic structures while enabling parallel prediction of melodic events. Evaluations conducted on the Lakh MIDI and MAESTRO datasets demonstrate superior performance of D3MC compared to leading baselines. Specifically, our model achieves a Pitch Contour Dynamic Time Warping (DTW) score of 13.1 (outperforming standard diffusion methods by approximately 10.9%), a Rhythm KL divergence of 0.44, and a Harmony compatibility score of 0.79, all achieved with an inference speed of merely 0.8 seconds per sequence–representing up to an 8.9-fold efficiency gain over autoregressive counterparts.

Authors

Institutions

Publication Details

Journal
Automatika
Published
2025-10-02
DOI
https://doi.org/10.1080/00051144.2025.2591993
Primary Topic
Music and Audio Processing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generating coherent and efficient melodic continuations with deterministic discrete diffusion

Zhiqiang Gao, Y. Gao
Automatika
Music and Audio Processing
article

Generating coherent and efficient melodic continuations with deterministic discrete diffusion

Zhiqiang Gao, Y. Gao
article en

Abstract

Melody continuation aims to automatically generate coherent melodic sequences conditioned on an initial musical motif, presenting significant challenges due to the intricate balance required between structural consistency, rhythmic coherence, and computational efficiency. This paper introduces Deterministic Discrete Diffusion for Melody Continuation (D3MC), a novel framework leveraging discrete diffusion processes with a deterministic mask-based sampling strategy. Unlike conventional autoregressive models suffering from slow sequential inference, or traditional diffusion models susceptible to rhythmic inconsistency, D3MC integrates a progressive timestep sampling schedule and a predominantly mask-driven noise injection strategy. This combination systematically preserves rhythmic and harmonic structures while enabling parallel prediction of melodic events. Evaluations conducted on the Lakh MIDI and MAESTRO datasets demonstrate superior performance of D3MC compared to leading baselines. Specifically, our model achieves a Pitch Contour Dynamic Time Warping (DTW) score of 13.1 (outperforming standard diffusion methods by approximately 10.9%), a Rhythm KL divergence of 0.44, and a Harmony compatibility score of 0.79, all achieved with an inference speed of merely 0.8 seconds per sequence–representing up to an 8.9-fold efficiency gain over autoregressive counterparts.

AutomatikaVol. 66(4)
Henan University (CN)
Openalex Percentile: Top 56%
Music and Audio Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.