XLaw-JP-27B: A Lightweight Open Model Specialized for Japanese Law
New in Knowledge distillation; no direction yet. Knowledge distillation
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 5 of its 16 references that are in the map. Submitted 29 Oct 2026.
Builds on
5 of 16 references.
References · 5
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,620
- 2024Continual Pre-Training for Cross-Lingual LLM Adaptation: Enhancing Japanese Language Capabilitiescited by 117
- 2025JBE-QA: Japanese Bar Exam QA Dataset for Assessing Legal Domain Knowledgecited by 2
- 2026Self-Verification is All You Need To Pass The Japanese Bar Examinationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Expert Evaluation of LLM's Open-Ended Legal Reasoning on the Japanese Bar Exam Writing Task
- 2025A Llama walks into the 'Bar': Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam
- 2026Can Small Models Reason About Legal Documents? A Comparative Study
- 2026OpenExempt: A Diagnostic Benchmark for Legal Reasoning and a Framework for Creating Custom Benchmarks on Demand
- 2024Developing a Pragmatic Benchmark for Assessing Korean Legal Language Understanding in Large Language Models
- 2026PLawBench: A Rubric-Based Benchmark for Evaluating LLMs in Real-World Legal Practice
- 2025Korean Canonical Legal Benchmark: Toward Knowledge-Independent Evaluation of LLMs' Legal Reasoning Capabilities
- 2025LRAGE: Legal Retrieval Augmented Generation Evaluation Tool