Abstract
Retrieval-based dialogue systems display an outstanding performance when pre-trained language models are used, which includes bidirectional encoder representations from transformers (BERT). During the multi-turn response selection, BERT focuses on training the relationship between the context with multiple utterances and the response. However, this method of training is insufficient when considering the relations between each utterance in the context. This leads to a problem of not completely understanding the context flow that is required to select a response. To address this issue, we propose a new fine-grained post-training method that reflects the characteristics of the multi-turn dialogue. Specifically, the model learns the utterance level interactions by training every short context-response pair in a dialogue session. Furthermore, by using a new training objective, the utterance relevance classification, the model understands the semantic relevance and coherence between the dialogue utterances. Experimental results show that our model achieves new state-of-the-art with significant margins on three benchmark datasets. This suggests that the fine-grained post-training method is highly effective for the response selection task.
Introduction
Retrieval-based dialogue systems aim to select the most appropriate response from a pre-defined candidate pool given a conversation history (context). While BERT-based models have set new benchmarks in this field, they typically treat the entire multi-turn context as a single long sequence. This "coarse-grained" approach often overlooks the nuanced interactions between individual utterances within the context. If a model fails to understand how a conversation evolves turn-by-turn, it struggles to identify the most logically coherent next step.
Existing post-training objectives like Next Sentence Prediction (NSP) are often too simplistic for dialogue; they primarily help a model identify topic relevance rather than logical sequence. To bridge this gap, we introduce Fine-grained Post-training (FP), a method designed to capture the semantic flow and local transitions of multi-turn dialogues.
Methodology
The proposed BERT-FP model incorporates a post-training phase between general pre-training and task-specific fine-tuning. This phase utilizes two primary strategies:
Short Context-response Pair Training
Rather than training on an entire dialogue session at once, we divide sessions into multiple overlapping "short" context-response pairs. For a window size $k$, every utterance is treated as a potential response to its preceding $k$ utterances. This data augmentation strategy forces the model to focus on local, turn-by-turn transitions.
Utterance Relevance Classification (URC)
To replace the binary NSP task, we introduce URC, a three-way classification objective. For a given context, the target utterance is classified as:
- Random: An utterance from a different dialogue (testing topic relevance).
- Semantically Similar: An utterance from the same dialogue session but not the immediate next one (testing coherence and logic).
- Next: The actual correct next utterance.
Experimental Results
We evaluated BERT-FP on three major benchmarks: the Ubuntu Corpus V1, the Douban Corpus, and an E-commerce Corpus. The model achieved new state-of-the-art (SOTA) results across all datasets, significantly outperforming previous models like MSN and SA-BERT.
- Ubuntu Corpus: Achieved an $R_{10}@1$ of 0.911, a 2.7 percentage point improvement over the previous SOTA.
- E-commerce Corpus: Saw a substantial jump to 0.870 in $R_{10}@1$, an improvement of 9.4 percentage points.
Impact of Context Length
A critical finding of our study is the impact of the context window size ($k$) during post-training. As shown in the performance metrics, the model generally performs best with a short context window (typically $k=2$ or $k=3$). This confirms that focusing on local utterance interactions is vital for understanding dialogue flow. When the window becomes too large, the model may lose focus on the most immediate transitions.
Conclusion
The Fine-grained Post-training method effectively addresses the limitations of standard BERT training for dialogue systems. By emphasizing local interactions and introducing the URC objective, BERT-FP learns to distinguish between mere topic relevance and true logical coherence. Future work will explore the applicability of these techniques to generation-based dialogue systems and other dialogue-adjacent tasks.
Summary updated