Filling the Gap of Utterance-aware and Speaker-aware Representation for Multi-turn Dialogue

Longxiang Liu, Zhuosheng Zhang, Hai Zhao, Xi Zhou, Xiang Zhou 0007

Abstract

Multi-turn dialogue systems face challenges in distinguishing speaker roles and utterance boundaries within long conversation histories. We present the Mask-based Decoupling-Fusing Network (MDFN), which utilizes specialized attention masks to decouple dialogue into utterance-aware and speaker-aware channels. This approach allows pre-trained language models to explicitly capture transitions and inherent meanings. Experimental results on benchmarks like MuTual and the Ubuntu Dialogue Corpus demonstrate that MDFN achieves state-of-the-art performance by effectively managing entangled information.

Introduction

In the world of Natural Language Processing (NLP), building a chatbot that can handle a long, multi-turn conversation is a significant challenge. While pre-trained language models (PrLMs) like BERT and ELECTRA have revolutionized the field, they often treat a dialogue history as one giant block of text. This "coarse" approach ignores two vital signals: who is speaking and where one utterance ends and another begins.

When humans converse, they intuitively track speaker roles. For example, if a waiter says "I'm afraid no table is available" and a customer replies "OK," the context of that "OK" depends entirely on the speaker's role. Existing retrieval-based systems often concatenate the entire history into one string, leading to entangled information. This makes it difficult for models to track speaker role changes (essential for coreference resolution) and distinguish local utterance meaning from global conversational noise.

The MDFN Framework

Researchers from Shanghai Jiao Tong University and CloudWalk Technology proposed the Mask-based Decoupling-Fusing Network (MDFN) to address these limitations. The core innovation is the Decoupling Block, which uses four distinct self-attention masks to create specialized channels for every word:

  1. Current Utterance: Focus only on words within the same turn.
  2. Other Utterances: Focus on everything except the current turn.
  3. Sender turns: Focus on turns made by the same speaker.
  4. Receiver turns: Focus on turns made by the listener.
The MDFN architecture overview, illustrating the flow from the pre-trained language model through the decoupling and fusing blocks to the final classifier.

Fusing and Aggregation

Once these four views are created, the model uses a gating mechanism (a "Siamese" architecture) to decide how much information to keep from each channel based on their relevance. To capture the sequential "flow" of the conversation, a BiGRU (Bidirectional Gated Recurrent Unit) layer processes the sequence of utterance-level representations before a final classifier scores the response candidates.

Experimental Results

The model was evaluated on four major multi-turn dialogue benchmarks: the Ubuntu Dialogue Corpus (technical support), Douban Conversation Corpus (social media), E-commerce Dialogue Corpus (customer service), and MuTual. MuTual is particularly notable as it is a reasoning-based dataset derived from English listening exams, requiring logical deduction rather than simple pattern matching.

Performance comparison on the MuTual dataset, showing MDFN outperforming various baselines including ELECTRA and RoBERTa variants.

MDFN consistently outperformed strong baselines across the board. On MuTual, it achieved an R@1 of 91.6%, a significant jump over the ELECTRA baseline (90.0%). On the Ubuntu Corpus, it reached an R10@1 of 86.6%, surpassing the previous state-of-the-art SA-BERT (85.5%).

Analysis and Conclusion

Ablation studies proved that the "Speaker-aware" channel was the most critical component of the architecture; removing it caused a larger performance drop than removing the "Utterance-aware" channel. Additionally, the researchers found that using just one decoupling layer performed better than stacking multiple layers, as deeper modules proved harder to train without providing extra benefit.

While MDFN adds some complexity, it demonstrates that explicitly decoupling representations using masks is more effective than simply adding speaker embeddings. Future work may explore applying this framework to generative models and other hierarchical NLP tasks like document summarization.

Summary updated

BibTeX
@inproceedings{liu2021filling,
  author = {Longxiang Liu and Zhuosheng Zhang and Hai Zhao and Xi Zhou and Xiang Zhou},
  title = {{Filling the Gap of Utterance-aware and Speaker-aware Representation for Multi-turn Dialogue}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i15.17582},
}
Figure