Abstract
Developing agents to engage in complex goal-oriented dialogues is challenging partly because the main learning signals are very sparse in long conversations. In this paper, we propose a divide-and-conquer approach that discovers and exploits the hidden structure of the task to enable efficient policy learning. First, given successful example dialogues, we propose the Subgoal Discovery Network (SDN) to divide a complex goal-oriented task into a set of simpler subgoals in an unsupervised fashion. We then use these subgoals to learn a multi-level policy by hierarchical reinforcement learning. We demonstrate our method by building a dialogue agent for the composite task of travel planning. Experiments with simulated and real users show that our approach performs competitively against a state-of-the-art method that requires human-defined subgoals. Moreover, we show that the learned subgoals are often human comprehensible.
Introduction
Building AI agents capable of handling long, complex conversations—such as planning a multi-leg trip—is a significant challenge in natural language processing. Standard Reinforcement Learning (RL) often fails in these scenarios because reward signals are extremely sparse; an agent might only receive feedback after a 40-turn conversation. Hierarchical Reinforcement Learning (HRL) addresses this by decomposing tasks into subgoals, but traditionally, these subgoals must be manually defined by experts. This paper introduces the Subgoal Discovery Network (SDN) to automate this process, allowing agents to discover task structures directly from successful dialogue examples.
Methodology
The proposed framework consists of two primary components: automated subgoal discovery and hierarchical policy learning.
Subgoal Discovery Network (SDN)
The SDN identifies "hub states"—critical regions in the state space that successful dialogues frequently traverse. By segmenting dialogue trajectories at these hubs, the SDN defines logical milestones without human intervention. The architecture utilizes a dual-RNN setup: RNN2 encodes the full conversation history to initialize RNN1, which then models individual segments. This unsupervised approach captures the underlying causal structure of the task.
Hierarchical Reinforcement Learning (HRL)
Once subgoals are identified, a two-level policy is trained. A top-level policy selects the next subgoal, while a low-level policy executes primitive actions (e.g., requesting a date) to achieve it. The agent is motivated by intrinsic rewards for reaching subgoals and an extrinsic reward upon total task completion.
Experimental Results
The method was evaluated on a travel planning task using the Frames dataset. The researchers compared their automated approach (m-HRL) against a rule-based agent, a flat RL agent (DQN), and an expert-defined HRL agent (h-HRL).
Performance and Efficiency
In simulations, the m-HRL agent achieved a success rate of 64.55%, nearly matching the 64.85% success rate of the human-engineered h-HRL agent. Both HRL variants significantly outperformed the flat RL agent (44.40%) and demonstrated greater efficiency by requiring fewer turns to reach goals.
Human Evaluation
Tests with real users corroborated the simulation results. The m-HRL agent received significantly higher ratings than the flat RL agent. While expert-defined subgoals were perceived as slightly more "natural," the automated subgoals were equally effective for task completion and often aligned with human-logical transitions, such as the shift from flight to hotel booking.
Conclusion
The Subgoal Discovery Network successfully automates the "divide and conquer" strategy for complex dialogue tasks. By reaching performance parity with human-defined hierarchies, this approach removes a major bottleneck in scaling HRL agents. Future work may explore extending this to multi-level hierarchies and applying hub-based discovery to other domains with sparse rewards.
Summary updated