Benchmarking Legal RAG: The Promise and Limits of AI Statutory Surveys

Mohamed Afane, Emaan Hariri, Derek Ouyang, Daniel E. HoarXiv 2026

TL;DR

This paper evaluates the performance of specialized and commercial Retrieval-Augmented Generation (RAG) tools on multi-jurisdictional legal statutory surveys. While heavily marketed commercial platforms (Westlaw AI and Lexis+ AI) underperformed standard baselines due to severe context limits and reasoning errors, a domain-specific tool (STARA) achieved 83% accuracy. Remarkably, a deep-dive error analysis revealed that 75% of STARA's apparent errors were actually valid legal provisions omitted by the human experts who compiled the ground truth dataset, boosting STARA's true accuracy to 92%.

What Problem Does This Paper Address?

Legal statutory surveys—such as tracking how unemployment insurance requirements differ across all 50 U.S. states—are critical for policy and practice but notoriously difficult to produce. They require teams of expert attorneys months of manual labor to navigate complex, hierarchical legal codes, cross-references, and shifting exceptions.

While commercial legal tech platforms promise "50-state surveys in minutes" using AI, there has been a lack of rigorous, independent benchmarking to verify these claims. Standard RAG systems frequently fail in this domain because generic large language models (LLMs) struggle with the highly structured, interdependent nature of statutory text, often leading to hallucinated or misapplied legal concepts.

Methods

The authors systematically benchmarked three AI systems using a binary classification framework:

  1. STARA (Statutory Research Assistant): A specialized academic RAG system designed specifically for statutory text. It preserves the hierarchical structure of legal codes, augments retrieved passages with parent context and definitions, and uses a multi-stage approach (Regex filtering followed by LLM classification).
  2. Westlaw AI (AI Jurisdictional Surveys): A commercial tool that enforces a highly restrictive 300-character query limit, forcing severe compression of legal context.
  3. Lexis+ AI (Protégé): A commercial tool supporting up to 5,000-character queries, evaluated in its automated "full survey" mode.

The overall benchmarking pipeline is summarized below:

Figure 1: Summary of our benchmarking process. DOL = United States Department of Labor; UI = Unemployment insurance; OCR = Optical character recognition; QA = question/answer; STARA = Statutory Research Assistant.

Datasets

The primary evaluation dataset is LaborBench, a specialized legal benchmark consisting of 1,647 binary classification questions across 40 distinct question types. The ground truth for LaborBench was derived from the U.S. Department of Labor's (DOL) annual compilation of state unemployment insurance (UI) laws. To run STARA, the authors utilized StatReg, a comprehensive corpus containing 4.0 million sections (8.7 GB) of state statutes and regulations.

Key Insights and Ideas

  • Commercial AI Underperforms Simple Baselines: Surprisingly, both Westlaw AI and Lexis+ AI performed worse than a naive baseline that simply answers "yes" to every question. Westlaw suffered from extreme verbosity and over-inclusion, while Lexis+ was overly conservative, leading to massive false negatives.
  • The Illusion of "Ground Truth": The most profound finding is that human-compiled legal datasets are imperfect. When STARA flagged a law that the DOL dataset marked as absent, manual verification showed that STARA was usually right. Human attorneys missed scattered provisions, atypical phrasing, and complex cross-references across 50 distinct state codes.
  • Structure Matters in Legal RAG: Generic chunking strategies fail in law. STARA's success lies in its domain-specific preprocessing that maintains the hierarchical relationships and definitions inherent in statutory frameworks.

Key Results

  • STARA achieved an initial accuracy of 83% (81% F1 score). However, after manually verifying its discrepancies and accounting for the newly discovered DOL omissions, its corrected accuracy jumped to 92% (91% F1 score).
  • Westlaw AI struggled significantly, yielding an accuracy of 58% and an F1 score of 64%, driven by a massive 596 false positives.
  • Lexis+ AI achieved 64% accuracy but a dismal 41% F1 score due to 458 false negatives.

The stark contrast in error distributions highlights the distinct failure modes between these systems:

Figure 2: Distribution of false positives and false negatives across Lexis+ AI, Westlaw AI, and STARA.

The geographic distribution of the human compilation gaps discovered by STARA shows that omissions occurred across almost every state code:

Figure 6: Geographic distribution of state findings missed in the Department of Labor compilation.

Limitations and Future Work

  • Domain Specificity: The evaluation was restricted to Unemployment Insurance law. Performance might vary in other legal domains with different drafting styles and structural complexities.
  • Binary Simplification: LaborBench uses binary True/False questions, which simplifies the nuanced, multi-step reasoning often required in real-world legal analysis.
  • Black-Box Commercial Tools: Because Westlaw and Lexis+ are proprietary, the authors could not definitively isolate whether their failures stemmed from incomplete internal databases or flawed LLM reasoning.
  • Compute vs. Speed Trade-off: While commercial tools return answers in minutes, STARA requires a significantly higher compute budget, taking hours or days to complete a full survey.
  • Statute-Only Scope: STARA missed some valid state rules because they were housed in administrative regulations rather than codified statutory texts. Expanding the retrieval scope to include regulatory corpora is a clear next step.

Summary updated

BibTeX
@misc{afane2026benchmarking,
  author = {Mohamed Afane and Emaan Hariri and Derek Ouyang and Daniel E. Ho},
  title = {{Benchmarking Legal RAG: The Promise and Limits of AI Statutory Surveys}},
  year = {2026},
  eprint = {2603.03300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.03300},
}
Figure