{"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/jurex-4e-juridical-expert-annotated-four","title":"JUREX-4E: Juridical Expert-Annotated Four-Element Knowledge Base for Legal Reasoning","arxiv_id":"2502.17166","date":"2025-02-24","proceeding":null,"authors":["Huanghai Liu","Quzhe Huang","Qingjing Chen","Yiran Hu","Jiayu Ma","Yun Liu","Weixing Shen","Yansong Feng"],"abstract":"The Four-Element Theory is a fundamental framework in criminal law, defining the constitution of crime through four dimensions: Subject, Object, Subjective aspect, and Objective aspect. This theory is widely referenced in legal reasoning, and many Large Language Models (LLMs) attempt to incorporate it when handling legal tasks. However, current approaches rely on LLMs' internal knowledge to incorporate this theory, often lacking completeness and representativeness. To address this limitation, we introduce JUREX-4E, an expert-annotated knowledge base covering 155 criminal charges. It is structured through a progressive hierarchical annotation framework that prioritizes legal source validity and employs diverse legal interpretation methods to ensure comprehensiveness and authority. We evaluate JUREX-4E on the Similar Charge Distinction task and apply it to Legal Case Retrieval, demonstrating its effectiveness in improving LLM performance. Experimental results validate the high quality of JUREX-4E and its substantial impact on downstream legal tasks, underscoring its potential for advancing legal AI applications. Code: https://github.com/THUlawtech/JUREX","url_abs":"https://arxiv.org/abs/2502.17166v1","url_pdf":"https://arxiv.org/pdf/2502.17166v1.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":"jurex-4e-juridical-expert-annotated-four","repo_url":"https://github.com/thulawtech/jurex","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"legal-reasoning","task_name":"Legal Reasoning"}],"methods":[{"method_slug":"base","method_name":"BASE"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2502.17166","atlas_url":"https://app.syntology.ai/?focus=2502.17166","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.17166"}},"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/THUlawtech/JUREX","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":13,"unverified":2},"by_repo_kind":{"official":{"samples":15,"ran":13,"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":"bd11b0cfa80c507a","entry":"deal_batch_input","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/batch_input_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/batch_input_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bd11b0cfa80c507a"}},{"code_sha256_prefix":"a7ca2a410d9684b0","entry":"deal_crime","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/LCR_lecard/FET_guided_case4ele.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/LCR_lecard/FET_guided_case4ele.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a7ca2a410d9684b0"}},{"code_sha256_prefix":"9359415897734203","entry":"deal_label","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/process&eval_output.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/process%26eval_output.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9359415897734203"}},{"code_sha256_prefix":"80441c66f354aad6","entry":"deal_pred","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/batch_input_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/batch_input_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"80441c66f354aad6"}},{"code_sha256_prefix":"ded8e5f42203baf2","entry":"find_category_and_accusation","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/preprocess_scd_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/preprocess_scd_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ded8e5f42203baf2"}},{"code_sha256_prefix":"5ce041c5514947d2","entry":"find_dict_by_key_value","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/process&eval_output.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/process%26eval_output.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5ce041c5514947d2"}},{"code_sha256_prefix":"de41b225db8804ec","entry":"get_detailed_example","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_models.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de41b225db8804ec"}},{"code_sha256_prefix":"2f73a33adedee83e","entry":"get_detailed_instruct","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_models.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_models.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f73a33adedee83e"}},{"code_sha256_prefix":"4292e5a78e9fe7b2","entry":"last_logit_pool","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_reranker.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_reranker.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4292e5a78e9fe7b2"}},{"code_sha256_prefix":"2b40b3b93a3ecb2b","entry":"last_logit_pool_layerwise","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_reranker.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_reranker.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b40b3b93a3ecb2b"}},{"code_sha256_prefix":"72408a5a9829cd29","entry":"last_logit_pool_lightweight","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_reranker.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_reranker.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"72408a5a9829cd29"}},{"code_sha256_prefix":"b08067637ffe4055","entry":"load_json_data","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/preprocess_scd_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/preprocess_scd_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b08067637ffe4055"}},{"code_sha256_prefix":"4b02b0612de37179","entry":"parse_args","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/batch_input_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/batch_input_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4b02b0612de37179"}},{"code_sha256_prefix":"2ded070fabe7bdc7","entry":"last_token_pool","repo":"THUlawtech/JUREX","repo_kind":"official","path":"LCR_experiment/FlagEmbedding/flag_models.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/LCR_experiment/FlagEmbedding/flag_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2ded070fabe7bdc7"}},{"code_sha256_prefix":"237374b1f60e7462","entry":"num_tokens","repo":"THUlawtech/JUREX","repo_kind":"official","path":"SCD_experiment/preprocess_scd_data.py","file_url":"https://github.com/THUlawtech/JUREX/blob/HEAD/SCD_experiment/preprocess_scd_data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"237374b1f60e7462"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}