DialogueCSE: Dialogue-based Contrastive Learning of Sentence Embeddings
Che Liu, Rui Wang, Jinghua Liu, Jian Sun, Fei Huang, Luo Si
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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d9e75606-bbde-4476-aa2d-ca809ccb10f0Cited 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 on7
- 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
- An Unsupervised Sentence Embedding Method by Mutual Information MaximizationYan Zhang, Ruidan He, Zuozhu Liu, Kwan Hui Lim et al.EMNLP 2020 · 126 citations
- Don't Stop Pretraining: Adapt Language Models to Domains and TasksSuchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo et al.ACL 2020 · 93 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
