Skip to main navigation Skip to search Skip to main content

Empathizing Before Generation: A Double-Layered Framework for Emotional Support LLM

  • Jiahao Zhu
  • , Zijian Jiang
  • , Boyu Zhou
  • , Jionglong Su
  • , Jiaming Zhang
  • , Zhihao Li*
  • *Corresponding author for this work
    • Shantou University
    • Mind with Heart Robotics Co. Ltd
    • Chinese University of Hong Kong

    Research output: Chapter in Book or Report/Conference proceedingConference Proceedingpeer-review

    2 Citations (Scopus)

    Abstract

    Large Language Models (LLMs) have found extensive use across different applications due to its diverse capabilities and proficiency in executing instructions. In the case of chatbots, they are frequently required to show empathy when used in the context of emotional support. However, to date their performance is still not satisfactory due to the lack of deep understanding of user related issues. Hence, we introduce the Empathizing Before Generation (EBG), a two-step learning framework that allows LLMs to analyze the chain of thought (COT) prior to generating a response. This model also enables the inference of the 24 emotions conveyed in the user’s text as well as facilitates the generation of empathetic, high-quality and appropriate responses. We create a COT version of the dataset for sentiment inference by utilizing a publicly accessible sentiment dialogue. This dataset is then used as support for the training of two layers of EBG. Experiments indicate that models integrated with the EBG outperform other models in demonstrating empathy, with 98.2% and 92.8% accuracy in emotional attributes and labels respectively. Additionally, there is a notable enhancement in the model’s capacity to comprehend COT instructions, infer emotions, and generate answers that are more satisfactory than other models.

    Original languageEnglish
    Title of host publicationPattern Recognition and Computer Vision - 7th Chinese Conference, PRCV 2024, Proceedings
    EditorsZhouchen Lin, Hongbin Zha, Ming-Ming Cheng, Ran He, Cheng-Lin Liu, Kurban Ubul, Wushouer Silamu, Jie Zhou
    PublisherSpringer Science and Business Media Deutschland GmbH
    Pages490-503
    Number of pages14
    ISBN (Print)9789819784899
    DOIs
    Publication statusPublished - 2025
    Event7th Chinese Conference on Pattern Recognition and Computer Vision, PRCV 2024 - Urumqi, China
    Duration: 18 Oct 202420 Oct 2024

    Publication series

    NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
    Volume15032 LNCS
    ISSN (Print)0302-9743
    ISSN (Electronic)1611-3349

    Conference

    Conference7th Chinese Conference on Pattern Recognition and Computer Vision, PRCV 2024
    Country/TerritoryChina
    CityUrumqi
    Period18/10/2420/10/24

    Keywords

    • Chain of thought
    • Emotional support
    • Large language model

    Fingerprint

    Dive into the research topics of 'Empathizing Before Generation: A Double-Layered Framework for Emotional Support LLM'. Together they form a unique fingerprint.

    Cite this