Enabling Discriminative Reasoning in LLMs for Legal Judgment Prediction[Paper]
- 🤗The Huggingface model: Based on Qwen2-7B, we trained a model using the CAIL2018 dataset. Qwen2-7B-CAIL2018-step-8765
- The training trajectories: We release the 80,141 training trajectories of the CAIL2018 dataset in this link
❗️Note: Our released model needs the Qwen chat_template
to conduct correct generation.
We support the following four prompts to enable reasoning. You should use the same input format and prompt
to achieve the best performance.
case_input = f"案件描述:{description}\n被告人姓名:{defendant_name}"
prompt = "请你采用ADAPT框架分析以上案件中该被告人可能被判处的罪名、适用法条和刑期"
model_input_str = '\n'.join(case_input, prompt)
case_input = f"案件描述:{description}\n被告人姓名:{defendant_name}"
prompt = "请你用法律理论分析以上案件中该被告人在行为主体,起因、行为和结果,行为对象,犯罪主观四个方面的信息"
model_input_str = '\n'.join(case_input, prompt)
case_input = f"案件描述:{description}\n被告人姓名:{defendant_name}"
prompt = "请你依次列出以上案件中被告人适用的法条具体内容,以及适用该法条的原因"
model_input_str = '\n'.join(case_input, prompt)
case_input = f"案件描述:{description}\n被告人姓名:{defendant_name}\n罪名:{crimes}" # e.g., 污染环境罪
prompt = "请你分析以上案件中的量刑区间和量刑因素,并给出最后的量刑预测结果"
model_input_str = '\n'.join(case_input, prompt)
@inproceedings{deng-etal-2024-enabling,
title = "Enabling Discriminative Reasoning in {LLM}s for Legal Judgment Prediction",
author = "Deng, Chenlong and
Mao, Kelong and
Zhang, Yuyao and
Dou, Zhicheng",
editor = "Al-Onaizan, Yaser and
Bansal, Mohit and
Chen, Yun-Nung",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.findings-emnlp.43",
pages = "784--796",
abstract = "Legal judgment prediction is essential for enhancing judicial efficiency. In this work, we identify that existing large language models (LLMs) underperform in this domain due to challenges in understanding case complexities and distinguishing between similar charges. To adapt LLMs for effective legal judgment prediction, we introduce the Ask-Discriminate-Predict (ADAPT) reasoning framework inspired by human judicial reasoning. ADAPT involves decomposing case facts, discriminating among potential charges, and predicting the final judgment. We further enhance LLMs through fine-tuning with multi-task synthetic trajectories to improve legal judgment prediction accuracy and efficiency under our ADAPT framework. Extensive experiments conducted on two widely-used datasets demonstrate the superior performance of our framework in legal judgment prediction, particularly when dealing with complex and confusing charges.",
}