Manuscript Offprint
arXiv:2610.08138Test-Time Agent Evolution for Long-Horizon Legal Reasoning
Abstract
Legal intelligence aims to support reliable decision-making across long-horizon legal processes involving evolving case states and multiple roles. However, real-world legal deployment exhibits substantial case heterogeneity in facts, evidence, and procedural contexts, exposing the limitations of static agent strategies. Moreover, legal reasoning is inherently interdependent across roles and procedural stages, making global reliability fundamentally different from isolated role competence. To address these challenges, we study training-free test-time agent adaptation, where agents continuously exploit deployment-time signals from preceding cases and ongoing interactions without updating model parameters. We propose TALA, which introduces Test-Time Memory Evolution to retrieve reusable experience from previous cases, adapt it to the current factual and procedural context, and consolidate accumulated experience for subsequent decision-making. Further, Rubric-Aligned Collaboration verifies and revises role-specific actions according to behavioral and procedural requirements, enabling coordinated decision-making across roles and stages. Extensive experiments on J1-EVAL and LegalWorld across five backbone models demonstrate consistent improvements over representative reasoning and agent baselines with reasonable interaction and computational costs. Ablation and case studies further show that the two components provide complementary benefits in experience adaptation and cross-role coordination, improving the reliability and efficiency of long-horizon legal reasoning.
Keywords
Legal Agents, Test-Time Evolution, Long-Horizon Reasoning
Recent benchmarks have begun to capture such long-horizon characteristics through multi-turn interaction, and multi-role legal environments [15, 33, 34]. Nevertheless, a dynamic environment does not necessarily imply an adaptive agent. Existing agent frameworks typically employ interaction strategies specified before deployment, such as predefined planning, reasoning, and tool-use procedures [23, 24, 30]. Although agents can react to observations within a trajectory, their underlying interaction strategies often remain largely fixed as deployment conditions evolve across cases, roles, and procedural stages. As illustrated in Fig. 1(a), such static deployment strategies may struggle to adapt to newly emerging information and changing procedural contexts, allowing local errors to propagate into inconsistent arguments and faulty claims. This reveals a fundamental gap between increasingly dynamic legal environments and largely predetermined agent strategies.
In realistic deployment, legal cases arrive continuously, making it impractical to fine-tune or reinforce an agent for every newly encountered case [1]. A more practical alternative is to exploit signals naturally available during deployment without updating the underlying model. Recent studies have explored memory- and experience-based mechanisms for reusing information accumulated from previous interactions [21]. However, experience from one case is not directly transferable to another, as even cases involving the same offense may differ substantially in facts, evidence, and procedural context. As illustrated in Fig. 1(b1), naively reusing prior experience can therefore introduce mismatched or misleading guidance. The first challenge is thus how to reconcile cross-case experience transfer with case-specific adaptation across heterogeneous legal cases.
On the other hand, long-horizon legal reasoning is inherently coupled across roles and procedural stages. Existing methods often improve individual legal roles in isolation [26, 29, 32], yet stronger local decisions do not necessarily lead to reliable end-to-end execution. As illustrated in Fig. 1(b2), decisions made by one role shape the context for subsequent roles, making cross-role misalignment particularly harmful as local inconsistencies can propagate across stages and compromise end-to-end reliability. The second challenge is therefore how to jointly coordinate decisions across coupled legal roles and procedural stages toward globally consistent execution.
To address these challenges, we aim to enable LLM agents to adapt throughout long-horizon legal interactions using signals naturally available during deployment. We propose TALA, a training-free framework that improves agent behavior at test time without updating the underlying model parameters. To handle case heterogeneity, TALA introduces Test-Time Memory Evolution (TME), which retrieves relevant experience from preceding cases, adapts it to the current factual and procedural context, and consolidates accumulated experience under a bounded memory budget. This allows
(a) Dynamic Long-Horizon Legal Environment

