Ostinato Catalysts: Majorization-Planned Texture Transitions in Symbolic Music

Today's controllable music generators steer texture with single numbers per bar, such as "polyphony level 5" or "rhythmic intensity 3". A single number cannot say whether a bar's notes are spread evenly across many pitches or onsets, or piled onto a few, so it cannot express what makes a gradual build from a sparse verse into a dense chorus sound gradual. This proposal does two things. First, it controls the full shape of a bar's note distribution. Second, it defines a "smooth transition" exactly, using majorization: a mathematical ordering that says when one distribution is a mixed-out version of another. Some source and target textures cannot be ordered this way, because their cumulative curves cross, and then no step-by-step monotone path exists between them. For those cases we borrow a result from quantum information. There, a fixed helper state, called a catalyst, can make two otherwise incomparable distributions comparable. The musical counterpart is an ostinato, a short repeating figure held unchanged under the passage.

The two-sentence version is this. We condition a symbolic music generator on per-bar Lorenz curves, which are cumulative sorted shares of notes, and plan transitions so that each bar sits between its neighbors in the majorization order. When source and target cross, we compute a small, non-uniform ostinato whose fixed note distribution makes the combined texture orderable, and we test whether listeners hear that plan as a more coherent build than scalar ramps or latent interpolation.

Core Claim

The mathematics of entanglement catalysis is a theory of when a fixed auxiliary probability vector makes two incomparable vectors comparable. It applies directly to a real compositional device: a held ostinato or pedal layer that binds a texture change. We define the texture profile of a bar as a sorted probability vector $p$ over $d$ bins. One choice is the share of note onsets falling on each of the 16 metrical positions. Another is the share of notes on each of the 12 pitch classes, sorted, so that the profile describes concentration and not which pitches are used. A transition over bars $p_0, \dots, p_T$ is majorization-monotone if

$$p_0 \prec p_1 \prec \cdots \prec p_T \quad \text{or the reverse chain},$$

where $a \prec b$ means every partial sum of the $k$ largest entries of $a$ is at most that of $b$, for all $k$. Each bar is then obtainable from the next by redistributing note mass toward evenness, and is not simply "a bit more entropic" on one summary number.

When $p_0$ and $p_T$ are incomparable, no such chain exists. However, a fixed ostinato with sorted note distribution $\omega$ over $k$ bins may satisfy

$$p_0 \otimes \omega \prec p_T \otimes \omega,$$

where $\otimes$ is the outer product. That product is exactly the co-occurrence profile of two statistically independent layers. In that case the combined two-layer texture admits a monotone path while the ostinato itself stays identical throughout.

The claim is both theoretical and empirical. The theoretical part is that this formulation brings exact feasibility tests into music control. The empirical part is that majorization-monotone plans, and their catalyzed versions, produce transitions that are measurably and audibly more coherent than scalar-attribute ramps.

Grounding in the Two Theory Literatures

Nielsen's theorem, which says a bipartite pure state converts deterministically under local operations exactly when its spectrum is majorized by the target's, makes majorization the operational order in quantum information. The catalysis papers supply our method. The existence of quantum entanglement catalysts gives an exact condition for 2-dimensional catalysts on 4-dimensional vectors and a polynomial-time existence test for any fixed catalyst size $k$. That test identifies hyperplanes where the sort order of the product vector changes. We reuse it directly to search for ostinato distributions with $k \le 4$. Because our $d$ is 12 or 16, the search is cheap.

Efficient entanglement-assisted transformation for bipartite pure states describes valid catalysts as a union of convex polyhedra. It also proves that a uniform vector can never catalyze anything, because scaling every entry equally leaves the curve crossings in place. This result constrains our design. It predicts that an ostinato spreading its notes evenly, for example an arpeggio cycling uniformly through $k$ pitches, cannot help, and that only weighted ostinati such as "root twice, fifth once" can. This is a sharp, falsifiable prediction for the music setting.

Multiple-copy entanglement transformation and entanglement catalysis supplies two further tools. One is necessary conditions from Rényi entropies, which are additive under the product and so cannot be changed by any catalyst. We use these as a fast infeasibility certificate that tells the user no ostinato can bridge a given pair. The other is the "no bound" result: the auxiliary size needed is unbounded across pairs. This warns that small ostinati will not cover every pair, so we report coverage honestly. The probabilistic catalysis work (When catalysis is useful for probabilistic entanglement transformation) suggests a later extension in which the chain need only hold approximately, but we leave it aside.

The research file found no prior work connecting this order theory to music generation. The occurrences of "majorization" in audio refer to majorization-minimization optimizers, which are unrelated.

Research Program

The work proceeds in three stages, and the first stage can kill the project cheaply.

Corpus study. On POP909, with its separated melody, bridge, and piano tracks and its beat annotations, and on AILabs.tw-Pop1K7, we compute per-bar onset and pitch-class profiles. We then ask two questions about human-composed music. First, are the bars spanning section boundaries (verse into chorus) majorization-monotone more often than under a shuffled-bar null? Second, when the profiles at the two ends of a transition cross, is the transition more often accompanied by a repeating accompaniment figure? If neither holds, the premise is aesthetically empty and we stop or retreat to Lorenz-curve control alone.

