Structure-Aware Piano Accompaniment via Style Planning and Dataset-Aligned Pattern Retrieval
Organizations: Computer Science, Lewis University · Nexus Art Foundation · Computer Science, Governors State University
Abstract
We introduce a structure-aware approach for symbolic piano accompaniment that decouples high-level planning from note-level realization. A lightweight transformer predicts an interpretable, per-measure style plan conditioned on section/phrase structure and functional harmony, and a retriever then selects and reharmonizes human-performed piano patterns from a corpus. We formulate retrieval as pattern matching under an explicit energy with terms for harmonic feasibility, structural-role compatibility, voice-leading continuity, style preferences, and repetition control. Given a structured lead sheet and optional keyword prompts, the system generates piano-accompaniment MIDI. In our experiments, transformer style-planner-guided retrieval produces diverse long-form accompaniments with strong style realization. We further analyze planner ablations and quantify inter-style isolation. Experimental results demonstrate the effectiveness of our inference-time approach for piano accompaniment generation.
Figures & tables
| Approach | Realization | Retr. | Structure | Style | Planning |
|---|---|---|---|---|---|
| Autoregressive note-level [ 1 ] and [ 2 ] | Note or event gen. | N | Implicit | Priming/cond. | None |
| Beat-based modeling (REMI) [ 10 ] | Note/event gen. | N | Implicit | Representation | None |
| Anticipatory infilling [ 8 ] | Note or event gen. | N | Control events | Control tokens | None |
| Diffusion inpainting/controls [ 4 ] | Note or event gen. | N | Local/inpaint | Conditioning | None |
| Whole-song hierarchical diffusion [ 3 ] | Note or event gen. | N | Explicit hierarchy | Conditioning | Hierarchical |
| Style-prior arrangement [ 11 ] | Hybrid retr.+gen. | Y | Phrase and section | Style priors | Transformer prior |
| Song | Ent norm | Top-3 | Dom. | Miss | Pool |
| dngl | 1.000 | 0.399 | 0.166 | 5 | 12 |
| gsn | 1.000 | 0.218 | 0.073 | 6 | 29 |
| lbkch | 0.996 | 0.274 | 0.110 | 4 | 13 |
| rsj | 1.000 | 0.297 | 0.132 | 2 | 31 |
| ts | 0.750 | 0.352 | 0.284 | 3 | 31 |
| Mean Std |
| Metric | Definition, brief | Fixed style | Style planner | , 95% CI |
|---|---|---|---|---|
| Transition distance | Mean adjacent-measure style change. | |||
| Boundary contrast | Boundary dist. within-section dist. | |||
| Axis entropy | Mean per-axis entropy within sections. | |||
| Vector entropy | Entropy of full style vectors within sections. | |||
| Section mode ratio | Share of dominant style vector per section. | |||
| Axis consistency | Mean per-axis mode share within sections. |
| Song | Measures | Active pairwise | Active union | Pitch pairwise | Pitch union |
|---|---|---|---|---|---|
| dngl | 79 | 0.0215 | 672 | 0.0209 | 770 |
| gsn | 173 | 0.0214 | 969 | 0.0215 | 1191 |
| lbkch | 99 | 0.0223 | 826 | 0.0220 | 963 |
| rsj | 127 | 0.0137 | 960 | 0.0137 | 1156 |
| ts | 121 | 0.0199 | 949 | 0.0203 | 1106 |
| Mean Std |
| Style | Starts/Meas | Vel med | Staccato | RegSpan |
|---|---|---|---|---|
| arp | ||||
| block | ||||
| busy | ||||
| dense | ||||
| fast | ||||
| gentle |