arXiv:2611.06381cs.AINov 2026

Manuscript Offprint

arXiv:2611.06381

LegalEvolver: Agentic Legal Judgment Prediction via Rubric-Guided Self-Evolution

Xinyu Yang, Jiejun Tan, Chenlong Deng, Chenghao Zhang, Tongyu Wen, Zhicheng Dou

ABSTRACT

As LLM-based agents develop, they have been increasingly applied in the legal domain. Legal Judgment Prediction (LJP) requires models to conduct multi-step reasoning and external legal evidence retrieval. Existing legal search agents' performance is often constrained by the quality of retrieval queries. They often formulate queries directly from the initial user request, overlooking latent legal issues and legally salient details. To address this issue, we propose LegalEvolver, a query optimization framework specifically designed to generate legally informative queries for LJP-oriented retrieval. Sampling high-quality optimized queries and their corresponding search trajectories is challenging, as relying solely on unguided high-temperature rollouts is both inefficient and constrained by the model's initial capabilities. We therefore heuristically optimize queries as seeds, improving the efficiency of trajectory generation. Furthermore, we summarize rollout experience into rubrics and use them to guide multi-round iterative self-evolution. Iteratively performing rubric optimization and rubric-guided RL enables the model to surpass its initial performance ceiling. End-to-end performance on extensive benchmarks demonstrates the effectiveness of query optimization on LJP. Comparisons with direct SFT followed by RL demonstrate the effectiveness of rubric guidance. Evolving rubrics further outperform fixed rubrics, confirming the benefits of self-evolution.

1 INTRODUCTION

Legal judgment prediction (LJP) requires a model to determine the applicable law articles, charges, and prison term of a case from its fact description (Xu et al., 2020). Like a judge, the model must establish the charge before determining the sentence (Zhong et al., 2018). Decisions must be based on specific legal provisions, which come from statutes, judicial interpretations, and sentencing guidelines (Wu et al., 2023; Wang et al., 2024). Because these provisions are numerous and frequently revised, parametric knowledge alone cannot capture them reliably (Deng et al., 2024a; Yang et al., 2026). Therefore, recent work turns to legal search agents, which consult these sources along with precedents during reasoning and base their predictions on the retrieved evidence (Wu et al., 2023).

However, access to retrieval alone brings modest gains (Wang et al., 2024). Our analysis shows that queries themselves are often the problem of failure; this diagnosis is consistent with recent work on query optimization for search agents (Li et al., 2025b; Wen et al., 2026). Consider a defendant who borrows the victim's phone and then runs off with it. The query "elements of the crime of fraud" fails because the key point is the victim's intent in handing over the phone, which is exactly what separates fraud from theft. A better query is like "took a borrowed phone and fled, whether the victim disposed of property, theft versus fraud". To understand what distinguishes effective queries more generally, we examine the reasoning and search trajectories of legal experts on judgment prediction. Experts rarely search for a charge or an article in isolation. Each query addresses a question still open at that point of their reasoning, and changes as the reasoning moved on. When deciding the charge, they search statutes and judicial interpretations; when deciding the sentence, they searched sentencing guidelines and precedents. In both stages, they wrote the decisive facts of the case into the query (Wen et al., 2026).

Search agents are commonly trained with SFT followed by RL with outcome rewards (Li et al., 2025a). This recipe struggles to inject the behaviour described above for the following reasons (Chu et al., 2025; Zheng et al., 2025): (1) Exploration stays anchored to the model's initial hypothesis (Chu et al., 2025). Once the base model settles on a candidate charge, its queries keep revolving around it. Higher sampling temperature hardly varies charge under examination (Chen et al., 2025). (2) Outcome rewards cannot tell which search went wrong (Zheng et al., 2025). It fails to distinguish different search failure types (Li et al., 2025b). General query clarity and informativeness also miss these domain-specific legal requirements (Deng et al., 2024a; Liu et al., 2026). (3) What makes a query useful changes as the agent improves (Shao et al., 2025; Gunjal et al., 2025). Once the agent routinely includes key facts, its remaining errors can depend on subtler distinctions (Xu et al., 2020). Fixed criteria fail to separate good queries from bad ones (Shao et al., 2025).

The key missing ingredient is supervision for individual queries. Our core observation is that differences in judgment outcomes can provide it. When trajectories on the same case reach different judgments, the differences between their queries suggest which searches are more effective. The type of error further indicates which searches to examine. A wrong charge points to the searches for legal qualification, while a wrong sentence points to the sentencing searches. Building on this observation, we induce query criteria from within-case contrasts and assemble them into rubrics that reward each search. As the policy improves, we rebuild the rubrics from its new trajectories. The supervision thus evolves with the policy.

To address these challenges, we propose LegalEvolver, a framework for training legal search agents. It learns query rubrics from the agent's own trajectories and keeps refreshing them as the agent improves. Training consists of three consecutive stages. (1) Diverse Trajectory Generation and Policy Initialization. We first sample diverse reasoning and retrieval trajectories at a high temperature, then apply expert-inspired heuristics to rewrite their retrieval queries, producing additional candidate trajectories. Rejection sampling selects successful trajectories for supervised fine-tuning, equipping the agent with effective initial reasoning and retrieval behaviors. (2) Initial Rubric Construction. To construct query-level supervision, we contrast successful trajectories with failed trajectories for the same problem, examining how differences in query construction contribute to their divergent outcomes. We distill these comparisons into an initial set of legal query rubrics that provide explicit criteria for evaluating intermediate queries. (3) Rubric–Policy Co-Evolution. Building on this initialization, we jointly improve the query rubrics and the agent policy through iterative self-evolution. We combine rubric-based rewards with outcome rewards for reinforcement learning, providing feedback on both intermediate query quality and final prediction correctness. As the updated policy generates new successful trajectories, we use them to re-induce the rubrics, incorporating retrieval strategies discovered during training. The revised rubrics then guide the next round of policy optimization. Alternating these steps lets supervision evolve with the agent's capabilities, enabling improvement beyond the initial demonstrations and fixed rubric criteria.

Experiments on single- and multi-defendant legal judgment prediction show that LegalEvolver outperforms agentic retrieval-augmented baselines on most metrics, with further gains from reinforcement learning after supervised initialization.

To sum up, our contributions are threefold: (1) We identify query construction as a critical bottleneck for search agents in LJP. (2) We propose LegalEvolver, which derives legal query rubrics from contrasting successful and failed trajectories. (3) We develop a self-evolution training paradigm that jointly improves agent policies and query rubrics.

References (52)