(b) Key Challenges at Test Time
- Experience Transfer under Case Heterogeneity
Figure 1: (a) Dynamic legal environments evolve across multiple stages, while agent strategies often remain largely fixed during deployment. (b) Case heterogeneity and cross-role misalignment jointly limit effective adaptation in long-horizon reasoning.
prior interactions to provide reusable guidance without directly transferring case-specific facts or evidence. To mitigate cross-role misalignment, we further introduce Rubric-Aligned Collaboration (RAC), which verifies and revises each role's actions according to role-specific behavioral and procedural requirements, preventing locally plausible decisions from introducing inconsistencies into subsequent roles and stages. Together, these mechanisms enable TALA to evolve both cross-case experience and cross-role decision-making throughout continual legal deployment, improving the global reliability of long-horizon interactions.
Extensive experiments on J1-EVAL and LegalWorld demonstrate that TALA consistently improves performance across five backbone models and diverse long-horizon legal scenarios, showing strong generalization across model families and scales. More importantly, TALA substantially improves the robustness of multi-stage execution, sustaining reliable interaction across extended trajectories while maintaining moderate computational and interaction costs. Ablation and case studies further reveal that the two components are complementary and mutually reinforcing, with their joint use yielding more coherent long-horizon adaptation than either mechanism in isolation.
Our contributions can be summarized as follows. (1) We formulate long-horizon legal reasoning from a deployment-time evolution perspective, highlighting two fundamental challenges that arise under continual legal deployment: case heterogeneity, which complicates cross-case experience transfer, and cross-role misalignment, which makes local decisions consequential for subsequent roles and stages. (2) We propose TALA, a training-free framework for continual test-time agent evolution. It combines TME for context-aware cross-case experience adaptation with RAC for coordinated decision-making across coupled legal roles and procedural stages. (3) Extensive experiments on J1-EVAL and LegalWorld across five backbone models demonstrate consistent gains across model families and scales, improved robustness in long-horizon execution, and moderate test-time overhead.
2 Related Work
LLM-based Legal Agents. Early studies on legal LLMs mainly focus on static legal capabilities, such as legal knowledge acquisition, judgment prediction, and document understanding, through benchmark construction and domain-specific adaptation [7, 10, 11, 31]. More recently, research has shifted toward LLM-based legal agents that support interaction, tool use, and multi-role collaboration in complex legal environments [4, 8]. Existing methods further enhance legal agents through predefined reasoning workflows and legal-specific tools [29], or additional training such as supervised fine-tuning and reinforcement learning [1]. However, these improvements are largely determined before deployment, while many case-specific facts, procedural states, role interactions, and tool feedback only emerge during execution. How to exploit such deployment-time signals to continuously adapt subsequent agent behavior remains underexplored. In this paper, we aim to develop self-improving legal agents for more reliable reasoning.
Test-Time Adaptation. Test-time adaptation aims to improve model performance during inference without accessing the original training data [6]. A prominent line of inference-time improvement is test-time scaling, which allocates additional computation through repeated sampling, majority voting, self-consistency, or iterative refinement [18, 20, 25]. While effective for short-form reasoning, such strategies become increasingly costly in long-horizon tasks, where a single trajectory may involve numerous interaction turns, role transitions, and tool calls [13, 14]. More fundamentally, long-horizon agent interaction is inherently non-stationary: each action may alter subsequent states, available information, and behavioral constraints, making future decisions dependent on earlier interactions. Consequently, both useful experience and local errors can persist and compound over time. However, existing test-time methods have largely focused on isolated reasoning instances, leaving continual adaptation under interaction-induced non-stationarity relatively underexplored. This paper aims to bridge this gap through test-time agent evolution in long-horizon interactions.
3 Method
As shown in Fig. 2, TALA operates under a continual test-time setting, where legal cases are processed sequentially without updating the underlying model parameters. It consists of two complementary components: Test-Time Memory Evolution, which retrieves, adapts, and consolidates experience from preceding cases to handle case heterogeneity, and Rubric-Aligned Collaboration, which verifies and revises role-specific actions under behavioral and procedural constraints. Together, the two components enable the agent to continuously exploit deployment-time signals for more reliable long-horizon legal reasoning.
3.1 Problem Formulation
Test-Time Evolution. Let denote a pretrained language agent with parameters , learned from training data . At deployment, the agent sequentially encounters domain-specific legal tasks drawn from , where . As deployment progresses, newly encountered cases may differ in facts, evidence, procedural states, and role interactions, requiring the agent to continually adapt its behavior to evolving test-time conditions.
Long-Horizon Interaction. We formulate each legal case i as a multi-turn interaction involving a set of roles , such as the lawyer, client, judge, and other legal participants. Within case i, t indexes the interaction turn, and denotes the total number of turns in the corresponding trajectory. For clarity, we omit the case index i when referring to variables within a single case. At turn t, let denote the accumulated interaction history, including previous utterances and tool observations, and let denote the current task state, such as the active scenario or litigation stage, procedural progress, and collected case information. Given the active role , the agent produces an action:
where and denotes the action space. An action can be a natural-language response, such as questioning, answering, or document generation, or an executable action, such as legal retrieval or other tool invocation. After executing , the environment returns an observation and updates the task state from to . The trajectory of case is therefore represented as:
The agent sequentially processes N legal cases drawn from during test time. Our goal is to exploit information accumulated from preceding cases and their interactions to improve performance on subsequent cases, while maintaining coherent behavior with respect to the current role, task state, and procedure.
3.2 Test-Time Memory Evolution
Real-world legal tasks involve complex, multi-stage decision-making [17] often requiring external legal knowledge and specialized tools. However, existing LLM agents remain unreliable in tool use and long-horizon interactions [19]. To address this, we propose a Test-Time Memory Evolution (TME) mechanism that continuously accumulates and refines interaction experience during inference to support subsequent decision-making.
The mechanism consists of three components: Memory Retrieval, Contextual Memory Adaptation, and Memory Consolidation. After completing each legal case, the agent preserves reusable experience from its interaction trajectory, such as effective tool-use strategies and action guidance, to support subsequent cases. Let denote the memory bank available before processing case , where each represents a textual experience entry with its associated metadata.
Memory Retrieval. At turn of case , we retrieve relevant experience from according to the current interaction context. Specifically, we construct a retrieval query from the current task information and encode both the query and memory entries using a BGE encoder [27]. The relevance between and a memory entry is measured by cosine similarity:
where denotes the BGE embedding encoder and measures the semantic similarity between the current query and memory entry . We then rank all memory entries according to and retain at most the top-k entries whose similarity scores exceed a threshold :
where in our implementation. contains the retrieved textual experience entries and their metadata, while the embeddings are used only for similarity computation.
Contextual Memory Adaptation. Although retrieved memories may originate from the same legal scenario, their case-specific facts and evidentiary conditions can differ substantially. For example, cases involving the same offense may concern different objects, circumstances, or supporting evidence. Directly reusing such memories may therefore introduce irrelevant or mismatched guidance. We use the same agent to adapt the retrieved experience to the current interaction context:
(5)
where denotes the context-adapted memory incorporated into the current interaction context, and denotes the preliminary action generated before rubric-based verification.
Memory Consolidation. Instead of directly storing raw interaction histories, we first distill each completed interaction into a concise and reusable memory entry that summarizes effective retrieval strategies and action guidance. The distilled entry is then encoded by and added to the persistent memory bank.
As the memory bank grows, redundant or noisy experiences may reduce retrieval precision rather than further improve reasoning [3]. We therefore maintain a bounded memory bank and trigger global pairwise consolidation once its size exceeds a predefined capacity C. Specifically, we select the most semantically similar pair over the entire memory bank, rather than restricting the comparison to pairs that involve the newly added memory. The same agent then merges the selected pair into a consolidated experience

