TL;DR
LegalOne is a new family of compact foundation models (ranging from 1.7B to 8B parameters) specifically optimized for Chinese legal reasoning. By introducing a novel three-phase training pipeline—incorporating smart data scheduling, agentic chain-of-thought distillation, and curriculum reinforcement learning—LegalOne achieves state-of-the-art performance on legal benchmarks, matching or outperforming general-purpose LLMs that are orders of magnitude larger.
What Problem Does This Paper Address?
While large language models (LLMs) excel at general tasks, applying them directly to the legal domain is notoriously difficult. Legal reasoning is both knowledge-intensive (requiring strict grounding in statutes and precedents) and structure-intensive (requiring multi-step judicial logic).
When researchers try to adapt general LLMs to the legal domain, they face three major roadblocks:
- Optimization Shock & Catastrophic Forgetting: Continuing pre-training (mid-training) on massive legal corpora often degrades the model's general capabilities or destabilizes training due to sudden shifts in data distribution and learning rates.
- Implicit Logic in Real Texts: Real-world legal documents are typically post-hoc summaries written for professionals; they omit the explicit, step-by-step cognitive trajectories that an AI needs to learn transferable reasoning skills.
- Flawed Teacher Distillation: Naively distilling Chain-of-Thought (CoT) traces from general-purpose teacher LLMs propagates their factual errors and logical hallucinations into the student model.
Methods
The authors address these challenges using a comprehensive three-stage training pipeline.
1. Mid-Training with Plasticity-Adjusted Sampling (PAS)
To inject legal knowledge without destroying general intelligence, the authors couple the learning rate schedule with a perplexity-based data scheduler. At the start of the learning rate re-warmup phase, the model is highly vulnerable to optimization shock. PAS forces the model to sample familiar, low-perplexity "anchor" data. As the learning rate peaks and stabilizes, the scheduler smoothly transitions to high-perplexity, domain-specific legal data.
2. Supervised Fine-Tuning via Legal Agentic CoT Distillation (LEAD)
Instead of naive distillation, the LEAD pipeline deconstructs legal reasoning into an agentic workflow mimicking real judicial state machines: Fact Finding $\rightarrow$ Issue Identification $\rightarrow$ Rule Retrieval $\rightarrow$ Rule Deduction $\rightarrow$ Conclusion Derivation.
This raw, multi-stage simulation is refined through two sub-steps:
- Knowledge Internalization: Rewriting "open-book" answers (which rely on explicitly retrieved context) into "closed-book" answers, forcing the student model to rely on its internal parameters.
- Reasoning Convergence: Merging fragmented, intermediate agent traces into a single, globally coherent, human-readable legal argument.
3. Multi-Stage Reinforcement Learning (RL)
The final phase implements a 5-stage curriculum that scales in difficulty: Statute Memorization $\rightarrow$ Statute Application $\rightarrow$ Case Analysis $\rightarrow$ Judgment Prediction $\rightarrow$ Legal Document Generation.
To optimize this process, they use the Direct Alignment with Preference Optimization (DAPO) framework. Crucially, they introduce a Token-Level Baseline ($b_2$) to replace standard sequence-level baselines. This length-weighted average eliminates length bias, ensuring the model doesn't over-penalize or over-reward long outputs simply based on token count, which significantly stabilizes the optimization landscape.
Datasets
- Mid-Training: A 100-billion-token corpus with a strategic 4:6 ratio of general data (e.g., FinWeb-Edu, FineWiki, MathPile) to legal data (academic papers, court judgments, statutory texts).
- Supervised Fine-Tuning: A clean, rigorously vetted dataset of 500k samples synthesized via the LEAD pipeline and high-quality open-source datasets.
- Evaluation Benchmarks: Evaluated on JEC-QA (the largest Chinese legal QA dataset) and LexEval (a legal cognitive ability benchmark). General capabilities were tested using GSM8K, Math500, and C-Eval.
Key Insights and Ideas
- Data and Learning Rates are Coupled: One of the paper's core theoretical insights is that data distribution shifts and learning rate expansions must be coordinated. Low-perplexity data acts as a numerical damper during learning rate re-warmup, stabilizing the gradient variance.
- Positive Transfer from Legal RL to General Logic: Surprisingly, executing reinforcement learning exclusively on legal data improved the model's performance on general mathematical and logical reasoning benchmarks like GSM8K. The strict syllogistic structure of legal thinking (major premise, minor premise, conclusion) generalizes cleanly to other logical domains.
- The Capacity Bottleneck: The authors observed that mid-training caused a slight degradation of general capabilities in their smallest (1.7B) model. This suggests a hard parameter threshold where a model struggles to compress both broad general knowledge and dense domain expertise simultaneously.
Key Results
LegalOne demonstrates remarkable parameter efficiency, effectively flattening the traditional scaling law curve for domain-specific tasks.
- LegalOne-8B vs. Trillion-Parameter Giants: LegalOne-8B achieved highly competitive performance on LexEval and JEC-QA, outperforming massive models like DeepSeek-V3.2 and Qwen3-Max in multiple dimensions. It secured the top score on the JEC-QA Case Analysis metric (61.52).
- LegalOne-1.7B Efficiency: The 1.7B model variant significantly outperformed the general-purpose Qwen3-1.7B and delivered overall legal task performance comparable to the much larger Qwen3-8B baseline.
Limitations and Future Work
The primary limitation highlighted by the study is the capacity bottleneck in smaller models. For highly specialized domains, the authors recommend applying this pipeline to models with a sufficient parameter scale (at least 4B–8B) to prevent trading off general intelligence for domain expertise.
For future work, the authors point toward exploring a specific "Scaling Law" for legal reasoning within the reinforcement learning phase, investigating how longer training and larger policy exploration spaces impact structured logic.
Summary updated