JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and Aesthetic Alignment

Renhang Liu, Chia-Yu Hung, Navonil Majumder, Taylor Gautreaux, Amir Ali Bagherzadeh, Chuan Li, Dorien Herremans, Soujanya PoriaarXiv 2025

Abstract

Diffusion and flow-matching models have revolutionized automatic text-to-audio generation in recent times. These models are increasingly capable of generating high quality and faithful audio outputs capturing speech and acoustic events. However, there is still much room for improvement in creative audio generation that primarily involves music and songs. Recent open lyrics-to-song models, such as DiffRhythm, ACE-Step, and LeVo, have set an acceptable standard in automatic song generation for recreational use. However, these models lack fine-grained word-level controllability often desired by musicians in their workflows. To the best of our knowledge, our flow-matching-based JAM is the first effort toward endowing word-level timing and duration control in song generation, allowing fine-grained vocal control. To enhance the quality of generated songs to better align with human preferences, we implement aesthetic alignment through Direct Preference Optimization (DPO), which iteratively refines the model using a synthetic dataset, eliminating the need for manual data annotations. Furthermore, we aim to standardize the evaluation of such lyrics-to-song models through our public evaluation dataset JAME. We show that JAM outperforms the existing models in terms of music-specific attributes.

Introduction

While AI music generation has made massive strides, current "lyrics-to-song" models suffer from three primary limitations: a lack of fine-grained control, frequent lyric drift (misalignment or skipping words), and high resource intensity. Leading models like YuE often exceed 7B parameters, making them computationally expensive and difficult to iterate upon.

JAM (Joint Audio-lyrics Model) addresses these challenges by proving that a compact, 530M-parameter model can deliver superior results. By focusing on fine-grained controllability and aesthetic alignment with human preferences, JAM achieves state-of-the-art musical quality and significantly better lyric fidelity than models ten times its size.

The JAM Architecture

JAM utilizes a conditional flow-matching framework built on a 16-layer LLaMA-style Transformer (Diffusion Transformer or DiT backbone). Unlike standard diffusion, JAM employs rectified flows to learn straight-line trajectories from noise to data, resulting in faster and more stable sampling.

The JAM architecture overview, highlighting the flow-matching backbone and the iterative DPO training pipeline.

Fine-grained Control and Alignment

Its core innovations include:

  • Word-Level Conditioning: The model accepts start and end times for individual words and phonemes, allowing users to "conduct" the vocal performance precisely.
  • Temporally-aware Phoneme Alignment: An "Average Sparse" method distributes phonemes within a word's time slot, producing natural-sounding transitions compared to standard padding methods.
  • Token-Level Duration Control (TDC): A novel mechanism using a learnable bias ensures the model stops generating music at the requested time, preventing hallucinated instrumental tails.
  • Iterative DPO: To improve musicality, JAM undergoes three rounds of self-improvement. It generates multiple versions of a song, uses an automated evaluator (SongEval) to score them, and fine-tunes itself to prefer higher-scoring versions.

Datasets and Benchmarking

JAM was trained on a massive internal dataset of approximately 1 million English songs (54,000 hours), with vocal and accompaniment tracks separated. To standardize evaluation, the authors introduced JAME (JAM Evaluation), a benchmark of 250 tracks released after May 2025. This ensures "zero-shot" evaluation, as none of the baseline models could have seen this data during training. JAME covers five diverse genres: Country/Folk, Electronic/Dance, Hip-Hop/Rap, R&B/Soul/Jazz, and Rock/Metal.

Key Results

JAM demonstrates that size is not the primary determinant of quality in specialized audio tasks. Despite having only 530M parameters, it consistently outperforms the 7B-parameter YuE in both lyric fidelity and musicality.

Performance comparison of JAM against larger baselines, demonstrating superior lyrical fidelity (WER) and musical quality (MuQ).
  • Lyric Fidelity: JAM achieved a Word Error Rate (WER) of 0.151, which is more than 3x better than the previous state-of-the-art (DiffRhythm at 0.348).
  • Musical Quality: In subjective human evaluations, JAM was preferred over baselines in categories like "Enjoyment," "Musicality," and "Song Structure Clarity."
  • Aesthetic Gains: Each round of DPO showed measurable gains in production quality and melodic expression, acting as a filter to teach the model to emulate the best-produced examples in its training set.

Discussion and Future Work

JAM's success suggests that precise conditioning is more important than raw parameter count for song generation. However, the model currently depends on precise word-level timestamps, which may be difficult for non-experts to provide. Future work aims to build an end-to-end trainable duration predictor to estimate timings directly from lyrics and melody hints, making the tool more accessible to hobbyists. Additionally, while DPO improves aesthetics, researchers noted a slight increase in Frechet Audio Distance (FAD), suggesting a trade-off between the "natural" distribution of training data and an "idealized" musical sound.

Summary updated

BibTeX
@misc{liu2025jam,
  author = {Renhang Liu and Chia-Yu Hung and Navonil Majumder and Taylor Gautreaux and Amir Ali Bagherzadeh and Chuan Li and Dorien Herremans and Soujanya Poria},
  title = {{JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and Aesthetic Alignment}},
  year = {2025},
  eprint = {2507.20880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20880},
}
Figure