{"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/discriminative-reasoning-for-document-level","title":"Discriminative Reasoning for Document-level Relation Extraction","arxiv_id":"2106.01562","date":"2021-06-03","proceeding":"Findings (ACL) 2021 8","authors":["Wang Xu","Kehai Chen","Tiejun Zhao"],"abstract":"Document-level relation extraction (DocRE) models generally use graph networks to implicitly model the reasoning skill (i.e., pattern recognition, logical reasoning, coreference reasoning, etc.) related to the relation between one entity pair in a document. In this paper, we propose a novel discriminative reasoning framework to explicitly model the paths of these reasoning skills between each entity pair in this document. Thus, a discriminative reasoning network is designed to estimate the relation probability distribution of different reasoning paths based on the constructed graph and vectorized document contexts for each entity pair, thereby recognizing their relation. Experimental results show that our method outperforms the previous state-of-the-art performance on the large-scale DocRE dataset. The code is publicly available at https://github.com/xwjim/DRN.","url_abs":"https://arxiv.org/abs/2106.01562v1","url_pdf":"https://arxiv.org/pdf/2106.01562v1.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":"discriminative-reasoning-for-document-level","repo_url":"https://github.com/xwjim/DRN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"discriminative-reasoning-for-document-level","repo_url":"https://github.com/kracr/document-level-relation-extraction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"document-level-relation-extraction","task_name":"Document-level Relation Extraction"},{"task_slug":"logical-reasoning","task_name":"Logical Reasoning"},{"task_slug":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/relation-extraction-on-docred","task":"Relation Extraction","dataset":"DocRED","model":"DRN-BERT-base","rank_in_archive_order":24,"of":62,"metrics":{"F1":"61.37","Ign F1":"59.15"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-docred","task":"Relation Extraction","dataset":"DocRED","model":"DRN-GloVe","rank_in_archive_order":47,"of":62,"metrics":{"F1":"56.33","Ign F1":"54.35"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.01562","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.01562"}},"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/xwjim/DRN","reach":null}],"summary":{"ran":7,"ran_honours":1,"unverified":2},"by_repo_kind":{"official":{"samples":10,"ran":8,"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":"b726edbcdb133a6e","entry":"BiLSTM","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"b726edbcdb133a6e"}},{"code_sha256_prefix":"91e688bdb73b0536","entry":"GraphAttentionLayer","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"91e688bdb73b0536"}},{"code_sha256_prefix":"a71906f960cae0a7","entry":"GraphConvolutionLayer","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"a71906f960cae0a7"}},{"code_sha256_prefix":"5ddc00be435de1dc","entry":"GraphReasonLayer","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"5ddc00be435de1dc"}},{"code_sha256_prefix":"b3cbaba8366c9a10","entry":"MultiHeadAttention","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"b3cbaba8366c9a10"}},{"code_sha256_prefix":"82da049dc17d5ab5","entry":"ScaledDotProductAttention","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"82da049dc17d5ab5"}},{"code_sha256_prefix":"9ce5acb95a0bb132","entry":"Task_Decompose","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"9ce5acb95a0bb132"}},{"code_sha256_prefix":"f43f423bf4cb3982","entry":"get_cuda","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f43f423bf4cb3982"}},{"code_sha256_prefix":"591c83506ab3a0f0","entry":"DRN_GloVe","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"591c83506ab3a0f0"}},{"code_sha256_prefix":"a5c1c83f9e35d84c","entry":"mergy_span_token","repo":"xwjim/DRN","repo_kind":"official","path":"code/models/DRN.py","file_url":"https://github.com/xwjim/DRN/blob/HEAD/code/models/DRN.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":"a5c1c83f9e35d84c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}