{"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/reasoning-with-latent-structure-refinement","title":"Reasoning with Latent Structure Refinement for Document-Level Relation Extraction","arxiv_id":"2005.06312","date":"2020-05-13","proceeding":"ACL 2020 6","authors":["Guoshun Nan","Zhijiang Guo","Ivan Sekulić","Wei Lu"],"abstract":"Document-level relation extraction requires integrating information within and across multiple sentences of a document and capturing complex interactions between inter-sentence entities. However, effective aggregation of relevant information in the document remains a challenging research question. Existing approaches construct static document-level graphs based on syntactic trees, co-references or heuristics from the unstructured text to model the dependencies. Unlike previous methods that may not be able to capture rich non-local interactions for inference, we propose a novel model that empowers the relational reasoning across sentences by automatically inducing the latent document-level graph. We further develop a refinement strategy, which enables the model to incrementally aggregate relevant information for multi-hop reasoning. Specifically, our model achieves an F1 score of 59.05 on a large-scale document-level dataset (DocRED), significantly improving over the previous results, and also yields new state-of-the-art results on the CDR and GDA dataset. Furthermore, extensive analyses show that the model is able to discover more accurate inter-sentence relations.","url_abs":"https://arxiv.org/abs/2005.06312v3","url_pdf":"https://arxiv.org/pdf/2005.06312v3.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":"reasoning-with-latent-structure-refinement","repo_url":"https://github.com/nanguoshun/LSR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"reasoning-with-latent-structure-refinement","repo_url":"https://github.com/scofield7419/DiaRE-D2G","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":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"},{"task_slug":"relational-reasoning","task_name":"Relational Reasoning"},{"task_slug":"sentence","task_name":"Sentence"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/relation-extraction-on-cdr","task":"Relation Extraction","dataset":"CDR","model":"LSR w/o MDP Nodes","rank_in_archive_order":10,"of":10,"metrics":{"F1":"64.8"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-docred","task":"Relation Extraction","dataset":"DocRED","model":"LSR+BERT-base","rank_in_archive_order":38,"of":62,"metrics":{"F1":"59.05","Ign F1":"56.97"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-docred","task":"Relation Extraction","dataset":"DocRED","model":"LSR+GloVe","rank_in_archive_order":54,"of":62,"metrics":{"F1":"54.18","Ign F1":"52.15"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-gda","task":"Relation Extraction","dataset":"GDA","model":"LSR w/o MDP Nodes","rank_in_archive_order":9,"of":9,"metrics":{"F1":"82.2"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.06312","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.06312"}},"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/nanguoshun/LSR","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/scofield7419/DiaRE-D2G","reach":null}],"summary":{"ran":5,"unverified":2},"by_repo_kind":{"official":{"samples":6,"ran":4,"repositories":1},"listed":{"samples":1,"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":6,"samples":[{"code_sha256_prefix":"595e166a8ca90874","entry":"Encoder","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"595e166a8ca90874"}},{"code_sha256_prefix":"ba46f3df56f000df","entry":"GraphConvLayer","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"ba46f3df56f000df"}},{"code_sha256_prefix":"9002f9968c2d49b3","entry":"SelfAttention","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"9002f9968c2d49b3"}},{"code_sha256_prefix":"7712f8727696bca0","entry":"SpGraphAttentionLayer","repo":"scofield7419/DiaRE-D2G","repo_kind":"listed","path":"models/layers.py","file_url":"https://github.com/scofield7419/DiaRE-D2G/blob/HEAD/models/layers.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":"7712f8727696bca0"}},{"code_sha256_prefix":"51320645411607c4","entry":"StructInduction","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"51320645411607c4"}},{"code_sha256_prefix":"9ef4d206c1c24798","entry":"DynamicReasoner","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"9ef4d206c1c24798"}},{"code_sha256_prefix":"1f2a2663db3d1f09","entry":"LSR","repo":"nanguoshun/LSR","repo_kind":"official","path":"code/models/lsr.py","file_url":"https://github.com/nanguoshun/LSR/blob/HEAD/code/models/lsr.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":"1f2a2663db3d1f09"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}