Introduction
While Large Language Models (LLMs) have shown promise in legal research and drafting, existing benchmarks often fail to capture the complexity of real-world legal practice. Professional legal work is inherently "agentic," requiring practitioners to identify problems, navigate disparate databases (courts, corporate registries, statutes), perform precise calculations, and synthesize findings into formal documents. Current benchmarks typically focus on static tasks like case retrieval or judgment prediction, overlooking the multi-step reasoning required in the judicial system. To bridge this gap, we introduce LegalAgentBench, a comprehensive framework designed to evaluate LLM agents in a realistic, tool-equipped legal environment.
Methodology: The Planning Tree Approach
LegalAgentBench moves beyond simple question-answering by providing a text-based environment containing 17 distinct corpora (14 tabular databases and 3 document repositories) and 37 specialized tools. These tools include text retrievers for unstructured data, mathematical tools for legal calculations, and database tools for structured lookups.
To ensure tasks are both complex and realistic, the framework utilizes a "Planning Tree" approach. This method maps dependencies between tools to create "solution paths" ranging from 1 to 5 "hops" (reasoning steps). These paths are then rewritten into natural language queries and verified by human experts to ensure logical consistency and legal accuracy.
Dataset and Evaluation
The benchmark includes 300 annotated tasks sourced from real-world Chinese legal scenarios, such as information on listed companies, court administrative codes, and legislative articles. These tasks are categorized by difficulty (1-hop to 5-hop) and include a specialized "Writing" category for drafting documents like defense statements.
Performance is measured using the Process Rate (PR). Unlike binary success/fail metrics, PR employs keyword analysis of intermediate steps to provide partial credit, allowing researchers to pinpoint exactly where a reasoning chain breaks down.
Key Results and Model Performance
We evaluated eight prominent LLMs using three prompting strategies: Plan-and-Solve (P-S), Plan-and-Execute (P-E), and ReAct (Reason + Act). The results indicate that the ReAct strategy consistently outperforms others, as its ability to update internal states after every tool observation is better suited for the unpredictable nature of legal data retrieval.
As shown in the results, GPT-4o achieved the highest overall success rate of 79.08% using ReAct. GLM-4-Plus followed closely at 74.99%, demonstrating that specialized Chinese-centric models are highly competitive. However, all models faced a "complexity wall"; performance dropped significantly as tasks moved from 1-hop to 5-hop reasoning. For example, even top-tier models saw success rates fall from ~93% to ~61% as logical depth increased.
Discussion and Insights
Our analysis revealed several critical gaps in current LLM capabilities:
- Specialized Knowledge Gaps: Models often fail not due to tool misuse, but because they lack domain-specific "common sense," such as distinguishing between "filing time" and "trial time."
- Parallel Processing Failures: In writing tasks requiring simultaneous information gathering, the linear nature of ReAct often caused models to overlook necessary parallel data points.
- The Frontier Gap: Smaller models like LLaMA-3.1-8B and older models like GPT-3.5 struggled significantly, with success rates often falling below 30%, suggesting that complex agentic reasoning remains a capability reserved for the most advanced frontier models.
Conclusion
LegalAgentBench highlights the significant challenges remaining in automating judicial workflows. While top-tier models can navigate multi-hop tasks, maintaining long-term logical coherence and applying specialized legal nuances remains difficult. Future work will expand this benchmark to include common law systems and dynamic environments where the legal data evolves over time.
Summary updated