LawInstruct:研究语言模型适应法律领域的资源
LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domain
AI总结:
本研究构建法律指令数据集LawInstruct,覆盖58个数据集、17个司法管辖区和1200万示例,通过法律指令微调Flan-T5生成FLawN-T5,在LegalBench上提升50%性能且不损害通用能力。
摘要:
指令微调是使语言模型能够直接与用户交互的重要步骤。然而,在法律领域,典型的指令数据集中代表性不足(例如,在Super-NaturalInstructions的1600多个任务中,只有10个涉及法律)。为了研究在法律数据集上进行指令微调是否对强大的法律推理能力是必要的,我们汇总了58个带注释的法律数据集,并为每个数据集编写了指令,创建了LawInstruct。LawInstruct覆盖了17个全球司法管辖区、24种语言,总计1200万个示例,涵盖法律问答、法庭案例摘要和法律论证挖掘等多种任务。我们在LegalBench上评估了我们的模型,该基准衡量了162个具有挑战性和现实性的法律任务中五个类别的法律推理能力,并通过MMLU衡量通用推理能力的潜在下降。我们发现,在Flan-T5上进行法律特定的指令微调(生成FLawN-T5)在所有模型规模上都提高了LegalBench的性能,其中基础规模的总体提升为15个百分点,相对于Flan-T5提升了50%。没有模型规模在MMLU上表现出性能下降。我们发布LawInstruct作为进一步研究法律领域指令微调的资源。
英文摘要:
Instruction tuning is an important step in making language models useful for direct user interaction. However, the legal domain is underrepresented in typical instruction datasets (e.g., only 10 out of 1600+ tasks in Super-NaturalInstructions). To study whether instruction tuning on legal datasets is necessary for strong legal reasoning, we aggregate 58 annotated legal datasets and write instructions for each, creating LawInstruct. LawInstruct covers 17 global jurisdictions, 24 languages and a total of 12M examples across diverse tasks such as legal QA, summarization of court cases, and legal argument mining. We evaluate our models on LegalBench, measuring legal reasoning across five categories in 162 challenging and realistic legal tasks, and MMLU, to measure potential drops in general reasoning capabilities. We find that legal-specific instruction tuning on Flan-T5 - yielding FLawN-T5 - improves performance on LegalBench across all model sizes, with an aggregate increase of 15 points or 50% over Flan-T5 for the base size. No model size shows performance drops in MMLU. We publish LawInstruct as a resource for further study of instruction tuning in the legal domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。