NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Addressing Emotion Bias in Music Emotion Recognition and Generation with Frechet Audio Distance

Yuanchao Li, Azalea Gui, Dimitra Emmanouilidou, Hannes GamperarXiv 2024

TL;DR

Music emotion recognition and generation systems are heavily bottlenecked by human subjectivity and model-specific biases. This paper tackles these challenges by introducing Fréchet Audio Distance (FAD) across multiple audio encoders as an objective, reference-free metric for musical emotion. Additionally, the authors propose a novel music generation model that blends discrete and continuous emotion controls to create music that is both emotionally expressive and naturally diverse.

What Problem Does This Paper Address?

Evaluating and generating emotion in music is notoriously difficult because musical perception is deeply subjective. Current Music Emotion Recognition (MER) and Emotional Music Generation (EMG) systems suffer from three main types of bias:

  1. Annotation Bias: Human labels vary wildly based on culture, context, and personal experience.
  2. Inductive Bias: Relying on a single audio encoder forces the system to inherit that specific model's training limitations.
  3. Conditioning Bias: In music generation, models typically use either rigid categorical labels (e.g., "sad," which lacks acoustic variety) or continuous values (e.g., Valence-Arousal coordinates, which often lead to muddy, ambiguous emotional expressions).

The authors aim to establish a more objective way to measure musical emotion and build a generation framework that avoids these common pitfalls.

Methods

The researchers split their approach into two main contributions: objective evaluation and enhanced generation.

1. Objective Evaluation via Multi-Encoder FAD

Instead of relying on human listeners or a single trained classifier to evaluate emotion, the authors adapt Fréchet Audio Distance (FAD)—a metric originally designed to evaluate audio enhancement quality. By calculating FAD across a diverse suite of audio encoders (including VGGish, CLAP, MERT, and various audio codecs), they create an ensemble-based, reference-free metric that quantifies how distinct different emotional categories are from one another.

2. Hybrid Emotional Music Generation (EMG)

To fix the trade-off between emotional clarity and natural variation, the authors propose a hybrid conditioning mechanism.

As shown in the architecture below, the model takes both discrete quadrant labels (from Russell's circumplex model of emotion) and continuous Valence-Arousal (VA) values, encoding them through separate linear layers.

Proposed EMG model and emotion conditioning principles

These embeddings are combined using a weighted sum: $$\text{Emotion} = wgt_q \cdot \text{embd}_q + (1 - wgt_q) \cdot \text{embd}_{va}$$

This hybrid embedding is then fused with the music embeddings using a cross-attention mechanism, ensuring the emotion signal naturally guides the underlying Music Transformer backbone.

Datasets

The study leverages four distinct datasets to ensure broad generalizability:

  • Emomusic: 744 music excerpts annotated with continuous two-dimensional Valence-Arousal (VA) labels.
  • MMirex: 903 audio samples categorized into five distinct mood clusters.
  • EMOPIA: 1,087 piano solo clips categorized into Russell's four emotional quadrants (used as the real-world reference dataset for generation).
  • Lakh-Spotify (Lakh Pianoroll 5 full dataset): Used as the training corpus for the Music Transformer backbone.

Key Insights and Ideas

  • The "Language" of Music: Encoders trained with contrastive audio-language objectives (like CLAP) significantly outperformed models trained on raw audio similarity (like CDPAM) in emotion recognition tasks. This strongly implies that musical segments carry contextual, language-like structures that map directly to human emotion.
  • Valence vs. Arousal: Across all tested models, valence (positive vs. negative emotion) proved far more difficult to predict than arousal (high vs. low energy). Arousal maps cleanly to low-level features like tempo and energy, whereas valence requires deeper, layer-wise musical context (see layer-wise analysis in Figure 1).
  • Compression Kills Nuance: Audio codecs designed for high compression (such as DAC and EnCodec) performed poorly on emotion recognition, proving that aggressive data compression discards subtle acoustic features essential for emotional expression.

Key Results

The authors benchmarked 12 layers of MERT alongside several state-of-the-art encoders for the MER task, finding that CLAP-based models consistently achieved top performance.

Fig. 1. Comparison results of MER using different audio encoders on Emomusic and MMirex. ↑: the higher the better. Bold: best performance.

For music generation, the authors compared their hybrid model against two baselines: EmoGen (discrete-only) and MIDIEmo (continuous-only). Using FAD scores against real-world music (EMOPIA), their model achieved a superior balance:

FAD Comparison Table
  • EmoGen produced overly exaggerated, unnatural emotional distances (e.g., a massive FAD of 74.64 for Q2_Q3).
  • MIDIEmo suffered from emotional ambiguity.
  • The Proposed Model closely mirrored the FAD profile of real human-made music, demonstrating significantly higher realism while maintaining distinct emotional boundaries.

Limitations and Future Work

The authors note that separating music sets based on purely continuous values remains a challenge, which is why they restricted their FAD evaluation to discrete quadrant boundaries. Additionally, while the model successfully balances emotional prominence and variability, the current implementation relies on a fixed weight ($wgt_q = 0.5$) to balance the discrete and continuous embeddings; dynamically adjusting this weight based on the target style or genre remains an open area for future exploration.

Summary updated

BibTeX
@misc{li2024addressing,
  author = {Yuanchao Li and Azalea Gui and Dimitra Emmanouilidou and Hannes Gamper},
  title = {{Addressing Emotion Bias in Music Emotion Recognition and Generation with Frechet Audio Distance}},
  year = {2024},
  eprint = {2409.15545},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.15545},
}

Loading related content...

Figure