IntentDial: An Intent Graph based Multi-Turn Dialogue System with Reasoning Path Visualization

Zengguang Hao, Jie Zhang, Binxia Xu, Yafang Wang, Gerard de Melo, Xiaolong LiarXiv 2023 · DOI

Introduction

In modern conversational AI, understanding user intent is typically treated as a static classification task. While neural classifiers achieve high accuracy, they operate as "black boxes," offering little transparency into their decision-making process. This lack of interpretability makes debugging difficult and complicates system extensibility; adding a new service often requires relabeling data and retraining the entire model.

To address these challenges, researchers from Ant Financial and the University of Potsdam developed IntentDial. This system shifts the paradigm from intent classification to graph-based reasoning, utilizing a knowledge graph to map out user intents and providing a visualizable path of the system's logic.

System Architecture

IntentDial is designed to handle multi-turn dialogues by navigating a structured "Intent Graph." The architecture consists of three primary components: a Dialogue Encoder, an Intent Graph, and a Reinforcement Learning (RL) agent.

The Intent Graph and Dialogue Encoder

The Intent Graph serves as the system's knowledge base, where nodes represent specific intents (Standard Queries) or intent elements (attributes like "Credit Card" or "Limit"). To process user input, the system employs a sophisticated Dialogue Encoder:

  1. Embedding Layer: Maps text to vector representations.
  2. Sentence Encoding (Bi-GRU): Captures the semantic meaning of individual utterances.
  3. Context Encoding (Masked Self-Attention): Maintains a history of the conversation to ensure context is preserved across multiple turns.
The IntentDial system architecture, illustrating the interaction between the environment, the dialogue encoder, and the RL-based policy network.

RL-Based Reasoning

The core innovation of IntentDial is its use of Reinforcement Learning to navigate the graph. The system treats dialogue as a sequential decision process where an agent moves between nodes. Using the REINFORCE algorithm, the agent learns to select paths that lead to the correct intent. It receives incremental rewards for reaching "key nodes" (sub-intents) and a larger reward upon reaching the final, correct intent. This allows the system to ask clarifying questions when a user's initial query is ambiguous, effectively "walking" through the graph to gather missing information.

Reasoning Path Visualization

A defining feature of IntentDial is its ability to visualize the reasoning path in real-time. By mapping the agent's trajectory through the Intent Graph, developers can monitor how the system arrives at a specific conclusion. This transparency is invaluable for debugging; if the system consistently fails on a specific type of query, developers can identify exactly which node or edge in the graph is causing the deviation.

Visualization of reasoning paths for two case studies, demonstrating how the system navigates the intent graph to resolve user queries.

Implementation and Results

IntentDial has been deployed within the Ant Financial Services Group, supporting various intelligent customer service scenarios for financial products. Qualitative analysis through case studies demonstrates the system's effectiveness:

  • Standard Query Matching: For straightforward requests, the system identifies the direct path to the intent within a single turn.
  • Intent Element Matching: For complex or multi-step inquiries, the system successfully utilizes multi-turn dialogue to refine the search path until the correct intent is reached.

Conclusion

IntentDial provides a scalable and interpretable alternative to traditional intent classification. By combining the strengths of deep learning for natural language understanding with the symbolic reasoning of knowledge graphs, it offers a system that is both high-performing and transparent. Future work will focus on automating the construction of these intent graphs and developing platform-level tools to analyze reasoning paths across large-scale datasets to identify systemic interaction patterns.

Summary updated

BibTeX
@misc{hao2023intentdial,
  author = {Zengguang Hao and Jie Zhang and Binxia Xu and Yafang Wang and Gerard de Melo and Xiaolong Li},
  title = {{IntentDial: An Intent Graph based Multi-Turn Dialogue System with Reasoning Path Visualization}},
  year = {2023},
  eprint = {2310.11818},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11818},
}
Figure