arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.10558cs.CL
收藏

CORAL:用于训练对话生成模型的上下文响应可检索性损失函数

CORAL: Contextual Response Retrievability Loss Function for Training Dialog Generation Models

IIT Kharagpur(印度理工学院克勒格布尔分校);Microsoft R&D India(微软印度研发中心)

Bishal Santra, Ravi Ghadia, Manish Gupta, Pawan Goyal

AI总结:

针对对话生成中交叉熵损失忽略上下文且无法处理多有效响应的问题,提出基于强化学习的CORAL损失函数及混合策略训练算法,显著提升了模型性能。

摘要:

在自然语言处理领域,有许多任务可以使用交叉熵(CE)损失函数有效地解决。然而,对话生成任务对CE损失提出了独特的挑战。这是因为CE损失假设,对于任何给定的输入,唯一可能的输出是训练数据集中作为真实标签可用的那一个。但是,在对话生成中,(对于给定的上下文)可能有多个有效的响应,这些响应不仅具有不同的表面形式,而且可以在语义上不同。此外,对话生成任务的CE损失计算不考虑输入上下文,因此它在不考虑上下文的情况下对响应进行评分。为了评估生成响应的相关性、吸引力等质量,损失函数应该同时依赖于上下文和生成的响应。为了解决这些限制,本文提出了CORAL,一种基于对话生成任务强化学习(RL)视角的新型损失函数,其奖励函数在同时考虑上下文和响应的情况下估计人类对生成响应的偏好。此外,为了克服RL训练的高样本复杂度和巨大动作空间等挑战,我们提出了一种混合策略训练算法。值得注意的是,使用CORAL,我们可以训练对话生成模型,而无需假设真实标签是唯一正确的响应。在基准数据集上的广泛比较表明,基于CORAL的模型优于不同规模的强大最先进基线模型。

英文摘要:

In the field of Natural Language Processing, there are many tasks that can be tackled effectively using the cross-entropy (CE) loss function. However, the task of dialog generation poses unique challenges for CE loss. This is because CE loss assumes that, for any given input, the only possible output is the one available as the ground truth in the training dataset. But, in dialog generation, there can be multiple valid responses (for a given context) that not only have different surface forms but can also be semantically different. Furthermore, CE loss computation for the dialog generation task does not take the input context into consideration and, hence, it grades the response irrespective of the context. To grade the generated response for qualities like relevance, engagingness, etc., the loss function should depend on both the context and the generated response. To address these limitations, this paper proposes CORAL, a novel loss function based on a reinforcement learning (RL) view of the dialog generation task with a reward function that estimates human preference for generated responses while considering both the context and the response. Furthermore, to overcome challenges such as high sample complexity of RL training and a large action space, we propose a mix-policy training algorithm. Notably, using CORAL we can train dialog generation models without assuming the ground-truth as the only correct response. Extensive comparisons on benchmark datasets demonstrate that CORAL based models outperform strong state-of-the-art baseline models of different sizes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