{"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/disc-lawllm-fine-tuning-large-language-models","title":"DISC-LawLLM: Fine-tuning Large Language Models for Intelligent Legal Services","arxiv_id":"2309.11325","date":"2023-09-20","proceeding":null,"authors":["Shengbin Yue","Wei Chen","Siyuan Wang","Bingxuan Li","Chenchen Shen","Shujun Liu","Yuxuan Zhou","Yao Xiao","Song Yun","Xuanjing Huang","Zhongyu Wei"],"abstract":"We propose DISC-LawLLM, an intelligent legal system utilizing large language models (LLMs) to provide a wide range of legal services. We adopt legal syllogism prompting strategies to construct supervised fine-tuning datasets in the Chinese Judicial domain and fine-tune LLMs with legal reasoning capability. We augment LLMs with a retrieval module to enhance models' ability to access and utilize external legal knowledge. A comprehensive legal benchmark, DISC-Law-Eval, is presented to evaluate intelligent legal systems from both objective and subjective dimensions. Quantitative and qualitative results on DISC-Law-Eval demonstrate the effectiveness of our system in serving various users across diverse legal scenarios. The detailed resources are available at https://github.com/FudanDISC/DISC-LawLLM.","url_abs":"https://arxiv.org/abs/2309.11325v2","url_pdf":"https://arxiv.org/pdf/2309.11325v2.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":"disc-lawllm-fine-tuning-large-language-models","repo_url":"https://github.com/fudandisc/disc-lawllm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"disc-lawllm-fine-tuning-large-language-models","repo_url":"https://github.com/fudandisc/disc-finllm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"large-language-model","task_name":"Large Language Model"},{"task_slug":"legal-reasoning","task_name":"Legal Reasoning"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[{"slug":"disc-law-sft","name":"DISC-Law-SFT","full_name":""}],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.11325","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.11325"}},"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/fudandisc/disc-lawllm","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fudandisc/disc-finllm","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":5,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"repositories":1},"listed":{"samples":2,"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":0,"samples":[{"code_sha256_prefix":"44cb610f58de9c76","entry":"colored","repo":"fudandisc/disc-lawllm","repo_kind":"official","path":"eval/src/utils.py","file_url":"https://github.com/fudandisc/disc-lawllm/blob/HEAD/eval/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"44cb610f58de9c76"}},{"code_sha256_prefix":"1b5441bd329b5498","entry":"evaluate_until_completed","repo":"fudandisc/disc-lawllm","repo_kind":"official","path":"eval/src/utils.py","file_url":"https://github.com/fudandisc/disc-lawllm/blob/HEAD/eval/src/utils.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":"1b5441bd329b5498"}},{"code_sha256_prefix":"30aecd96194fddce","entry":"extract_questions_and_text","repo":"fudandisc/disc-finllm","repo_kind":"listed","path":"eval/evaluator/utils.py","file_url":"https://github.com/fudandisc/disc-finllm/blob/HEAD/eval/evaluator/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"30aecd96194fddce"}},{"code_sha256_prefix":"9358925191a9836e","entry":"get_paths","repo":"fudandisc/disc-lawllm","repo_kind":"official","path":"eval/src/utils.py","file_url":"https://github.com/fudandisc/disc-lawllm/blob/HEAD/eval/src/utils.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":"9358925191a9836e"}},{"code_sha256_prefix":"f97998403d38cffc","entry":"load_json","repo":"fudandisc/disc-finllm","repo_kind":"listed","path":"eval/evaluator/utils.py","file_url":"https://github.com/fudandisc/disc-finllm/blob/HEAD/eval/evaluator/utils.py","link_basis":"harvester_set","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":"f97998403d38cffc"}},{"code_sha256_prefix":"3e00a40a3b4a64e5","entry":"get_model","repo":"fudandisc/disc-lawllm","repo_kind":"official","path":"eval/src/models.py","file_url":"https://github.com/fudandisc/disc-lawllm/blob/HEAD/eval/src/models.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":"3e00a40a3b4a64e5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}