{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/mem2seq-effectively-incorporating-knowledge","title":"Mem2Seq: Effectively Incorporating Knowledge Bases into End-to-End Task-Oriented Dialog Systems","arxiv_id":"1804.08217","date":"2018-04-23","proceeding":"ACL 2018 7","authors":["Andrea Madotto","Chien-Sheng Wu","Pascale Fung"],"abstract":"End-to-end task-oriented dialog systems usually suffer from the challenge of\nincorporating knowledge bases. In this paper, we propose a novel yet simple\nend-to-end differentiable model called memory-to-sequence (Mem2Seq) to address\nthis issue. Mem2Seq is the first neural generative model that combines the\nmulti-hop attention over memories with the idea of pointer network. We\nempirically show how Mem2Seq controls each generation step, and how its\nmulti-hop attention mechanism helps in learning correlations between memories.\nIn addition, our model is quite general without complicated task-specific\ndesigns. As a result, we show that Mem2Seq can be trained faster and attain the\nstate-of-the-art performance on three different task-oriented dialog datasets.","url_abs":"http://arxiv.org/abs/1804.08217v3","url_pdf":"http://arxiv.org/pdf/1804.08217v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"mem2seq-effectively-incorporating-knowledge","repo_url":"https://github.com/HLTCHKUST/Mem2Seq","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"task-oriented-dialogue-systems","task_name":"Task-Oriented Dialogue Systems"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/task-oriented-dialogue-systems-on-kvret","task":"Task-Oriented Dialogue Systems","dataset":"KVRET","model":"Mem2Seq","rank_in_archive_order":10,"of":10,"metrics":{"BLEU":"12.6","Entity F1":"33.4"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1804.08217","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1804.08217"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HLTCHKUST/Mem2Seq","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"55b92d7c12a28efb","entry":"collate_fn","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/utils_babi_mem2seq.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/utils_babi_mem2seq.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55b92d7c12a28efb"}},{"code_sha256_prefix":"035599ac95970472","entry":"collate_fn","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/utils_kvr_mem2seq.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/utils_kvr_mem2seq.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"035599ac95970472"}},{"code_sha256_prefix":"6dee9d5e2ef61908","entry":"hasNumbers","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/utils_babi_mem2seq.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/utils_babi_mem2seq.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6dee9d5e2ef61908"}},{"code_sha256_prefix":"c43122df579b6d8b","entry":"masked_cross_entropy","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/masked_cross_entropy.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/masked_cross_entropy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c43122df579b6d8b"}},{"code_sha256_prefix":"310d80260b624e59","entry":"moses_multi_bleu","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/measures.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/measures.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"310d80260b624e59"}},{"code_sha256_prefix":"f12bf9fe4e9605ea","entry":"read_langs","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/utils_babi_mem2seq.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/utils_babi_mem2seq.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f12bf9fe4e9605ea"}},{"code_sha256_prefix":"bef35f44e6e32abb","entry":"read_langs","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/utils_kvr_mem2seq.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/utils_kvr_mem2seq.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bef35f44e6e32abb"}},{"code_sha256_prefix":"45176015bba52028","entry":"sequence_mask","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/masked_cross_entropy.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/masked_cross_entropy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"45176015bba52028"}},{"code_sha256_prefix":"65dff947bbcbac08","entry":"wer","repo":"HLTCHKUST/Mem2Seq","repo_kind":"official","path":"utils/measures.py","file_url":"https://github.com/HLTCHKUST/Mem2Seq/blob/HEAD/utils/measures.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"65dff947bbcbac08"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}