On Task-Adaptive Pretraining for Dialogue Response Selection

Tzu-Hsiang Lin, Ta-Chung Chi, Anna RumshiskyarXiv 2022

Abstract: Recent advancements in dialogue response selection (DRS) are based on the task-adaptive pre-training (TAP) approach, by first initializing their model with BERT, and adapting to dialogue data with dialogue-specific or fine-grained pre-training tasks. However, it is uncertain whether BERT is the best initialization choice, or whether the proposed dialogue-specific fine-grained learning tasks are actually better than MLM+NSP. This paper aims to verify assumptions made in previous works and understand the source of improvements for DRS. We show that initializing with RoBERTa achieves similar performance as BERT, and MLM+NSP can outperform all previously proposed TAP tasks, during which we also contribute a new state-of-the-art on the Ubuntu corpus. Additional analyses show that the main source of improvements comes from the TAP step, and that the NSP task is crucial to DRS, different from common NLU tasks.

Introduction

Dialogue Response Selection (DRS) involves identifying the most appropriate response from a set of candidates given a conversation context. The current state-of-the-art methodology relies on Task-Adaptive Pretraining (TAP), where a general-purpose language model (typically BERT) undergoes a second phase of pretraining on domain-specific dialogue data before final fine-tuning.

This research investigates two prevalent assumptions in the field: first, that BERT's original Next Sentence Prediction (NSP) objective makes it a uniquely superior starting point for dialogue; and second, that basic objectives like Masked Language Modeling (MLM) and NSP are insufficient, necessitating more complex, dialogue-specific tasks.

Methodology

The study utilizes a standardized three-step pipeline to isolate performance drivers:

  1. Initialization: Comparing BERT (trained with NSP), RoBERTa (trained without NSP), and training from scratch.
  2. Task-Adaptive Pretraining (TAP): Utilizing the basic MLM + NSP objectives on dialogue data. Positive examples are actual next turns, while negative examples are randomly sampled.
  3. Fine-tuning: Final training on target benchmarks using a Cross-Encoder architecture, which allows for full self-attention across both context and response.

Performance was evaluated on three major benchmarks: the Ubuntu Corpus (technical support), the Douban Corpus (social media), and an E-commerce Corpus (customer service).

Key Insights and Results

Initialization Parity and the Power of TAP

A significant finding is that the choice of initial model (BERT vs. RoBERTa) becomes less critical after the TAP phase. Surprisingly, even a model trained from scratch can approach the performance of pre-trained models if given sufficient TAP epochs. This suggests that domain-specific data exposure during TAP is often more impactful than the massive general-domain data used in initial pre-training.

Figure 1: Performance of different initializations (BERT, RoBERTa, and Scratch) during the TAP phase on the Ubuntu corpus.

The Importance of NSP in Dialogue

While the NSP task is often considered redundant or harmful in general Natural Language Understanding (NLU) tasks, it proves vital for DRS. Because the ultimate goal of DRS is predicting the next sentence, maintaining the NSP objective during TAP is crucial. Ablation studies on the Ubuntu corpus showed that removing NSP caused performance to drop from 0.923 to 0.842.

Performance Across Datasets and the Douban Anomaly

The simple MLM+NSP approach achieved a new state-of-the-art on the Ubuntu corpus with a Recall@1 of 0.923. However, the effectiveness of TAP varies by dataset. As shown in Figure 2, while Ubuntu and E-commerce show steady gains, the Douban dataset exhibits an anomaly where TAP is less effective. The authors attribute this to low N-gram overlap (~9% for 5-grams) between Douban's training and test sets, indicating a domain shift that limits the benefits of task-specific adaptation.

Figure 2: Recall @ 1 trajectories across Ubuntu (a), Douban (b), and E-commerce (c) datasets, comparing pre-training and fine-tuning performance.

Conclusion

This paper demonstrates that simplicity often outperforms complexity in dialogue pretraining. The classic MLM+NSP combination, when applied during a task-adaptive phase, beats more sophisticated, over-engineered tasks. The results emphasize that NSP is a critical objective for dialogue tasks and that the TAP phase is the primary driver of performance gains, regardless of the initial model choice. Future work may require more adversarial benchmarks to determine if complex tasks can eventually capture nuances that simple objectives miss.

Summary updated

BibTeX
@misc{lin2022task,
  author = {Tzu-Hsiang Lin and Ta-Chung Chi and Anna Rumshisky},
  title = {{On Task-Adaptive Pretraining for Dialogue Response Selection}},
  year = {2022},
  eprint = {2210.04073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.04073},
}
Figure