Organizations: X-LANCE Lab, Shanghai Jiao Tong University, China · Shanghai AI Lab, China · Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine, China
Recent advances in text-to-music models have enabled coherent music generation from text prompts, yet fine-grained emotional control remains unresolved. We introduce LARA-Gen, a framework for continuous emotion control that aligns the internal hidden states with an external music understanding model through Latent Affective Representation Alignment (LARA), enabling effective training. In addition, we design an emotion control module based on a continuous valence-arousal space, disentangling emotional attributes from textual content and bypassing the bottlenecks of text-based prompting. Furthermore, we establish a benchmark with a curated test set and a robust Emotion Predictor, facilitating objective evaluation of emotional controllability in music generation. Extensive experiments demonstrate that LARA-Gen achieves continuous, fine-grained control of emotion and significantly outperforms baselines in both emotion adherence and music quality. Generated samples are available at https://anonymous2232330.github.io/laragen-web/.
Figures & tables
Figure 1: (a) LARA-Gen framework. A Proxy Network Pθ aligns the internal hidden states H of the backbone model with target features Mˉ from a frozen MERT encoder. (b) The architecture of the Emotion Predictor. It uses a sliding window over MERT features and an Emotion Regression Head Rϕ to produce a final valence-arousal prediction from an input music clip.
Figure 2: Emotion values predicted by our Emotion Predictor vs. ground-truth emotion values on the MUSE-VA test set. The LARA-Gen system outperforms the InspireMusic baseline in both error and correlation.
Generation System
Prompt
Loss
FAD ↓
Pairwise L2 ↑
Arousal
Valence
CCC ↑
PCC ↑
RMSE ↓
CCC ↑
PCC ↑
RMSE ↓
Ground Truth
-
-
0.000
2.963
0.868
0.875
0.283
0.829
0.842
0.309
MusicGen
Text
-
3.060
2.743
0.092
0.153
0.676
0.129
0.190
0.623
InspireMusic
Text
-
3.325
3.454
0.060
0.083
0.673
0.044
0.058
0.659
ACE-Step
Text
-
5.198
1.858
0.088
0.214
0.622
0.064
0.133
0.656
Emotion Text Fine-tuning
Text
CE
2.153
2.947
0.795
0.816
0.340
0.700
0.763
0.401
Table 1: Emotional music generation performance on the MUSE-VA test set. Emotion consistency is evaluated by our proposed Emotion Predictor. Best and second-best results among generated systems are bold and underlined , respectively.
Generation System
OVL ↑
PCC ↑
Arousal
Valence
Ground Truth
3.90 ± 0.97
0.882 ∗∗∗
0.549 ∗
Text Fine-tuning
3.16 ± 1.07
0.709 ∗
0.613 ∗
LARA-Gen
3.47 ± 1.14
0.881 ∗∗∗
0.648 ∗
Table 2: Subjective evaluation results. Significance levels for PCC are denoted by asterisks ( ∗p<0.05 , ∗∗∗p<0.001 ). Best results among generated systems are highlighted in bold .
Recent generative music models offer increasingly fine-grained control through text and audio conditioning, yet how faithfully they follow intended emotional cues remains an open question. We address this gap with a unified evaluation pipeline for emotion-following in generated music. Using all 1000 tracks in GTZAN, we extract semantic audio descriptions with DashengLM, an audio captioning model, and estimate source-track valence and arousal with Music2Emotion, a music emotion recognition model. We construct affect-aware text prompts by combining descriptions with top-ranked emotion tags and generate 30-second outputs with three systems, Stable Audio Open, MusicGen, and InspireMusic, evaluating both text- and audio-conditioned generation. To measure emotion-following, we compute valence and arousal on generated audio and compare them with the source tracks using absolute error and Euclidean distance in valence-arousal space. Text-conditioned generation consistently outperforms audio conditioning, with MusicGen (text) and InspireMusic (text) achieving the best performance, while audio-conditioned variants prove less stable. We further find that valence is preserved more reliably than arousal and that emotion-following varies substantially across genres. These findings underscore the importance of evaluating affective controllability directly rather than relying solely on general quality or prompt-relevance metrics.
This paper investigates whether music large language models (MusicLLMs) can be aligned for emotion regression. While MusicLLMs have shown strong performance in music information retrieval tasks, their ability to predict arousal and valence scores remains limited, since emotion regression has not been an explicit training objective. To examine whether MusicLLMs can be aligned with emotion, we train MusicLLMs on emotion regression and compare two strategies: instruction tuning and feedback-driven alignment. Our experiments show that task-aware instruction tuning enables MusicLLMs to predict emotion levels to some extent, although the accuracy remains limited. Applying feedback-driven alignment with a verifiable numerical reward substantially improves performance on both arousal and valence over instruction tuning alone. We further show that our approach improves emotion regression performance while maintaining MusicQA capability.
Text and lyrics specify broad musical characteristics and sung content but offer limited control over musical timing, melody, and reference-based style. We introduce DiffSynth-Music (https://modelscope.cn/models/DiffSynth-Studio/DiffSynth-Music), a framework that adds composable audio conditioning to a music synthesis backbone through layer-wise key-value injection. The three template models, Control, Prosody, and Reference, are initialized from the backbone diffusion transformer and trained with conditional flow matching. They support five control types: beats, vocals, accompaniment, prosody, and reference audio. A shared variational autoencoder maps conditioning waveforms into a common latent space, enabling their attention memories to be combined. With the template timestep fixed at the clean-data endpoint and other inputs held constant, each control cache is computed once and reused throughout sampling. Training pairs are derived from music recordings using beat extraction, source separation, vocal resynthesis, and reference-excerpt selection. Single-control evaluations on Mandarin and English songs demonstrate improved adherence across all five control types and better lyric fidelity under vocal conditioning relative to the backbone. Automatic music-quality and instruction-following scores remain broadly comparable to those of the evaluated base models, with metric-specific trade-offs. We release the three template models to support research and creative applications in controllable music generation.