Plan, Generate, ReplanHierarchical Symbolic Music Generation
with Boundary-Aware History Correction

Submission 14432

THE IDEA

Abstract

Latent dynamicsHierarchical planningControllable musicLong-horizon generation

Music creation is an iterative process: composers repeatedly revise what has been written and decide how the music should develop next. Supporting this process requires modeling how music evolves under user instructions. We introduce the Music World Model (MWM), a hierarchical latent world model for controllable long-form symbolic music generation. MWM represents musical content as latent states and requested changes as explicit actions. A phrase-level planner predicts structural context, while a segment-level executor recursively generates musical states under this context and the requested action. Users can update actions at phrase boundaries, and the planner refreshes its predictions from generated history to account for how the music has evolved. However, mismatches between new plans and preceding context can enter this history and influence subsequent plans, causing structural drift. We therefore introduce Boundary-Aware History Correction (BHC), an inference-time mechanism that combines context anchoring with persistent correction memory to reconcile planned slow trajectories with preceding context. BHC carries correction information across phrase boundaries while keeping learned weights and external actions fixed, without future reference music. To support learning these action-conditioned dynamics, we construct Slakh-Action from Slakh2100 Redux, aligning multi-track symbolic music with segment-level states, phrase-level summaries, and structural action annotations.

MODEL OVERVIEW

Model Overview

From musical context to future states
Comparison of diffusion-based music generation, transformer-based music generation, and our latent music world model. The world model encodes musical inputs, predicts latent-state transitions under explicit actions, and decodes future outputs. View full size
FIGURE 01 A comparison of music generation paradigms. The latent world model represents musical state and models its evolution under explicit actions.
01 /

Represent

Encode musical context into a compact latent state.

02 /

Plan

Predict phrase-level structure from the evolving history.

03 /

Generate

Roll out segment states under actions, then decode the music.

01 / MUSIC GENERATION

Music Continuation

Five musical contexts, each followed by a 32-bar multi-track continuation. The same contexts are used in the control experiments below.

05 musical contexts

Listen from the beginning, or skip the observed context to hear the continuation.

Context Generated
Example selection and verification

We screened the existing 1,760 validation windows from 233 songs for lower repetition while retaining clear control responses. Every selected window passes all 11 control groups and all 16 individual checks, has an active melody and nonempty restoration targets, and keeps its continuation active through 64 bars. Exported MIDI notes also meet precision, recall, restoration and background-preservation thresholds.

Among eligible windows, we prioritized lower overlap between adjacent eight-bar phrases in both the arrangement and melody, including the later continuation, and selected one window per song. The examples share a fixed inference configuration and the same control settings across songs. This is a retrospective qualitative selection, not an unbiased evaluation or a human listening-quality ranking. Recurring motifs remain.

Selection protocol and provenance · Source-window ranking · Verification records

Adjacent eight-bar note overlap (lower = less literal repetition); control score for the displayed window
ContextBPMRepeat · 32 barsRepeat · 64 barsControl / 100Checks passed
02 / MODEL COMPARISON

Model Comparison

Listen to the same five musical contexts: real ground truth, our continuation, and six baseline models prompted with GT music.

GT / OURS / 6 BASELINES

All players share the same 8-bar GT prelude, playback tempo, SoundFont, and gain. Baselines receive the observed music only; the actual next 32 bars are withheld. Recordings end at the last generated note with a short release tail. Native output lengths and generation limits are listed on each card. Generation and listening protocol · Model and recording provenance · GT sources

The requested continuation is 32 bars. For Context 2, BEAT and Text2midi use the most recent 4 observed bars to fit their native context limits. Ours retains its original history of up to 48 observed bars, while baseline inputs contain 8 bars (or the noted 4-bar fallback). MIDI and ABC adapters differ in quantization and expressive detail. These fixed qualitative examples use model-specific inference settings; they are not a controlled model ranking.

03 / LONG-HORIZON GENERATION

Long-Horizon Generation

Compare 32- and 64-bar excerpts from the same autonomous rollout for each song.

