{"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-2604-07937","title":"HCRE: LLM-based Hierarchical Classification for Cross-Document Relation Extraction with a Prediction-then-Verification Strategy","arxiv_id":"2604.07937","date":"2026-04-09","proceeding":null,"authors":["Guoqi Ma","Liang Zhang","Hongyao Tu","Hao Fu","Hui Li","Yujie Lin","Longyue Wang","Weihua Luo","Jinsong Su"],"abstract":"Cross-document relation extraction (RE) aims to identify relations between the head and tail entities located in different documents. Existing approaches typically adopt the paradigm of ``\\textit{Small Language Model (SLM) + Classifier}''. However, the limited language understanding ability of SLMs hinders further improvement of their performance. In this paper, we conduct a preliminary study to explore the performance of Large Language Models (LLMs) in cross-document RE. Despite their extensive parameters, our findings indicate that LLMs do not consistently surpass existing SLMs. Further analysis suggests that the underperformance is largely attributed to the challenges posed by the numerous predefined relations. To overcome this issue, we propose an LLM-based \\underline{H}ierarchical \\underline{C}lassification model for cross-document \\underline{RE} (HCRE), which consists of two core components: 1) an LLM for relation prediction and 2) a \\textit{hierarchical relation tree} derived from the predefined relation set. This tree enables the LLM to perform hierarchical classification, where the target relation is inferred level by level. Since the number of child nodes is much smaller than the size of the entire predefined relation set, the hierarchical relation tree significantly reduces the number of relation options that LLM needs to consider during inference. However, hierarchical classification introduces the risk of error propagation across levels. To mitigate this, we propose a \\textit{prediction-then-verification} inference strategy that improves prediction reliability through multi-view verification at each level. Extensive experiments show that HCRE outperforms existing baselines, validating its effectiveness.","url_abs":"https://arxiv.org/abs/2604.07937","url_pdf":"https://arxiv.org/pdf/2604.07937","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=2604.07937","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.07937"}},"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/XMUDeepLIT/HCRE","reach":null}],"summary":{"ran":1,"ran_violates":1,"unverified":9},"by_repo_kind":{"found_in_text":{"samples":11,"ran":2,"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":"dbea5358be6b5ad0","entry":"create_score_evaluation_response","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"train/src/llamafactory/api/chat.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/train/src/llamafactory/api/chat.py","link_basis":"harvester_set","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":"dbea5358be6b5ad0"}},{"code_sha256_prefix":"e8b6cf1e9387fc9a","entry":"mean","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"inference/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/inference/utils.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e8b6cf1e9387fc9a"}},{"code_sha256_prefix":"f00a11019513fa38","entry":"compute_metrics","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"inference/eval_predictions.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/inference/eval_predictions.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":"f00a11019513fa38"}},{"code_sha256_prefix":"79c199943c57a674","entry":"edit_distance","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"inference/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/inference/utils.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":"79c199943c57a674"}},{"code_sha256_prefix":"495dba1ca2e724dc","entry":"extract_code","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/utils.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":"495dba1ca2e724dc"}},{"code_sha256_prefix":"56747310fcb05729","entry":"format_tree","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/main-meaningful_levels_v2.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/main-meaningful_levels_v2.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":"56747310fcb05729"}},{"code_sha256_prefix":"66a9fa337d0dc4a0","entry":"get_missing_and_invalid","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/main-meaningful_levels_v2.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/main-meaningful_levels_v2.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":"66a9fa337d0dc4a0"}},{"code_sha256_prefix":"759e23f601b2c5ad","entry":"get_pos_path_num","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/main-meaningful_levels_v2.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/main-meaningful_levels_v2.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":"759e23f601b2c5ad"}},{"code_sha256_prefix":"be53327170b067a9","entry":"hamming_similarity","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/utils.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":"be53327170b067a9"}},{"code_sha256_prefix":"5d068fb3f5d9c87b","entry":"int2roman","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"inference/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/inference/utils.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":"5d068fb3f5d9c87b"}},{"code_sha256_prefix":"b9e30c120203c7f6","entry":"read_from_jsonl","repo":"XMUDeepLIT/HCRE","repo_kind":"found_in_text","path":"auto-tree/utils.py","file_url":"https://github.com/XMUDeepLIT/HCRE/blob/HEAD/auto-tree/utils.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":"b9e30c120203c7f6"}}]},"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_2026.jsonl"},"syntology_extracted_results":null}