{"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/seer-facilitating-structured-reasoning-and","title":"SEER: Facilitating Structured Reasoning and Explanation via Reinforcement Learning","arxiv_id":"2401.13246","date":"2024-01-24","proceeding":null,"authors":["Guoxin Chen","Kexin Tang","Chao Yang","Fuying Ye","Yu Qiao","Yiming Qian"],"abstract":"Elucidating the reasoning process with structured explanations from question to answer is crucial, as it significantly enhances the interpretability, traceability, and trustworthiness of question-answering (QA) systems. However, structured explanations demand models to perform intricately structured reasoning, which poses great challenges. Most existing methods focus on single-step reasoning through supervised learning, ignoring logical dependencies between steps. Moreover, existing reinforcement learning (RL) based methods overlook the structured relationships, underutilizing the potential of RL in structured reasoning. In this paper, we propose SEER, a novel method that maximizes a structure-based return to facilitate structured reasoning and explanation. Our proposed structure-based return precisely describes the hierarchical and branching structure inherent in structured reasoning, effectively capturing the intricate relationships between different reasoning steps. In addition, we introduce a fine-grained reward function to meticulously delineate diverse reasoning steps. Extensive experiments show that SEER significantly outperforms state-of-the-art methods, achieving an absolute improvement of 6.9% over RL-based methods on EntailmentBank, a 4.4% average improvement on STREET benchmark, and exhibiting outstanding efficiency and cross-dataset generalization performance. Our code is available at https://github.com/Chen-GX/SEER.","url_abs":"https://arxiv.org/abs/2401.13246v4","url_pdf":"https://arxiv.org/pdf/2401.13246v4.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":"seer-facilitating-structured-reasoning-and","repo_url":"https://github.com/chen-gx/seer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"reinforcement-learning","task_name":"Reinforcement Learning"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"reinforcement-learning-2","task_name":"reinforcement-learning"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"focus","method_name":"Focus"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"grouped-convolution","method_name":"Grouped Convolution"},{"method_slug":"lars","method_name":"LARS"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"regnety","method_name":"RegNetY"},{"method_slug":"seer","method_name":"SEER"},{"method_slug":"sigmoid-activation","method_name":"Sigmoid Activation"},{"method_slug":"squeeze-and-excitation-block","method_name":"Squeeze-and-Excitation Block"},{"method_slug":"swav","method_name":"SwAV"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2401.13246","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.13246"}},"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/chen-gx/seer","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/Chen-GX/SEER","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":5,"ran":7,"ran_violates":1,"unverified":3},"by_repo_kind":{"official":{"samples":15,"ran":12,"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":1,"samples":[{"code_sha256_prefix":"37840dac8fbe9984","entry":"add_fullstop","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"37840dac8fbe9984"}},{"code_sha256_prefix":"f327a42b68b8350d","entry":"check_nan_and_inf","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/policy_net.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/policy_net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f327a42b68b8350d"}},{"code_sha256_prefix":"97e18d0b698dd4c8","entry":"decapitalize","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97e18d0b698dd4c8"}},{"code_sha256_prefix":"2876f6baff3466a8","entry":"get_task1","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/utils.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2876f6baff3466a8"}},{"code_sha256_prefix":"2809af8aa84d6463","entry":"get_task2","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/utils.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2809af8aa84d6463"}},{"code_sha256_prefix":"91ef4f10af2f0360","entry":"load_data","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/utils.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"91ef4f10af2f0360"}},{"code_sha256_prefix":"cf0a06f7868d1697","entry":"normalize","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf0a06f7868d1697"}},{"code_sha256_prefix":"e7e75981cb464788","entry":"normalize_answer","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e7e75981cb464788"}},{"code_sha256_prefix":"687eee6f12fa2fbe","entry":"normalize_sentence","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/reward.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/reward.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"687eee6f12fa2fbe"}},{"code_sha256_prefix":"07b94a2626ece603","entry":"parse_entailment_step_proof","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/reward.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/reward.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"07b94a2626ece603"}},{"code_sha256_prefix":"252ca6659b772750","entry":"same_sent","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"252ca6659b772750"}},{"code_sha256_prefix":"5218be161f3c9262","entry":"sort_key","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5218be161f3c9262"}},{"code_sha256_prefix":"92a5f0d0912c3a91","entry":"str2bool","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/arguments.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/arguments.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"92a5f0d0912c3a91"}},{"code_sha256_prefix":"7dab5599647f8485","entry":"State","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.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":"7dab5599647f8485"}},{"code_sha256_prefix":"01ce62aa5e1a87d2","entry":"eTree","repo":"Chen-GX/SEER","repo_kind":"official","path":"etree_task1/src/RL_etree.py","file_url":"https://github.com/Chen-GX/SEER/blob/HEAD/etree_task1/src/RL_etree.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":"01ce62aa5e1a87d2"}},{"code_sha256_prefix":"27dff68f0e4774cb","entry":"score_aligned_entail_tree_proof","repo":"chen-gx/seer","repo_kind":"official","path":"etree_task1/src/reward.py","file_url":"https://github.com/chen-gx/seer/blob/HEAD/etree_task1/src/reward.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":"27dff68f0e4774cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}