{"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/reward-based-input-construction-for-cross","title":"Reward-based Input Construction for Cross-document Relation Extraction","arxiv_id":"2405.20649","date":"2024-05-31","proceeding":null,"authors":["Byeonghu Na","Suhyeon Jo","Yeongmin Kim","Il-Chul Moon"],"abstract":"Relation extraction (RE) is a fundamental task in natural language processing, aiming to identify relations between target entities in text. While many RE methods are designed for a single sentence or document, cross-document RE has emerged to address relations across multiple long documents. Given the nature of long documents in cross-document RE, extracting document embeddings is challenging due to the length constraints of pre-trained language models. Therefore, we propose REward-based Input Construction (REIC), the first learning-based sentence selector for cross-document RE. REIC extracts sentences based on relational evidence, enabling the RE module to effectively infer relations. Since supervision of evidence sentences is generally unavailable, we train REIC using reinforcement learning with RE prediction scores as rewards. Experimental results demonstrate the superiority of our method over heuristic methods for different RE structures and backbones in cross-document RE. Our code is publicly available at https://github.com/aailabkaist/REIC.","url_abs":"https://arxiv.org/abs/2405.20649v1","url_pdf":"https://arxiv.org/pdf/2405.20649v1.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":"reward-based-input-construction-for-cross","repo_url":"https://github.com/aailabkaist/reic","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"},{"task_slug":"sentence","task_name":"Sentence"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2405.20649","atlas_url":"https://app.syntology.ai/?focus=2405.20649","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.20649"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/aailabkaist/REIC","reach":null}],"summary":{"ran":3,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"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":"4ebd5c0e327383fa","entry":"Attention","repo":"aailabkaist/REIC","repo_kind":"official","path":"ecrim-reic/main_reic.py","file_url":"https://github.com/aailabkaist/REIC/blob/HEAD/ecrim-reic/main_reic.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4ebd5c0e327383fa"}},{"code_sha256_prefix":"3b38f8534d62c9ca","entry":"Encoder_Layer","repo":"aailabkaist/REIC","repo_kind":"official","path":"ecrim-reic/main_reic.py","file_url":"https://github.com/aailabkaist/REIC/blob/HEAD/ecrim-reic/main_reic.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3b38f8534d62c9ca"}},{"code_sha256_prefix":"f0230f7e4e44d32b","entry":"FFN","repo":"aailabkaist/REIC","repo_kind":"official","path":"ecrim-reic/main_reic.py","file_url":"https://github.com/aailabkaist/REIC/blob/HEAD/ecrim-reic/main_reic.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f0230f7e4e44d32b"}},{"code_sha256_prefix":"244a87d7e7468974","entry":"Codred","repo":"aailabkaist/REIC","repo_kind":"official","path":"ecrim-reic/main_reic.py","file_url":"https://github.com/aailabkaist/REIC/blob/HEAD/ecrim-reic/main_reic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"244a87d7e7468974"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}