LongEmotion: Measuring Emotional Intelligence of Large Language Models in Long-Context Interaction

Weichu Liu, Jing Xiong, Yuxuan Hu, Zixuan Li, Minghuan Tan, Ningning Mao, Chenyang Zhao, Zhongwei Wan, Chaofan Tao, Wendong Xu, Hui Shen, Chengming Li, Lingpeng Kong, Ngai Wong · Submission to ICLR 2026 · Withdrawn

TL;DR

LongEmotion is a benchmark designed to evaluate how large language models handle Emotional Intelligence (EI) across lengthy, noisy, real-world contexts (averaging ~8,800 tokens). To overcome long-context degradation, the authors introduce Collaborative Emotional Modeling (CoEM), a multi-agent framework that dynamically retrieves, enriches, and re-ranks emotional context to boost performance across diverse affective tasks.

What Problem Does This Paper Address?

While modern LLMs excel at short-prompt emotion recognition, real-world emotional interactions—such as multi-session mental health counseling or extended personal narratives—are lengthy, temporally dispersed, and filled with conversational noise.

Existing affective benchmarks (e.g., EmoBench, EQ-Bench) primarily test short, isolated queries or synthetic dialogues. They fail to evaluate whether an LLM can:

  1. Maintain emotional continuity across thousands of tokens,
  2. Filter subtle affective needles from noisy conversational haystacks, or
  3. Produce structured, long-form emotional self-reflections.

Methods

The authors evaluate models under three operating settings:

  • Base: Standard direct zero-shot/few-shot prompting.
  • In-Context RAG: Instead of querying an external document corpus, this approach treats the conversation history itself as a dynamic vector store. Chunks are embedded and retrieved using dense similarity (bge-m3) to surface relevant prior dialogue turns.
  • Collaborative Emotional Modeling (CoEM): A five-stage multi-agent framework:
  • Chunking: Splitting extended context into token-bounded spans.
  • Initial Ranking: Dense cosine-similarity ranking of chunks against the user query.
  • Multi-Agent Enrichment: An auxiliary reasoning agent (CoEM-Sage, such as GPT-4o or DeepSeek-V3) injects external psychological cues, emotional summaries, or affective appraisals into the top chunks.
  • Re-Ranking: Re-evaluating enriched chunks for affective and factual coherence.
  • Emotional Ensemble Generation: The target model (CoEM-Core) synthesizes the final response from the enriched context.
Long Context ──> Chunking ──> Initial Ranking ──> Sage Enrichment ──> Re-Ranking ──> Core Generation

Datasets

The authors construct LongEmotion, comprising six complementary tasks spanning three functional categories:

  • Emotional Recognition (Reasoning & Inference):
  • Emotion Classification (EC): Classifying target emotion embedded inside BookCorpus filler text (avg. 16,691 tokens).
  • Emotion Detection (ED): Identifying an odd-one-out emotional snippet among $N$ homogeneous segments from Covid-worry data (avg. 4,106 tokens).
  • Emotional Knowledge (Summarization & Knowledge):
  • Emotion QA (QA): Answering expert-annotated questions grounded in psychological literature (avg. 11,207 tokens; F1 metric).
  • Emotion Summary (ES): Summarizing 5 clinical dimensions (causes, symptoms, treatment process, characteristics, effects) from counseling transcripts (avg. 3,129 tokens).
  • Emotional Generation (Empathy & Expression):
  • Emotion Conversation (MC): Generating counseling dialogue responses across 4 clinical therapy stages (avg. 4,856 tokens).
  • Emotion Expression (EE): Generating long-form emotional self-narratives and PANAS psychometric self-assessments (avg. output: 8,546 tokens).

Key Insights and Ideas

  • External injection helps reasoning, but hurts strict context grounding: CoEM produced substantial gains on noise-heavy reasoning tasks (Classification and Detection). However, on Emotion QA and Emotion Summary, injecting external psychological concepts introduced conflicting facts or noise, causing performance drops compared to clean RAG.
  • Reasoning models ("thinking" traces) cut through long-context noise: Ablations on Qwen3 series models revealed that enabling explicit chain-of-thought reasoning significantly improved noisy emotion classification (e.g., Qwen3-8B jumped +9.83 points on EC).
  • The Clinical Advice vs. Empathy Trade-off: Qualitative analysis revealed stark persona trade-offs:
  • GPT-5 acted like an overly mechanical clinician—strong on theoretical advice, but lacking warmth.
  • GPT-4o-mini produced highly conversational, empathetic outputs, but lacked clinical and psychological rigor.
  • GPT-4o struck the best middle ground between affective connection and structured guidance.

