arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.18140cs.CLcs.AI
收藏

Juru:来自权威来源的巴西法律大型语言模型

Juru: Legal Brazilian Large Language Model from Reputable Sources

Computer Science Department, University of São Paulo(圣保罗大学计算机科学系);Maritaca AI

Roseval Malaquias Junior, Ramon Pires, Roseli Romero, Rodrigo Nogueira

AI总结:

本文提出Juru,利用巴西权威法律来源的19亿个唯一token持续预训练Mistral-7B,以低成本验证领域专业化可提升法律性能但会损害通用能力。

摘要:

与预训练大型语言模型相关的高昂计算成本限制了对它们的研究。为解决这一问题,出现了两种策略:领域专业化和使用高质量数据进行预训练。为探索这些策略,我们使用来自巴西权威法律来源的19亿个唯一token对Mistral-7B模型进行了专业化处理,并在法律和通用知识测试套件上开展了少样本评估。我们的模型Juru通过在法律基准测试上取得提升的性能,展示了领域专业化的优势,即使预训练数据量有所减少也是如此。然而,这种通过持续预训练实现的领域专业化,是以对不相关领域的遗忘加剧为代价的;葡萄牙语和英语通用知识测试套件上的性能下降都证明了这一点。本研究为越来越多的科学证据作出了贡献,这些证据表明预训练数据选择可以提升大型语言模型的性能,从而能够以更低成本探索这些模型。Juru已公开发布于https://huggingface.co/roseval/Juru-7B。

英文摘要:

The high compute cost associated with pretraining large language models limits their research. Two strategies have emerged to address this issue: domain specialization and pretraining with high-quality data. To explore these strategies, we specialized the Mistral-7B model with 1.9 billion unique tokens from reputable Brazilian legal sources and conducted few-shot evaluations on legal and general knowledge test suites. Our model, Juru, demonstrates the benefits of domain specialization by achieving improved performance on legal benchmarks, even with a reduced amount of pretraining data. However, this domain specialization through continued pretraining comes at the cost of increased forgetting in unrelated domains, as evidenced by performance degradation on general knowledge test suites in both Portuguese and English. This study contributes to the growing body of scientific evidence showing that pretraining data selection may enhance the performance of large language models, enabling the exploration of these models at a lower cost. Juru is publicly available at https://huggingface.co/roseval/Juru-7B .

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

↑