HiTKG: Towards Goal-Oriented Conversations via Multi-Hierarchy Learning

Jinjie Ni, Vlad Pandelea, Tom Young, Haicang Zhou, Erik Cambria

Introduction

Open-domain chatbots often struggle to maintain coherent, long-term conversation goals, resulting in aimless or reactive dialogue. Human conversations, by contrast, are naturally guided by a mix of short-term topics and long-term objectives. For instance, a discussion might transition from "Grilled Fish" to "Chinese Food" with the ultimate goal of suggesting a "Cinema."

Most existing dialogue systems simply react to the user's last message. While grounding systems in Knowledge Graphs (KGs) helps guide topics, current "KG walkers" face bottlenecks: recurrent models lose context, and graph-attention models are computationally expensive. Crucially, they lack global guidance to steer conversations toward specific end goals.

Methods: The HiTKG Framework

The authors propose HiTKG (Hierarchical Transformer-based Knowledge Graph Walker), which introduces a novel architectural and training paradigm to address these issues.

The HiTKG architecture featuring Multiscale Encoding, Hierarchical Attention-based Goal Decoder (HAGD), and Multi-source Dual-stage Interaction (MDI).

The framework relies on several key innovations:

  • Two-Hierarchy Learning: Training occurs in two stages. First, Supervised Learning (Stage 1) teaches the model to plan natural, short-term turn-level goals by mimicking human dialogue. Second, Reinforcement Learning (Stage 2) uses an Advantage Actor-Critic (A2C) framework to steer the conversation toward a global goal without sacrificing the naturalness learned previously.
  • MetaPath (MP) Representation: Unlike models that predict entities and relations separately, HiTKG uses MetaPath to embed and score them as a joint package, improving reasoning efficiency and reducing information loss.
  • Multiscale Inputs: Separate Transformer encoders process raw dialogue text (surface-level) and KG path history (logical flow), allowing the model to maintain a "table of contents" of the conversation.
  • Output-level Length Head (OLH): This mechanism predicts the number of hops for the next KG path, enhancing structural controllability.

Key Results

HiTKG was evaluated on the OpenDialKG dataset, a standard benchmark containing 15,000 dialogues annotated with KG paths.

Quantitative Performance

In turn-level planning (Stage 1), HiTKG significantly outperformed six state-of-the-art baselines, including DialKG Walker and AttnIO.

Performance comparison of HiTKG against baseline models across various Recall@k metrics, showing superior path and target entity prediction.

As shown in the results, HiTKG achieved a 13% relative improvement in path@25 and a 9% improvement in target entity correctness (tgt@25) compared to the strongest baselines.

Goal-Seeking via RL

The reinforcement learning phase (Stage 2) proved highly effective. The HiTKG-RL agent successfully reached a global goal 3 hops away in 66% of cases, compared to just 2% for the base model. While success rates decline as the goal distance increases, the model demonstrates a clear ability to subtly manipulate conversation flow toward a target.

Discussion and Future Work

Ablation studies confirmed that joint entity-relation scoring (MetaPath) and explicit path history are crucial for long-term planning. Human evaluations further indicated that while the RL model occasionally prioritizes the goal over absolute naturalness, it remains highly coherent and logical.

Future work will focus on refining the reward function to better penalize unnatural logical leaps and improving the model's ability to handle distant global goals (beyond 7 hops), where performance currently drops.

Summary updated

BibTeX
@inproceedings{ni2022hitkg,
  author = {Jinjie Ni and Vlad Pandelea and Tom Young and Haicang Zhou and Erik Cambria},
  title = {{HiTKG: Towards Goal-Oriented Conversations via Multi-Hierarchy Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21360},
}
Figure