{"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/arxiv-2509-07730","title":"M-BRe: Discovering Training Samples for Relation Extraction from Unlabeled Texts with Large Language Models","arxiv_id":"2509.07730","date":"2025-09-09","proceeding":"EMNLP","authors":["Zexuan Li","Hongliang Dai","Piji Li"],"abstract":"For Relation Extraction (RE), the manual annotation of training data may be prohibitively expensive, since the sentences that contain the target relations in texts can be very scarce and difficult to find. It is therefore beneficial to develop an efficient method that can automatically extract training instances from unlabeled texts for training RE models. Recently, large language models (LLMs) have been adopted in various natural language processing tasks, with RE also benefiting from their advances. However, when leveraging LLMs for RE with predefined relation categories, two key challenges arise. First, in a multi-class classification setting, LLMs often struggle to comprehensively capture the semantics of every relation, leading to suboptimal results. Second, although employing binary classification for each relation individually can mitigate this issue, it introduces significant computational overhead, resulting in impractical time complexity for real-world applications. Therefore, this paper proposes a framework called M-BRe to extract training instances from unlabeled texts for RE. It utilizes three modules to combine the advantages of both of the above classification approaches: Relation Grouping, Relation Extraction, and Label Decision. Extensive experiments confirm its superior capability in discovering high-quality training samples from unlabeled texts for RE.","url_abs":"https://arxiv.org/abs/2509.07730","url_pdf":"https://arxiv.org/pdf/2509.07730","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2509.07730","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.07730"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Lzx-ZBC/M-BRe","reach":{"status":"ok"}}],"summary":{"unverified":11},"by_repo_kind":{"found_in_text":{"samples":11,"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":11,"samples":[{"code_sha256_prefix":"adea75a78ac69445","entry":"detokenize","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/token_train.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/token_train.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":"adea75a78ac69445"}},{"code_sha256_prefix":"bf15ee34211787ff","entry":"generate_text","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/binary-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/binary-fgner.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":"bf15ee34211787ff"}},{"code_sha256_prefix":"0a20307e453bc955","entry":"generate_text","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/multi-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/multi-fgner.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":"0a20307e453bc955"}},{"code_sha256_prefix":"bd281aaa8fd482a5","entry":"last_result","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/binary-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/binary-fgner.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":"bd281aaa8fd482a5"}},{"code_sha256_prefix":"cfbc649efbcdf87a","entry":"make_prompt","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/binary-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/binary-fgner.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":"cfbc649efbcdf87a"}},{"code_sha256_prefix":"e9f46da936abe1ae","entry":"make_prompt","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/multi-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/multi-fgner.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":"e9f46da936abe1ae"}},{"code_sha256_prefix":"0d568a7b50137cda","entry":"make_prompt","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/ontonotes_uf/multi-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/ontonotes_uf/multi-fgner.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":"0d568a7b50137cda"}},{"code_sha256_prefix":"9eecee2366d8f6e0","entry":"make_prompt_binary","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/frame-fgner-spef1-epsilon.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/frame-fgner-spef1-epsilon.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":"9eecee2366d8f6e0"}},{"code_sha256_prefix":"f8d8b874a0e82130","entry":"make_prompt_multi","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/frame-fgner-spef1-epsilon.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/frame-fgner-spef1-epsilon.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":"f8d8b874a0e82130"}},{"code_sha256_prefix":"b6b64ba9691a93ea","entry":"multi_generate_text","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/frame-fgner-spef1-epsilon.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/frame-fgner-spef1-epsilon.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":"b6b64ba9691a93ea"}},{"code_sha256_prefix":"e475b1f6e332ccef","entry":"special_avg_f1","repo":"Lzx-ZBC/M-BRe","repo_kind":"found_in_text","path":"NER/bbn_afet/multi-fgner.py","file_url":"https://github.com/Lzx-ZBC/M-BRe/blob/HEAD/NER/bbn_afet/multi-fgner.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":"e475b1f6e332ccef"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_api"},"syntology_extracted_results":null}