mlsanityData to 7 Oct 2026

InternLM-Law: An Open Source Chinese Legal Large Language Model

arXiv 2406.14887 ↗First posted 21 Jun 2024cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

While large language models (LLMs) have showcased impressive capabilities, they struggle with addressing legal queries due to the intricate complexities and specialized expertise required in the legal field. In this paper, we introduce InternLM-Law, a specialized LLM tailored for addressing diverse legal queries related to Chinese laws, spanning from responding to standard legal questions (e.g., legal exercises in textbooks) to analyzing complex real-world legal situations. We meticulously construct a dataset in the Chinese legal domain, encompassing over 1 million queries, and implement a data filtering and processing pipeline to ensure its diversity and quality. Our training approach involves a novel two-stage process: initially fine-tuning LLMs on both legal-specific and general-purpose content to equip the models with broad knowledge, followed by exclusive fine-tuning on high-quality legal data to enhance structured output generation. InternLM-Law achieves the highest average performance on LawBench, outperforming state-of-the-art models, including GPT-4, on 13 out of 20 subtasks. We make InternLM-Law and our dataset publicly available to facilitate future research in applying LLMs within the legal domain.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 34 references that are in the map. First posted on arXiv 21 Jun 2024.

Builds on

25 of 34 references.

References · 25

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  5. 2023Qwen Technical Reportcited by 3,273
  6. 2022Large Language Models Encode Clinical Knowledgecited by 1,807
  7. 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 436
  8. 2020CLUE: A Chinese Language Understanding Evaluation Benchmarkcited by 277
  9. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  10. 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
  11. 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 136
  12. 2023DISC-LawLLM: Fine-tuning Large Language Models for Intelligent Legal Servicescited by 117
13 more
  1. 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
  2. 2023LawBench: Benchmarking Legal Knowledge of Large Language Modelscited by 111
  3. 2019Investigating Prior Knowledge for Challenging Chinese Machine Reading Comprehensioncited by 80
  4. 2022Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligencecited by 70
  5. 2019ChID: A Large-scale Chinese IDiom Dataset for Cloze Testcited by 65
  6. 2023Lawyer LLaMA Technical Reportcited by 54
  7. 2022A Survey on Legal Judgment Prediction: Datasets, Metrics, Models and Challengescited by 50
  8. 2022CSL: A Large-scale Chinese Scientific Literature Datasetcited by 45
  9. 2022LEVEN: A Large-Scale Chinese Legal Event Detection Datasetcited by 36
  10. 2022WeLM: A Well-Read Pre-trained Language Model for Chinesecited by 19
  11. 2021Learning Fine-grained Fact-Article Correspondence in Legal Casescited by 15
  12. 2021Dependency Learning for Legal Judgment Prediction with a Unified Text-to-Text Transformercited by 13
  13. 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 2.

5 papers.