Efficient-Empathy: Towards Efficient and Effective Selection of Empathy Data

Linzhuang Sun, Hao Liang, Jingxuan Wei, Linkun Sun, Bihui Yu, Bin Cui, Wentao ZhangarXiv 2024

Abstract

In recent years, with the rapid advancements in large language models (LLMs), achieving excellent empathetic response capability has become a crucial prerequisite. Consequently, managing and understanding large-scale video datasets has gained increasing importance. However, empathetic data are typically trained without any quality selection, leading to inefficient data usage and wasted computational resources. Additionally, using raw data can result in low performance in empathetic dialogues. In this work, we present Efficient-Empathy, a sensibility and rationality score-based data selection algorithm that automatically selects sensibility and rationality data while discarding low-quality data. With only the sensibility data (59% of the full dataset), our trained sensibility model efficiently achieves state-of-the-art (SoTA) performance. Furthermore, with multiple data selection hyperparameters, the sensibility model demonstrates SoTA performance, showcasing the robustness of our method. By integrating sensibility and rationality data with a MoE structure, we achieve even higher performance, demonstrating the effectiveness of our Efficient-Empathy algorithm.

Introduction

As Large Language Models (LLMs) become central to human-AI interaction, empathy has transitioned from a niche feature to a core requirement. However, current approaches to training empathetic models face significant hurdles. Most models are fine-tuned on entire datasets without quality filtering, leading to low efficiency and wasted computational resources. Furthermore, previous research often overlooked the distinct roles of sensibility (emotional resonance) and rationality (logical reasoning) in empathy. A model that is purely emotional may feel generic or "fluffy," while a purely rational one can appear cold and robotic.

Efficient-Empathy addresses these issues by intelligently selecting data that balances these two traits, proving that "less is more" when it comes to emotional intelligence in LLMs.

Methodology

The Efficient-Empathy framework utilizes a three-stage pipeline designed to optimize both data quality and model architecture.

Data Selection and Scoring

The researchers utilized the EmpatheticDialogues (ED) dataset, the gold standard in the field containing 25,000 conversations. To refine this data, they employed ChatGPT to automatically rate dialogues on two scales (0–10):

  • Sensibility Score: Measures the focus on feelings, emotions, and personal experiences.
  • Rationality Score: Measures the focus on logical reasoning and practical considerations.

Based on these scores, the dataset was re-classified into specialized subsets: a Sensibility Dataset ($D_s$), a Rationality Dataset ($D_r$), and a Discard Dataset ($D_d$) for low-quality dialogues.

Domain Expert Training and Expert Mixing

Using LoRA (Low-Rank Adaptation), specialized "Sensibility Experts" and "Rationality Experts" were fine-tuned from a LLaMA3-8B-Instruct base. These experts were then integrated into a Mixture-of-Experts (MoE) architecture using a "Branch-Train-Mix" approach. A dynamic router layer determines the optimal weighting between experts for every token generated, allowing the model to adapt its tone based on the conversational context.

The Efficient-Empathy architecture, illustrating the Data Selection Module, Domain Expert Training, and the Expert Mixing Module with a dynamic router.

Results and Discussion

Quantitative Performance and Efficiency

One of the most significant findings was the effectiveness of data pruning. A model trained exclusively on the sensibility subset—comprising only 59% of the total data—outperformed models trained on the full 100%. This suggests that low-quality, purely rational data can act as noise in empathetic tasks. Overall, the MoE model achieved a BLEU-1 score of 23.04, setting a new state-of-the-art benchmark compared to previous models like MoEL and MIME.

Qualitative Analysis

Human evaluations confirmed that the MoE model provides superior coherence, empathy, and continuity. While sensibility provides warmth, rationality offers necessary "interactive guidance." For instance, in response to a user's concern, the MoE model can both validate the emotion and ask clarifying questions to deepen the engagement, avoiding the overly judgmental or generic responses seen in other models.

A qualitative comparison of responses from various LLMs. The MoE model demonstrates a balanced approach, combining the emotional validation of the Sensibility Expert with the practical context of the Rationality Expert.

Conclusion

Efficient-Empathy demonstrates that high-quality, targeted data selection combined with a modular MoE architecture significantly enhances the emotional intelligence of LLMs. By focusing on the synergy between sensibility and rationality, the framework achieves superior results with significantly less data. Future work will focus on reducing potential LLM bias in the scoring process and exploring more granular emotional categories to further refine expert specialization.

Summary updated

BibTeX
@misc{sun2024efficient,
  author = {Linzhuang Sun and Hao Liang and Jingxuan Wei and Linkun Sun and Bihui Yu and Bin Cui and Wentao Zhang},
  title = {{Efficient-Empathy: Towards Efficient and Effective Selection of Empathy Data}},
  year = {2024},
  eprint = {2407.01937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.01937},
}
Figure