{"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/attention-guided-graph-convolutional-networks","title":"Attention Guided Graph Convolutional Networks for Relation Extraction","arxiv_id":"1906.07510","date":"2019-06-18","proceeding":"ACL 2019 7","authors":["Zhijiang Guo","Yan Zhang","Wei Lu"],"abstract":"Dependency trees convey rich structural information that is proven useful for extracting relations among entities in text. However, how to effectively make use of relevant information while ignoring irrelevant information from the dependency trees remains a challenging research question. Existing approaches employing rule based hard-pruning strategies for selecting relevant partial dependency structures may not always yield optimal results. In this work, we propose Attention Guided Graph Convolutional Networks (AGGCNs), a novel model which directly takes full dependency trees as inputs. Our model can be understood as a soft-pruning approach that automatically learns how to selectively attend to the relevant sub-structures useful for the relation extraction task. Extensive results on various tasks including cross-sentence n-ary relation extraction and large-scale sentence-level relation extraction show that our model is able to better leverage the structural information of the full dependency trees, giving significantly better results than previous approaches.","url_abs":"https://arxiv.org/abs/1906.07510v8","url_pdf":"https://arxiv.org/pdf/1906.07510v8.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":"attention-guided-graph-convolutional-networks","repo_url":"https://github.com/Cartus/AGGCN_TACRED","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"attention-guided-graph-convolutional-networks","repo_url":"https://github.com/Cartus/AGGCN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"},{"task_slug":"sentence","task_name":"Sentence"}],"methods":[{"method_slug":"graph-convolutional-networks","method_name":"Graph Convolutional Networks"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/relation-extraction-on-tacred","task":"Relation Extraction","dataset":"TACRED","model":"C-AGGCN","rank_in_archive_order":27,"of":40,"metrics":{"F1":"68.2"},"uses_additional_data":false},{"leaderboard":"/sota/relation-extraction-on-tacred","task":"Relation Extraction","dataset":"TACRED","model":"AGGCN","rank_in_archive_order":37,"of":40,"metrics":{"F1":"65.1"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1906.07510","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1906.07510"}},"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/Cartus/AGGCN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Cartus/AGGCN_TACRED","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":1,"repositories":1},"listed":{"samples":1,"ran":0,"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":"6cdff690e29fd5e2","entry":"clones","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"PubMed/Binary/model/aggcn.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/PubMed/Binary/model/aggcn.py","link_basis":"harvester_set","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":"6cdff690e29fd5e2"}},{"code_sha256_prefix":"d29688d33b9aa937","entry":"attention","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/aggcn.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/aggcn.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":"d29688d33b9aa937"}},{"code_sha256_prefix":"f091cdd21c103f22","entry":"batched_index_select","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"semeval/model/aggcn.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/semeval/model/aggcn.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":"f091cdd21c103f22"}},{"code_sha256_prefix":"66027a712727c031","entry":"head_to_tree","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/tree.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/tree.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":"66027a712727c031"}},{"code_sha256_prefix":"ebfa4cdc3d3f34b8","entry":"load_tokens","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"prepare_vocab.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/prepare_vocab.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":"ebfa4cdc3d3f34b8"}},{"code_sha256_prefix":"83e7bab03dc7c999","entry":"load_tokens","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"semeval/prepare_vocab.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/semeval/prepare_vocab.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":"83e7bab03dc7c999"}},{"code_sha256_prefix":"f5b0ce312a47a4cf","entry":"rnn_zero_state","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/aggcn.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/aggcn.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":"f5b0ce312a47a4cf"}},{"code_sha256_prefix":"9cb44938e773d88b","entry":"score","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"utils/scorer.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/utils/scorer.py","link_basis":"harvester_set","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":"9cb44938e773d88b"}},{"code_sha256_prefix":"c4b42e34eb5cc2e9","entry":"score","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"semeval/utils/scorer.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/semeval/utils/scorer.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":"c4b42e34eb5cc2e9"}},{"code_sha256_prefix":"e47b743b525d74fe","entry":"tree_to_adj","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/tree.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/tree.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":"e47b743b525d74fe"}},{"code_sha256_prefix":"b836539d7a29d214","entry":"tree_to_dist","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/tree.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/tree.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":"b836539d7a29d214"}},{"code_sha256_prefix":"24ca48b2ae4c7be9","entry":"unpack_batch","repo":"Cartus/AGGCN_TACRED","repo_kind":"official","path":"model/trainer.py","file_url":"https://github.com/Cartus/AGGCN_TACRED/blob/HEAD/model/trainer.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":"24ca48b2ae4c7be9"}},{"code_sha256_prefix":"80ad2c5df3e82bb4","entry":"unpack_batch","repo":"Cartus/AGGCN","repo_kind":"listed","path":"semeval/model/trainer.py","file_url":"https://github.com/Cartus/AGGCN/blob/HEAD/semeval/model/trainer.py","link_basis":"harvester_set","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":"80ad2c5df3e82bb4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}