Search papers, labs, and topics across Lattice.
The paper introduces LegalSearch-R1, a reinforcement learning framework designed to improve temporal consistency in legal LLMs by combining local statute retrieval with online web search. They address the problem of LLMs applying laws retroactively due to temporal bias and search agents neglecting temporal constraints. Results show LegalSearch-R1 significantly outperforms existing legal LLMs and deep research frameworks on both overall legal task performance (12.9%-29.8% improvement) and temporal consistency (57.7%-80.3% improvement).
Legal LLMs can be taught to respect the arrow of time, outperforming state-of-the-art models by up to 30% on legal reasoning tasks simply by enforcing temporal consistency via reinforcement learning.
While large language models (LLMs) augmented with agentic search capabilities show promise for legal reasoning, they overlook a fundamental constraint that applicable law must match the temporal context of each case, as retroactive application of statutes violates core legal principles and leads to erroneous conclusions. Our observations reveal that current legal LLMs suffer from temporal bias anchored to their training cutoff, while search agents rarely incorporate temporal constraints into queries, and that web search alone cannot provide the precise statute and precedent citations that legal reasoning demands. To address these challenges, we propose LegalSearch-R1, an end-to-end reinforcement learning framework that pairs local statute RAG for precise article matching with online web search for broader legal knowledge, trained on temporally-indexed data spanning multiple amendment periods to enforce temporal consistency. Extensive experiments on our benchmark covering 13 legal tasks demonstrate that our 7B-parameter agent outperforms state-of-the-art deep research frameworks and specialized legal LLMs by 12.9% to 29.8%, surpasses baselines by 57.7% to 80.3% on temporal consistency, and exhibits robust out-of-domain generalization. The code and data are available at https://github.com/AlexFanw/LegalSearch-R1.