Systems that turn a written piano score into a human-sounding performance learn where to slow down, where to swell, and which notes to lean on. They need large collections of scores carefully matched note-by-note to real recordings, and those collections are scarce. The current answer to that scarcity is scale. One system pre-trains on billions of tokens of unlabeled MIDI; another trains on tens of thousands of scraped scores. Neither tells us how to capture one pianist's interpretive habits from a handful of recordings, and both still drift in tempo on long, demanding pieces.
This note proposes a different output space. The model does not predict a free curve for every note. A neural network writes a short program of expressive gestures: a tempo arch over this phrase with its peak here, a broadening into this cadence, a lingering on this downbeat. Each gesture is attached to spans found by symbolic analysis of the score, and a small, bounded neural correction is added on top. The bet is that few-shot style adaptation then reduces to fitting a few dozen interpretable gesture parameters instead of a high-dimensional curve. That should cut the number of recordings needed to imitate a new pianist and remove cumulative tempo drift by construction.
Core Claim
When an expressive-performance model must adapt to a new pianist from roughly 1 to 20 aligned recordings, a program-structured output beats fine-tuning the strongest pre-trained renderer, as measured by style fidelity and tempo stability. The program has neural-chosen gesture parameters, symbolic score-derived spans, and a bounded residual. We also predict where the advantage ends: it should shrink to zero as paired data grows. And it must survive the critical control of giving the same symbolic analysis to an unstructured model as plain input features. If that control matches the program, the claim is false and we will report it as such.
Concretely, the logarithm of the local tempo ratio at beat $t$ is generated as
$$ \log \tau(t) \;=\; \sum_{s \in S} g_s \, A\big(t;\, \theta_s\big) \;+\; r(t), \qquad |r(t)| \le \epsilon . $$
Each term is defined as follows. $S$ is the set of nested phrase and section spans extracted symbolically from the score. $g_s \in [0,1]$ is a learned gate saying whether span $s$ receives a gesture. $A(t;\theta_s)$ is a parameterized gesture shape over the span, controlled by depth, peak position, asymmetry and final-ritardando strength. $r(t)$ is a neural residual clipped to magnitude $\epsilon$.
Velocity, note-level agogic accents and pedaling get analogous terms. Because tempo is a sum of bounded, span-local shapes plus a bounded residual, timing error cannot accumulate beyond a span. That is the mechanism by which we expect drift to disappear.
Where This Sits
The neuro-symbolic side supplies the method. Learning to Infer Program Sketches has a network propose a program skeleton while a symbolic component fills the holes. We invert the roles, with symbolic score analysis fixing the skeleton (the spans) and the network filling continuous parameters. LLM Priors for ERM over Programs motivates the statistical argument that fitting over short program descriptions is sample-efficient. QORA and αILP show the same pattern with relational rules, reporting large data savings and resistance to spurious cues. Forward-Chaining Temporal Point Process is the closest temporal analogue: it matched purely neural event models with 40% of the data by adding symbolic deduction. Its symbolic part governs which events follow, whereas ours governs the shape of a continuous timing curve.
Two papers constrain the design. ASPER gained little where domain knowledge resisted formalization (SciERC), and DisjunctiveNet degrades when hard rules are wrong. Musical expression is exactly a domain where rules are partly wrong. That is why we use gates that can switch gestures off and a residual, and avoid hard projection onto rule sets.
On the music side, three approaches attack data scarcity without explicit structure. Pianist Transformer pre-trains on 10B MIDI tokens and fine-tunes on ASAP. Disentangling Score Content and Performance Style learns a continuous style vector from large unpaired corpora. Expressive Piano Performance Rendering from Unpaired Data uses a GAN whose only structural safeguard is a distance penalty against the score. That last paper also motivates us directly: its authors report that it applies fast mannerisms to lyrical passages and cannot tell introductions from climaxes.
VirtuosoNet and the graph model of Jeong et al. encode hierarchy and relational structure in the encoder, but still emit free per-note curves. VirtuosoNet's own evaluation notes unstable tempo on Chopin Etudes. The closest musical neuro-symbolic system, Parley, uses symbolic planners and neural critics for composition and produces no timing, dynamics or pedal. Our contribution is to put symbolic structure in the output of a performance model.
Research Program
The symbolic layer is a deliberately small, hand-specified gesture vocabulary of about six types. It covers phrase arch, cadential broadening, section-final ritardando, agogic accent, dynamic swell and pedal-change-on-harmony-change. It also includes a score analyzer that proposes candidate spans. The analyzer uses beat, downbeat and key annotations already in ASAP, slurs and rests from MusicXML, and a rule-based cadence detector over local harmony. We will audit analyzer errors on a hand-labeled subset, because the perception-reasoning cascade noted for decoupled systems like Visual Question Answering based on Formal Logic applies here too.
The neural layer is a score encoder that outputs, for each candidate span, a gate and gesture parameters, plus the bounded residual. To keep the comparison with pre-training honest, we instantiate the encoder twice: once as a VirtuosoNet-style hierarchical encoder trained from scratch, and once as the frozen-then-fine-tuned Pianist Transformer encoder. This tests whether the program output is complementary to pre-training rather than a substitute for it.
Pianist style is represented as a per-pianist offset on gesture parameters. Adapting to a new pianist means fitting only those offsets, and optionally the residual head, from $k$ recordings. Interpretability comes for free and is checked rather than assumed. We will compare learned per-pianist gesture statistics against independent tempo-curve measurements of the same pianists' unseen recordings.
Baselines
The naive reference point is the deadpan rendering: the score played at its nominal tempo with constant velocity. Every method must clearly beat it on correlation and divergence metrics; otherwise the few-shot regime is simply too hard to evaluate.
The supervised structural baseline is VirtuosoNet, trained on exactly the same aligned pieces at each data fraction with the same tuning budget. It is the natural competitor because it already encodes note-beat-measure hierarchy in its encoder. Its reported dynamics correlation, r > 0.75 with target pianists when trained on per-pianist ATEPP subsets (ATEPP), is the bar our method must reach with fewer recordings. The graph model of Jeong et al. is a secondary baseline; it reports human-like tempo curves (r > 0.7) on 35 of 50 test excerpts.
The strongest competitor is Pianist Transformer fine-tuned on the same $k$ recordings. Its pre-training is precisely the alternative explanation for any data efficiency we observe. The file reports that it is best on 6 of 8 JS-divergence and intersection-area metrics on ASAP, but gives no numeric values, so no reported numeric result was found on Lacuna for those metrics. We will reproduce it with the released configuration. Its fine-tuning gets the same number of gradient steps and the same hyperparameter search as our method, run with early stopping on a held-out piece by the same pianist. Beating it means statistically better style fidelity and drift at $k \le 5$ on held-out pianists, with no worse divergence metrics.
The disentangled model of Zeng et al. is included as a style-vector baseline adapted by fitting its style embedding on the $k$ recordings.
Three ablations isolate the key ingredient. In features-as-input, the same spans, gates and cadence labels are fed to the unstructured decoder as input features. In soft-penalty, the gesture structure becomes a regularization loss on a free curve, in the spirit of the score penalty in the unpaired GAN. In no-residual and residual-only, we bound how much the program itself contributes.
Why not just…?
Why not just fine-tune Pianist Transformer on the few target recordings? This is the real threat. Massive pre-training may already supply the inductive bias we propose to write by hand. Nothing in the file shows it failing at small $k$; its reported results are on full ASAP fine-tuning. We therefore do not argue it away. We run it as the main baseline and also attach our program head to its encoder. If fine-tuned Pianist Transformer matches the program head at $k \le 5$ on held-out pianists, our data-efficiency claim is wrong. What would remain is an interpretability and drift result, which the drift metric tests separately.
Why not just give the score analysis to the network as extra input features? If the value lies in the information (where phrases and cadences are) rather than the structure of the output, this simpler design would suffice. The features-as-input ablation tests exactly that, with identical analyzer outputs. Our prediction is that it helps at full data but not at $k \le 5$, because the network must still learn from scratch how a phrase boundary maps onto a curve shape. If it matches the program model, we will report that the structured output adds nothing.
Why not just add a music-theory penalty to the loss? A soft penalty, such as rubato balance or phrase-end slowing, keeps the free output space and only nudges it. Free curves can still accumulate drift, and a penalty does not reduce the number of parameters that must be fitted for a new pianist. The soft-penalty ablation measures both effects directly. If it matches on style fidelity, the advantage is regularization rather than compression, and we will say so.
Why not accept that expression breaks rules, so any rule system will sound robotic? The concern is backed by ASPER's weak gains on poorly formalized domains and DisjunctiveNet's sensitivity to wrong rules. Our gestures are vocabulary rather than law: gates can drop them and the residual covers what they miss. We will report the fraction of tempo and velocity variance explained by the program versus the residual. Listening tests will directly ask expert raters about mechanical-sounding phrasing.
Proposed Experiments
The primary experiment is few-shot pianist adaptation on ATEPP, restricted to its score-aligned subset. All models are pre-adapted on a pool of pianists, and adaptation to held-out pianists uses $k \in \{1, 3, 5, 10, 20\}$ recordings, testing on that pianist's unseen pieces. Style fidelity is measured in two ways. The first is tempo and velocity correlation with the target pianist's own recording of the test piece. The second is identification accuracy: a pianist classifier of the kind ATEPP uses, a 1D-CNN reported at F1 between 0.45 and 0.55 across 12–16 pianists, is applied to our renderings, and we ask whether they are attributed to the target pianist.
The secondary experiment is a data-fraction sweep on ASAP (5%, 10%, 25%, 100% of pieces). It uses Pianist Transformer's JS-divergence and intersection-area metrics, so results are comparable to its protocol. A drift metric targets long virtuosic pieces such as the Chopin Etudes in ASAP. It records the maximum deviation, in beats, of cumulative rendered time from the human performance's downbeat grid after removing a global tempo scale. Blind listening tests with trained pianists rate dynamics, tempo, phrasing appropriateness in lyrical passages, and overall human-likeness, following the dimensions used by Zeng et al..
The decisive checks are four. First, the program model must beat fine-tuned Pianist Transformer at $k \le 5$, and the gap must narrow toward zero at full data. A gap that persists everywhere would suggest an implementation artifact; no gap at small $k$ refutes the claim. Second, the features-as-input ablation must fall significantly short at small $k$. Third, the drift metric must improve on long pieces without lowering correlation. Fourth, the program terms must explain the majority of expressive variance. If the residual does most of the work, the model has the symbolic structure in name only.
References
- Learning to Infer Program Sketches
- LLM Priors for ERM over Programs
- QORA: Zero-Shot Transfer via Interpretable Object-Relational Model Learning
- αILP: thinking visual scenes as differentiable logic programs
- Forward-Chaining Temporal Point Process
- ASPER: Answer Set Programming Enhanced Neural Network Models for Joint Entity-Relation Extraction
- DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layers
- Pianist Transformer: Towards Expressive Piano Performance Rendering via Scalable Self-Supervised Pre-Training
- Bridging Piano Transcription and Rendering via Disentangled Score Content and Style
- Expressive Piano Performance Rendering from Unpaired Data
- VirtuosoNet: A Hierarchical RNN-based System for Modeling Expressive Piano Performance
- Graph Neural Network for Music Score Data and Modeling Expressive Piano Performance
- Neuro-Symbolic Generation of Music with Talking Points
- Visual Question Answering based on Formal Logic
- ATEPP: A Dataset of Automatically Transcribed Expressive Piano Performance