Test-Time Agent Evolution for Long-Horizon Legal Reasoning

Haotian Chen, Shuaicheng Niu, Haocong Rao, Kaisong Song, Jun Lin +3 more
10/6/2026
cs.AI

No confident code implementation found for this paper.

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 \method, which introduces \emph{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, \emph{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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026testtime,
  title  = {Test-Time Agent Evolution for Long-Horizon Legal Reasoning},
  author = {Haotian Chen and Shuaicheng Niu and Haocong Rao and Kaisong Song and Jun Lin and Lizhen Cui and Zhiqi Shen and Yonghui Xu},
  year   = {2026},
  eprint = {2610.08138},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.08138v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.08138.svg)](https://codeofpaper.com/paper/2610.08138)

Discussion