Figure 2: Overall framework of TALA. Under a continual test-time setting, the agent sequentially interacts with evolving legal cases and leverages deployment-time signals without updating model parameters. TALA consists of two components, Test-Time Memory Evolution and Rubric-Aligned Collaboration, which adapt prior experience to the current case and align role-specific behaviors to improve subsequent decisions.
, and updates the memory bank as:
This consolidation removes redundant experiences while preserving reusable knowledge within a fixed memory budget. If merging fails, the oldest memory is removed as a fallback.
3.3 Rubric-Aligned Collaboration
We introduce Rubric-Aligned Collaboration (RAC) to coordinate multiple roles under scenario-specific rubrics. Rather than optimizing each role independently [26, 32], each role follows its own interaction constraints, enabling complementary behaviors for reliable legal reasoning and task completion.
For each scenario, we define a set of role-specific rubrics , where each rubric specifies behavioral and procedural requirements for the corresponding role. For the active role , we denote its rubric as . At turn , the candidate action is checked against the rubric:
Here, indicates that the candidate action satisfies rubric item . Thus, only when all rubric requirements are satisfied; otherwise, the violated rubric items are used to provide revision guidance for the candidate action.
The candidate action is directly accepted if it satisfies all rubric requirements; otherwise, the same agent revises it according to the corresponding rubric:
Here, denotes the final action after rubric verification and possible revision. This verification is applied to all participating roles throughout the interaction trajectory, preventing local violations from propagating across turns and thereby reducing error accumulation in long-horizon interactions.
4 Experiment Setup
Datasets. To evaluate legal agents in long-horizon and multi-turn interaction settings, we consider two recent benchmarks, J1-EVAL [15] and LegalWorld [34], which cover diverse legal tasks ranging from interactive consultation to multi-stage litigation.
J1-EVAL [15] contains six interactive legal scenarios covering different stages and roles in legal practice: Knowledge Questioning (KQ), Legal Consultation (LC), Complaint Drafting (CD), Defence Drafting (DD), Civil Court (CI), and Criminal Court (CR). Beyond static legal question answering, these tasks require agents to interact with simulated users or legal participants over multiple turns, progressively collect case-relevant information, generate legal documents, and follow scenario-specific procedures. The benchmark therefore evaluates both legal reasoning and the agent's ability to maintain coherent behavior throughout multi-turn interactions.
Table 1: Performance comparisons on J1-EVAL using Qwen3.5-4B, Qwen3-8B, and Qwen3-32B backbones. Best results are in bold and second-best results are underlined.
| Method | Level-I | Level-II | Level-III | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| KQ | LC | CD | DD | CI | CR | ||||||||||
| Avg. | Avg. | FOR | DOC | FOR | DOC | PFS | JUD | REA | LAW | PFS | CRI | VER | REA | LAW | |
| Qwen3.5-4B | 44.5 | 26.2 | 4.3 | 28.2 | 1.4 | 17.3 | 27.8 | 6.3 | 9.1 | 8.7 | 16.4 | 53.6 | 36.6 | 18.8 | 25.4 |
| • ReAct | 25.0 | 18.3 | 4.3 | 24.1 | 0.4 | 10.1 | 1.1 | 4.5 | 0.8 | 9.2 | 0.4 | 5.8 | 4.3 | 1.7 | 2.2 |
| • Plan-and-Solve | 21.2 | 12.2 | 3.2 | 18.8 | 4.5 | 12.4 | 3.8 | 2.2 | 5.4 | 5.9 | 3.0 | 24.6 | 17.0 | 6.4 | 6.5 |
| • Plan-and-Execute | 33.4 | 21.9 | 8.6 | 14.1 | 10.2 | 5.0 | 5.4 | 2.9 | 4.4 | 2.4 | 2.7 | 20.3 | 13.0 | 4.8 | 7.4 |
| • LawThinker | 43.3 | 28.6 | 53.8 | 32.5 | 30.1 | 21.3 | 39.8 | 8.5 | 9.8 | 12.3 | 13.2 | 44.9 | 40.7 | 14.1 | 22.7 |
| • Reflexion | 25.3 | 15.7 | 0.6 | 17.8 | 1.8 | 8.8 | 1.3 | 0.8 | 10.6 | 6.8 | 7.5 | 54.3 | 3.3 | 14.6 | 10.4 |
| • TALA | 47.9 | 34.2 | 69.8 | 50.0 | 56.6 | 42.6 | 56.2 | 14.0 | 21.1 | 22.7 | 45.3 | 64.2 | 60.6 | 25.3 | 42.2 |
| Qwen3-8B | 48.3 | 26.7 | 7.5 | 58.1 | 8.2 | 35.9 | 5.2 | 2.9 | 4.3 | 4.7 | 13.6 | 69.6 | 48.9 | 30.4 | 40.0 |
| • ReAct | 59.5 | 34.4 | 24.1 | 53.8 | 18.6 | 28.7 | 1.2 | 0.6 | 2.2 | 1.6 | 6.7 | 65.2 | 48.1 | 31.0 | 34.5 |
| • Plan-and-Solve | 57.0 | 34.6 | 20.0 | 38.6 | 6.5 | 8.1 | 1.8 | 2.5 | 5.8 | 5.0 | 0.8 | 66.7 | 46.1 | 25.9 | 25.6 |
| • Plan-and-Execute | 57.7 | 34.6 | 8.6 | 22.3 | 0.7 | 3.3 | 7.3 | 5.2 | 6.7 | 5.9 | 7.3 | 56.5 | 31.9 | 19.9 | 21.2 |
| • LawThinker | 57.9 | 30.3 | 89.2 | 52.2 | 78.9 | 33.4 | 17.0 | 8.0 | 10.3 | 8.9 | 11.3 | 60.9 | 55.9 | 25.8 | 34.4 |
| • Reflexion | 57.6 | 33.7 | 32.7 | 56.4 | 16.8 | 25.9 | 1.1 | 0.5 | 1.6 | 0.5 | 7.8 | 65.2 | 39.1 | 29.6 | 30.1 |
| • TALA | 57.5 | 36.5 | 98.0 | 75.5 | 58.7 | 55.4 | 40.0 | 23.5 | 29.0 | 33.6 | 80.0 | 97.1 | 67.1 | 46.7 | 65.3 |
| Qwen3-32B | 54.3 | 39.1 | 6.5 | 55.3 | 2.9 | 39.5 | 21.0 | 5.8 | 8.3 | 10.3 | 9.1 | 84.1 | 64.3 | 39.3 | 40.9 |
| • ReAct | 58.9 | 33.8 | 34.0 | 40.5 | 10.4 | 18.4 | 26.2 | 9.0 | 12.5 | 8.8 | 7.7 | 72.5 | 55.9 | 34.8 | 27.0 |
| • Plan-and-Solve | 56.3 | 39.7 | 17.4 | 19.2 | 5.7 | 9.6 | 13.6 | 7.3 | 10.5 | 5.9 | 3.8 | 49.3 | 37.6 | 18.0 | 17.0 |
| • Plan-and-Execute | 58.9 | 31.9 | 13.1 | 12.6 | 9.7 | 7.5 | 2.2 | 1.8 | 2.8 | 2.0 | 3.0 | 47.8 | 33.4 | 21.9 | 14.4 |
| • LawThinker | 56.8 | 42.3 | 83.9 | 53.5 | 86.7 | 42.0 | 19.4 | 9.7 | 19.6 | 17.5 | 79.8 | 62.3 | 45.3 | 29.7 | 31.0 |
| • Reflexion | 59.4 | 31.4 | 43.7 | 38.2 | 25.4 | 29.0 | 30.4 | 10.8 | 16.6 | 12.3 | 6.6 | 58.0 | 43.9 | 30.1 | 19.9 |
| • TALA | 62.6 | 39.4 | 100.0 | 70.3 | 58.7 | 53.5 | 85.0 | 23.3 | 32.7 | 31.4 | 85.4 | 98.6 | 69.5 | 45.7 | 57.5 |
Table 2: Performance comparisons on J1-EVAL using InternLM3-8B and GLM-4-9B backbones. Best results are in bold, second-best results are underlined, and “-” denotes failure to complete the task.
| Method | Level-I | Level-II | Level-III | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| KQ | LC | CD | DD | CI | CR | ||||||||||
| Avg. | Avg. | FOR | DOC | FOR | DOC | PFS | JUD | REA | LAW | PFS | CRI | VER | REA | LAW | |
| InternLM3-8B | 39.8 | 33.0 | 49.0 | 61.6 | 1.4 | 27.3 | 5.7 | 1.5 | 2.3 | 1.4 | 8.6 | 47.8 | 36.3 | 16.1 | 13.4 |
| • ReAct | 44.1 | 26.7 | 26.9 | 30.0 | - | - | - | - | - | - | - | 2.9 | 1.0 | 0.7 | 0.4 |
| • Plan-and-Solve | 41.4 | 29.7 | 16.1 | 41.8 | - | 5.8 | 3.8 | 3.1 | 8.5 | 4.7 | 2.0 | 37.7 | 25.2 | 12.3 | 9.9 |
| • Plan-and-Execute | 47.6 | 33.4 | 4.5 | 1.8 | - | 0.4 | 4.5 | 3.8 | 8.7 | 3.9 | 0.0 | 5.8 | 5.2 | 1.3 | 1.5 |
| • LawThinker | 42.8 | 37.1 | 78.5 | 60.1 | 49.1 | 33.7 | 6.0 | 2.7 | 3.9 | 2.1 | 46.2 | 26.1 | 48.5 | 6.2 | 8.1 |
| • Reflexion | 17.8 | 12.5 | 1.1 | 5.6 | - | 0.3 | - | - | - | - | - | - | - | - | - |
| • TALA | 50.9 | 34.9 | 100.0 | 67.5 | 56.3 | 50.7 | 88.9 | 17.5 | 21.9 | 18.8 | 78.2 | 64.2 | 61.7 | 37.7 | 20.4 |
| GLM-4-9B | 47.6 | 19.0 | 59.8 | 31.1 | 3.2 | 13.5 | 1.5 | - | 0.2 | - | 15.0 | 40.6 | 26.2 | 12.6 | 8.4 |
| • ReAct | 48.3 | 16.8 | 5.4 | 19.3 | 1.8 | 6.0 | 0.1 | - | - | - | 2.2 | 11.6 | 4.4 | 3.2 | 0.8 |
| • Plan-and-Solve | 19.1 | 6.7 | 0.6 | 0.5 | 0.7 | 3.3 | 0.6 | 0.4 | 0.3 | - | 0.5 | 4.3 | 4.2 | 1.7 | 0.5 |
| • Plan-and-Execute | 35.6 | 12.1 | - | - | - | - | - | - | - | - | - | - | - | - | - |
| • LawThinker | 53.9 | 24.6 | 63.2 | 28.2 | 6.8 | 8.2 | 72.0 | - | - | - | 3.6 | 15.9 | 9.1 | 4.6 | 3.8 |
| • Reflexion | 50.9 | 22.3 | 0.6 | 8.1 | 0.4 | 4.4 | - | - | - | - | 0.9 | 4.3 | 2.1 | 0.7 | 0.5 |
| • TALA | 55.6 | 34.0 | 95.5 | 53.8 | 57.8 | 44.6 | 80.0 | 8.7 | 12.0 | 9.5 | 72.5 | 94.2 | 51.6 | 32.8 | 22.0 |
LegalWorld [34] simulates a long-horizon civil litigation process through seven interconnected stages: Legal Consultation (LC), Complaint Drafting (CD), Defence Drafting (DD), First-Instance Trial (FIT), Appeal Drafting (AD), Appeal Response (AR), and Second-Instance Trial (SIT). In contrast to independently evaluated scenarios, the outputs and case states produced in earlier stages are carried forward to subsequent stages, forming a continuous litigation trajectory. This setting evaluates whether legal agents can preserve and utilize long-term case information, adapt to evolving procedural states, and maintain consistent reasoning across different stages of litigation.
Baselines. We compare our method with several representative reasoning and agent baselines. SourceOnly directly uses the
SourceOnly
w/o Test-Time Memory Evolution
w/o Rubric-Aligned Collaboration
(a) Qwen3.5-4B

