arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.19584cs.CL
收藏

SaulLM-54B & SaulLM-141B:扩大法律领域的领域适应规模

SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domain

Equall;MICS - CentraleSupelec(MICS - 中央高等电力学院);CINES(法国国家高等计算机与网络研究中心)

Pierre Colombo, Telmo Pires, Malik Boudiaf, Rui Melo, Dominic Culver, Sofia Morgado, Etienne Malaboeuf, Gabriel Hautreux, Johanne Charpentier, Michael Desa

AI总结:

本文推出专为法律领域定制的SaulLM-54B和SaulLM-141B大模型,通过大规模持续预训练、指令遵循和人类偏好对齐实现领域适应,在LegalBench-Instruct上达到最优性能。

摘要:

在本文中,我们介绍了SaulLM-54B和SaulLM-141B,两个专为法律领域定制的大型语言模型(LLMs)。这两个模型分别具有540亿和1410亿参数的架构,基于Mixtral架构。SaulLM-54B和SaulLM-141B的开发由大规模领域适应指导,分为三个策略:(1)利用包含超过5400亿法律标记的基础语料库进行持续预训练,(2)实施专门的法律指令遵循协议,以及(3)在法律解释中将模型输出与人类偏好对齐。在第二和第三步中整合合成生成的数据,增强了模型解释和处理法律文本的能力,有效达到了最先进的性能,并在LegalBench-Instruct上超越了之前的开源模型。这项工作探索了在此规模下特定领域适应所涉及的权衡,提供了可能为未来使用强解码器模型进行领域适应研究提供信息的见解。基于SaulLM-7B,本研究改进了方法,以产生更适合法律任务的LLM。我们在MIT许可证下发布了基于SaulLM-54B和SaulLM-141B的基础、指令和对齐版本,以促进重用和协作研究。

英文摘要:

In this paper, we introduce SaulLM-54B and SaulLM-141B, two large language models (LLMs) tailored for the legal sector. These models, which feature architectures of 54 billion and 141 billion parameters, respectively, are based on the Mixtral architecture. The development of SaulLM-54B and SaulLM-141B is guided by large-scale domain adaptation, divided into three strategies: (1) the exploitation of continued pretraining involving a base corpus that includes over 540 billion of legal tokens, (2) the implementation of a specialized legal instruction-following protocol, and (3) the alignment of model outputs with human preferences in legal interpretations. The integration of synthetically generated data in the second and third steps enhances the models' capabilities in interpreting and processing legal texts, effectively reaching state-of-the-art performance and outperforming previous open-source models on LegalBench-Instruct. This work explores the trade-offs involved in domain-specific adaptation at this scale, offering insights that may inform future studies on domain adaptation using strong decoder models. Building upon SaulLM-7B, this study refines the approach to produce an LLM better equipped for legal tasks. We are releasing base, instruct, and aligned versions on top of SaulLM-54B and SaulLM-141B under the MIT License to facilitate reuse and collaborative research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