Small Changes Make Big Differences: Improving Multi-turn Response Selection in Dialogue Systems via Fine-Grained Contrastive Learning

Yuntao Li, Can Xu, Huang Hu, Lei Sha, Yan Zhang, Daxin Jiang

Abstract

Retrieve-based dialogue response selection aims to find a proper response from a candidate set given a multi-turn context. The sequence representations generated by pre-trained language models (PLMs) play key roles in the learning of matching degree between the dialogue contexts and the responses. However, context-response pairs sharing the same context but different responses tend to have a greater similarity in the sequence representations calculated by PLMs, which makes it hard to distinguish positive responses from negative ones. Motivated by this, we propose a novel Fine-Grained Contrastive (FGC) learning method for the response selection task based on PLMs. This FGC learning strategy helps PLMs to generate more distinguishable pair representations of each dialogue at fine grains, and further make better predictions on choosing positive responses. Empirical studies on two benchmark datasets demonstrate that the proposed FGC learning method can generally and significantly improve the model performance of existing PLM-based matching models.

Introduction

In retrieval-based dialogue systems, the objective is to select the most appropriate response from a pool of candidates given a multi-turn conversation history, or context. Current state-of-the-art methods typically employ Pre-trained Language Models (PLMs) like BERT to encode these context-response pairs. However, these models often suffer from a lack of discriminative power; the resulting summary vectors (e.g., the [CLS] token) tend to cluster in a "narrow cone" within the vector space. This makes it difficult for the system to distinguish between a correct response and one that is merely relevant but incorrect, especially when they share the same context. Standard contrastive learning approaches, which often rely on random negatives within a batch, are too coarse to resolve these fine-grained semantic differences.

Methodology

To address this challenge, we introduce Fine-Grained Contrastive (FGC) learning. This method moves beyond random comparisons to focus on "hard" distinctions within individual conversations using two complementary objectives:

  1. Instance-View Contrastive (IVC): Operates at the local level. For a given context, the model is presented with a positive response, a negative response, and augmented versions of both (created via rule-based methods like word deletion or swapping). The model is trained to minimize the distance between the positive response and its augmented twin while maximizing the distance to the negative response.
  2. Category-View Contrastive (CVC): Operates at the global level. It encourages the model to cluster all positive responses across the dataset into one region of the vector space and all negative responses into another, establishing a clear "signature" for correct responses.
The FGC architecture overview.

Crucially, FGC is self-supervised and does not require additional human labeling beyond the standard binary labels present in dialogue datasets.

Experimental Results

The FGC method was evaluated on two major benchmarks: the Ubuntu Dialogue Corpus V1 (technical support logs) and the Douban Corpus (open-domain social media).

Performance comparison across datasets.

Key findings from our experiments include:

  • Significant Performance Gains: FGC consistently outperformed vanilla PLMs. On the Douban dataset, it improved the $R_{10}@1$ metric (the probability that the correct response is the top pick) by an absolute 3.2%.
  • The Importance of Contrastive Loss: Interestingly, data augmentation alone was found to decrease model performance by approximately 2.5%. The benefits of augmentation are only realized when paired with the FGC loss function, which provides the necessary signal to interpret small semantic changes.
  • Model Generality: FGC improved performance across various architectures, including BERT, ELECTRA, and even "BERT-Small," suggesting it addresses a fundamental training limitation in dialogue encoders.

Conclusion

Fine-Grained Contrastive learning effectively enhances the discriminative power of PLMs for multi-turn response selection. By focusing on hard negatives and fine-grained differences, FGC achieves state-of-the-art results across diverse datasets. Future research may explore more sophisticated augmentation techniques, such as back-translation, and investigate the application of these objectives to generative dialogue systems.

Summary updated

BibTeX
@inproceedings{li2022small,
  author = {Yuntao Li and Can Xu and Huang Hu and Lei Sha and Yan Zhang and Daxin Jiang},
  title = {{Small Changes Make Big Differences: Improving Multi-turn Response Selection in Dialogue Systems via Fine-Grained Contrastive Learning}},
  booktitle = {Interspeech},
  year = {2022},
  url = {https://openreview.net/forum?id=lfltq32je6},
}
Figure