{"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/multi-defendant-legal-judgment-prediction-via","title":"Multi-Defendant Legal Judgment Prediction via Hierarchical Reasoning","arxiv_id":"2312.05762","date":"2023-12-10","proceeding":null,"authors":["Yougang Lyu","Jitai Hao","Zihan Wang","Kai Zhao","Shen Gao","Pengjie Ren","Zhumin Chen","Fang Wang","Zhaochun Ren"],"abstract":"Multiple defendants in a criminal fact description generally exhibit complex interactions, and cannot be well handled by existing Legal Judgment Prediction (LJP) methods which focus on predicting judgment results (e.g., law articles, charges, and terms of penalty) for single-defendant cases. To address this problem, we propose the task of multi-defendant LJP, which aims to automatically predict the judgment results for each defendant of multi-defendant cases. Two challenges arise with the task of multi-defendant LJP: (1) indistinguishable judgment results among various defendants; and (2) the lack of a real-world dataset for training and evaluation. To tackle the first challenge, we formalize the multi-defendant judgment process as hierarchical reasoning chains and introduce a multi-defendant LJP method, named Hierarchical Reasoning Network (HRN), which follows the hierarchical reasoning chains to determine criminal relationships, sentencing circumstances, law articles, charges, and terms of penalty for each defendant. To tackle the second challenge, we collect a real-world multi-defendant LJP dataset, namely MultiLJP, to accelerate the relevant research in the future. Extensive experiments on MultiLJP verify the effectiveness of our proposed HRN.","url_abs":"https://arxiv.org/abs/2312.05762v1","url_pdf":"https://arxiv.org/pdf/2312.05762v1.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":"multi-defendant-legal-judgment-prediction-via","repo_url":"https://github.com/currentf/hrn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"articles","task_name":"Articles"},{"task_slug":"prediction","task_name":"Prediction"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2312.05762","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.05762"}},"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/currentf/hrn","reach":{"status":"ok"}}],"summary":{"ran_fixture":1,"ran":6,"unverified":2},"by_repo_kind":{"official":{"samples":9,"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":9,"samples":[{"code_sha256_prefix":"6bef6bdd6eb44070","entry":"cross_attention_forward","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/model.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6bef6bdd6eb44070"}},{"code_sha256_prefix":"a827f1327c820e1c","entry":"get_elements_from_line","repo":"currentf/hrn","repo_kind":"official","path":"dataset/dataset-v5/data_preprocess_for_transform.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/dataset/dataset-v5/data_preprocess_for_transform.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":"a827f1327c820e1c"}},{"code_sha256_prefix":"43189ec2e0c2cee7","entry":"get_laws","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/text_match.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/text_match.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"43189ec2e0c2cee7"}},{"code_sha256_prefix":"6c4952749de02f9b","entry":"get_related_relations","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/data_templates.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/data_templates.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":"6c4952749de02f9b"}},{"code_sha256_prefix":"0d3d865388a1a261","entry":"hanzi_to_num","repo":"currentf/hrn","repo_kind":"official","path":"dataset/dataset-v5/data_preprocess_for_transform.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/dataset/dataset-v5/data_preprocess_for_transform.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0d3d865388a1a261"}},{"code_sha256_prefix":"4fef47be40eabeea","entry":"init_templates","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/data_templates.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/data_templates.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":"4fef47be40eabeea"}},{"code_sha256_prefix":"896a7b8df5bc4893","entry":"loads_str","repo":"currentf/hrn","repo_kind":"official","path":"dataset/dataset-v5/data_preprocess_for_transform.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/dataset/dataset-v5/data_preprocess_for_transform.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"896a7b8df5bc4893"}},{"code_sha256_prefix":"0098e17bf86eed6a","entry":"apply_template","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/data_templates.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/data_templates.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":"0098e17bf86eed6a"}},{"code_sha256_prefix":"1a046a65dc3372ff","entry":"cal_weight","repo":"currentf/hrn","repo_kind":"official","path":"models/HRN/src/cal_sample_weight.py","file_url":"https://github.com/currentf/hrn/blob/HEAD/models/HRN/src/cal_sample_weight.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":"1a046a65dc3372ff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}