Fantastic Rewards and How to Tame Them: A Case Study on Reward Learning for Task-oriented Dialogue Systems

Yihao Feng, Shentao Yang, Shujian Zhang, Jianguo Zhang, Caiming Xiong, Mingyuan Zhou, Huan Wang

Abstract

When learning task-oriented dialogue (ToD) agents, reinforcement learning (RL) techniques can naturally be utilized to train dialogue strategies to achieve user-specific goals. Prior works mainly focus on adopting advanced RL techniques to train the ToD agents, while the design of the reward function is not well studied. This paper aims at answering the question of how to efficiently learn and leverage a reward function for training end-to-end (E2E) ToD agents. Specifically, we introduce two generalized objectives for reward-function learning, inspired by the classical learning-to-rank literature. Further, we utilize the learned reward function to guide the training of the E2E ToD agent. With the proposed techniques, we achieve competitive results on the E2E response-generation task on the Multiwoz 2.0 dataset.

Introduction

Task-oriented dialogue (ToD) systems are increasingly developed as end-to-end (E2E) models. While Reinforcement Learning (RL) is a natural fit for optimizing these agents toward specific goals, it faces a significant bottleneck: reward design. Most existing systems rely on sparse, binary rewards (e.g., success or failure at the end of a dialogue), making it difficult for agents to attribute success to specific turns. Previous attempts at learning dense reward functions often used simple pairwise comparisons, which fail to capture nuanced information. Additionally, applying RL to large language action spaces introduces high-variance gradients, leading to training instability.

Methods

The proposed framework consists of two main stages: Reward Learning and Reward Utilization.

Reward Learning

Moving beyond pairwise comparisons, the authors adopt "Learning-to-Rank" (LTR) objectives to process a list of $N$ dialogue trajectories simultaneously:

  • RewardNet: Utilizes a listwise cross-entropy loss. It trains a BART-base reward model to predict rewards that match the distribution of automatic evaluation scores across a batch of dialogues.
  • RewardMLE: A robust alternative that focuses on the ranking of dialogues rather than raw scores. It employs the Plackett-Luce model to maximize the likelihood of the observed ranking order.

Reward Utilization

To stabilize training in large action spaces, two techniques are introduced:

  • Gumbel-Softmax (GS) Trick: This makes the discrete word selection process differentiable, providing smoother, lower-variance gradient updates compared to standard estimators like REINFORCE.
  • Weighted Regularization: A penalty is added to keep the agent's behavior close to the original dataset distribution, weighted by the learned reward, preventing model "hallucination."
Overview of the proposed Reward Learning and Utilization framework.

Results and Analysis

The framework was evaluated on the MultiWOZ 2.0 and 2.1 datasets, including low-resource simulations (5%, 10%, and 20% data).

Performance and Efficiency

On MultiWOZ 2.0, the method achieved a state-of-the-art Combined Score of 106.83, outperforming previous reward-learning methods like CASPI (104.78) and supervised baselines like MinTL (97.78). Notably, the model trained on only 20% of the data performed competitively with standard models trained on the full dataset.

The Value of Listwise Ranking

A key insight is that comparing a whole batch of dialogues (listwise) provides a richer training signal than pairwise comparisons. As shown in the analysis of the RewardMLE objective, performance generally improves as the number of trajectories in the ranking list increases, allowing the model to better "triangulate" success factors.

Performance of RewardMLE as a function of the number of trajectories used in the listwise objective.

Conclusion

This work demonstrates that dense reward functions learned through listwise ranking objectives, combined with variance-reduction techniques like Gumbel-Softmax, can significantly improve E2E ToD agents. While the current reward model relies on automatic metrics for initial ranking, future work could integrate direct human feedback or extend these "tamed" RL techniques to other complex NLP tasks.

Summary updated

BibTeX
@inproceedings{feng2023fantastic,
  author = {Yihao Feng and Shentao Yang and Shujian Zhang and Jianguo Zhang and Caiming Xiong and Mingyuan Zhou and Huan Wang},
  title = {{Fantastic Rewards and How to Tame Them: A Case Study on Reward Learning for Task-oriented Dialogue Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=086pmarAris},
}
Figure