Abstract
The National Environmental Policy Act (NEPA) requires federal agencies to produce massive Environmental Impact Statements (EIS), documents that often span hundreds of pages of complex technical and legal text. This paper introduces NEPAQuAD, a specialized benchmark designed to evaluate Large Language Models (LLMs) on their ability to navigate these dense regulatory documents. Our evaluation using the MAPLE framework reveals a significant "long-context paradox": even models with massive context windows, such as Gemini 1.5 Pro, perform better when assisted by Retrieval-Augmented Generation (RAG) than when processing entire documents.
Introduction
Environmental permitting involves interpreting the intent behind regulations, identifying potential impacts, and predicting agency outcomes based on multi-step reasoning. While LLMs have shown promise in legal and medical domains, their efficacy in the high-stakes world of U.S. environmental regulations has remained largely unquantified. Existing benchmarks like SQuAD fail to capture the linguistic complexity and regulatory reasoning required for EIS documents. This study addresses this gap by introducing a specialized evaluation framework and comparing traditional RAG systems against modern long-context capabilities.
Methodology and Dataset Construction
The researchers developed NEPAQuAD v1.0, a dataset comprising 1,590 question-answer-proof triplets derived from nine high-quality EIS documents from agencies like the Forest Service and Army Corps of Engineers. The dataset is characterized by lower readability scores and higher linguistic complexity than standard benchmarks.
To evaluate models, the MAPLE (Multi-context Assessment Pipeline for Language model Evaluation) framework was utilized. MAPLE tests LLMs across four context scenarios:
- No Context: Evaluates internal prior knowledge.
- PDF Context: Provides the full document to test long-context reasoning.
- RAG Context: Provides the top-3 relevant chunks via vector search.
- Gold Context: Provides the exact passage containing the answer (the theoretical upper bound).
Evaluation was conducted using the RAGAS framework, which utilizes GPT-4 for factual checking and semantic similarity scoring to mitigate hallucinations.
Key Results: The Long-Context Paradox
The most striking finding is that "more context" does not necessarily lead to "better performance." Across nearly all tested models, RAG-based approaches outperformed the "Full PDF" approach.
As shown in the performance data for Gemini 1.5 Pro, there is a clear performance hierarchy. While Gemini achieved its highest overall score of 81.15% with "Gold" context, its performance dropped from 75.46% (RAG) to 65.90% when given the full PDF. This suggests that even frontier models struggle with "distraction" or a loss of focus when processing extremely long, technical documents.
Other key findings include:
- The Retrieval Bottleneck: The significant gap between "RAG" and "Gold" performance indicates that the primary challenge in environmental review is the retrieval step—identifying the correct passage before reasoning begins.
- Zero-Shot Capabilities: GPT-4 demonstrated the strongest prior knowledge, scoring 67% without any context, likely due to the inclusion of regulatory texts in its training data.
- Reasoning Difficulty: Models generally succeeded with "Closed" (Yes/No) questions but struggled with "Divergent" and "Problem-solving" tasks that require synthesizing information to propose new solutions or identify missing considerations.
Limitations and Future Outlook
The study identified several areas for improvement. Token truncation affected models like GPT-4 and Claude 3.5, which have smaller context windows than Gemini. Furthermore, the reliance on a single-run configuration and the occasional errors within the RAGAS framework suggest that evaluation tools for specialized domains require further refinement. Future work will focus on scaling human expert review and improving retrieval mechanisms to close the "Gold" gap.
Summary updated