Listen for recurring motifs, evolving texture, and how the arrangement develops at phrase boundaries.

04 / CONTROL DIMENSIONS

Control Examples

Compare control settings on the same five musical contexts, each paired with an autonomous reference.

06 control dimensions
05 / ACTION SEQUENCES

Action Sequences

Apply one action every eight bars and compare the response against the same-context autonomous reference.

08 action schedules
Listening Guide & Recording Setup

What to listen for. Compare musical continuity, phrase transitions, density, instrument roles, and unintended changes. Use the same context across controls, and switch players to keep the listening position aligned.

Recording setup. Generation, horizons, and controls use five songs selected for lower phrase repetition among windows that passed every control check. The same settings are used across songs. The comparison pairs each generated continuation with the actual 32-bar ground truth. Six baseline models provide recordings conditioned on the corresponding observed music. BHC and component comparisons are reported in the experimental results below. Selection scores do not measure human listening quality.

Control meanings. Role restoration uses an explicit MIDI guide from the corresponding autonomous reference. Mute and density use output constraints; constrained music feeds subsequent generation. Guidance strength measures target following, not volume. Recordings use one SoundFont and common gain, with no per-clip normalization, fixed prefix tempo, and BHC disabled.

Playback. Only one recording plays at a time. The floating player follows the active recording. MP3 and MIDI links download the files associated with each slot. Verification records

06 / STRUCTURAL DRIFT & CORRECTION

BHC Analysis

Compare predicted plans, boundary-aware correction, and a teacher-plan diagnostic reference.

PP / BHC / TT
PP

Predicted planRecursive generation under the model’s own structural plan.

TT

Teacher-plan referenceUse target-derived slow structure for diagnosis while retaining recursive execution.

The paper compares matched prefixes, commanded actions, and frozen model weights. BHC uses generated history without future reference music. The 32-bar evaluation contains 102 held-out songs and 1,024 windows; the 64-bar evaluation contains 44 songs and 396 windows. TT is a diagnostic reference that requires target-derived plans.

Paper Figure 3: decoded F1, diagnostic F1 gaps, and latent and logit RMS distances across rollout horizons.
Long-horizon results. BHC recovers 5.5% and 29.1% of the PP–TT terminal-F1 gap at 32 and 64 bars, respectively. At 64 bars, the absolute F1 gain over PP is 0.0080. Distances are averaged across rollout steps and equally across songs.
Paper Figure 2: PP–TT gaps by segment position and song, followed by recovery under persistent plan mismatch.
Plan-mismatch robustness. Paired persistent Gaussian perturbations use autoregressive coefficient 0.9. As innovation strength increases from 0 to 1, BHC recovery rises from 0.0080 to 0.0331, recovering 29.1%–42.6% of the diagnostic gap. This controlled stress process does not estimate the empirical distribution of planner errors.
07 / MECHANISM ABLATIONS

Component Ablations

Full BHC and five controls compare anchoring, propagation, smoothing, and correction direction.

06 correction settings

All settings share the frozen checkpoint, prefixes, action schedules, and decoder. Six deterministic inference configurations are averaged within song; they are not independent training seeds. Confidence intervals use 10,000 paired song-bootstrap replicates.

64-bar continuation · 44 held-out songs
Correction settingF1 gain ↑95% CILatent reduction ↑Logit reduction ↑
Anchoring only+0.0068[+0.0005,+0.0132]0.1190.062
Propagation only+0.0045[+0.0007,+0.0093]0.0720.038
EMA slow-plan+0.0023[-0.0012,+0.0059]0.0510.024
Reverse propagation+0.0012[-0.0026,+0.0050]0.0350.019
Norm-matched random-0.0002[-0.0013,+0.0011]0.0120.005

F1 gain is measured at the terminal step relative to uncorrected MWM. Latent and logit reductions are decreases in rollout-averaged RMS distance to TT. At 32 bars, all F1-gain intervals include zero. At 64 bars, full BHC has the largest mean F1 gain and distance reductions; these comparisons do not establish either component’s necessity or a statistically significant advantage over anchoring alone.