JoTR: A Joint Transformer and Reinforcement Learning Framework for Dialogue Policy Learning

Wai-Chung Kwan, Huimin Wang, Hongru Wang, Zezhong Wang, Bin Liang, Xian Wu, Yefeng Zheng, Kam-Fai WongCOLING 2024

Abstract

Dialogue policy learning (DPL) aims to determine an abstract representation (also known as action) to guide what the response should be. Typically, DPL is cast as a sequential decision problem across a series of predefined action candidates. However, such static and narrow actions can limit response diversity and impede the dialogue agent’s adaptability to new scenarios and edge cases. To overcome these challenges, we introduce a novel Joint Transformer Reinforcement Learning framework, coined as JoTR, where a text-to-text Transformer-based model is employed to directly generate dialogue actions. More concretely, JoTR formulates a token-grained policy, facilitating more dynamic and adaptable dialogue action generation without the need for predefined action candidates. This method not only enhances the diversity of responses but also significantly improves the system’s capability to manage unfamiliar scenarios. Furthermore, JoTR utilizes Reinforcement Learning with a reward-shaping mechanism to efficiently fine-tune the token-grained policy. Our extensive evaluation demonstrates that JoTR surpasses previous state-of-the-art models, showing improvements of 9% and 13% in success rate, and 34% and 37% in the diversity of dialogue actions across two benchmark dialogue modeling tasks respectively.

Introduction

In task-oriented dialogue systems, the Dialogue Policy acts as the central decision-making component, determining the agent's next move based on user input and system state. Traditionally, this has been treated as a classification problem where the agent selects an action from a static, predefined list. However, human conversation often involves multi-intent queries that static lists cannot easily accommodate without an exponential explosion of combinations. This rigidity often leads to agents ignoring parts of a user's request or failing in edge cases.

JoTR (Joint Transformer Reinforcement Learning) shifts this paradigm from a limited classification task to a flexible generation task. By using a Transformer to generate dialogue actions token-by-token, the framework allows for the composition of complex, multi-intent actions on the fly, significantly enhancing the adaptability and diversity of agent responses.

Methodology

JoTR treats Dialogue Policy Learning (DPL) as a text-to-text generation problem. The framework consists of several key components:

  1. Token-Grained Policy: Instead of selecting from a fixed set of actions, JoTR uses a Transformer decoder to generate actions as a sequence of tokens (e.g., [Attraction, Inform, Address, Phone]). This allows the model to "compose" custom actions dynamically.
  2. State Encoding: The model flattens the dialogue history, including the user’s last action, the system’s previous action, the current belief state, and database results, into a single text string. A Transformer encoder processes this into a rich state representation.
  3. Reinforcement Learning with Reward Shaping: To ensure generated actions are helpful, the model is fine-tuned using Proximal Policy Optimization (PPO). A novel reward-shaping mechanism provides a "bonus" for providing requested information and a penalty for irrelevant details, preventing "hallucinations" and improving training efficiency.
The JoTR framework architecture illustrating the flow from dialogue state text to token-grained action generation and RL fine-tuning.

Experimental Results

The framework was evaluated on two major benchmarks: MultiWOZ 2.0 (multi-domain dialogue) and SGD (Schema-Guided Dialogue for generalization).

Quantitative Performance

JoTR achieved a 93% success rate on MultiWOZ and 79% on SGD, significantly outperforming the previous state-of-the-art (JOIE). Notably, JoTR reached these results with far greater efficiency, requiring only 50k frames of training compared to the 400k frames needed by previous models.

Success rate curves over training frames for MultiWOZ and SGD datasets, comparing JoTR against various baselines.

Diversity and Efficiency

Beyond success rates, JoTR demonstrated superior behavioral diversity. It generated 34% more unique actions on MultiWOZ and 37% more on SGD compared to SimpleTOD. Furthermore, by packing multiple intents into a single turn, JoTR reduced the average conversation length from 18.90 turns (JOIE) to just 9.94 turns.

Discussion and Key Insights

  • Compositionality: Generating actions token-by-token allows JoTR to handle complex requests never explicitly seen in training by combining intents into a single turn.
  • The Pre-training Paradox: Interestingly, using a pre-trained BERT encoder performed worse than a smaller Transformer trained from scratch. This suggests that the structured "action language" (Domain-Intent-Slot) differs significantly from the natural language BERT was optimized for.
  • Proactive Behavior: The reward-shaping mechanism incentivized the model to provide likely-needed information (like phone numbers) even before explicit user requests, enhancing the user experience.

Conclusion

JoTR represents a significant step forward in dialogue policy learning by replacing rigid classification with flexible, token-grained generation. While it currently relies on an action interpreter to map text back to database queries, future work aims to move toward a fully end-to-end learned system to further reduce reliance on hand-coded rules.

Summary updated

BibTeX
@inproceedings{kwan2024jotr,
  author = {Wai-Chung Kwan and Huimin Wang and Hongru Wang and Zezhong Wang and Bin Liang and Xian Wu and Yefeng Zheng and Kam-Fai Wong},
  title = {{JoTR: A Joint Transformer and Reinforcement Learning Framework for Dialogue Policy Learning}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=4sPQwh8v6i},
}
Figure