NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Dialogue Representations from Consecutive Utterances

Zhihan Zhou, Dejiao Zhang, Wei Xiao, Nicholas Dingwall, Xiaofei Ma, Andrew O. Arnold, Bing Xiang

Abstract

Building robust task-oriented dialogue (TOD) systems is often hindered by the scarcity of annotated data. While general-purpose sentence embeddings exist, they frequently fail to capture the specific nuances of conversational exchange. This paper introduces Dialogue Sentence Embedding (DSE), a self-supervised method that leverages the sequential nature of dialogue. By treating consecutive utterances as positive pairs in a contrastive learning framework, DSE learns universal representations that significantly improve performance in few-shot intent classification and response selection tasks.

1. Introduction

In task-oriented dialogue systems, understanding user intent is critical for successful interaction. However, the high cost of data annotation makes it difficult to train models for new domains. Existing approaches often rely on general-purpose encoders like SimCSE or dialogue-specific models like TOD-BERT. While TOD-BERT utilizes conversation history, it introduces a "semantic granularity mismatch" by comparing a single utterance against a long multi-turn history. This paper presents DSE, which simplifies the learning objective by focusing on the relationship between consecutive turns, creating more cohesive and transferable embeddings.

2. Methodology: Consecutive Utterance Contrastive Learning

The fundamental hypothesis of DSE is that consecutive utterances in a conversation are semantically and functionally linked. For instance, a user's request for a restaurant is naturally followed by a system's request for a location or cuisine preference.

2.1 Contrastive Framework

DSE employs a contrastive learning objective where the goal is to minimize the distance between the vector representations of consecutive utterances $(u_i, u_{i+1})$ in the embedding space. Simultaneously, the model maximizes the distance between these "anchor" pairs and "negative" samples—utterances drawn randomly from other conversations within the same training batch.

2.2 Hard-Negative Sampling and Stability

To refine the model's discriminative power, DSE incorporates hard-negative sampling. This technique prioritizes negative examples that are already close to the anchor in the vector space, forcing the model to learn fine-grained distinctions. Unlike dropout-based augmentation methods, DSE exhibits superior training stability; performance consistently improves as it processes more data, rather than degrading after a single epoch.

3. Experimental Setup

The model was pre-trained on a large-scale aggregate of nine public TOD datasets, totaling approximately 1.38 million utterances across 100,707 dialogues. Evaluation spanned several critical downstream tasks:

  • Intent Classification: Tested on Clinc150, Snips, Hwu64, and Bank77.
  • Out-of-Scope (OOS) Detection: Identifying queries that fall outside the system's known capabilities.
  • Response Selection: Utterance-level (AmazonQA) and dialogue-level (DSTC7-Ubuntu) selection.
  • Dialogue Action Prediction: Evaluated on DSTC2 and GSIM.

4. Key Insights

4.1 The Implicit Category Effect

A significant finding of this research is DSE's ability to learn "implicit categories" without explicit labels. Because different user utterances (e.g., "I'm looking for a pizza place" and "I'm hungry") often lead to similar system responses ("What is your zip code?"), the contrastive objective naturally clusters these semantically related user intents together in the embedding space.

4.2 Addressing Granularity

By focusing on utterance-to-utterance pairs, DSE avoids the noise inherent in models that use long conversation histories. This focus ensures that the learned representations are optimized for the granularity of a single turn, which is the primary unit of analysis for tasks like intent classification.

5. Results

DSE demonstrated substantial improvements over state-of-the-art unsupervised baselines, particularly in low-resource scenarios:

  • Few-Shot Learning: In 1-shot intent classification, DSE achieved a 13% average improvement across six datasets.
  • OOS Detection: The model outperformed baselines by 13% to 20%, indicating a robust understanding of intent boundaries.
  • Zero-Shot Response Selection: On the AmazonQA dataset, DSE improved Top-1 accuracy to 56.6%, compared to approximately 48% for SimCSE.
  • Clustering Quality: TSNE visualizations confirm that DSE creates tighter, more distinct clusters for different intents compared to TOD-BERT or SimCSE.

6. Conclusion and Limitations

DSE provides a simple yet powerful method for learning dialogue representations from unlabeled logs. While highly effective, the authors note that generic responses (e.g., "Thank you") can introduce semantic noise if the model attempts to link them to highly specific intents. Future research may focus on filtering these "chitchat" elements or refining the contrastive objective to better handle the trade-off between functional task-oriented links and generic conversational fillers.

Summary updated

BibTeX
@inproceedings{zhou2022learning,
  author = {Zhihan Zhou and Dejiao Zhang and Wei Xiao and Nicholas Dingwall and Xiaofei Ma and Andrew O. Arnold and Bing Xiang},
  title = {{Learning Dialogue Representations from Consecutive Utterances}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.55},
}
Figure