Key Results

Experiments evaluated frontier proprietary models (GPT-4o, GPT-4o-mini, GPT-5) and open weights (DeepSeek-V3, Qwen3-8B/14B/32B, Llama-3.1-8B-Instruct):

  • Classification Improvements: On Emotion Classification, RAG and CoEM drove massive recoveries from needle-in-a-haystack degradation. For example, GPT-4o-mini rose from 28.50% (Base) to 38.33% (RAG) and 48.00% (CoEM); DeepSeek-V3 jumped from 44.00% (Base) to 54.33% (CoEM).
  • Counseling Generation (MC-4): Open-source models proved exceptionally competitive against commercial models. DeepSeek-V3 scored 4.34/5.0 under CoEM, outperforming GPT-4o's 3.81/5.0. GPT-5 achieved 4.67/5.0 under Base.
  • Long-Context Robustness: In context spans above 24k tokens, 8B-scale base models (e.g., Llama-3.1-8B) experienced steep accuracy drops, whereas DeepSeek-V3 and GPT-4o remained relatively stable.

Limitations and Future Work

  • Subjectivity and Low Human Agreement: In the human evaluation of the multi-stage counseling dialogues, the inter-annotator agreement (Fleiss’ Kappa) was near zero or negative across several therapeutic metrics, highlighting how subjective clinical empathy evaluations remain.
  • Heavy Reliance on LLM-as-a-Judge: Several generation tasks rely on GPT-4o for scoring, which introduces potential model self-preference and alignment biases.
  • Context Retrieval Interference: Because CoEM appends multi-agent reasoning directly into the retrieved passages, it risks introducing hallucinations when an exact reference extraction is required. Refining selective gating mechanisms for external knowledge remains an open challenge.

Summary updated

Abstract

Large language models (LLMs) make significant progress in Emotional Intelligence (EI) and long-context understanding. However, existing benchmarks tend to overlook certain aspects of EI in long-context scenarios, especially under $\textit{realistic, practical settings}$ where interactions are lengthy, diverse, and often noisy. To move towards such realistic settings, we present $\textit{LongEmotion}$, a benchmark specifically designed for long-context EI tasks. It covers a diverse set of tasks, including $\textbf{Emotion Classification}$, $\textbf{Emotion Detection}$, $\textbf{Emotion QA}$, $\textbf{Emotion Conversation}$, $\textbf{Emotion Summary}$, and $\textbf{Emotion Expression}$. On average, the input length for these tasks reaches 8${,}$777 tokens, with long-form generation required for $\textit{Emotion Expression}$. To enhance performance under realistic constraints, we incorporate Retrieval-Augmented Generation ($\textit{RAG}$) and Collaborative Emotional Modeling ($\textit{CoEM}$), and compare them with standard prompt-based methods. Unlike conventional approaches, our $\textit{RAG}$ method leverages both the conversation context and the large language model itself as retrieval sources, avoiding reliance on external knowledge bases. The $\textit{CoEM}$ method further improves performance by decomposing the task into five stages, integrating both retrieval augmentation and limited knowledge injection. Experimental results show that both $\textit{RAG}$ and $\textit{CoEM}$ consistently enhance EI-related performance across most long-context tasks, advancing LLMs toward more $\textit{practical and real-world EI applications}$. Furthermore, we conduct a detailed case study on the performance comparison among GPT series models, the application of CoEM in each stage and its impact on task scores, and the advantages of the LongEmotion dataset in advancing EI. All of our code and datasets will be open-sourced, which can be viewed at the anonymous repository link https://anonymous.4open.science/r/anonymous-578B.
BibTeX
@misc{liu2025longemotion,
  author = {Weichu Liu and Jing Xiong and Yuxuan Hu and Zixuan Li and Minghuan Tan and Ningning Mao and Chenyang Zhao and Zhongwei Wan and Chaofan Tao and Wendong XU and Hui Shen and Chengming Li and Lingpeng Kong and Ngai Wong},
  title = {{LongEmotion: Measuring Emotional Intelligence of Large Language Models in Long-Context Interaction}},
  year = {2025},
  eprint = {2509.07403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07403},
}
Figure