APTNESS: Incorporating Appraisal Theory and Emotion Support Strategies for Empathetic Response Generation
The code for database generation can be found in the "database" folder. The entire process follows this sequence:
- generate_factor
- generate_situation
- stage1_generate
- stage2_generate
- stage3_generate
The library we used for training is Llama-factory (https://github.com/hiyouga/LLaMA-Factory).
bash evaluate_example.sh
The APTNESS framework consists of three parts: the generation of a empathetic response database with empathetic response appraisal theory, the retrieval augmentation module, and the integration of emotional support strategies module.
We introduce an empathetic emotional palette and use appraisal theory to decompose emotions, thereby generating a comprehensive empathetic response database. The generate procedure is a step-by-step manner: Generate the first utterance of an empathetic dialogue; Continue the dialogue to generate the whole empathetic dialogue; Rethink the emotion, the factor, and the situation of the dialogue, and then regenerate the last turn of the listener with an empathetic response.
First, generate an initial response using the large language model, and then retrieve the top-k relevant responses from the constructed empathetic database based on similarity.
Fine-tune the LoRA module integrated with emotional support strategies to introduce more conversational skills into LLMs, helping to improve their empathetic abilities in all aspects.
- The main evaluation metric
- Empathy: Assess how well the response understands and appropriately expresses recognition of the Speaker's feelings and experiences. psychological problems are reflected in the dialogues.
- Submetrics
- Coherence: Evaluate the relevance and logical connection of the response to the dialogue context.
- Informativity: Determine the richness and value of the information provided in the response.
- Identification: Rate the depth at which the response delves into the Speaker's situation and effectively identifies their problems.
- Comforting: Score the proficiency of the response in providing comfort and support.
- Suggestion: Rate the quality of the suggestions offered for addressing the Speaker's issues.
In this work, we adopt turn-based empathetic response evaluation. Specifically, for each dialogue
If you find our work helpful in your research, please cite the following paper:
This repo benefits from Llama-factory.