arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.39227cs.CL
收藏

XLaw-JP-27B:一款专为日本法律设计的轻量级开源模型

XLaw-JP-27B: A Lightweight Open Model Specialized for Japanese Law

Keio University(庆应义塾大学);X-Law Inc(X-Law公司)

Andrew Shin

AI总结:

XLaw-JP-27B是专为日本法律设计的轻量级开源模型,适配Qwen3.8-27B,经多组件优化后在八项法律任务中表现优异,是唯一通过三年司法考试的系统,可免费使用。

摘要:

我们推出XLaw-JP-27B,这是一款专为日本法律设计的开源权重模型,基于Apache 2.0许可证发布,可在单块48GB GPU上运行。它对Qwen3.8-27B进行了适配,采用了针对所有现行法规和3.1万个案例摘要的混合检索、基于自身过往司法考试问题验证答案的轻量级QLoRA微调(自蒸馏)、合同专用LoRA适配器以及四样本投票机制。我们在八项日本法律任务上对其进行了评估:2024、2025、2026年司法考试的选择题部分、语句级司法考试问题(JBE-QA)、法规问题(LawQA-JP)、专利代理人考试,以及基于政府示范合同构建的合同审查与起草任务,评估时采用相同的提示词和检索设置,与12-33B规模的开源模型进行对比。XLaw-JP-27B在六项任务中排名第一,一项任务并列第一,一项任务排名第三(平均排名1.3,而基线模型的平均排名为2.8-3.1)。它是唯一通过三年司法考试的系统(175道题中分别答对129、120、130道,满足所有科目最低要求;训练未使用任何考试年份的材料),而日本开源32-33B模型至少有一年未通过。对各组件的对照研究显示,检索、投票和自蒸馏有帮助,而思考模式、基于检索的合成微调、自验证、逐语句分解及更多自蒸馏则无帮助。该模型与前沿模型的最大差距在于合同审查和专利法领域。该模型可作为免费网络服务使用,权重可在指定链接获取,遵循Apache 2.0许可证。

英文摘要:

We present XLaw-JP-27B, an open-weight model specialized for Japanese law that runs on a single 48\,GB GPU under the Apache~2.0 licence. It adapts Qwen3.8-27B with hybrid retrieval over all current statutes and 31k case summaries, a light QLoRA fine-tune on its own verified answers to past bar-exam questions (self-distillation), a contract-specific LoRA adapter, and four-sample voting. We evaluate it on eight Japanese legal tasks---the multiple-choice section of the bar examination in 2024, 2025 and 2026, statement-level bar questions (JBE-QA), statute questions (LawQA-JP), the patent attorney exam, and contract review and drafting built from government model contracts---against open models of 12--33B under identical prompts and retrieval. XLaw-JP-27B ranks first on six tasks, ties on one and is third on one (mean rank 1.3 against 2.8--3.1 for the baselines). It is the only system that passes the bar exam in all three years (129, 120 and 130 of 175, meeting every subject minimum; no test-year material was used in training), while open Japanese 32--33B models fail at least one year. A controlled study of each component shows that retrieval, voting and self-distillation help, and that thinking mode, retrieval-grounded synthetic tuning, self-verification, per-statement decomposition and more self-distillation do not. The largest remaining gaps to frontier models are in contract review and patent law. The model is available as a free web service at https://x-law.jp/ with the weights available at https://huggingface.co/X-LawJapan/xlaw-jp-27b under Apache~2.0.

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

↑