TL;DR
This paper introduces LEGALWORLD, the first interactive environment that simulates the entire life cycle of civil litigation as a causally connected chain of stages. Alongside it, the authors present LongJud-Bench, a benchmark that evaluates how well large language model (LLM) agents handle the long-horizon dependencies, role consistency, and procedural demands of real-world legal workflows.
What Problem Does This Paper Address?
Most existing legal AI benchmarks evaluate models on isolated, single-turn tasks—such as retrieving a relevant statute, predicting a judgment, or drafting a specific document. However, real-world litigation is a continuous, long-horizon process. What a lawyer uncovers during an initial client consultation shapes the complaint they draft, which in turn constrains the arguments and evidence they can present at trial months later.
Prior legal simulators typically reset the environment's state to a golden "ground truth" at the start of each new phase. This setup fails to model how errors or strategic choices propagate downstream. To bridge this gap, the authors designed an environment capable of maintaining state, memory, and role consistency across the entire multi-stage litigation life cycle.
Methods
LEGALWORLD models Chinese civil litigation as a causally connected state chain consisting of five stages across seven sub-scenarios:
- Legal Consultation (LC)
- Complaint Drafting (CD) / Defense Drafting (DD)
- First-Instance Trial (FIT)
- Appeal Drafting (AD) / Appeal Response (AR)
- Second-Instance Trial (SIT)
To make this long-horizon simulation work, the authors introduced several core architectural components:
- Dual-Layer Memory Infrastructure: Agents maintain an In-Scenario Local Memory to preserve turn-level dialogue continuity, and a Global Case Memory that acts as a structured, persistent record of facts, evidence status, claims, and litigation positions across stages.
- Procedural Skill and Tool Support: A dedicated layer provides agents with stage-specific "Skills" (procedural manuals detailing constraints and steps) and "Tools" (executable actions like statute retrieval or document exporting).
- Legal Client Persona Framework (LCPF): To prevent clients from acting like perfectly rational legal experts, the environment parameterizes them across four dimensions: Legal Literacy, Information Disclosure Willingness, Emotional Stability, and Narrative Proficiency.
Datasets
The environment is entirely data-driven, grounded in 75,309 paired first- and second-instance public Chinese civil judgments sourced from China Judgments Online. This corpus spans over 500 distinct causes of action.
To make large-scale evaluation computationally tractable, the authors created two cause-balanced subsets:
- Medium: 1,000 cases drawn from the top 100 causes of action.
- Light: 100 cases drawn from the top 20 causes of action (used for the primary evaluations in the paper).
Key Insights and Ideas
- No Single Model Wins Everywhere: When evaluating different LLM backbones as the target lawyer agent, the authors found sharp trade-offs. For instance, Kimi-K2.5 excelled at structured document drafting and maintaining position consistency, whereas GPT-5.2 led significantly in courtroom evidentiary advocacy and legal reasoning.
- Courtroom Advocacy is the Frontier: Across all tested models, performance dropped sharply during the trial phases compared to the drafting phases. Managing multi-turn courtroom interactions—where an agent must synthesize accumulated memory, respond to opposing counsel, and answer judge prompts on the fly—remains a major bottleneck for current LLMs.
- Causal Propagation is Real: Through intervention experiments (substituting high- or low-quality documents mid-simulation), the authors proved that early-stage artifacts heavily dictate downstream trial success. Low-quality drafting substantially degraded subsequent trial scores, confirming that litigation cannot be modeled as independent subtasks.
- Traces as Training Signals: In an exploratory probe, the authors used post-case reflections on LEGALWORLD trajectories to generate "Reflective Legal Skills" (RLS). Feeding these self-generated rules back into the baseline agent yielded noticeable performance gains in future cases of the same type.
Key Results
The authors validated LEGALWORLD using both extensive human evaluation (217 evaluators with legal backgrounds providing 18,992 individual ratings) and an LLM-as-Judge setup powered by Claude-Sonnet-4.6.
- High Procedural Authenticity: Human evaluators rated the environment's trajectories exceptionally high, awarding an average of 8.96/10 for stage authenticity and 8.98/10 for role consistency.
- Strong Judge Alignment: The automated LLM-as-Judge closely mirrored human judgment, with 64.4% of the score differences falling within $\pm1$ point.
- Judicial Output Alignment: Judgments automatically generated by the environment's judge agents achieved a high alignment score of 8.28/10 when compared directly against the real-world historical judgments for those exact cases.
Limitations and Future Work
While comprehensive, the current iteration of LEGALWORLD has a few notable limitations:
- Scope: It is strictly limited to Chinese civil litigation and does not yet cover criminal, administrative, enforcement, or retrial procedures.
- Linearity: The simulation simplifies exceptional procedural events. It operates on a relatively linear path and lacks complex branching behaviors like jurisdictional objections, counterclaims, or sudden settlement failures.
The authors note that future work will focus on expanding the environment to support these complex branching events and validating human-agent collaboration workflows with legal professionals.
Summary updated