Structure-Aware Piano Accompaniment via Style Planning and Dataset-Aligned Pattern Retrieval

Wanyu Zang, Yang Yu, Meng Yu
2/16/2026
cs.SDcs.AI
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zang2026structureaware,
  title  = {Structure-Aware Piano Accompaniment via Style Planning and Dataset-Aligned Pattern Retrieval},
  author = {Wanyu Zang and Yang Yu and Meng Yu},
  year   = {2026},
  eprint = {2602.15074},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.15074v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.15074.svg)](https://codeofpaper.com/paper/2602.15074)

Discussion