TL;DR
Most legal AI benchmarks focus on case law, treating legal documents as flat, independent text collections. This paper introduces SEARCHFIRESAFETY, a new benchmark that evaluates large language models (LLMs) on statute-centric legal QA, revealing a critical "Statutory Retrieval Gap" and a dangerous safety trade-off: domain-adapted models become more fluent but are significantly more prone to hallucination when critical legal context is missing.
What Problem Does This Paper Address?
In statute-centric legal systems (such as regulatory frameworks or civil law jurisdictions), legal knowledge is not self-contained within isolated precedents. Instead, it is distributed across a strict hierarchy: Acts $\rightarrow$ Enforcement Decrees $\rightarrow$ Enforcement Rules $\rightarrow$ Technical Standards.
This structure creates two major hurdles for AI:
- The Statutory Retrieval Gap: A user's query often aligns lexically with a high-level statute (e.g., an Act), but the concrete factual answer resides deep within a downstream technical specification. Because these documents are semantically and lexically distant, conventional dense retrievers fail to bridge the gap.
- Abstention Failure under Uncertainty: In high-stakes domains like fire safety, an AI must safely abstain (e.g., answer "Cannot be determined") if the bridging legal text is missing. Current models tend to hallucinate plausible-sounding but completely fabricated answers when given incomplete context.
Methods
To address these challenges, the authors propose a dual-source evaluation framework and a novel retrieval strategy:
- Structure-Aware Reranking (SAR): Instead of relying purely on semantic vector similarity, SAR leverages explicit citation graphs. It takes the top-$K$ documents from an initial dense retriever and treats them as "voting seeds" to propagate relevance scores to structurally linked neighbor documents.
- Dual-Penalty Mechanism: To prevent generic legal sections (like "Article 1") or indiscriminate citations from hijacking the reranking, SAR applies a logarithmic penalty based on a node's in-degree and out-degree.
- Partial-Context Stress Testing: To evaluate model safety, the authors systematically withhold the "bridging" document from the context, forcing the model to recognize the information gap and refuse to answer.
Datasets
The authors introduced the SEARCHFIRESAFETY benchmark, built on South Korean fire-safety regulations updated to April 2025. It consists of three core components:
- Legal Corpus: 4,467 atomic retrieval units segmented by native legal hierarchies (Articles, Paragraphs) rather than arbitrary text windows, augmented with a fully connected citation graph.
- Real-World Expert QA: 876 query-answer pairs collected from the Korean National Fire Agency (NFA) petition portal, mapped to gold-standard document chains.
- Synthetic Multi-Hop QA: 3,395 multiple-choice questions generated via GPT-4o using a Graph-Guided Generation strategy. These questions possess a "Strict Conditional Dependency"—they are only answerable if both the parent and child documents are present in the context.
Key Insights and Ideas
- The Domain-Adaptation Safety Paradox: The most striking finding is that Continued Pretraining (CPT) on legal text creates an illusion of competence. While CPT sharpens in-domain fluency and boosts accuracy when full context is provided, it severely damages the model's calibration under uncertainty. It trains the model to be an overconfident guesser rather than a safe legal assistant.
- Graph Proximity Trumps Semantic Proximity: Lexical and semantic embedding spaces often fail to connect high-level legal principles with low-level technical numbers. Explicit citation graphs act as long-range bridges that dense retrievers miss entirely.
Key Results
- Retrieval Improvements: On real-world open-ended QA, the proposed SAR framework consistently outperformed baseline dense retrievers. For instance, adding SAR to BGE-M3 improved Recall@10 from 53.77 to 54.70 and Recall@50 from 72.79 to 74.57.
- The CPT Performance Drop: When tested on partial context (where the correct answer was "Cannot determine"), base models performed moderately well, but their CPT-adapted counterparts cratered. Qwen3-8B's accuracy dropped by 13.14% after CPT, shifting from safe abstention to confident hallucination.
Limitations and Future Work
- Temporal Snapshot: The dataset is a frozen snapshot effective as of April 30, 2025. Real-world regulations are dynamic and frequently amended, which this static benchmark does not capture.
- Synthetic Data Distribution: A large portion of the safety evaluation relies on synthetically generated multi-hop questions, which may exhibit different linguistic distributions than natural user queries.
- Future Directions: The authors highlight the need for future work to focus on deployment-oriented challenges, such as handling continuous regulatory updates and developing better alignment techniques to enforce safe refusal behavior in domain-specific models.
Summary updated