Papers › Dial2vec: Self-Guided Contrastive Learning of Unsupervised Dialogue Embeddings

Dial2vec: Self-Guided Contrastive Learning of Unsupervised Dialogue Embeddings

27 Oct 2022arXiv:2210.15332archive 2025-07-28

Che Liu, Rui Wang, Junfeng Jiang, Yongbin Li, Fei Huang

In this paper, we introduce the task of learning unsupervised dialogue embeddings. Trivial approaches such as combining pre-trained word or sentence embeddings and encoding through pre-trained language models (PLMs) have been shown to be feasible for this task. However, these approaches typically ignore the conversational interactions between interlocutors, resulting in poor performance. To address this issue, we proposed a self-guided contrastive learning approach named dial2vec. Dial2vec considers a dialogue as an information exchange process. It captures the conversational interaction patterns between interlocutors and leverages them to guide the learning of the embeddings corresponding to each interlocutor. The dialogue embedding is obtained by an aggregation of the embeddings from all interlocutors. To verify our approach, we establish a comprehensive benchmark consisting of six widely-used dialogue datasets. We consider three evaluation tasks: domain categorization, semantic relatedness, and dialogue retrieval. Dial2vec achieves on average 8.7, 9.0, and 13.8 points absolute improvements in terms of purity, Spearman's correlation, and mean average precision (MAP) over the strongest baseline on the three tasks respectively. Further analysis shows that dial2vec obtains informative and discriminative embeddings for both interlocutors under the guidance of the conversational interactions and achieves the best performance when aggregating them through the interlocutor-level pooling strategy. All codes and data are publicly available at https://github.com/AlibabaResearch/DAMO-ConvAI/tree/main/dial2vec.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.15332")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

alibabaresearch/damo-convai officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 7 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
4unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AlibabaResearch/DAMO-ConvAI. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BERTAttention AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran fingerprinted MIT (permissive) · fa58498fdf4cb81e · report
BERTEmbeddings AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran MIT (permissive) · fb68baf229e1cf5a · report
BERTIntermediate AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran fingerprinted MIT (permissive) · c45a021ae43f1086 · report
BERTPooler AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran MIT (permissive) · ddd04d6d8b2852c9 · report
BERTSelfAttention AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran fingerprinted MIT (permissive) · a5e5c3ae263c81ac · report
BERTavg AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran fingerprinted MIT (permissive) · 6c50f0691f85142a · report
BertConfig AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository ran MIT (permissive) · e64c9e8361c93aaa · report
BERTEncoder AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository unverified MIT (permissive) · 2297486f7089cbcd · report
BERTLayer AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository unverified MIT (permissive) · f3faae060e87ee86 · report
BertModel AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository unverified MIT (permissive) · a7725d578d6fc49c · report
Dial2vec AlibabaResearch/DAMO-ConvAI/dial2vec/modeling_bert.py official repository unverified MIT (permissive) · da1e6c7924893059 · report

Tasks

Contrastive LearningRetrievalSentenceSentence Embeddings

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections