arXiv:2507.08151cs.CL2025-07中稿 · SIGDIAL 2025被引 1

让小模型学会大模型的共情能力,提升人机交互体验。

Distilling Empathy from Large Language Models

  • 两步微调+针对性提示词,增强小模型共情生成能力。
  • 小模型共情回应胜率高达90%,比基础版本提升10%。
  • 适合资源受限场景下的智能助手、手机应用等部署。

将大型语言模型(LLMs)的知识蒸馏到小型语言模型(SLMs)中,可在保持性能的同时缩小模型规模,推动了LLMs的广泛应用。由于SLMs体积远小于LLMs,常用于智能手机等资源受限但需频繁人机交互的场景。因此,确保已嵌入LLMs中的共情能力在蒸馏后仍保留在SLMs中至关重要。本文提出一种全面的共情蒸馏方法,采用两步微调策略,充分利用从LLMs中蒸馏出的共情对话数据集。我们探索了超越基础直接提示的多种蒸馏方法,并设计了四组特定提示词以实现共情能力的定向增强,显著提升了蒸馏效果。评估表明,经两步微调与增强提示词训练的SLMs在生成共情回复方面显著优于基础SLMs,胜率高达90%;相比基础直接提示,目标共情增强提示使胜率提升10%。

原文摘要 · Abstract (English)

The distillation of knowledge from Large Language Models (LLMs) into Smaller Language Models (SLMs), preserving the capabilities and performance of LLMs while reducing model size, has played a key role in the proliferation of LLMs. Because SLMs are considerably smaller than LLMs, they are often utilized in domains where human interaction is frequent but resources are highly constrained, e.g., smart phones. Therefore, it is crucial to ensure that empathy, a fundamental aspect of positive human interactions, already instilled into LLMs, is retained by SLMs after distillation. In this paper, we develop a comprehensive approach for effective empathy distillation from LLMs into SLMs. Our approach features a two-step fine-tuning process that fully leverages datasets of empathetic dialogue responses distilled from LLMs. We explore several distillation methods beyond basic direct prompting and propose four unique sets of prompts for targeted empathy improvement to significantly enhance the empathy distillation process. Our evaluations demonstrate that SLMs fine-tuned through the two-step fine-tuning process with distillation datasets enhanced by the targeted empathy improvement prompts significantly outperform the base SLM at generating empathetic responses with a win rate of 90%. Our targeted empathy improvement prompts substantially outperform the basic direct prompting with a 10% improvement in win rate.

共情生成知识蒸馏小模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。