arXiv:2610.18611cs.CLOct 2026

Manuscript Offprint

arXiv:2610.18611

Legal-R1: Agentic Retrieval for Evidence-Based Legal Reasoning

Huaiwen Pang, Jiale Han, Junying Chen, Wenjun Xiao, Benyou Wang

Abstract

Legal question answering requires answers that are not only plausible, but also grounded in legally valid and citable evidence. Standard retrieval-augmented generation often relies on one-shot semantic matching, which is insufficient when legal evidence must be selected according to authority, applicability, and diversity across heterogeneous sources. We introduce Legal-R1, an agentic retrieval framework for evidence-based legal reasoning. Legal-R1 decomposes legal reasoning into a multi-agent workflow, where a Lawyer agent learns when to retrieve, which legal source to query, what evidence to seek, and when the collected evidence is sufficient. A Legal Assistant agent retrieves from normative legal sources and precedent cases with authority-aware and diversity-aware selection, while a Judge agent generates the final answer from the complete evidence trajectory. We post-train only the Lawyer agent with masked supervised fine-tuning and trajectory-aware reinforcement learning. Experiments on multiple Chinese legal benchmarks show that Legal-R1 improves over general-purpose, legal-specific, and retrieval-augmented baselines. 1^{1}

1 Introduction

Legal question answering requires more than fluent generation. A trustworthy legal answer must be grounded in legal evidence that is valid, applicable, and citable (Wiratunga et al., 2024; Louis et al., 2024; Xiao et al., 2026). This evidence is often distributed across heterogeneous sources, including laws, judicial interpretations, and precedent cases. It must also satisfy domain-specific constraints such as authority hierarchy, temporal validity, jurisdictional fit, and applicability to the target facts (Van Opijnen and Santos, 2017). These

Figure

Figure 1: Motivation of Legal-R1. Legal-R1 replaces one-turn semantic matching with multi-turn evidence seeking over norms and cases.

requirements make legal question answering a problem of evidence construction rather than plain information lookup.

Existing large language models still struggle with this setting. Parametric legal knowledge can be incomplete, outdated, or unsupported by explicit citations (Dahl et al., 2024; Van Opijnen and Santos, 2017). Retrieval-augmented generation improves grounding by retrieving external documents (Lewis et al., 2020), but many conventional pipelines rely on a fixed set of retrieved passages without adaptively deciding whether further retrieval is needed (Asai et al., 2024). This is not sufficient for legal reasoning. A semantically similar case may still fail to match the relevant legal issue (Li et al., 2024b). Other retrieved cases may come from lower-authority courts or duplicate the same sentencing outcome. Legal retrieval therefore cannot be reduced to finding similar text. It must identify legally valid evidence that can justify the answer. Figure 1 illustrates this distinction. General agentic retrieval asks what information is

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

1^{1}The code, model, and data are available at https://github.com/killerqueen-wonder/Legal-R1.

needed to answer a question. Legal agentic retrieval asks what legal norms and precedents are needed to support a verifiable answer. The agent must decide whether retrieval is needed, which legal source to query, what evidence to retrieve, and whether the collected evidence is sufficient.

We propose Legal-R1, an agentic retrieval framework for evidence-based legal reasoning. Legal-R1 decomposes legal reasoning into three roles. The Lawyer agent plans multi-turn evidence seeking. It identifies missing legal evidence, chooses a retrieval action, formulates source-specific queries, and decides when to stop. The Legal Assistant agent executes retrieval over heterogeneous legal knowledge bases. It searches legal norms, including laws and judicial interpretations, and retrieves precedent cases with authority-aware and diversity-aware selection. The Judge agent generates the final answer from the legal question and the complete retrieval trajectory. This workflow makes evidence collection explicit and encourages answers to be grounded in comprehensive, authoritative, and diverse legal evidence.

We train only the Lawyer agent. This design focuses learning on the core difficulty of legal agentic retrieval, namely evidence-seeking decisions. It also decouples retrieval planning from answer generation, so the trained Lawyer agent can be paired with different Judge agents in downstream applications. To train the Lawyer agent, we synthesize multi-turn retrieval trajectories from a structured legal QA dataset. We first use masked supervised fine-tuning to teach the retrieval protocol while preventing the model from memorizing retrieved evidence. We then apply trajectory-aware reinforcement learning to improve source selection, query construction, and stopping behavior.

Experiments on Chinese legal benchmarks validate the effectiveness of Legal-R1. Compared with existing RAG-based legal systems, Legal-R1 achieves stronger performance on LexEval and LawBench, showing that actively planning retrieval is more effective than attaching a fixed retriever to an LLM. Ablation and retrieval-quality analyses further show that post-training improves evidence-seeking behavior and that authority-aware and diversity-aware precedent reranking improves the reliability of retrieved evidence. These results support our central claim that legal reasoning benefits from learning an explicit evidence-seeking policy.

Our contributions are summarized as follows:

• We introduce a multi-agent workflow for evidence-based legal reasoning, where the Lawyer, Legal Assistant, and Judge agents separately handle evidence planning, legal retrieval, and answer generation. This workflow supports comprehensive, authoritative, and diverse evidence grounding.

• We propose Legal-R1, an agentic legal retrieval framework that post-trains the Lawyer agent to learn an autonomous evidence-seeking policy, including whether to retrieve, which source to query, what evidence to retrieve, and when to stop.

• We conduct experiments and ablations on multiple Chinese legal benchmarks, demonstrating that Legal-R1 improves legal reasoning over retrieval-augmented baselines and that its gains come from both learned retrieval policies and legal-evidence-aware reranking.