TOOL-ED: Enhancing Empathetic Response Generation with the Tool Calling Capability of LLM
Huiying Cao, Yiqun Zhang, Shi Feng, Xiaocui Yang, Daling Wang, Yifei Zhang
TL;DR
The paper tackles the challenge of generating empathetic responses without succumbing to noise when integrating external knowledge. It introduces Emotional Knowledge Tool Calling (EKTC), a framework that treats commonsense knowledge bases as interchangeable tools and enables LLMs to autonomously decide when to call them during multi-turn dialogue. By constructing TOOL-ED from ED and fine-tuning models with LoRA on tool-use traces, EKTC improves empathetic understanding and generation across automatic, human, and LLM-based evaluations, while maintaining robustness to different tools. This work demonstrates that end-to-end tool learning can flexibly enrich empathetic dialogue with external knowledge while mitigating noise, enabling plug-and-play integration of diverse knowledge sources for practical deployment.
Abstract
Empathetic conversation is a crucial characteristic in daily conversations between individuals. Nowadays, Large Language models (LLMs) have shown outstanding performance in generating empathetic responses. Knowledge bases like COMET can assist LLMs in mitigating illusions and enhancing the understanding of users' intentions and emotions. However, models remain heavily reliant on fixed knowledge bases and unrestricted incorporation of external knowledge can introduce noise. Tool learning is a flexible end-to-end approach that assists LLMs in handling complex problems. In this paper, we propose Emotional Knowledge Tool Calling (EKTC) framework, which encapsulates the commonsense knowledge bases as empathetic tools, enabling LLMs to integrate external knowledge flexibly through tool calling. In order to adapt the models to the new task, we construct a novel dataset TOOL-ED based on the EMPATHETICMPATHETIC DIALOGUE (ED) dataset. We validate EKTC on the ED dataset, and the experimental results demonstrate that our framework can enhance the ability of LLMs to generate empathetic responses effectively.
