Systems that convert a piece of music from one genre to another without paired examples learn by round-tripping. A jazz phrase is turned into classical, turned back into jazz, and the model is penalized whenever the return trip fails to match the original. Every published music system of this kind compares the original and the round-tripped music cell by cell on a piano roll or spectrogram. That comparison treats an added grace note, a swung eighth, or a beat displaced by one sixteenth as an error, much as pixel error treats a slightly shifted image as a bad image. We argue that this one design choice explains two well-known weaknesses of these systems. They are deterministic, returning one output per input, and they are conservative, returning outputs that barely leave the input's grid.
We propose to replace the cell-by-cell round-trip check with a check that ignores small timing shifts and ornaments. The new check compares time-smoothed melody and harmony outlines rather than raw notes. We also give the translator a random style variable it can sample from, plus a few bar-level knobs that listeners can interpret, such as rhythmic density and number of simultaneous notes. In plain terms, one jazz phrase should yield many plausible classical renditions that a user can steer bar by bar, and the original tune should remain recognizable in all of them. The study is designed so that human listening tests, not the training loss, decide whether the tolerance helps.
Core Claim
In unpaired music translation, the distance used in the round-trip loss sets how much stylistic deviation the generator is allowed to produce. A distance that tolerates small shifts restores diversity and transfer strength when combined with a sampled style variable, and it does so without losing the tune, as judged by listeners rather than by automatic metrics. The claim can fail in a clear way. If the tolerant loss only lets the generator discard the melody, listeners will stop recognizing the source, and we will report that outcome.
Where This Sits
Three systems apply CycleGAN-style round-trip training to music, and each motivates the proposal. Symbolic Music Genre Transfer with CycleGAN maps binary 4-bar piano rolls between jazz, classical and pop using an L1 round-trip loss and extra "any genre" discriminators. TimbreTron does timbre transfer on constant-Q spectrograms, which are frequency maps with log-spaced bins so that a pitch shift becomes a vertical shift. CycleDRUMS maps bass spectrograms to drum spectrograms. All three are deterministic and use cell-wise round-trip losses. None exposes a user control.
Augmented CycleGAN supplies the method for stochasticity. It pairs each image with a sampled latent code and adds encoders that recover the lost code, so that the round trip can still close. It reports L1 reconstruction of 0.0698 against CycleGAN's 0.1837 on edges-to-shoes, and it was never applied to music. It still uses a pixel-level round-trip loss, and our proposal changes exactly that piece.
Perceptual Fidelity Aware Mean Squared Error supplies the idea for the tolerant distance. It low-pass filters images before taking squared error, which raised Spearman correlation with human scores on TID2008 from 0.7718 to 0.9162 while keeping the loss convex. We transplant that idea to the time axis of a symbolic representation. To our knowledge from the file, nobody has applied it to audio or music.
Two further papers supply the control method. MuseMorphose adds bar-level condition embeddings before every attention layer of a Transformer VAE. It reports Spearman steerability of 0.95 for rhythmic intensity and 0.88 for polyphony, but only within a single domain and with no cross-genre translation. Structured Multi-Track Accompaniment Arrangement via Style Prior Modelling shows that discrete style priors can separate texture from content.
One line of work constrains the design. SongEval and the FreeSound Loop benchmark both show that distribution metrics and spectrogram distances miss musical structure. Improving Automatic Jazz Melody Generation by Transfer Learning Techniques found that experts preferred outputs that scored worse on objective metrics. These results mean we cannot validate a tolerant loss using another automatic score, and the human study must be the arbiter.
Research Program
We work in the symbolic domain so that "content" can be defined exactly. The data comes from re-preprocessing the jazz, classical and pop MIDI collection used by the genre-CycleGAN paper (12,341, 16,545 and 20,780 files). Unlike that paper, we keep note velocity and note duration, which it discarded.
The generator $G_{A\to B}(a, z_b, c)$ takes three inputs:
- a source excerpt $a$;
- a Gaussian style code $z_b$;
- bar-level attributes $c$ (onset density and polyphony per bar), computed automatically from the data so that no labels are needed.
The style code is injected through conditional instance normalization, as in Augmented CycleGAN. The attributes are added to hidden states per bar, as in MuseMorphose's in-attention scheme. Encoders $E_A, E_B$ infer the style code from real music. The style code and the explicit attributes are kept apart by an adversarial filter in the spirit of Kawai et al., which removes attribute information from $z$ so that the knobs, and not the random code, govern density and polyphony.
The round-trip loss changes from cell-wise L1 to a tolerant distance:
$$\mathcal{L}_{\text{cyc}}(\sigma) = \big\| S_\sigma P(a) - S_\sigma P(\hat a) \big\|_2^2,$$
The symbols are defined as follows:
- $\hat a = G_{B\to A}(G_{A\to B}(a, z_b, c), E_A(a))$ is the round-tripped excerpt.
- $P$ projects a piano roll onto a content outline: the top-voice pitch contour plus a per-beat pitch-class (chroma) profile, so that octave doublings and inner-voice ornaments do not count.
- $S_\sigma$ is Gaussian smoothing along time with width $\sigma$ in sixteenth notes.
Setting $\sigma = 0$ with $P$ equal to the identity recovers the standard loss. Varying $\sigma$ gives a single dial that runs from strict to tolerant. The main analysis traces transfer strength, diversity, and human-rated tune recognizability as functions of $\sigma$.
Baselines
The naive reference is the identity map, which returns the input unchanged. It has perfect content preservation and zero transfer, and it anchors the trade-off curve. Any method whose listener recognizability scores fall far below the identity's while its transfer strength barely rises has failed.
The first existing baseline is a reimplementation of Symbolic Music Genre Transfer with CycleGAN. It is the direct prior system on this exact data. That paper reports transfer strength of nearly 70% for jazz–classical and 30–58% for transfers involving pop. We will first reproduce these numbers using its binary representation. We will then rerun it on our velocity-aware representation with the same classifier, the same training steps, and the same hyperparameter search budget as our model. Beating it means higher transfer strength at equal or better listener recognizability, plus nonzero diversity, which it cannot provide.
The second baseline is Augmented CycleGAN applied to piano rolls with the standard L1 round-trip loss. This is the ablation that isolates our key ingredient, since it differs from our model only in $\mathcal{L}_{\text{cyc}}$. If it matches our model on diversity and recognizability, the tolerant loss contributes nothing and the paper's claim is false. A second ablation keeps $S_\sigma$ but drops the projection $P$, and a third removes the attribute knobs, to separate smoothing, content projection, and control.
The strongest competitor that does not use round-trip training is a MuseMorphose-style conditional Transformer VAE. It is trained on all three genres pooled, with a genre token added to its bar-level conditions, and translation is done by encoding a source and decoding with the target genre token. This baseline already has steerable knobs and stochastic sampling, and it needs no pairs. It gets the same parameter count, data, and tuning budget. We will report its steerability against MuseMorphose's 0.95 and 0.88. Beating it means matching its steerability while achieving higher transfer strength or higher human genre ratings at equal recognizability.
For listening tests only, we include an audio foundation model, Simple and Controllable Music Generation. It receives the input rendered to audio together with a text prompt naming the target genre, and our outputs are rendered with the same synthesizer. No reported result was found on Lacuna for any foundation model on symbolic genre transfer, so this comparison is new measurement rather than a contest against a published number.
Why not just…?
Why not just prompt a music foundation model? The file describes these models as monolithic and steered only by imprecise text. Nothing in it shows they preserve a specific input melody or allow bar-level edits. That is a gap in evidence, not proof of failure, so we test it directly. If listeners rate the foundation model's outputs as equally recognizable and more genre-typical, the round-trip machinery is unnecessary for listening quality. In that case our contribution narrows to symbolic, editable output with per-bar knobs, and we would say so.
Why not just train a conditional VAE with a genre label and swap the label? This is the most serious threat. It is stochastic, it is controllable, and MuseMorphose shows its knobs work. Its likely weakness is leakage: an encoder trained to reconstruct carries genre texture inside the latent code, so swapping the label may change little, especially for pop, where the genre-CycleGAN paper already found pitch distributions overlap with jazz. The head-to-head comparison above settles this. If the label-swap VAE matches us on transfer strength and human genre ratings, we will report that round-trip training is not needed, and the tolerant-distance analysis stands on its own as a study of the VAE's reconstruction loss.
Why not just keep the L1 cycle loss, since Augmented CycleGAN already adds diversity? Augmented CycleGAN gives diversity through its sampled code. However, an L1 round trip still penalizes every displaced onset, which should push outputs toward the input grid. This reasoning follows the averaging argument behind PAMSE and the jazz-expert findings of Hung et al.. The $\sigma$ sweep with the second baseline tests this directly. The prediction is that, at $\sigma = 0$, pairwise sample diversity and the rate of ornaments (notes off the source's onset grid) are significantly lower than at a moderate $\sigma$, with recognizability unchanged.
Why not just create paired data by rendering? Rendering MIDI through different instruments produces pairs that differ in timbre, not genre. No collection pairs the same composition arranged as jazz and as classical. CycleDRUMS also reports that its paired pix2pix baseline produced incoherent output where unpaired training worked.
Proposed Experiments and Decisive Checks
All methods are evaluated on held-out 4-bar and 8-bar excerpts from each genre pair. Automatic measures are:
- transfer strength, using a genre classifier trained separately from any discriminator;
- content preservation, as melody-contour and chroma similarity to the source;
- diversity, as mean pairwise distance among ten samples drawn for the same input (no reported music-translation diversity result was found on Lacuna);
- steerability, as Spearman correlation between requested and realized per-bar density and polyphony.
The decisive evidence is a listening study with musically trained raters, run on matched excerpts rendered with one fixed synthesizer. Raters judge three things: whether the source tune is recognizable (a forced-choice match against distractor sources), how typical the output is of the target genre, and overall preference.
Three outcomes decide the claim. First, at the best $\sigma$, our model must beat the L1 ablation on human genre ratings and diversity without a significant drop in tune recognition. Second, the gain must hold against the label-swap VAE, especially on pop transfers. Third, as a check on metric gaming, we correlate each automatic score with the human ratings across all systems. If chroma similarity or classifier strength rewards outputs that listeners reject, which SongEval and the FreeSound Loop benchmark suggest is possible, the automatic results in our tables will be explicitly subordinated to the human ones. SongEval's evaluator targets full songs with vocals, so we do not use it as a metric for short instrumental excerpts.
References
- Symbolic Music Genre Transfer with CycleGAN
- TimbreTron: A WaveNet(CycleGAN(CQT(Audio))) Pipeline for Musical Timbre Transfer
- CycleDRUMS: automatic drum arrangement for bass lines using CycleGAN
- Augmented CycleGAN: Learning Many-to-Many Mappings from Unpaired Data
- Perceptual Fidelity Aware Mean Squared Error
- MuseMorphose: Full-Song and Fine-Grained Piano Music Style Transfer With One Transformer VAE
- Structured Multi-Track Accompaniment Arrangement via Style Prior Modelling
- SongEval: A Benchmark Dataset for Song Aesthetics Evaluation
- A Benchmarking Initiative for Audio-domain Music Generation using the FreeSound Loop Dataset
- Improving Automatic Jazz Melody Generation by Transfer Learning Techniques
- Attributes-Aware Deep Music Transformation
- Simple and Controllable Music Generation