(b) Qwen3-8B
(c) Qwen3-32B
(d) InternLM3-8B
(e) GLM-4-9B
Figure 3: Ablation study of TALA across five backbone models on J1-EVAL and LegalWorld. Performance drops are reported after removing TME or RAC, showing that both components consistently contribute across models and benchmarks.
Table 3: Performance comparisons on LegalWorld using Qwen3.5-4B, Qwen3-8B, and Qwen3-32B backbones. Best results are in bold and second-best results are underlined.
| Method | LC | DD | CA | |||||
|---|---|---|---|---|---|---|---|---|
| IS | PI | CC | FM | EM | PC | EA | LR | |
| Qwen3.5-4B | 46.4 | 56.8 | 53.5 | 49.7 | 33.4 | 51.8 | 42.6 | 45.9 |
| ReAct | 43.7 | 57.4 | 55.4 | 50.5 | 40.2 | 54.1 | 44.1 | 48.6 |
| Plan-and-Solve | 41.8 | 55.7 | 46.4 | 41.8 | 27.1 | 45.2 | 36.4 | 41.3 |
| Plan-and-Execute | 43.2 | 50.9 | 42.5 | 38.0 | 19.2 | 44.2 | 36.0 | 42.0 |
| LawThinker | 43.4 | 51.9 | 54.8 | 50.9 | 44.4 | 40.1 | 31.7 | 38.3 |
| Reflexion | 45.1 | 58.8 | 55.8 | 50.2 | 28.9 | 53.0 | 44.0 | 47.5 |
| TALA | 53.5 | 94.9 | 68.4 | 61.9 | 65.8 | 66.5 | 55.8 | 58.4 |
| Qwen3-8B | 33.9 | 80.1 | 62.9 | 49.6 | 43.1 | 52.0 | 39.4 | 39.9 |
| ReAct | 28.9 | 82.5 | 63.8 | 52.4 | 45.5 | 52.1 | 40.5 | 42.0 |
| Plan-and-Solve | 6.0 | 51.3 | 23.0 | 19.7 | 7.7 | 31.7 | 21.9 | 25.0 |
| Plan-and-Execute | 4.6 | 49.9 | 24.8 | 19.8 | 8.2 | 29.6 | 21.7 | 25.4 |
| LawThinker | 25.7 | 88.5 | 70.1 | 55.0 | 53.9 | 37.8 | 25.6 | 30.5 |
| Reflexion | 31.2 | 83.9 | 62.5 | 51.8 | 46.9 | 53.8 | 40.9 | 42.2 |
| TALA | 39.9 | 94.1 | 70.1 | 58.0 | 64.8 | 63.4 | 49.6 | 50.2 |
| Qwen3-32B | 43.2 | 71.0 | 58.3 | 53.6 | 49.5 | 59.3 | 47.7 | 52.5 |
| ReAct | 40.9 | 72.0 | 66.1 | 59.2 | 58.4 | 60.3 | 49.2 | 52.8 |
| Plan-and-Solve | 42.5 | 59.2 | 41.4 | 34.7 | 22.6 | 41.7 | 32.2 | 37.7 |
| Plan-and-Execute | 40.1 | 60.8 | 36.2 | 30.7 | 17.4 | 36.1 | 27.5 | 32.5 |
| LawThinker | 47.5 | 76.1 | 63.3 | 56.1 | 51.4 | 34.8 | 26.9 | 32.7 |
| Reflexion | 43.3 | 75.0 | 64.9 | 56.6 | 49.9 | 58.4 | 47.3 | 51.5 |
| TALA | 54.9 | 95.5 | 75.2 | 69.5 | 77.2 | 69.4 | 57.2 | 60.0 |
original backbone model without additional design. We consider five representative open-source LLMs from three model families: GLM-4-9B [12], InternLM3-8B [2], Qwen3-8B, Qwen3-32B, and Qwen3.5-4B [22]. These models cover different model scales and serve as the base models for evaluating the effectiveness and generalizability of different agent frameworks. ReAct [30] interleaves reasoning and action generation, allowing the agent to iteratively interact with external tools and update its reasoning based on environmental observations. Plan-and-Solve [24] first decomposes a complex task into a sequence of manageable subtasks and then solves them sequentially according to the generated plan. Plan-and-Execute [23] further separates high-level planning from stepwise execution, where a planner generates a global task plan and an executor carries out individual steps with available tools. LawThinker [29] is a legal-specific agent based on an Explore-Verify-Memorize workflow, which retrieves legal knowledge, explicitly
Table 4: Performance comparisons on LegalWorld using InternLM3-8B and GLM-4-9B backbones. Best results are in bold and second-best results are underlined.
| Method | LC | DD | CA | |||||
|---|---|---|---|---|---|---|---|---|
| IS | PI | CC | FM | EM | PC | EA | LR | |
| InternLM3-8B | 41.1 | 67.5 | 62.4 | 50.8 | 41.0 | 23.6 | 18.3 | 23.2 |
| ReAct | 33.6 | 78.0 | 69.9 | 56.6 | 59.6 | 22.9 | 17.0 | 21.3 |
| Plan-and-Solve | 34.9 | 58.9 | 43.2 | 35.9 | 38.5 | 22.2 | 16.2 | 20.2 |
| Plan-and-Execute | 29.3 | 50.1 | 35.3 | 30.7 | 19.7 | 26.7 | 19.7 | 23.7 |
| LawThinker | 42.3 | 67.6 | 64.5 | 53.8 | 60.0 | 22.6 | 16.5 | 20.6 |
| Reflexion | 34.7 | 72.7 | 68.4 | 56.7 | 56.0 | 23.4 | 18.3 | 21.9 |
| TALA | 51.1 | 92.3 | 74.7 | 61.2 | 69.0 | 63.7 | 48.8 | 48.9 |
| GLM-4-9B | 29.4 | 49.9 | 42.1 | 17.6 | 4.7 | 24.5 | 17.7 | 18.6 |
| ReAct | 25.7 | 54.3 | 44.2 | 15.4 | 7.6 | 18.0 | 13.1 | 13.7 |
| Plan-and-Solve | 5.2 | 29.2 | 32.6 | 9.8 | 2.3 | 9.8 | 6.7 | 6.7 |
| Plan-and-Execute | 1.0 | 24.2 | 22.6 | 9.8 | 5.0 | 9.4 | 5.7 | 5.5 |
| LawThinker | 16.9 | 57.4 | 45.8 | 20.8 | 15.2 | 20.3 | 13.4 | 16.7 |
| Reflexion | 25.5 | 56.3 | 44.2 | 14.1 | 6.4 | 20.9 | 14.9 | 16.2 |
| TALA | 34.0 | 84.6 | 51.7 | 28.4 | 36.0 | 49.9 | 36.1 | 35.1 |
verifies intermediate evidence and reasoning, and stores validated information for reuse in subsequent interactions. For a fair comparison, all methods are instantiated with the same backbone models and evaluation settings, and agent-based baselines are provided with the same set of external tools.
Implementation Details. Each backbone model is used to instantiate all agent roles. To avoid unbounded interaction loops, we follow the interaction settings of the original benchmarks [15, 34]. For LLM-based metric evaluation, we use DeepSeek-Flash [28]. All experiments are conducted on NVIDIA L20 GPUs.
5 Results and Analysis
5.1 Main Results
As shown in Tables 1 and 2, TALA consistently improves performance on J1-EVAL across different backbone models and task levels. The gains are particularly pronounced on document drafting and courtroom-oriented metrics. Improvements on FOR and DOC indicate stronger preservation of task-specific information and more reliable generation of structurally complete legal documents. Meanwhile, the gains on PFS, REA, and LAW suggest better procedural compliance, legal reasoning, and use of appropriate legal provisions.
SourceOnly (SO)
ReAct
PlanAndSolve (PS)
PlanAndExecute (PE)
Reflexion (REF)
LawThinker (LT)
Ours
(a) Consultation time (LegalWorld, 4B)

