Papers › Mem2Seq: Effectively Incorporating Knowledge Bases into End-to-End Task-Oriented Dialog Systems

Mem2Seq: Effectively Incorporating Knowledge Bases into End-to-End Task-Oriented Dialog Systems

23 Apr 2018ACL 2018 7arXiv:1804.08217archive 2025-07-28

Andrea Madotto, Chien-Sheng Wu, Pascale Fung

End-to-end task-oriented dialog systems usually suffer from the challenge of incorporating knowledge bases. In this paper, we propose a novel yet simple end-to-end differentiable model called memory-to-sequence (Mem2Seq) to address this issue. Mem2Seq is the first neural generative model that combines the multi-hop attention over memories with the idea of pointer network. We empirically show how Mem2Seq controls each generation step, and how its multi-hop attention mechanism helps in learning correlations between memories. In addition, our model is quite general without complicated task-specific designs. As a result, we show that Mem2Seq can be trained faster and attain the state-of-the-art performance on three different task-oriented dialog datasets.

PaperPDFConference PDFCodeCode 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="1804.08217")

Code

Syntology Ran 0 of 9 code samples harvested from 1 repository linked to this paper; 9 have no recorded run.

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

HLTCHKUST/Mem2Seq officialmentioned in papermentioned on GitHubpytorchMIT 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

9 samples harvested; 0 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.

9unverified

Licence: 0 of the 9 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 HLTCHKUST/Mem2Seq. “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.

collate_fn HLTCHKUST/Mem2Seq/utils/utils_babi_mem2seq.py official repository unverified MIT (permissive) · 55b92d7c12a28efb · report
collate_fn HLTCHKUST/Mem2Seq/utils/utils_kvr_mem2seq.py official repository unverified MIT (permissive) · 035599ac95970472 · report
hasNumbers HLTCHKUST/Mem2Seq/utils/utils_babi_mem2seq.py official repository unverified MIT (permissive) · 6dee9d5e2ef61908 · report
masked_cross_entropy HLTCHKUST/Mem2Seq/utils/masked_cross_entropy.py official repository unverified MIT (permissive) · c43122df579b6d8b · report
moses_multi_bleu HLTCHKUST/Mem2Seq/utils/measures.py official repository unverified MIT (permissive) · 310d80260b624e59 · report
read_langs HLTCHKUST/Mem2Seq/utils/utils_babi_mem2seq.py official repository unverified MIT (permissive) · f12bf9fe4e9605ea · report
read_langs HLTCHKUST/Mem2Seq/utils/utils_kvr_mem2seq.py official repository unverified MIT (permissive) · bef35f44e6e32abb · report
sequence_mask HLTCHKUST/Mem2Seq/utils/masked_cross_entropy.py official repository unverified MIT (permissive) · 45176015bba52028 · report
wer HLTCHKUST/Mem2Seq/utils/measures.py official repository unverified MIT (permissive) · 65dff947bbcbac08 · report

Tasks

Task-Oriented Dialogue Systems

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Task-Oriented Dialogue Systems KVRET Mem2Seq BLEU 12.6 #10 of 10 Archive leaderboard report
Task-Oriented Dialogue Systems KVRET Mem2Seq Entity F1 33.4 #10 of 10 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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