Chinese Legal Language Modeling Based on Judicial Corpora: A Case Study on Criminal Reasoning with a Large Language Model
Abstract
In today’s world, many fields are supported with AI, but there are few research about the applications of large language models on sentencing crime. This paper formulates a legal-large language model specialized in Chinese criminal adjudication. The objective of the model is to give charge recommendations and sentencing range that is in accordance to China’s laws. It is based on a transformer-based model (Qwen-7B) and fine-tuned on more than 500,000 anonymized judicial documents. The data we used are from CAIL2018 and CAIL2020, two large legal datasets that store huge amounts of legal cases. Our model addresses charge prediction and sentencing recommendation tasks through the incorporation of prompt-based instruction tuning to simulate judicial logic. The model is able to receive long case inputs and give meaningful outputs. It shows high precision in determining charges and suggesting sentencing ranges. The model also shows high capability in aligning outputs with laws and statutes, giving the charges and sentencing ranges according to legal statutes. Interpretive pattern analysis of the model indicates capabilities in statutory fit. The model shows weakness in addressing complicated case details, where the model will show decrease in precision of output. The results of our model provide useful conclusions for the development of AI-supported judicial systems, where Large Language Models can help and support judges’ decision.
References
- Wanqiang Wu, Xifen Lin, 2025, Access to technology, access to justice: China’s artificial intelligence application in criminal proceedings.
- Chaojun Xiao, Xueyu Hu, Zhiyuan Liu, Cunchao Tu, Maosong Sun, 2021, Lawformer: A Pre-trained Language Model for Chinese Legal Long Documents
- Ashley, 2017, Artificial Intelligence and Legal Analytics: New Tools for Law Practice in the Digital Age
- Ilias Chalkidis, Manos Fergadiotis, Prodromos Malakasiotis, Nikolaos Aletras, Ion An- droutsopoulos, 2020, LEGAL-BERT: The Muppets straight out of Law School
- Chaojun Xiao, Haoxi Zhong, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Yansong Feng, Xianpei Han, Zhen Hu, Heng Wang, Jianfeng Xu CAIL2018: A Large-Scale Legal Dataset for Judgment Prediction