mlsanityData to 7 Oct 2026

LawGPT: Knowledge-Guided Data Generation and Its Application to Legal LLM

arXiv 2502.06572 ↗First posted 10 Feb 2025cs.CL cs.AIcited by 7

Not on the map. Why?

Abstract (arXiv)

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 .

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 18 of its 24 references that are in the map. First posted on arXiv 10 Feb 2025.

Builds on

18 of 24 references.

References · 18

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2024Qwen2.5 Technical Reportcited by 4,713
  3. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  4. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  5. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
  6. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  7. 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 618
  8. 2022Towards Reasoning in Large Language Models: A Surveycited by 593
  9. 2023FinGPT: Open-Source Financial Large Language Modelscited by 244
  10. 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
  11. 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
  12. 2020A Survey of Knowledge-Enhanced Text Generationcited by 119
6 more
  1. 2023LawBench: Benchmarking Legal Knowledge of Large Language Modelscited by 111
  2. 2017Learning to Predict Charges for Criminal Cases with Legal Basiscited by 61
  3. 2023Lawyer LLaMA Technical Reportcited by 54
  4. 2023Large Language Models in Education: Vision and Opportunitiescited by 54
  5. 2023A Brief Report on LawGPT 1.0: A Virtual Legal Assistant Based on GPT-3cited by 46
  6. 2024Neuro-Symbolic Data Generation for Math Reasoningcited by 21

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 3.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Evaluation of Large Language Models in Legal Applications: Challenges, Methods, and Future Directions
  2. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models
  3. 2025SynLexLM: Scaling Legal LLMs with Synthetic Data and Curriculum Learning
  4. 2026LegalDrill: Diagnosis-Driven Synthesis for Legal Reasoning in Small Language Models
  5. 2025Evaluating Test-Time Scaling LLMs for Legal Reasoning: OpenAI o1, DeepSeek-R1, and Beyond
  6. 2024KRAG Framework for Enhancing LLMs in the Legal Domain
  7. 2025LeMAJ (Legal LLM-as-a-Judge): Bridging Legal Reasoning and LLM Evaluation
  8. 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Text