Papers › An Equal-Size Hard EM Algorithm for Diverse Dialogue Generation

An Equal-Size Hard EM Algorithm for Diverse Dialogue Generation

29 Sep 2022arXiv:2209.14627archive 2025-07-28

Yuqiao Wen, Yongchang Hao, Yanshuai Cao, Lili Mou

Open-domain dialogue systems aim to interact with humans through natural language texts in an open-ended fashion. Despite the recent success of super large dialogue systems such as ChatGPT, using medium-to-small-sized dialogue systems remains the common practice as they are more lightweight and accessible; however, generating diverse dialogue responses is challenging, especially with smaller models. In this work, we propose an Equal-size Hard Expectation--Maximization (EqHard-EM) algorithm to train a multi-decoder model for diverse dialogue generation. Our algorithm assigns a sample to a decoder in a hard manner and additionally imposes an equal-assignment constraint to ensure that all decoders are well-trained. We provide detailed theoretical analysis to justify our approach. Further, experiments on two large-scale open-domain dialogue datasets verify that our EqHard-EM algorithm generates high-quality diverse responses.

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="2209.14627")

Code

Syntology Ran 2 of 11 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

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

anonymous-1759/eqhard-em officialmentioned in paperpytorchMIT report
manga-uofa/eqhard-em 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; 2 ran; 0 honoured the contract we drafted; 9 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.

2ran · our draft was wrong
9unverified

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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

get_dfs manga-uofa/eqhard-em/evaluate_generations.py official repository ran · our draft was wrong MIT (permissive) · 8d6510bd380e626b · report
time_profile manga-uofa/eqhard-em/evaluate_generations.py official repository ran · our draft was wrong MIT (permissive) · 19180322b4557a21 · report
generate_fn anonymous-1759/eqhard-em/evaluate.py official repository unverified MIT (permissive) · b0bb3c3089d7edda · report
get_inputs_and_references anonymous-1759/eqhard-em/default_dataset.py official repository unverified MIT (permissive) · 74a1f2d91eae3032 · report
get_tokenizer anonymous-1759/eqhard-em/util.py official repository unverified MIT (permissive) · 99808cb1227bd7b3 · report
i_corpus_bleu anonymous-1759/eqhard-em/metrics/bleus.py official repository unverified MIT (permissive) · d18af1916bba14be · report
list_drop_indices anonymous-1759/eqhard-em/evaluate.py official repository unverified MIT (permissive) · d1439abee99db03f · report
load_tf_weights_in_t5 anonymous-1759/eqhard-em/model/adapter_t5.py official repository unverified MIT (permissive) · 136abfa3e8ce028d · report
max_corpus_bleu anonymous-1759/eqhard-em/metrics/bleus.py official repository unverified MIT (permissive) · df188885fa732d25 · report
max_sentence_bleu anonymous-1759/eqhard-em/metrics/bleus.py official repository unverified MIT (permissive) · 93e75c549a18cf89 · report
str_tokenize anonymous-1759/eqhard-em/evaluate.py official repository unverified MIT (permissive) · eaff4242ef22c474 · report

Tasks

DecoderDialogue Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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