Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-based Question Answering

Changmao Li, Jinho D. Choi

Abstract: Changmao Li, Jinho D. Choi. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

2020.

Introduction

Most state-of-the-art Question Answering (QA) models, such as BERT or RoBERTa, are primarily trained on formal, structured text like Wikipedia or news articles. While effective for standard benchmarks, these models often struggle with multiparty dialogues. The challenges are two-fold: first, a style mismatch exists between colloquial, fragmented dialogue and structured prose; second, dialogues possess a complex structural hierarchy. A transcript is not merely a sequence of sentences but a web of interactions between multiple speakers. Treating it as a single flat string ignores the "who said what" context essential for deep understanding.

This research introduces a hierarchical Transformer approach designed to bridge this gap by teaching models to recognize both individual tokens and the broader structure of utterances within a conversation.

Methodology

The authors proposed a two-stage approach involving specialized pre-training and a multi-task fine-tuning strategy.

Hierarchical Pre-training

To adapt the Transformer to the nuances of dialogue, the researchers implemented three sequential pre-training tasks:

  1. Token-level Masked LM (MLM): The standard approach of predicting missing words across the entire dialogue.
  2. Utterance-level MLM: The model predicts missing words while focusing on individual utterances, forcing the creation of a "summary" embedding for each specific turn.
  3. Utterance Order Prediction (UOP): The model determines if a set of utterances is in the correct chronological order, teaching it how context flows logically from one speaker to the next.
Hierarchical pre-training tasks: (a) Token-level MLM, (b) Utterance-level MLM, and (c) Utterance order prediction.

Multi-task Fine-tuning

For the downstream task of span-based QA, the model performs two tasks simultaneously to narrow the search space efficiently:

  • Utterance ID Prediction: Identifying which specific utterance in the dialogue contains the answer.
  • Token Span Prediction: Pinpointing the exact start and end points of the answer within that predicted utterance.
Multi-task fine-tuning architecture for joint utterance identification and span prediction.

Experimental Setup and Results

The model was evaluated on the FriendsQA dataset, which consists of transcripts from the TV show Friends. To ensure robust evaluation, the authors re-split the dataset by episodes rather than random scenes, preventing data leakage. They also utilized transcripts from Seasons 5–10 as additional unlabeled data for pre-training.

Key Findings

  • Hierarchy is Essential: Explicitly modeling "Utterance Embeddings" allows the model to treat each speaker's turn as a distinct unit of meaning rather than just a string of text.
  • The Power of Order: The Utterance Order Prediction task proved to be a critical driver of performance, forcing the model to understand the logical flow of conversation.
  • Performance Gains: The proposed model, RoBERTa$_{our}$, significantly outperformed standard baselines, improving Span Matching (SM) by 3.8% over BERT and 1.4% over standard RoBERTa.

Limitations and Future Work

While the hierarchical approach yielded significant improvements, several challenges remain. The model still struggles with entity resolution when multiple characters are mentioned in close proximity (e.g., "Who" questions). Furthermore, "Why" and "How" questions require complex cross-utterance reasoning that remains difficult for current architectures. Future work will explore scaling this hierarchical approach to other dialogue domains, such as technical support or medical consultations.

Summary updated

BibTeX
@inproceedings{li2020transformers,
  author = {Changmao Li and Jinho D. Choi},
  title = {{Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-based Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=S5L-KeZHlb5},
}
Figure