{"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/dagn-discourse-aware-graph-network-for","title":"DAGN: Discourse-Aware Graph Network for Logical Reasoning","arxiv_id":"2103.14349","date":"2021-03-26","proceeding":"NAACL 2021 4","authors":["Yinya Huang","Meng Fang","Yu Cao","LiWei Wang","Xiaodan Liang"],"abstract":"Recent QA with logical reasoning questions requires passage-level relations among the sentences. However, current approaches still focus on sentence-level relations interacting among tokens. In this work, we explore aggregating passage-level clues for solving logical reasoning QA by using discourse-based information. We propose a discourse-aware graph network (DAGN) that reasons relying on the discourse structure of the texts. The model encodes discourse information as a graph with elementary discourse units (EDUs) and discourse relations, and learns the discourse-aware features via a graph network for downstream QA tasks. Experiments are conducted on two logical reasoning QA datasets, ReClor and LogiQA, and our proposed DAGN achieves competitive results. The source code is available at https://github.com/Eleanor-H/DAGN.","url_abs":"https://arxiv.org/abs/2103.14349v2","url_pdf":"https://arxiv.org/pdf/2103.14349v2.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":"dagn-discourse-aware-graph-network-for","repo_url":"https://github.com/Eleanor-H/DAGN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"dagn-discourse-aware-graph-network-for","repo_url":"https://github.com/xufangzhi/logiformer","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"logical-reasoning","task_name":"Logical Reasoning"},{"task_slug":"sentence","task_name":"Sentence"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/reading-comprehension-on-reclor","task":"Reading Comprehension","dataset":"ReClor","model":"NAACL 2021","rank_in_archive_order":24,"of":39,"metrics":{"Test":"58.2"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2103.14349","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2103.14349"}},"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/Eleanor-H/DAGN","reach":null}],"summary":{"ran":2,"unverified":3},"by_repo_kind":{"official":{"samples":5,"ran":2,"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":5,"samples":[{"code_sha256_prefix":"98ffccf8f8221616","entry":"FFNLayer","repo":"Eleanor-H/DAGN","repo_kind":"official","path":"dagn.py","file_url":"https://github.com/Eleanor-H/DAGN/blob/HEAD/dagn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"98ffccf8f8221616"}},{"code_sha256_prefix":"06028d68a29dfea7","entry":"ResidualGRU","repo":"Eleanor-H/DAGN","repo_kind":"official","path":"dagn.py","file_url":"https://github.com/Eleanor-H/DAGN/blob/HEAD/dagn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"06028d68a29dfea7"}},{"code_sha256_prefix":"3863215d6507db25","entry":"ArgumentGCN","repo":"Eleanor-H/DAGN","repo_kind":"official","path":"dagn.py","file_url":"https://github.com/Eleanor-H/DAGN/blob/HEAD/dagn.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":"3863215d6507db25"}},{"code_sha256_prefix":"9a37e20e656e278a","entry":"ArgumentGCN_wreverseedges_double","repo":"Eleanor-H/DAGN","repo_kind":"official","path":"dagn.py","file_url":"https://github.com/Eleanor-H/DAGN/blob/HEAD/dagn.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":"9a37e20e656e278a"}},{"code_sha256_prefix":"bd3d4b67bfff6452","entry":"DAGN","repo":"Eleanor-H/DAGN","repo_kind":"official","path":"dagn.py","file_url":"https://github.com/Eleanor-H/DAGN/blob/HEAD/dagn.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":"bd3d4b67bfff6452"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}