(b) Turns per case (J1-EVAL, 4B)
(c) Tool calls (LegalWorld, 4B)
(d) Completion (LegalWorld, GLM)
Figure 4: Efficiency analysis of TALA. (a) Median execution time per case. (b) Median interaction turns across different task scenarios. (c) Tool-call and token usage per case. (d) End-to-end task completion rate.
Tables 3 and 4 further show that TALA achieves consistent improvements on LegalWorld across legal consultation, document drafting, and courtroom advocacy. The improvements are especially evident in drafting and advocacy tasks, where successful completion requires agents to preserve case facts across stages, adapt to changing role objectives, and reuse previously established evidence.
Across Tables 1, 2, 3, and 4, the improvements are consistently observed on Qwen3.5-4B, Qwen3-8B, Qwen3-32B, InternLM3-8B, and GLM-4-9B. This indicates that TALA is not tied to a particular model family or parameter scale, but provides a generally effective test-time adaptation mechanism for improving long-horizon legal agents without updating the underlying model parameters.
5.2 Ablation Study
As shown in Fig. 3, removing either component consistently degrades the performance of TALA across all five backbone models and both benchmarks. On J1-EVAL, removing Test-Time Memory Evolution leads to an average performance drop of 17.5 points, while removing Rubric-Aligned Collaboration results in a 15.3-point drop. Similar trends are observed on LegalWorld, with average decreases of 13.0 and 9.4 points after removing TME and RAC, respectively. Averaged over all model–benchmark combinations, the performance drops are 15.2 points for w/o TME and 12.4 points for w/o RAC. In comparison, SourceOnly exhibits an average degradation of 21.3 points relative to the full model. These results demonstrate that both components make substantial and complementary contributions: TME provides persistent task- and case-specific knowledge adaptation, whereas RAC regulates role-specific behavior and interaction progression; combining them yields the strongest overall performance.
5.3 Efficiency of TALA
We further evaluate the interaction and computational efficiency of TALA. As shown in Fig. 4, TALA maintains reasonable test-time overhead while supporting reliable long-horizon execution.
- Execution Time. On LegalWorld, TALA requires a median of 4.27 minutes per consultation case, remaining below several planning-intensive baselines. This suggests that the additional adaptation steps introduce manageable computational overhead. 2) Interaction Turns. Across J1-EVAL scenarios, TALA remains within the interaction range of existing methods. Its performance gains therefore do not simply result from extending the conversation with additional turns. 3) Tool and Token Usage. TALA maintains moderate tool-call and token usage by selectively invoking retrieval when additional legal knowledge or prior experience is needed. This avoids repeatedly expanding intermediate reasoning or invoking tools throughout the trajectory. 4) Completion Rate. On LegalWorld with GLM-4-9B, TALA achieves a completion rate, compared with for the evaluated baselines. This indicates improved robustness in sustaining long-horizon execution across multiple stages.
Table 5: Audit results for the self-judgment mechanisms in TME and RAC. All values are reported on a 0–100 scale.
| Audit Metric | TME | RAC |
|---|---|---|
| Judgment Agreement | 66.8 | 71.7 |
| Judge-Verified Local Error | 32.6 | 39.6 |
| Jev Coverage at Matched Error | 84.3 | 91.6 |
| Potential Local LLM Calls Saved | - | 89.5 |
5.4 Case Study Analysis
Fig. 5 further illustrates how the two components of TALA affect agent behavior through representative cases. In the J1-EVAL consultation case, the user raises multiple legal issues concerning the validity of prior civil acts, applicable provisions, liquidation, and company termination. SourceOnly provides only a partial response and terminates the conversation before the remaining issues are addressed. TME retrieves relevant legal provisions and improves the grounding of the lawyer's response, but does not prevent premature termination. In contrast, RAC explicitly tracks unresolved issues and encourages the involved roles to continue clarification and inquiry, resulting in more complete issue coverage, although the available legal grounding remains limited. Combining both mechanisms, TALA maintains the interaction until the required issues are covered while grounding the lawyer's responses with relevant legal knowledge.
| (a) SourceOnly | (b) Test-Time Memory Evolution | (c) Rubric-Aligned Collaboration | (d) TALA (Ours) |
|---|---|---|---|
| Public: “After the company’s registration is revoked, are its prior civil acts still valid? Which laws apply? Is liquidation required? Does revocation immediately terminate the company?...” Lawyer: “The prior acts may remain valid under certain circumstances ...” Public: “End conversation.” · Incomplete issue coverage · No legal grounding | Public: “After the company’s registration is revoked, are its prior civil acts still valid? Which laws apply? Is liquidation required? ...” Lawyer: [Adaptive Memory: retrieve relevant statutes] “According to the Company Law and the Civil Code, ...” Public: “End conversation.” · Legal support · Incomplete coverage | Public: [Role-Specific Rubric: unresolved issues → continue inquiry] “Which provision supports this conclusion?” Lawyer: [Role-Specific Rubric: missing facts → clarify first] “Has the company entered liquidation and have creditors been notified?” · Complete issue coverage · Limited legal grounding | Public: [Role-Specific Rubric: unresolved issues → continue inquiry] “Is liquidation required after revocation?” Lawyer: [Adaptive Memory: retrieve relevant statutes] “According to the applicable provisions of the Company Law, ...” · Full coverage · Strong legal grounding |
| Respondent Lawyer: “The first-instance court correctly rejected the claimed shipping loss ... The appeal should therefore be dismissed and the original judgment upheld.” | Respondent Lawyer: [Adaptive Memory: retrieve prior judgment + evidence] “The RMB 80,000 payment ... the receipt issued by Zhonggang ... the notation concerning Dai Zhongliang ... Yet, the first-instance court correctly rejected our claimed shipping loss, and the original judgment should be upheld.” | Plaintiff Lawyer: [Role-Specific Rubric: missing facts → clarify before drafting] “Please confirm the legal representative, claimed amount, defendant’s address, and supporting evidence ...” Client: “Shao Yawei ... RMB 157,300 ...” | Client: [Role-Specific Rubric: missing evidence → supply supporting material] “We retained the bank transfer record for the RMB 80,000 payment.” Respondent Lawyer: [Adaptive Memory: retrieve prior evidence] “Fengye paid RMB 80,000 after the vessel was detained; the receipt does not establish voluntary repayment ...” |
| · Advocacy drift · Key facts ignored | · Evidence recovered · Advocacy drift remains | · Advocacy aligned · Limited grounding | · Aligned advocacy · Grounded evidence |
Figure 5: Case studies on J1-EVAL and LegalWorld. The upper case presents a legal consultation scenario in J1-EVAL, while the lower case illustrates a multi-stage legal workflow in LegalWorld. We compare SourceOnly with Test-Time Memory Evolution, Rubric-Aligned Collaboration, and the full TALA framework to show their complementary effects on legal grounding, interaction coverage, role alignment, and cross-stage evidence use. The takeaway beneath each case summarizes the observed behavior, where underlined terms indicate remaining limitations.
The LegalWorld case demonstrates a different failure mode in a long-horizon, multi-stage legal workflow. The same dispute evolves from consultation and complaint drafting to first-instance and appellate proceedings, requiring the agent to preserve case evidence while adapting to changing role objectives. SourceOnly exhibits advocacy drift: although acting as the respondent's lawyer, it focuses on defending the rejection of its own claimed shipping loss rather than protecting the favorable RMB 80,000 judgment. Test-Time Memory Evolution successfully recovers prior-stage evidence, including the payment and receipt information, but the advocacy objective can still remain misaligned. Rubric-Aligned Collaboration instead regulates stage- and role-specific behavior, such as requiring missing facts to be clarified before drafting, but cannot recover evidence that is unavailable in the current interaction. With both components, TALA preserves relevant evidence across stages while maintaining role-aligned advocacy.
Together, the two cases highlight the complementary roles of the proposed components. Test-Time Memory Evolution primarily determines what information should be recovered and reused, whereas Rubric-Aligned Collaboration regulates how each role should act and how the interaction should progress. Their combination therefore addresses both knowledge continuity and behavioral alignment, which are jointly required for reliable long-horizon agent execution.
5.5 Auditing Self-Judgment with Jev
We further audit the self-judgment mechanisms in TALA using Jev , an independent lightweight structured judge. As shown in Table 5, we conduct the analysis on the J1-EVAL KQ scenario across all five backbone models, covering the internal judgments used by both Test-Time Memory Evolution (TME) and Rubric-Aligned Collaboration (RAC). We report four metrics: Judgment Agreement measures the consistency between Jev and the original local self-judgment; Judge-Verified Local Error estimates the error rate of the original judgment through independent verification; Jev Coverage at Matched Error measures the proportion of decisions that Jev can handle without exceeding the original judgment error; and Potential Local LLM Calls Saved estimates the corresponding reduction in local LLM-based judgment calls. Overall, the results support the effectiveness of our internal judgment design, while lightweight judges such as Jev provide a promising direction for further improving verification efficiency and reducing local LLM calls.
6 Conclusion
In this paper, we investigate test-time evolution for long-horizon legal agents and identify two key challenges in realistic deployment: case heterogeneity, which complicates experience transfer across continuously arriving cases, and cross-role coupling, where local decisions can influence subsequent roles and propagate across procedural stages. To address these challenges, we propose TALA, which enables agents to continually adapt throughout deployment by evolving cross-case experience and coordinating decisions across coupled legal roles and stages. Specifically, Test-Time Memory Evolution retrieves, adapts, and consolidates prior interaction experience to support heterogeneous cases, while Rubric-Aligned Collaboration aligns role decisions with behavioral and procedural requirements to improve global consistency across long-horizon interactions. Extensive experiments on J1-EVAL and LegalWorld across five backbone models demonstrate consistent improvements across model families and scales, together with stronger robustness in multi-stage execution. Further ablation, efficiency, and case studies show that the two components are complementary and mutually reinforcing, jointly improving cross-case adaptation, cross-role coordination, and the overall reliability of long-horizon legal reasoning.
Limitations. Our current study focuses on autonomous test-time evolution, while real-world legal decision-making is inherently interactive and often requires sustained collaboration between agents and human professionals. Future work may extend TALA toward human-in-the-loop and recursively interactive legal agents that continuously incorporate expert feedback, user corrections, and procedural changes during deployment. Evaluating such systems in more specialized legal settings, with stronger requirements on accountability, professional expertise, and human-agent coordination, remains an important direction.
References
[1] Hua Cai, Shuang Zhao, Liang Zhang, Xuli Shen, Qing Xu, Weilin Shen, Zihao Wen, and Tianke Ban. 2025. Unilaw-r1: A large language model for legal reasoning with reinforcement learning and iterative inference. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 18128–18142.
[2] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. 2024. Internlm2 technical report. arXiv preprint arXiv:2403.17297 (2024).
[3] Shuqi Cao, Jingyi He, and Fei Tan. 2026. HiGMem: A Hierarchical and LLM-Guided Memory System for Long-Term Conversational Agents. In Findings of the Association for Computational Linguistics: ACL 2026. 33853–33862.
[4] Guhong Chen, Liyang Fan, Zihan Gong, Nan Xie, Zixuan Li, Ziqiang Liu, Chengming Li, Qiang Qu, Hamid Alinejad-Rokny, Shiwen Ni, et al. 2025. Agentcourt: Simulating court with adversarial evolvable lawyer agents. In Findings of the Association for Computational Linguistics: ACL 2025. 5850–5865.
[5] Haotian Chen, Yanyu Xu, Boyan Wang, Chaoyue Zhao, Xiaoyu Han, Fang Wang, Lizhen Cui, and Yonghui Xu. 2025. LexPro-1.0 technical report. arXiv preprint arXiv:2503.06949 (2025).
[6] Haotian Chen, Yanyu Xu, Yonghui Xu, Boyan Wang, Fang Wang, and Lizhen Cui. 2026. Test-Time Thinking: Reinforcement Adaptation for Multimodal LLM Reasoning. Expert Systems with Applications (2026), 132524.
[7] Pierre Colombo, Telmo Pessoa Pires, Malik Boudiaf, Dominic Culver, Rui Melo, Caio Corro, Andre FT Martins, Fabrizio Esposito, Vera Lúcia Raposo, Sofia Morgado, et al. 2024. Saullm-7b: A pioneering large language model for law. arXiv preprint arXiv:2403.03883 (2024).
[8] Jiaxi Cui, Munan Ning, Zongjian Li, Hao Li, Yang Ya, Bohua Chen, Bin Ling, Yonghong Tian, and Li Yuan. 2026. Chatlaw: A multi-agent legal assistant based on a role-aligned mixture-of-experts architecture. Fundamental Research (2026).
[9] Joseph Enguehard, Morgane Van Ermengem, Kate Atkinson, Sujeong Cha, Arijit Ghosh Chowdhury, Prashanth Kallur Ramaswamy, Jeremy Roghair, Hannah R Marlowe, Carina Suzana Negreanu, Kitty Boxall, et al. 2025. Lemaj (legal llmas-a-judge): Bridging legal reasoning and llm evaluation. In Proceedings of the natural legal language processing workshop 2025. 318–337.
[10] Zhiwei Fei, Xiaoyu Shen, Dawei Zhu, Fengzhe Zhou, Zhuo Han, Alan Huang, Songyang Zhang, Kai Chen, Zhixin Yin, Zongwen Shen, et al. 2024. Lawbench: Benchmarking legal knowledge of large language models. In Proceedings of the 2024 conference on empirical methods in natural language processing. 7933–7962.
[11] Zhiwei Fei, Songyang Zhang, Xiaoyu Shen, Dawei Zhu, Xiao Wang, Jidong Ge, and Vincent Ng. 2025. Internlm-law: An open-sourced chinese legal large language model. In Proceedings of the 31st International Conference on Computational Linguistics. 9376–9392.
[12] Team Glm, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Dan Zhang, Diego Rojas, Guanyu Feng, Hanlin Zhao, et al. 2024. Chatglm: A family of large language models from glm-130b to glm-4 all tools. arXiv preprint arXiv:2406.12793 (2024).
[13] Audrey Huang, Adam Block, Qinghua Liu, Nan Jiang, Akshay Krishnamurthy, and Dylan J Foster. 2025. Is best-of-n the best of them? coverage, scaling, and optimality in inference-time alignment. arXiv preprint arXiv:2503.21878 (2025).
[14] Baihe Huang, Shanda Li, Tianhao Wu, Yiming Yang, Ameet Talwalkar, Kannan Ramchandran, Michael Jordan, and Jiantao Jiao. 2026. Sample complexity and representation ability of test-time scaling paradigms. In International Conference on Learning Representations, Vol. 2026. 54262–54298.
[15] Zheng Jia, Shengbin Yue, Wei Chen, Siyuan Wang, Yidong Liu, Zejun Li, Yun Song, and Zhongyu Wei. 2026. Ready jurist one: Benchmarking language agents for legal intelligence in dynamic environments. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 10351–10376.
[16] Haitao Li, Junjie Chen, Jingli Yang, Qingyao Ai, Wei Jia, Youfeng Liu, Kai Lin, Yueyue Wu, Guozhi Yuan, Yiran Hu, et al. 2025. Legalagentbench: Evaluating llm agents in legal domain. In Proceedings of the 63rd annual meeting of the association for computational linguistics (volume 1: long papers). 2322–2344.
[17] Shuang Liu, Ruijia Zhang, Ruoyun Ma, Yujia Deng, Lanyi Zhu, Jiayu Li, Zelong Li, Zhibin Shen, and Mengnan Du. 2026. LLM agents in law: Taxonomy, applications, and challenges. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 15768–15792.
[18] Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with self-feedback. Advances in neural information processing systems 36 (2023), 46534–46594.
[19] Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E Gonzalez. 2025. The berkeley function calling leaderboard (bfcl): From tool use to agentic evaluation of large language models. In Forty-second International Conference on Machine Learning.
[20] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. 2025. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In International Conference on Learning Representations, Vol. 2025. 10131–10165.
[21] Mirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. 2026. Dynamic cheatsheet: Test-time learning with adaptive memory. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers). 7080–7106.
[22] Qwen Team. 2025. Qwen3 Technical Report. arXiv:2505.09388 [cs.CL] https://arxiv.org/abs/2505.09388
[23] Oguzhan Topsakal and Tahir Cetin Akinci. 2023. Creating large language model applications utilizing langchain: A primer on developing llm apps fast. In International conference on applied engineering and natural sciences, Vol. 1. 1050–1056.
[24] Lei Wang, Wanyu Xu, Yihuai Lan, Zhiqiang Hu, Yunshi Lan, Roy Ka-Wei Lee, and Ee-Peng Lim. 2023. Plan-and-solve prompting: Improving zero-shot chain-of-thought reasoning by large language models. In Proceedings of the 61st annual meeting of the association for computational linguistics (volume 1: Long papers). 2609–2634.
[25] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171 (2022).
[26] Yang Wu, Chenghao Wang, Ece Gumusel, and Xiaozhong Liu. 2024. Knowledge-infused legal wisdom: Navigating llm consultation through the lens of diagnostics and positive-unlabeled reinforcement learning. In Findings of the Association for Computational Linguistics: ACL 2024. 15542–15555.
[27] Shitao Xiao, Zheng Liu, Peitian Zhang, and Niklas Muennighoff. 2023. C-Pack: Packaged Resources To Advance General Chinese Embedding. arXiv:2309.07597 [cs.CL]
[28] Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. 2026. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348 (2026).
[29] Xinyu Yang, Chenlong Deng, Tongyu Wen, Binyu Xie, and Zhicheng Dou. 2026. Lawthinker: A deep research legal agent in dynamic environments. arXiv preprint arXiv:2602.12056 (2026).
[30] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2022. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629 (2022).
[31] Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Xuanjing Huang, et al. 2023. Disc-lawllm: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023).
[32] Shengbin Yue, Ting Huang, Zheng Jia, Siyuan Wang, Shujun Liu, Yun Song, Xuan-Jing Huang, and Zhongyu Wei. 2025. Multi-agent simulator drives language models for legal intensive interaction. In Findings of the Association for Computational Linguistics: NAACL 2025. 6552–6585.
[33] Senbo Zhang, Qiqi Wang, Fanghao Lou, Guanyu Chen, Yihong Pan, Huijia Li, and Qian Liu. 2026. DefGen-Bench: A Benchmark for Chinese Criminal Defence Opinion Generation in LegalAI. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 35378–35392.
[34] Songhan Zuo, Shengbin Yue, Tao Chiang, Guanying Li, Yun Song, Xuanjing Huang, and Zhongyu Wei. 2026. LegalWorld: A Life-Cycle Interactive Environment for Legal Agents. arXiv preprint arXiv:2606.18728 (2026).