DialogueCSE: Dialogue-based Contrastive Learning of Sentence Embeddings
Abstract
Learning sentence embeddings from dialogues has drawn increasing attention due to its low annotation cost and high domain adaptability. Conventional approaches employ the siamese-network for this task, which obtains the sentence embeddings through modeling the context-response semantic relevance by applying a feed-forward network on top of the sentence encoders. However, as the semantic textual similarity is commonly measured through the element-wise distance metrics (e.g. cosine and L2 distance), such architecture yields a large gap between training and evaluating. In this paper, we propose DialogueCSE, a dialogue-based contrastive learning approach to tackle this issue. DialogueCSE first introduces a novel matching-guided embedding (MGE) mechanism, which generates a contextaware embedding for each candidate response embedding (i.e. the context-free embedding) according to the guidance of the multi-turn context-response matching matrices. Then it pairs each context-aware embedding with its corresponding context-free embedding and finally minimizes the contrastive loss across all pairs. We evaluate our model on three multi-turn dialogue datasets: the Microsoft Dialogue Corpus, the Jing Dong Dialogue Corpus, and the E-commerce Dialogue Corpus. Evaluation results show that our approach significantly outperforms the baselines across all three datasets in terms of MAP and Spearman's correlation measures, demonstrating its effectiveness. Further quantitative experiments show that our approach achieves better performance when leveraging more dialogue context and remains robust when less training data is provided.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Dialog-Post: Multi-Level Self-Supervised Objectives and Hierarchical Model for Dialogue Post-Training cites ConveRT: Efficient and Accurate Conversational Representations from Transformers
- Dialog-Post: Multi-Level Self-Supervised Objectives and Hierarchical Model for Dialogue Post-Training cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings cites On the Sentence Embeddings from Pre-trained Language Models
- Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites On the Sentence Embeddings from Pre-trained Language Models
- COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining
- Dial2vec: Self-Guided Contrastive Learning of Unsupervised Dialogue Embeddings cites COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining
- Dial2vec: Self-Guided Contrastive Learning of Unsupervised Dialogue Embeddings cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Template-assisted Contrastive Learning of Task-oriented Dialogue Sentence Embeddings cites On the Sentence Embeddings from Pre-trained Language Models
- Template-assisted Contrastive Learning of Task-oriented Dialogue Sentence Embeddings cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites On the Sentence Embeddings from Pre-trained Language Models
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- FutureTOD: Teaching Future Knowledge to Pre-trained Language Model for Task-Oriented Dialogue cites ConveRT: Efficient and Accurate Conversational Representations from Transformers
- FutureTOD: Teaching Future Knowledge to Pre-trained Language Model for Task-Oriented Dialogue cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
Cited by top-tier papers7
- Non-Linguistic Supervision for Contrastive Learning of Sentence EmbeddingsYiren Jian, Chongyang Gao, Soroush VosoughiNeurIPS 2022 · 20 citations
- Dial2vec: Self-Guided Contrastive Learning of Unsupervised Dialogue EmbeddingsChe Liu, Rui Wang, Junfeng Jiang, Yongbin Li et al.EMNLP 2022 · 4 citations
- Dialog-Post: Multi-Level Self-Supervised Objectives and Hierarchical Model for Dialogue Post-TrainingZhenyu Zhang, Lei Shen, Yuming Zhao, Meng Chen et al.ACL 2023 · 3 citations
- FutureTOD: Teaching Future Knowledge to Pre-trained Language Model for Task-Oriented DialogueWeihao Zeng, Keqing He, Yejie Wang, Chen Zeng et al.ACL 2023 · 3 citations
- Template-assisted Contrastive Learning of Task-oriented Dialogue Sentence EmbeddingsMinsik Oh, Jiwei Li, Guoyin WangACL 2026 · 2 citations
Builds on8
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang et al.EMNLP 2020 · 538 citations
- COCO-LM: Correcting and Contrasting Text Sequences for Language Model PretrainingYu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary et al.NeurIPS 2021 · 231 citations
- ConveRT: Efficient and Accurate Conversational Representations from TransformersMatthew Henderson, Iñigo Casanueva, Nikola Mrksic, Pei-Hao Su et al.EMNLP Findings 2020 · 179 citations
- An Unsupervised Sentence Embedding Method by Mutual Information MaximizationYan Zhang, Ruidan He, Zuozhu Liu, Kwan Hui Lim et al.EMNLP 2020 · 126 citations
Related papers
- MuCo: Multi-turn Contrastive Learning for Multimodal Embedding ModelGeonmo Gu, Byeongho Heo, Jaemyung Yu, Jaehui Hwang et al.CVPR 2026 · 2 citations
- SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two PerspectivesJiahao Xu, Wei Shao, Lihui Chen, Lemao LiuEMNLP 2023 · 7 citations
- An Ensemble Distillation Framework for Sentence Embeddings with Multilingual Round-Trip TranslationTianyu Zong, Likun ZhangAAAI 2023 · 1 citation
- Contrastive Learning of Sentence Embeddings from ScratchJunlei Zhang, Zhenzhong Lan, Junxian HeEMNLP 2023 · 9 citations
- Toward Interpretable Semantic Textual Similarity via Optimal Transport-based Contrastive Sentence LearningSeonghyeon Lee, Dongha Lee, Seongbo Jang, Hwanjo YuACL 2022 · 25 citations
