Dialogue-oriented Pre-training

Yi Xu, Hai Zhao · DOI

Abstract

Pre-trained language models (PrLM) have shown powerful in enhancing a broad range of downstream tasks including various dialogue-related ones. However, PrLMs are usually trained on general plain text with common language model (LM) training objectives, which cannot sufficiently capture dialogue-exclusive features. As it is unlikely to collect huge dialogue data for dialogue-oriented pre-training, we propose three strategies to simulate conversation features on general plain text: Insertion, Deletion, and Replacement. Our proposed Dialog-PrLM is fine-tuned on three public multi-turn dialogue datasets and achieves significant and consistent improvement over plain PrLMs.

Introduction

Standard Pre-trained Language Models (PrLMs) like BERT and RoBERTa are typically trained on monolithic blocks of text (e.g., Wikipedia), which lack the structural nuances of human conversation, such as turn-taking, speaker continuity, and topical consistency. While pre-training on actual dialogue data (e.g., Reddit) is an option, such data is often noisy or domain-specific. This paper introduces a method to bridge this gap by simulating dialogue structures within high-quality plain text.

Methodology

The core of our approach is the introduction of a special [SOT] (Start of Turn) token and three self-supervised simulation tasks designed to teach the model dialogue-specific dynamics:

  1. Insertion (Speaker Awareness): Sentences from different contexts are interleaved to train the model to recognize speaker-specific patterns and identify where an "interrupted" sentence belongs.
  2. Deletion (Continuity): A sentence is moved from its original position to the end of a sequence; the model must predict its original location, fostering an understanding of logical flow.
  3. Replacement (Consistency): A sentence is replaced with a random "imposter" from a different article, requiring the model to detect topical or stylistic inconsistencies.
Illustration of the three simulation strategies: Insertion, Deletion, and Replacement.

Experiments and Results

We pre-trained Dialog-PrLM on English and Chinese Wikipedia and evaluated it on three major multi-turn dialogue benchmarks: the E-commerce Corpus (Taobao), the Douban Corpus, and the Ubuntu Corpus (v1.0).

As shown in the results table, Dialog-PrLM consistently outperforms baseline models like BERT and ELECTRA across all metrics. For instance, on the E-commerce $R_{10}@1$ metric, Dialog-BERT achieved 66.2%, compared to the baseline's 62.7%. On the Ubuntu dataset, it surpassed specialized models like DialoGPT and TOD-BERT.

Performance comparison of Dialog-PrLM against baseline and specialized models across three dialogue benchmarks.

Ablation studies confirmed that each simulation task contributes to the overall performance, indicating that speaker awareness, continuity, and consistency are distinct and necessary components for effective dialogue modeling.

Conclusion

Dialog-PrLM demonstrates that dialogue-specific features can be effectively learned from plain text through structured simulation strategies. This approach yields a general-purpose model that excels in multi-turn conversation tasks without the need for massive, noisy dialogue-specific pre-training datasets. Future work may explore applying these strategies to domain-specific post-training.

Summary updated

BibTeX
@misc{xu2021dialogue,
  author = {Yi Xu and Hai Zhao},
  title = {{Dialogue-oriented Pre-training}},
  year = {2021},
  eprint = {2106.00420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.00420},
}
Figure