SECap: Speech Emotion Captioning with Large Language Model

Yaoxun Xu, Hangting Chen, Jianwei Yu, Qiaochu Huang, Zhiyong Wu, Shi-Xiong Zhang, Guangzhi Li, Yi Luo, Rongzhi Gu

Abstract

Traditional Speech Emotion Recognition (SER) often reduces complex human feelings to discrete labels like "happy" or "sad." This paper introduces Speech Emotion Captioning (SEC), a task that uses natural language to describe the nuances of emotion in speech. We present SECap, a framework that combines a HuBERT audio encoder with a LLaMA text decoder via a specialized "Bridge-Net." By utilizing novel disentanglement and alignment strategies, SECap generates descriptive captions that capture emotional intensity and fluctuations, achieving performance comparable to human annotators.

Introduction: Beyond Discrete Labels

Human emotion is multifaceted. A single word often fails to capture the subtle interplay of intensity and tone—for instance, a speaker might sound "frustrated yet restrained." Traditional SER treats emotion as a classification problem, which limits its ability to represent real-world nuances.

The proposed SEC task addresses two primary challenges: isolating emotional acoustic features from linguistic content and translating these features into fluent natural language. SECap solves this by focusing on "how" something is said rather than just "what" is said.

Methodology

The SECap framework employs an encoder-bridge-decoder architecture designed to process speech and generate text.

The SECap architecture, integrating a HuBERT audio encoder, a Q-Former-based Bridge-Net, and a LLaMA text decoder.

Core Components

  • Audio Encoder: Utilizes HuBERT, a powerful pre-trained model, to extract frame-level acoustic features from raw speech signals.
  • Bridge-Net (Q-Former): Inspired by the BLIP-2 architecture, this component uses a set of learnable "Q-queries" to compress high-dimensional audio features into a fixed-length representation suitable for a language model.
  • Text Decoder: Employs a Chinese-finetuned LLaMA model to interpret emotional embeddings and generate coherent, descriptive sentences.

Training Strategies

To ensure the model focuses on emotion rather than just transcribing the text, two novel strategies are introduced:

  1. Speech-Transcription Mutual Information Learning (STMIL): This module "disentangles" emotion from content by minimizing the correlation between speech features and the literal words spoken, forcing the model to prioritize prosodic cues like pitch and rhythm.
  2. Speech-Caption Contrastive Learning (SCCL): This aligns the audio features with descriptive captions in a shared latent space, ensuring that similar emotional "vibes" map to similar mathematical representations.

Experimental Setup and Results

The model was trained and evaluated on EMOSpeech, a dataset containing over 41 hours of speech with human-written descriptive captions. SECap was compared against a strong HTSAT-BART baseline and human performance.

Performance Metrics

SECap significantly outperformed the baseline across standard NLP metrics (BLEU, METEOR, CIDEr). Subjective evaluations further highlighted the model's effectiveness.

Mean Opinion Score (MOS) results showing SECap's performance relative to human baselines and other model variants.

As shown in the results, SECap achieved a Mean Opinion Score (MOS) of 3.77, nearly matching the human-written captions (3.85) and significantly exceeding the quality of simple human-provided emotion labels (3.39). This indicates that the generated captions are not only fluent but also highly representative of the actual emotional content.

Key Insights

  • Acoustic Priority: By disentangling content from emotion via STMIL, SECap avoids the "lexical bias" where a model might mislabel sarcastic speech based solely on positive words.
  • LLMs as Reasoning Engines: The use of LLaMA allows the system to "reason" about emotional intensity, leading to more naturalistic outputs than template-based or smaller encoder-decoder models.
  • Efficient Bridging: The Q-Former acts as a critical bottleneck, filtering acoustic noise and passing only the most relevant emotional signals to the LLM.

Conclusion and Future Work

SECap demonstrates that Large Language Models can be effectively adapted for nuanced speech tasks. While currently focused on Chinese speech, future work will explore cross-cultural emotional expressions and broader dataset diversity. The ability to generate human-like emotional descriptions opens new doors for more empathetic AI interactions.

Summary updated

BibTeX
@inproceedings{xu2024secap,
  author = {Yaoxun Xu and Hangting Chen and Jianwei Yu and Qiaochu Huang and Zhiyong Wu and Shi-Xiong Zhang and Guangzhi Li and Yi Luo and Rongzhi Gu},
  title = {{SECap: Speech Emotion Captioning with Large Language Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29902},
}
Figure