Saved in:
Bibliographic Details
Main Authors: Zhou, Zhi, Yu, Kun-Yang, Tian, Shi-Yu, Yang, Xiao-Wen, Shi, Jiang-Xin, Song, Pengxiao, Jin, Yi-Xuan, Guo, Lan-Zhe, Li, Yu-Feng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.06572
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912230802456576
author Zhou, Zhi
Yu, Kun-Yang
Tian, Shi-Yu
Yang, Xiao-Wen
Shi, Jiang-Xin
Song, Pengxiao
Jin, Yi-Xuan
Guo, Lan-Zhe
Li, Yu-Feng
author_facet Zhou, Zhi
Yu, Kun-Yang
Tian, Shi-Yu
Yang, Xiao-Wen
Shi, Jiang-Xin
Song, Pengxiao
Jin, Yi-Xuan
Guo, Lan-Zhe
Li, Yu-Feng
contents Large language models (LLMs), both proprietary and open-source, have demonstrated remarkable capabilities across various natural language processing tasks. However, they face significant limitations in legal reasoning tasks. Proprietary models introduce data privacy risks and high inference costs, while open-source models underperform due to insufficient legal domain training data. To address these limitations, we study data generation for legal reasoning to improve the legal reasoning performance of open-source LLMs with the help of proprietary LLMs. This is challenging due to the lack of legal knowledge in proprietary LLMs and the difficulty in verifying the generated data. We propose KgDG, a knowledge-guided data generation framework for legal reasoning. Our framework enables leveraging legal knowledge to enhance generation diversity and introduces a refinement and verification process to ensure the quality of generated data. Moreover, we expand the generated dataset to further enhance the LLM reasoning capabilities. Using KgDG, we create a synthetic legal reasoning dataset containing 50K high-quality examples. Our trained model LawGPT outperforms existing legal-specific LLMs and achieves performance comparable to proprietary LLMs, demonstrating the effectiveness of KgDG and LawGPT. Our code and resources is publicly available at https://github.com/LAMDASZ-ML/Knowledge-Guide-Data-Generation .
format Preprint
id arxiv_https___arxiv_org_abs_2502_06572
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LawGPT: Knowledge-Guided Data Generation and Its Application to Legal LLM
Zhou, Zhi
Yu, Kun-Yang
Tian, Shi-Yu
Yang, Xiao-Wen
Shi, Jiang-Xin
Song, Pengxiao
Jin, Yi-Xuan
Guo, Lan-Zhe
Li, Yu-Feng
Computation and Language
Artificial Intelligence
Large language models (LLMs), both proprietary and open-source, have demonstrated remarkable capabilities across various natural language processing tasks. However, they face significant limitations in legal reasoning tasks. Proprietary models introduce data privacy risks and high inference costs, while open-source models underperform due to insufficient legal domain training data. To address these limitations, we study data generation for legal reasoning to improve the legal reasoning performance of open-source LLMs with the help of proprietary LLMs. This is challenging due to the lack of legal knowledge in proprietary LLMs and the difficulty in verifying the generated data. We propose KgDG, a knowledge-guided data generation framework for legal reasoning. Our framework enables leveraging legal knowledge to enhance generation diversity and introduces a refinement and verification process to ensure the quality of generated data. Moreover, we expand the generated dataset to further enhance the LLM reasoning capabilities. Using KgDG, we create a synthetic legal reasoning dataset containing 50K high-quality examples. Our trained model LawGPT outperforms existing legal-specific LLMs and achieves performance comparable to proprietary LLMs, demonstrating the effectiveness of KgDG and LawGPT. Our code and resources is publicly available at https://github.com/LAMDASZ-ML/Knowledge-Guide-Data-Generation .
title LawGPT: Knowledge-Guided Data Generation and Its Application to Legal LLM
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.06572