LAW: Legal Agentic Workflows for Custody and Fund Services Contracts
William Watson, Nicole Cho, Nishan Srishankar, Zhen Zeng, Lucas Cecchi, Daniel Scott, Suchetha Siddagangappa, Rachneet Kaur, Tucker Balch, Manuela Veloso
TL;DR
The paper tackles the challenge of extracting and reasoning over lengthy, dense custody and fund services contracts where standard LLMs struggle with context limits and legal jargon. It proposes LAW, a modular, agentic framework that orchestrates domain-specific tools and text agents via a code-generation orchestrator, enabling multi-hop reasoning and reusable components. Empirical results show LAW significantly outperforms a GPT-3.5-turbo baseline on retrieval and analytical tasks, most notably a 92.9 percentage-point gain on multi-hop termination-date calculations, while also reducing hallucinations and enabling scalable extraction across thousands of documents. The approach offers a cost-effective alternative to fine-tuned legal LLMs and demonstrates practical potential for automated, end-to-end workflows in custody and fund services contracts, with future work extending to non-English contracts and other domains.
Abstract
Legal contracts in the custody and fund services domain govern critical aspects such as key provider responsibilities, fee schedules, and indemnification rights. However, it is challenging for an off-the-shelf Large Language Model (LLM) to ingest these contracts due to the lengthy unstructured streams of text, limited LLM context windows, and complex legal jargon. To address these challenges, we introduce LAW (Legal Agentic Workflows for Custody and Fund Services Contracts). LAW features a modular design that responds to user queries by orchestrating a suite of domain-specific tools and text agents. Our experiments demonstrate that LAW, by integrating multiple specialized agents and tools, significantly outperforms the baseline. LAW excels particularly in complex tasks such as calculating a contract's termination date, surpassing the baseline by 92.9% points. Furthermore, LAW offers a cost-effective alternative to traditional fine-tuned legal LLMs by leveraging reusable, domain-specific tools.