Shape-conditioned generator. We take the in-attention conditioning of MuseMorphose, which adds the condition embedding before every self-attention layer and was shown to hold long-range constraints better than input-only or output-only conditioning. We replace its scalar bins with the $d-1$ partial sums of the target Lorenz curve for each bar. At decoding time we draw several candidates per bar and keep one that satisfies the planned majorization inequalities. If none does, we keep the candidate closest in L1 distance. For two-layer generation we add an ostinato track in the style of METEOR's per-track control headers. That track is hard-constrained to repeat a pattern realizing $\omega$, which mirrors how METEOR hard-conditions its decoder on melody tokens.

Planner. Given source and target bars, the planner does one of three things. If the pair is comparable, it builds a monotone chain, for which linear interpolation of the sorted vectors suffices. If the pair crosses but passes the Rényi checks, it searches for an ostinato distribution $\omega$ with $k \le 4$ using the fixed-$k$ algorithm and then plans a monotone chain on the product profile. Otherwise it reports that no ostinato catalyst exists at that size. One must also check that the co-occurrence profile actually observed between generated layers is close to the product $p \otimes \omega$. Independence between the layers is an assumption, and we measure how much it fails.

Baselines

The naive reference is endpoint-only conditioning: the generator receives the source profile for the first bar and the target profile for the last bar and fills the bars between unconditioned. It shows what an unplanned transition looks like.

The strongest existing competitor is MuseMorphose's scalar control with linear ramps of its rhythmic-intensity and polyphony bins across bars. It reports Spearman correlations of 0.95 for rhythmic intensity and 0.88 for polyphony between requested and attained attributes on AILabs.tw-Pop1K7 (MuseMorphose), and it is the direct ancestor of our conditioning. For multi-track settings, METEOR's header control reports Spearman above 0.9 for track-level attributes and a melodic fidelity of 0.632 on SymphonyNet (METEOR). We use it as the strongest competitor for transitions that include an accompanying layer.

Two further baselines target the specific question. The first is latent interpolation in the VAE between source and target encodings. The second is an entropy ramp, in which a single entropy value per bar is the control target. Entropy is one Schur-concave summary of the distribution, so this baseline tests whether a full ordering is needed at all.

All systems are trained on the same splits of AILabs.tw-Pop1K7 and POP909, with the same backbone size and the same hyperparameter search budget. All receive the same best-of-N sampling budget per bar, so that our reranking is not an unfair advantage. Beating the baselines means two things. The first is a significantly lower rate of majorization violations between consecutive bars at equal or better perplexity and chroma similarity. The second is a significant human preference for transition coherence in paired listening tests.

Three ablations isolate the catalytic ingredient on crossing pairs. They replace the planned ostinato with a uniform ostinato of the same size, which theory says cannot help; with a random non-uniform ostinato of the same size; and with no ostinato. If the planned ostinato does not beat the random non-uniform one, the catalysis machinery adds nothing beyond simply "adding a repeating layer".

Why not just…?

Why not just ramp MuseMorphose's scalar attributes linearly? Its 0.95 and 0.88 Spearman values show that scalar control works, but a scalar cannot tell apart two bars with equal polyphony and different concentration shapes. The planner also has no way to know that a requested endpoint pair has crossing curves. The scalar-ramp baseline and the majorization-violation metric settle this. If ramped scalars already yield near-monotone chains and equal listener preference, our shape control is redundant, and we will say so.

Why not just control entropy, or several entropies? This is the most serious threat, because a single entropy summarizes most of what a listener may perceive. Majorization implies an ordering on every Rényi entropy at once, while a single entropy ramp can hide crossings. The entropy-ramp baseline tests whether this matters perceptually. Rényi entropies also cannot detect when a catalyst would help, since the catalyst changes all of them by the same amount. Entropy control therefore cannot reproduce the ostinato construction. That construction's value has to show up in the planned-versus-random ostinato ablation.

Why not just add any repeating accompaniment layer, as METEOR-style multi-track control or PopMAG's interleaved accompaniment already could? Any steady layer may smooth a transition by masking. The uniform and random ostinato ablations exist exactly to separate "any ostinato" from "an ostinato whose distribution makes the product orderable". A failure of the uniform ostinato, as predicted by Efficient entanglement-assisted transformation for bipartite pure states, combined with a win for the planned one, would be the evidence that the theory carries over.

Proposed Experiments

Corpus test. On POP909 section boundaries, the monotone-chain rate is compared against a shuffled-bar null. The rate of repeating-figure accompaniment is compared between crossing and non-crossing boundary pairs.

Control precision. On held-out AILabs.tw-Pop1K7 bars, we measure L1 error between requested and attained Lorenz curves, plus Spearman correlation on the derived scalar attributes, so that results can be compared with MuseMorphose's reported 0.95 and 0.88. We also measure perplexity and chroma similarity to check musical integrity.

Transitions. We sample 8-bar transitions between real verse and chorus bars, stratified into comparable pairs, crossing pairs that a $k \le 4$ ostinato can bridge, and crossing pairs that it cannot. For each stratum we report the majorization violation rate. We also report the deviation of the generated two-layer co-occurrence profile from $p \otimes \omega$, and catalyst coverage as a function of $k$, which the no-bound result predicts will stay below 100 percent.

Listening test. Paired listening tests on transition coherence and overall musicality compare our system against each baseline and ablation.

Decisive checks. The project's central claim survives only if three things hold. Human-composed transitions must be majorization-monotone above chance. The uniform ostinato must fail where the planned ostinato succeeds. Listeners must prefer planned transitions over entropy ramps on crossing pairs. Failing the first check ends the project. Failing only the third check leaves a narrower but still useful result: shape-level control with a feasibility certificate.