Abstract
Open-domain multi-turn conversations mainly have three features, which are hierarchical semantic structure, redundant information, and long-term dependency. Grounded on these, selecting relevant context becomes a challenge step for multi-turn dialogue generation. However, existing methods cannot differentiate both useful words and utterances in long distances from a response. Besides, previous work just performs context selection based on a state in the decoder, which lacks a global guidance and could lead some focuses on irrelevant or unnecessary information. In this paper, we propose a novel model with hierarchical self-attention mechanism and distant supervision to not only detect relevant words and utterances in short and long distances, but also discern related information globally when decoding. Experimental results on two public datasets of both automatic and human evaluations show that our model significantly outperforms other baselines in terms of fluency, coherence, and informativeness.
Introduction
In multi-turn open-domain dialogue, the conversational context is inherently hierarchical, with words forming utterances and utterances forming the overall dialogue history. These histories are often lengthy and contain significant amounts of redundant or irrelevant information. Generating a coherent response requires the model to identify long-term dependencies—referencing information from several turns back—while filtering out conversational noise.
Existing dialogue models often struggle with this context selection task. Many models only measure similarity at the utterance level, overlooking word-level nuances. Furthermore, most rely on local attention mechanisms that focus on the current decoder state, lacking a global perspective of the conversation's trajectory. This often leads to the generation of generic or inappropriate responses.
The HiSA-GDS Framework
To address these challenges, we introduce HiSA-GDS (Hierarchical Self-Attention and Globally Distant Supervision), a model that integrates hierarchical context processing with global training guidance.
Hierarchical Self-Attention Decoder (HiSA)
Unlike standard encoders that process utterances independently, the HiSA decoder is specifically designed to aggregate information hierarchically. It employs multiple sub-layers to capture different levels of detail:
- Word-Word Attention: Gathers relevant words within a single utterance.
- Utterance-level Self-Attention: Captures dependencies across different turns in the dialogue history.
- Word-Utterance Attention: Bridges the gap between specific words and the broader utterance context.
A fusion gate then combines these word-level and utterance-level signals, ensuring the decoder has a comprehensive view of the relevant context.
Globally Distant Supervision (GDS)
To prevent the model from becoming overly focused on local decoding steps, we introduce a global guidance signal. Since manual annotations for utterance importance are rarely available, we utilize off-the-shelf pre-trained sentence embedding models (such as InferSent for English and Familia for Chinese) to calculate the semantic similarity between each context utterance and the ground-truth response. This similarity serves as a "distant" supervision signal, guiding the model's attention toward globally relevant information. The training objective combines standard Maximum Likelihood Estimation (MLE) with Kullback-Leibler (KL) divergence to align model attention with these global scores.
Experimental Results
We evaluated HiSA-GDS on two large-scale datasets: the Ubuntu Dialogue Corpus (technical support) and the JD Customer Service Corpus (e-commerce).
Quantitative Performance
HiSA-GDS achieved state-of-the-art results across various metrics, including BLEU, Distinct (diversity), and Embedding-based coherence. On the Ubuntu dataset, HiSA-GDS nearly doubled the BLEU-2 score of the strongest baseline, ReCoSa.
Ablation Study and Human Evaluation
Ablation studies highlighted the critical role of global guidance. Removing the GDS component (the "HiSA" model) resulted in a significant performance drop, with Ubuntu BLEU-2 falling from 7.351 to 4.021. This confirms that global supervision is essential for effective context selection. Human evaluations further supported these findings, with annotators consistently rating HiSA-GDS higher for fluency, coherence, and informativeness compared to standard Transformer and HRED models.
Conclusion
HiSA-GDS effectively addresses the complexities of multi-turn dialogue by combining hierarchical attention with global supervision. By filtering noise and focusing on relevant information across both short and long distances, the model generates responses that are significantly more coherent and informative than previous state-of-the-art approaches.
Summary updated