{"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/diversify-question-generation-with-retrieval","title":"Diversify Question Generation with Retrieval-Augmented Style Transfer","arxiv_id":"2310.14503","date":"2023-10-23","proceeding":null,"authors":["Qi Gou","Zehua Xia","Bowen Yu","Haiyang Yu","Fei Huang","Yongbin Li","Nguyen Cam-Tu"],"abstract":"Given a textual passage and an answer, humans are able to ask questions with various expressions, but this ability is still challenging for most question generation (QG) systems. Existing solutions mainly focus on the internal knowledge within the given passage or the semantic word space for diverse content planning. These methods, however, have not considered the potential of external knowledge for expression diversity. To bridge this gap, we propose RAST, a framework for Retrieval-Augmented Style Transfer, where the objective is to utilize the style of diverse templates for question generation. For training RAST, we develop a novel Reinforcement Learning (RL) based approach that maximizes a weighted combination of diversity reward and consistency reward. Here, the consistency reward is computed by a Question-Answering (QA) model, whereas the diversity reward measures how much the final output mimics the retrieved template. Experimental results show that our method outperforms previous diversity-driven baselines on diversity while being comparable in terms of consistency scores. Our code is available at https://github.com/gouqi666/RAST.","url_abs":"https://arxiv.org/abs/2310.14503v1","url_pdf":"https://arxiv.org/pdf/2310.14503v1.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":"diversify-question-generation-with-retrieval","repo_url":"https://github.com/gouqi666/rast","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"question-generation","task_name":"Question Generation"},{"task_slug":"question-generation","task_name":"Question-Generation"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.14503","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.14503"}},"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/mjpost/sacrebleu","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/gouqi666/RAST","reach":{"status":"unanswered"}}],"summary":{"ran":8,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":11,"ran":9,"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":11,"samples":[{"code_sha256_prefix":"acace4db00a00e67","entry":"add_suffix","repo":"gouqi666/RAST","repo_kind":"official","path":"rag/core.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/rag/core.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"acace4db00a00e67"}},{"code_sha256_prefix":"37b0d27f83566ecf","entry":"compute_exact","repo":"gouqi666/RAST","repo_kind":"official","path":"eval_squad.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/eval_squad.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"37b0d27f83566ecf"}},{"code_sha256_prefix":"2d88efd7d24b1337","entry":"flatten","repo":"gouqi666/RAST","repo_kind":"official","path":"nltk_bleu.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/nltk_bleu.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2d88efd7d24b1337"}},{"code_sha256_prefix":"02c9832d72bbf95c","entry":"get_sent_bleu","repo":"gouqi666/RAST","repo_kind":"official","path":"nltk_bleu.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/nltk_bleu.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"02c9832d72bbf95c"}},{"code_sha256_prefix":"011d5cd744886e9d","entry":"get_tokens","repo":"gouqi666/RAST","repo_kind":"official","path":"eval_squad.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/eval_squad.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"011d5cd744886e9d"}},{"code_sha256_prefix":"5c30e376e356eaca","entry":"normalize_answer","repo":"gouqi666/RAST","repo_kind":"official","path":"eval_squad.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/eval_squad.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5c30e376e356eaca"}},{"code_sha256_prefix":"38ed4095e4e300f7","entry":"read_jsonls_file","repo":"gouqi666/RAST","repo_kind":"official","path":"datasets_tasks.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/datasets_tasks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"38ed4095e4e300f7"}},{"code_sha256_prefix":"091b9df922f1bc8b","entry":"read_raw_files","repo":"gouqi666/RAST","repo_kind":"official","path":"datasets_tasks.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/datasets_tasks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"091b9df922f1bc8b"}},{"code_sha256_prefix":"c421e6f0c295b7fb","entry":"stack_dicts","repo":"gouqi666/RAST","repo_kind":"official","path":"rag/core.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/rag/core.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c421e6f0c295b7fb"}},{"code_sha256_prefix":"ddf7639e1bf7edf8","entry":"flatten_dict","repo":"gouqi666/RAST","repo_kind":"official","path":"rag/core.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/rag/core.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ddf7639e1bf7edf8"}},{"code_sha256_prefix":"122ffef60e7b3fcc","entry":"get_sent_bleu_list","repo":"gouqi666/RAST","repo_kind":"official","path":"nltk_bleu.py","file_url":"https://github.com/gouqi666/RAST/blob/HEAD/nltk_bleu.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"122ffef60e7b3fcc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}