Abstract
Pre-trained language models (PrLM) have proven powerful in enhancing a broad range of downstream tasks, including various dialogue-related ones. However, PrLMs are typically trained on general plain text with common language model (LM) training objectives, which cannot sufficiently capture dialogue-exclusive features. This creates a gap between general LM tasks and specific dialogue tasks. Since collecting massive dialogue datasets for pre-training is difficult, we propose three strategies to simulate conversation features—speaker awareness, continuity, and consistency—using general plain text. Our method, Dialog-PrLM, is fine-tuned on three public multi-turn dialogue datasets and achieves significant and consistent improvements over standard PrLMs.
Introduction
Standard Pre-trained Language Models (PrLMs) like BERT have revolutionized NLP, but they suffer from a "dialogue gap." Most are trained on massive corpora of monologue text (like Wikipedia) where the goal is to predict masked words or sentence order. Dialogue, however, is fundamentally different, requiring:
- Speaker Awareness: Identifying who said what and when turns shift.
- Continuity: Understanding the logical flow across multiple message bursts.
- Consistency: Ensuring responses align with the style and facts established in the history.
This paper addresses the challenge of learning these dynamics without needing massive, specialized chat datasets by "simulating" dialogue features from structured plain text.
Methodology
We introduce three novel pre-training strategies that use a new special token, [SOT] (Start of Turn), to represent individual utterances. By treating paragraphs as "speakers" and sentences as "turns," we simulate conversations using the following tasks:
- Insertion (Speaker Awareness): The model takes sentences from two different paragraphs (representing two speakers) and hides one "speaker's" sentence inside the other's sequence. The model must predict which turn belongs to the original speaker.
- Deletion (Continuity): A sentence is randomly removed from a sequence and placed at the end. The task is to find the original "hole," forcing the model to understand the logical flow of conversation.
- Replacement (Consistency): A sentence is replaced with a random utterance from a different article. The model must identify this inconsistent turn, teaching it to recognize off-topic responses.
Experimental Setup
The researchers used English Wikipedia and Chinese Wikipedia to create simulated dialogue samples. The resulting Dialog-PrLM was then evaluated on three major multi-turn dialogue response selection benchmarks:
- E-commerce Corpus: Customer-shopkeeper interactions on Taobao.
- Douban Corpus: Social group conversations.
- Ubuntu Corpus (v1.0): Technical support logs.
Key Results
Applying these strategies to BERT and ELECTRA architectures resulted in consistent improvements across all benchmarks.
As shown in the results table, Dialog-ELECTRA achieved an R10@1 of 86.8 on the Ubuntu dataset, significantly outperforming specialized models like DialoGPT (79.0) and TOD-BERT (79.7). Ablation studies confirmed that all three strategies—Insertion, Deletion, and Replacement—were necessary for peak performance, as removing any one led to a measurable drop in metrics.
Conclusion
Dialog-PrLM demonstrates that structural dialogue features can be learned from general plain text. By simulating speaker shifts, continuity, and consistency, the model becomes more effective at handling the nuances of human conversation. Future work may extend this to multi-party dialogues and explore the use of the [SOT] token for dialogue disentanglement tasks.
Summary updated