LARA-Gen: Enabling Continuous Emotion Control for Music Generation Models via Latent Affective Representation Alignment

Jiahao Mei1,*, Shimeng Li1,*, Xuenan Xu2, Leyuan Jin1, Yixuan Yuan3
Zeyu Xie1, Zihao Zheng1, Ye Tao1, Yue Ding3,**, Mengyue Wu1,**
1X-LANCE Lab, Shanghai Jiao Tong University, China
2Shanghai AI Lab, China
3Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine, China

Abstract

Recent text-to-music models enable coherent music generation from text prompts, yet fine-grained emotional control remains unresolved. We introduce LARA-Gen, a framework for continuous emotion control trained with a Latent Affective Representation Alignment (LARA) loss that explicitly aligns the model’s hidden states with representations from an external music understanding model. 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 held-out test set and a robust Emotion Predictor for objective evaluation of emotional controllability. Experiments demonstrate that LARA-Gen achieves continuous, fine-grained emotion control and a favorable balance between emotion adherence and music quality.

Model Architecture

LARA-Gen Model Architecture

(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 Emotion Predictor. It uses a sliding window over MERT features and an Emotion Regression Head Rφ to produce a final valence-arousal prediction from given music.

Music Generation Comparison

Each row uses a ground-truth valence–arousal (V, A) pair from the MUSE-VA test set. LARA-Gen takes continuous emotion values as input (e.g., V: 6.20, A: 2.10), whereas Emotion Text Fine-tuning utilizes the corresponding emotion word from the ANEW lexicon as input (e.g., relaxed).

Emotional Prompt (V, A) Ground Truth Emotion Text Fine-tuning LARA-Gen