{"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/learning-to-express-in-knowledge-grounded-1","title":"Learning to Express in Knowledge-Grounded Conversation","arxiv_id":"2204.05805","date":"2022-04-12","proceeding":"NAACL 2022 7","authors":["Xueliang Zhao","Tingchen Fu","Chongyang Tao","Wei Wu","Dongyan Zhao","Rui Yan"],"abstract":"Grounding dialogue generation by extra knowledge has shown great potentials towards building a system capable of replying with knowledgeable and engaging responses. Existing studies focus on how to synthesize a response with proper knowledge, yet neglect that the same knowledge could be expressed differently by speakers even under the same context. In this work, we mainly consider two aspects of knowledge expression, namely the structure of the response and style of the content in each part. We therefore introduce two sequential latent variables to represent the structure and the content style respectively. We propose a segmentation-based generation model and optimize the model by a variational approach to discover the underlying pattern of knowledge expression in a response. Evaluation results on two benchmarks indicate that our model can learn the structure style defined by a few examples and generate responses in desired content style.","url_abs":"https://arxiv.org/abs/2204.05805v1","url_pdf":"https://arxiv.org/pdf/2204.05805v1.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":[],"tasks":[{"task_slug":"dialogue-generation","task_name":"Dialogue Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.05805","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.05805"}},"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":"deterministic:regex_extraction","url":"https://github.com/facebookresearch/ParlAI","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/thu-coai/ecm","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/salesforce/ctrl","reach":null}],"summary":{"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":7,"ran":1,"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":"ddd2c7e475ef50fd","entry":"refine_data","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"baseline.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/baseline.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ddd2c7e475ef50fd"}},{"code_sha256_prefix":"8a3be5881c1c42f6","entry":"basic_rnn_seq2seq","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"seq2seq.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/seq2seq.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a3be5881c1c42f6"}},{"code_sha256_prefix":"e40595a62d93569d","entry":"basic_tokenizer","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e40595a62d93569d"}},{"code_sha256_prefix":"d0641d0836fed542","entry":"initialize_vocabulary","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d0641d0836fed542"}},{"code_sha256_prefix":"572c903f9f7648cc","entry":"rnn_decoder","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"seq2seq.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/seq2seq.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"572c903f9f7648cc"}},{"code_sha256_prefix":"9c5be24263ad19eb","entry":"sentence_to_token_ids","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9c5be24263ad19eb"}},{"code_sha256_prefix":"97c732c8e24d3bac","entry":"tied_rnn_seq2seq","repo":"thu-coai/ecm","repo_kind":"found_in_text","path":"seq2seq.py","file_url":"https://github.com/thu-coai/ecm/blob/HEAD/seq2seq.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"97c732c8e24d3bac"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}