Target-constrained Bidirectional Planning for Generation of Target-oriented Proactive Dialogue

Jian Wang, Dongding Lin, Wenjie Li

In the world of conversational AI, we’ve moved past simple chatbots that just answer questions. The next frontier is proactive dialogue: systems that don't just react, but actively lead a conversation toward a specific goal—like recommending a movie or introducing a new topic—without sounding like a pushy salesperson.

A recent paper from researchers at The Hong Kong Polytechnic University introduces TRIP (Target-constrained bIdirectional Planning), a novel framework designed to make these transitions smoother and more successful.

TL;DR

TRIP improves proactive dialogue by planning a conversation path from two directions simultaneously: looking forward from the current context and looking backward from the desired target. By ensuring these two paths agree, the system generates more natural, goal-oriented responses that significantly outperform existing models in reaching their objectives.

What Problem Does This Paper Address?

Most current dialogue systems are "passive"—they wait for user input and respond to it. Proactive systems, however, have a "target" (e.g., recommending the movie Dearest). The challenge is topic transition. If you're talking about your studies, and the AI suddenly says, "Watch this movie," it feels jarring and robotic.

Existing proactive models often suffer from "short-sightedness." They plan one step at a time (forward planning), which makes it easy to lose sight of the end goal. Conversely, if they only focus on the goal (backward planning), they might ignore the current conversation context. The gap lies in creating a plan that is both contextually relevant and guaranteed to hit the target.

Methods

The authors propose TRIP (Target-constrained bIdirectional Planning), inspired by cognitive science theories suggesting that humans "look ahead" and "look back" when making complex decisions.

1. The Bidirectional Planner

Instead of one decoder, TRIP uses two Transformer decoders:

  • Forward Decoder: Generates a path of <action, topic> pairs from the current context toward the target.
  • Backward Decoder: Generates a path from the target back toward the current context.

2. Bidirectional Agreement

To ensure consistency, the model is trained to minimize the "decision gap"—the mathematical distance between the representations of the forward and backward paths. During inference, a specialized target-constrained decoding algorithm ranks candidates based on how well the forward and backward views agree.

3. Contrastive Generation

To prevent the model from getting "distracted" by similar but incorrect topics, the authors use a contrastive loss. This forces the model to clearly distinguish the specific target topic from other "negative" topics in the knowledge base.

4. Dialogue Generation

Once the path is planned, the authors explore two ways to turn that plan into actual speech:

  • Prompt-based: The plan is fed into GPT-2 as a text prompt.
  • Plan-controlled: A more sophisticated "Plug-and-Play" approach where the plan acts as a controller, using gradients to shift the language model's internal states toward the planned attributes.

Datasets

The researchers re-purposed two major recommendation datasets:

  • DuRecDial: A Chinese multi-turn dialogue dataset.
  • DuRecDial 2.0: An English/Chinese bilingual dataset.

They modified these by automatically constructing "targets" based on the end-state of successful human conversations. They also created Out-Of-Domain (OOD) splits to test if the model could handle target topics it had never seen during training—a much harder and more realistic test.

Key Insights and Ideas

  • The Power of Hindsight: The backward planner is much better at leveraging target-side information, while the forward planner is better at maintaining coherence with the history. The "bidirectional agreement" acts as a bridge between these two strengths.
  • Planning as a Bottleneck: The results show that if the plan is good, even a standard language model like GPT-2 becomes significantly better at proactive dialogue. This suggests that the "intelligence" of proactive AI lies more in its strategic planning than its surface-level fluency.
  • Robustness in the Unknown: TRIP showed a remarkable ability to handle OOD topics. While baseline models' success rates plummeted when faced with new topics, TRIP remained relatively stable because its bidirectional logic is based on the structure of a good transition, not just memorizing specific topic sequences.

Key Results

TRIP was compared against several strong baselines, including MGCG, KERS, and TCP-Dial.

  • Goal Success Rate: On the DuRecDial dataset, TRIP achieved a success rate of ~77.5%, significantly higher than the previous state-of-the-art, TCP-Dial (~69.8%), and nearly double that of non-planning models like DialoGPT (~38.5%).
  • OOD Performance: In the challenging Out-Of-Domain test, TRIP maintained a ~79.8% success rate, while the best baseline (BART) sat at ~65.4% and others dropped below 20%.
  • Human Evaluation: Human judges rated TRIP higher in proactivity and coherence, confirming that the bidirectional planning leads to more natural-feeling conversations.

Limitations and Future Work

  • Error Propagation: Since this is a pipeline (Plan -> Generate), if the planner makes a mistake, the generation model is forced to follow a bad path. The authors suggest exploring "noisy channel models" to make the generation more robust to planning errors.
  • Scaling to LLMs: The current work uses BERT and GPT-2. The authors note that while Large Language Models (LLMs) are fluent, their internal planning capabilities are still being debated. Integrating TRIP’s bidirectional logic into massive models like GPT-4 or Llama-3 is a promising next step.
  • Adaptive Control: Currently, the model follows the plan with a fixed "strength." Future versions might benefit from adaptive control—knowing when to follow the plan strictly and when to deviate if the user brings up something unexpected.

Summary updated

BibTeX
@article{wang2024target,
  author = {Jian Wang and Dongding Lin and Wenjie Li},
  title = {{Target-constrained Bidirectional Planning for Generation of Target-oriented Proactive Dialogue}},
  journal = {ACM Transactions on Information Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=d7Ay9xJpa1},
}

Loading related content...

Figure