arXiv:2501.10328cs.CL2025-01中稿 · SIGDIAL 2024被引 3

用关键词预测提升对话生成的可解释性

BoK: Introducing Bag-of-Keywords Loss for Interpretable Dialogue Response Generation

  • 通过预测响应中的关键词而非全部词汇,捕捉核心思想
  • 在DailyDialog和Persona-Chat上提升生成质量,同时支持事后可解释性
  • 可作为无需参考的评估指标,性能媲美顶尖方法

标准语言建模损失在对话建模中表现不足。为此,本文提出一种新型辅助损失——关键词袋(BoK)损失,通过预测下一句的关键词来捕捉响应的核心思想,从而增强开放域对话系统的生成效果与可解释性。相比传统的词袋(BoW)损失,BoK仅预测关键词汇,聚焦于语义核心。我们在T5(编码器-解码器)和DialoGPT(仅解码器)架构中引入BoK损失,并联合最小化BoK与语言模型损失(即BoK-LM)。在DailyDialog和Persona-Chat两个主流数据集上的实验表明,加入BoK损失能显著提升生成质量,并实现事后可解释性。此外,我们验证了BoK-LM损失作为无参考评估指标的有效性,在多个对话评估数据集上表现接近当前最优方法。

原文摘要 · Abstract (English)

The standard language modeling (LM) loss by itself has been shown to be inadequate for effective dialogue modeling. As a result, various training approaches, such as auxiliary loss functions and leveraging human feedback, are being adopted to enrich open-domain dialogue systems. One such auxiliary loss function is Bag-of-Words (BoW) loss, defined as the cross-entropy loss for predicting all the words/tokens of the next utterance. In this work, we propose a novel auxiliary loss named Bag-of-Keywords (BoK) loss to capture the central thought of the response through keyword prediction and leverage it to enhance the generation of meaningful and interpretable responses in open-domain dialogue systems. BoK loss upgrades the BoW loss by predicting only the keywords or critical words/tokens of the next utterance, intending to estimate the core idea rather than the entire response. We incorporate BoK loss in both encoder-decoder (T5) and decoder-only (DialoGPT) architecture and train the models to minimize the weighted sum of BoK and LM (BoK-LM) loss. We perform our experiments on two popular open-domain dialogue datasets, DailyDialog and Persona-Chat. We show that the inclusion of BoK loss improves the dialogue generation of backbone models while also enabling post-hoc interpretability. We also study the effectiveness of BoK-LM loss as a reference-free metric and observe comparable performance to the state-of-the-art metrics on various dialogue evaluation datasets.

对话生成可解释性关键词预测损失函数

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