Abstract
We focus on multi-turn response selection in a retrieval-based dialog system. In this paper, we utilize the powerful pre-trained language model Bi-directional Encoder Representations from Transformer (BERT) for a multi-turn dialog system and propose a highly effective post-training method on domain-specific corpus. Although BERT is easily adopted to various NLP tasks and outperforms previous baselines of each task, it still has limitations if a task corpus is too focused on a certain domain. Post-training on domain-specific corpus (e.g., Ubuntu Corpus) helps the model to train contextualized representations and words that do not appear in general corpus (e.g., English Wikipedia). Experimental results show that our approach achieves new state-of-the-art on two response selection benchmarks (i.e., Ubuntu Corpus V1, Advising Corpus) performance improvement by 5.9% and 6% on $R_{10}@1$.
Introduction
Retrieval-based dialog systems aim to select the most relevant response from a candidate pool based on a multi-turn conversation history. While pre-trained models like BERT have revolutionized NLP, they are typically trained on general-purpose text like Wikipedia. This creates two main hurdles for dialog tasks: a Domain Mismatch, where general BERT lacks understanding of niche technical jargon (e.g., apt-get or lsmod in the Ubuntu Corpus), and a Structural Mismatch, where standard BERT, trained on sentence pairs, struggles to capture the flow of multi-turn conversations.
Methodology
The proposed approach addresses these gaps through a three-step pipeline designed to bridge the gap between general pre-training and specialized dialog tasks:
- Domain Post-Training (DPT): A vanilla
BERT-basemodel is further trained on the target domain's unlabeled corpus using Masked Language Modeling (MLM) and Next Sentence Prediction (NSP). This allows the model to learn domain-specific vocabulary and relationships before task-specific fine-tuning. - The [EOT] Token: To handle the multi-turn nature of dialog, a special
[EOT](End Of Turn) token is appended to each utterance in the context. This helps the self-attention mechanism explicitly learn boundaries and relationships between different turns. - Variable Fine-Tuning (VFT): Instead of updating all 12 layers, the authors experimented with updating only the top $T$ layers during task-specific training. This acts as a form of regularization, preventing overfitting when the downstream dataset is relatively small.
- Data Augmentation (DA): Increasing the number of negative samples (incorrect responses) from 1 to 4 during the final fine-tuning stage further boosted performance.
Crucially, the authors find that the NSP objective—often dismissed in recent general NLP research—is vital for response selection, as the task itself is fundamentally a more complex version of next-sentence prediction.
Experimental Results
The model was evaluated on two major benchmarks: the Ubuntu Corpus V1 (technical support logs) and the Advising Corpus (academic advising dialogues from the DSTC 7 challenge).
The proposed BERT-VFT(DA) model set new state-of-the-art records:
- Ubuntu Corpus V1: Achieved an $R_{10}@1$ of 0.858, a significant jump over the previous SOTA (MSN at 0.800) and vanilla BERT (0.817).
- Advising Corpus: Achieved an $R_{100}@1$ of 0.274, outperforming the 1st place winner of the DSTC 7 challenge (0.214).
Ablation studies confirmed that the combination of MLM, NSP, and the [EOT] token provides the strongest configuration, proving that both lexical and structural domain adaptation are necessary for success in retrieval-based dialog.
Conclusion
This work demonstrates that domain-specific post-training and structural modifications like the [EOT] token significantly enhance BERT's performance in multi-turn response selection. By adapting the model to both the vocabulary and the multi-turn structure of the target domain, the authors achieved substantial gains over existing baselines. Future work may involve incorporating external knowledge bases or curriculum learning to further improve reasoning capabilities in specialized domains.
Summary updated