LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models
Abstract: The advent of LLMs and their adoption by the legal community has given rise to the question: what types of legal reasoning can LLMs perform? To enable greater study of this question, we present LegalBench: a collaboratively constructed legal reasoning benchmark consisting of 162 tasks covering six different types of legal reasoning. LegalBench was built through an interdisciplinary process, in which we collected tasks designed and hand-crafted by legal professionals. Because these subject matter experts took a leading role in construction, tasks either measure legal reasoning capabilities that are practically useful, or measure reasoning skills that lawyers find interesting. To enable cross-disciplinary conversations about LLMs in the law, we additionally show how popular legal frameworks for describing legal reasoning -- which distinguish between its many forms -- correspond to LegalBench tasks, thus giving lawyers and LLM developers a common vocabulary. This paper describes LegalBench, presents an empirical evaluation of 20 open-source and commercial LLMs, and illustrates the types of research explorations LegalBench enables.
Paper Prompts
Sign up for free to create and run prompts on this paper.
Glossary
- Access to justice: The ability of individuals, especially those with limited resources, to obtain legal help and resolve disputes through the legal system. "How AI can improve access to justice"
- Adjudication: The formal process by which a court or administrative body resolves legal disputes and issues decisions. "Artificial Intelligence for Adjudication: The Social Security Administration and AI Governance"
- Adversarialism: A legal system structure where opposing parties present their cases to a neutral decision-maker, emphasizing contest between sides. "Legal Tech, Civil Procedure, and the Future of Adversarialism"
- Civil Procedure: The body of rules governing how civil lawsuits are initiated, conducted, and resolved in courts. "Legal Tech, Civil Procedure, and the Future of Adversarialism"
- Due diligence: A thorough investigation and risk assessment conducted before transactions or legal actions, especially in corporate contexts. "Harnessing Machine Learning for Due Diligence: Realizing the Possibilities"
- eDiscovery: The process of identifying, collecting, and producing electronically stored information for litigation or investigations. "Epiq Launches Pre-Built NLP Model Strategy For eDiscovery"
- Ejusdem generis: A canon of statutory interpretation meaning “of the same kind,” where general terms following specific ones are limited to the same class. "ejusdem generis"
- Force majeure: A contract clause that excuses performance due to extraordinary events beyond the parties’ control (e.g., pandemics, natural disasters). "Pandemics and Force Majeure: How can AI help you?"
- IRAC: A structured method for legal analysis: Issue, Rule, Application, Conclusion. "Legal Reasoning? It's All About IRAC"
- Legal analytics: The application of data analysis and AI to legal data to derive insights for practice and decision-making. "Artificial intelligence and legal analytics: new tools for law practice in the digital age"
- Legal judgment prediction: The task of forecasting court decisions or legal outcomes from case data using computational methods. "A survey on legal judgment prediction: Datasets, metrics, models and challenges"
- Legal reasoning: The process of applying legal rules and principles to facts to reach judgments or arguments. "what types of legal reasoning can LLMs perform?"
- Legal Tech: Technologies designed to support legal practice, research, and access to legal services. "Natural Language Processing in Legal Tech"
- Litigation: The process of resolving disputes through the court system, including filing and prosecuting lawsuits. "The litigation state"
- Merger agreement: A legally binding contract detailing the terms and conditions of a corporate merger. "MAUD: An Expert-Annotated Legal NLP Dataset for Merger Agreement Understanding"
- Precedent: Prior judicial decisions that guide the reasoning and outcomes in subsequent similar cases. "Precedent and Analogy in Legal Reasoning"
- Private enforcement: Enforcement of laws or regulations by private parties (e.g., through lawsuits), rather than by government agencies. "Private Enforcement in the States"
- Statutory reasoning: Interpreting and applying statutes to particular cases using legal interpretive methods. "Can GPT-3 perform statutory reasoning?"
- Successor liability: A corporate law doctrine where a successor company may be held liable for obligations of its predecessor. "From policy confusion to doctrinal clarity: successor liability from the perspective of big data"
- Terms of service: Standard-form contracts governing the use of online platforms and services. "CLAUDETTE: an automated detector of potentially unfair clauses in online terms of service"
- Textualism: A legal interpretive philosophy that focuses on the ordinary meaning of statutory text over legislative intent or purpose. "textualism"
- USPTO: United States Patent and Trademark Office, the federal agency responsible for patents and trademarks. "The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applications"