TL;DR
Multi-turn open-domain dialogue generation often struggles with long conversational contexts full of irrelevant information. This paper introduces HiSA-GDS, a novel Transformer-based model that uses hierarchical self-attention and globally distant supervision to filter out noise and select the most relevant words and utterances. By guiding the decoding process with a global perspective rather than just local word-by-word guesses, it significantly improves the fluency, coherence, and informativeness of generated responses.
What Problem Does This Paper Address?
In multi-turn conversations, the context (the user's query plus all previous back-and-forth utterances) is inherently hierarchical: words make up utterances, and utterances make up the context. Furthermore, these chat histories are often long, filled with redundant or irrelevant information, and feature long-term dependencies where a response might need to reference something said five turns ago.
Existing dialogue models struggle with Context Selection—figuring out what part of the history actually matters. Previous approaches generally fall into two traps:
- They only measure similarity at the utterance level, missing crucial word-level nuances.
- They use local attention mechanisms that only look at the current state of the decoder. Because they lack a "global" view of the conversation, they often latch onto irrelevant context and generate inappropriate or generic responses.
Methods
To solve this, the authors propose HiSA-GDS (Hierarchical Self-Attention and Globally Distant Supervision), which modifies the standard Transformer architecture and its training process.
- Hierarchical Self-Attention Decoder (HiSA): While the encoder processes each utterance independently, the decoder is heavily modified. It features five sub-layers designed to aggregate information hierarchically. It uses a word-word attention layer to gather relevant words within an utterance, an utterance-level self-attention layer to capture long-term dependencies across different turns, and a word-utterance attention layer. A fusion gate then combines the selected word-level and utterance-level information.
- Globally Distant Supervision (GDS): To prevent the decoder from getting lost locally, the authors introduce a global guidance signal during training. Because there are no manual annotations telling the model which past utterances are important, they use off-the-shelf, pre-trained sentence embedding models (InferSent for English, Familia for Chinese) to measure the semantic similarity between each context utterance and the actual ground-truth response.
- Training Objective: The model is trained end-to-end using a combined loss function. It uses standard Maximum Likelihood Estimation (MLE) for local token generation, Kullback-Leibler (KL) divergence to align the model's attention with the GDS similarity scores, and Maximum Causal Entropy (MCE) to smooth out any noise caused by imperfect distant supervision.
Datasets
The authors evaluate their model on two large-scale, public multi-turn dialogue datasets:
- Ubuntu Dialogue Corpus (Ubuntu): An English dataset consisting of multi-turn technical support conversations.
- JD Customer Service Corpus (JDDC): A Chinese dataset featuring multi-turn e-commerce customer service chats.
Key Insights and Ideas
- Global Guidance is a Game-Changer: Relying solely on the current decoding step (a local perspective) to select context often misleads the model. Providing a global signal via distant supervision keeps the generation on track and prevents the model from being distracted by conversational noise.
- External Knowledge as a "Pseudo-Oracle": Using pre-trained sentence embedding models to score context relevance is a clever, cost-effective way to get training signals without requiring expensive, human-annotated utterance-level labels.
- Hierarchical Filtering Works: Visualizations of the model's attention weights show it successfully learns to pinpoint both the exact relevant utterances in a long chat history and the specific crucial words within them (e.g., highlighting the specific utterance where a user mentions an "order", and heavily weighting the word "today").
Key Results
HiSA-GDS achieved state-of-the-art results across the board, significantly outperforming strong baselines like HRED, standard Transformers, and ReCoSa.
- Quantitative Leaps: On the Ubuntu dataset, HiSA-GDS achieved a BLEU-2 score of 7.351%, nearly doubling the next best baseline (ReCoSa at 3.872%). It also saw massive jumps in diversity (Distinct-2 of 10.934% vs. 9.406%) and semantic coherence. Similar margins were observed on the Chinese JDDC dataset.
- The Power of GDS: An ablation study removing the Globally Distant Supervision (leaving just the "HiSA" model) caused performance to plummet. For example, Ubuntu BLEU-2 dropped from 7.351% to 4.021%, proving that the global supervision is the heavy lifter in this architecture.
- Human Evaluation: Human annotators strongly preferred HiSA-GDS. When pitted head-to-head against the standard Transformer on the Ubuntu dataset, HiSA-GDS won 44% of the time, tied 37%, and lost only 19%.
Limitations and Future Work
The authors do not explicitly dedicate a section to limitations or future work in the paper. However, an apparent limitation of the methodology is its reliance on external pre-trained models (InferSent/Familia) for the distant supervision signal. The model's ability to select context is inherently bottlenecked by the quality and domain-alignment of those external embeddings. If the pre-trained model fails to recognize a semantic link, the dialogue model receives a noisy training signal. Future work could explore jointly training the embedding model or finding unsupervised ways to generate the global guidance signal.
Summary updated