{"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/an-autoregressive-text-to-graph-framework-for","title":"An Autoregressive Text-to-Graph Framework for Joint Entity and Relation Extraction","arxiv_id":"2401.01326","date":"2024-01-02","proceeding":null,"authors":["Urchade Zaratiana","Nadi Tomeh","Pierre Holat","Thierry Charnois"],"abstract":"In this paper, we propose a novel method for joint entity and relation extraction from unstructured text by framing it as a conditional sequence generation problem. In contrast to conventional generative information extraction models that are left-to-right token-level generators, our approach is \\textit{span-based}. It generates a linearized graph where nodes represent text spans and edges represent relation triplets. Our method employs a transformer encoder-decoder architecture with pointing mechanism on a dynamic vocabulary of spans and relation types. Our model can capture the structural characteristics and boundaries of entities and relations through span representations while simultaneously grounding the generated output in the original text thanks to the pointing mechanism. Evaluation on benchmark datasets validates the effectiveness of our approach, demonstrating competitive results. Code is available at https://github.com/urchade/ATG.","url_abs":"https://arxiv.org/abs/2401.01326v2","url_pdf":"https://arxiv.org/pdf/2401.01326v2.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":"an-autoregressive-text-to-graph-framework-for","repo_url":"https://github.com/urchade/atg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"joint-entity-and-relation-extraction","task_name":"Joint Entity and Relation Extraction"},{"task_slug":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2401.01326","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.01326"}},"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/urchade/atg","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/urchade/ATG","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran":6},"by_repo_kind":{"official":{"samples":7,"ran":7,"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":7,"samples":[{"code_sha256_prefix":"10865bbb99140edd","entry":"Linear","repo":"urchade/ATG","repo_kind":"official","path":"layers/span_embedding.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/layers/span_embedding.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"10865bbb99140edd"}},{"code_sha256_prefix":"f19704e846b2d313","entry":"MLP","repo":"urchade/ATG","repo_kind":"official","path":"model.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/model.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":"f19704e846b2d313"}},{"code_sha256_prefix":"1c34d6f3fd61526b","entry":"create_position_code_sep","repo":"urchade/ATG","repo_kind":"official","path":"layers/structure.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/layers/structure.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":"1c34d6f3fd61526b"}},{"code_sha256_prefix":"1d8e5fa2df7918c5","entry":"extract_tp_actual_correct","repo":"urchade/ATG","repo_kind":"official","path":"metric.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/metric.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":"1d8e5fa2df7918c5"}},{"code_sha256_prefix":"5fbabc501416eeb8","entry":"flatten_for_eval","repo":"urchade/ATG","repo_kind":"official","path":"metric.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/metric.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":"5fbabc501416eeb8"}},{"code_sha256_prefix":"82925fc7f17ecc71","entry":"generate_square_subsequent_mask","repo":"urchade/ATG","repo_kind":"official","path":"trans_enc.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/trans_enc.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":"82925fc7f17ecc71"}},{"code_sha256_prefix":"8d729b1a9f22286e","entry":"nucleus_sampling","repo":"urchade/ATG","repo_kind":"official","path":"model.py","file_url":"https://github.com/urchade/ATG/blob/HEAD/model.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":"8d729b1a9f22286e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}