Manuscript Offprint
arXiv:2610.38336Statutory Article Retrieval from Arabic Judicial Narratives: Family Law and Law of Evidence in Saudi Arabia
Zarah Shibli
Department of Computer Science
King Abdulaziz University
Jeddah, Saudi Arabia
Areej Alhothali
Department of Computer Science
King Abdulaziz University
Jeddah, Saudi Arabia
Lulwah Alharigy
Department of Computer Science
King Abdulaziz University
Jeddah, Saudi Arabia
Abstract—Reliable legal information retrieval must ground legal reasoning in authoritative statutory sources. In Arabic judicial settings, long factual narratives must be mapped to concise articles that express abstract legal rules, creating a narrative-to-legal-rule abstraction gap. Using a benchmark of 200 synthetic Saudi Arabic judicial cases and 381 articles from the Family Law and the Law of Evidence, we compare word-level and char-4 BM25, zero-shot dense encoders, per-law retrieval, dense-sparse reciprocal rank fusion (RRF), and a proposed Decompose-and-Refine (DaR) pipeline. In DaR, a large language model splits each narrative into disputed legal issues and generates, for each issue, three retrieval channels: a statute-style paraphrase, legal keywords, and a candidate taxonomy chapter. On the whole corpus, the instructed Qwen3-Embedding-8B dense encoder reaches an MRR@10 of 0.849, the best result of any non-decomposed system. Under per-law scoring, this advantage reflects Family Law only: restricted to Evidence articles, the same encoder drops to an MRR@10 of 0.087, and fusion with BM25 raises it only to 0.207. DaR changes this picture, raising Evidence MRR@10 to 0.696 and Family MRR@10 to 0.864. Without decomposition, the two laws favor different strategies; under DaR, the same retriever achieves the best MRR@10 on both.
Index Terms—Legal Information Retrieval, Arabic NLP, Dense Embeddings, Saudi Law, Query Decomposition, Retrieval-Augmented Generation, Statutory Article Retrieval.
I. INTRODUCTION
Litigants, legal aid workers, and judges must identify the statutory provisions that govern a set of facts before a dispute can be adjudicated. The recent promulgation of Saudi Arabia's Family Law (Personal Status) [1] and Law of Evidence [2] has raised the stakes of reliable legal information retrieval, particularly where lengthy judicial narratives must be connected to the governing provisions. Large language models (LLMs) can hallucinate plausible but unsupported statements, which limits their standalone use in high-stakes legal settings [3]. Retrieval-augmented generation (RAG) mitigates this by grounding generation in retrieved text [4], but its value depends directly on retrieval quality. Recent Saudi-focused RAG systems emphasize end-to-end generation over small query sets [5], which leaves article-level retrieval behavior underexamined.
A central obstacle is the mismatch between judicial narratives, which are full of procedural history and legally irrelevant detail, and statutory articles, which state concise rules, conditions, and consequences. We call this the narrative-to-legal-rule abstraction gap. It is related to the broader challenge of matching natural-language descriptions to legal provisions [6]. Sparse, dense, hybrid, and iterative retrieval-generation methods have been explored in legal and Arabic settings [7]–[10]. To our knowledge, their effectiveness has not been tested on long, formal Saudi Arabic narratives targeting individual articles, and it is unknown whether one configuration serves both statutory domains.
We address these gaps with a controlled article-level evaluation over 200 narratives and 381 articles, guided by three research questions. RQ1: How do sparse (word and char-4 BM25), zero-shot dense, and hybrid (dense-sparse RRF) methods compare on long Arabic judicial narratives? RQ2: Do the Family Law and the Law of Evidence require different retrieval strategies? RQ3: Does the DaR (Decompose-and-Refine) pipeline improve over the strongest non-decomposed baseline for each law?
Our contributions are (i) an article-level evaluation of sparse, dense, and hybrid retrieval, including sixteen zero-shot encoders, on Saudi Arabic narratives; (ii) evidence that the two laws behave differently under the same retrievers; and (iii) an adaptation of Decompose-and-Refine to long narratives.
Statutory article retrieval. The Belgian Statutory Article Retrieval Dataset (BSARD) [6] introduced statutory article retrieval on French legal questions and showed that substantial room for improvement remains for both lexical and dense retrievers. Later studies address Arabic legal settings, including RAG over the Moroccan family code [8], Arabic legal retrieval with morphological segmentation [9], and Arabic RAG pipelines more broadly [7], [16]. These studies use short queries within one topical domain, whereas Saudi divorce narratives are long (265 words on average) and may cite two laws. To our knowledge, the effectiveness of statutory retrieval for long, cross-law judicial narratives therefore remains unexplored (RQ1).
Sparse, dense, and hybrid retrieval. BM25 [17] is a strong sparse baseline, dense bi-encoders [18] add semantic generalization, and instruction-conditioned encoders [19] allow a single model to serve multiple retrieval tasks by prepending a natural language task instruction to the query, so that no separate model or fine-tuning is needed per task. RRF [20] combines rankings without training, and gains from BM25-dense fusion have been reported for Arabic and legal text [7], [9]. The gain depends on the relative strength of the fused retrievers, so it is unknown whether fusion helps the strongest dense retriever on long Arabic narratives, or whether per-law routing is needed (RQ1 and RQ2).
Query expansion, decomposition, and reranking. HyDE [21] and Query2doc [22] expand a query with an LLM-generated pseudo-document, decomposition methods split a complex question into sub-questions [23], iterative retrieval-generation [10] alternates between retrieving and generating, and RankRAG [24] reranks a candidate pool. These methods target short, focused questions, whereas a long narrative may raise several distinct issues, and its target is a short rule reached by legal inference. Closest to our work, concurrent research proposes Decompose-and-Refine for Korean multi-hop legal question answering [25]: it splits a question into sub-questions and generates one statute-aligned parametric query per sub-question to select a single provision. We adapt it to a different input: we decompose a long narrative into disputed issues and use three parallel per-issue channels (paraphrastic, lexical, and taxonomy-prior) fused by RRF for article-level retrieval on Arabic statutory text (RQ3).
III. MATERIALS AND METHODS
A. Dataset and Corpus
The benchmark is taken unmodified from a synthetic Saudi family-court simulation corpus [26]; we do not regenerate or alter the underlying cases or citations. The dataset contains 200 Arabic judicial narratives covering divorce-establishment (Ithbat Talaq) scenarios of the explicit, implicit, and conditional types (Table I), validated in the source corpus through legal-expert review. Each case has a procedural Preface, a Fact, a Reasoning, and a Judgment field; only Fact is used as the query, excluding the formulaic Preface. By construction in the source corpus, citations are extracted from Reasoning and Judgment while the query uses only Fact, keeping query and label text disjoint.
Table I summarizes the corpus. The task is difficult because of the abstraction gap between long narratives and short, single-topic articles: articles average about 41 words, whereas Fact fields average 265 words (about 6.5:1), so a retriever must compress substantial procedural and factual detail into the concise rule to which it maps.
TABLE I DATASET AND CORPUS STATISTICS.
| Statistic | Value |
|---|---|
| Cases (queries) | |
| Total cases | 200 |
| Sarih (explicit) / kinaya (implicit) / muallaq (conditional) | 66 / 66 / 68 |
| Mean reference-set size (range) | ~5 (1-12) |
| Cases with ≥1 Family citation | 200 (100.0%) |
| Cases with ≥1 Evidence citation | 161 (80.5%) |
| Mean Fact length (words) | 265 |
| Statutory corpus (articles) | |
| Total articles | 381 |
| Family Law articles | 252 |
| Law of Evidence articles | 129 |
| Mean article length (words) | ~41 |
B. Problem Formulation
Let , with , be the law corpus, and let , with , be the case queries, where for . For a retrieval cutoff , a configuration returns the ranked list for query , where indexes the rank position in the returned list, so is the -th retrieved article for query . This list is evaluated against , the set of ground-truth articles cited by case . Because cases cite multiple articles, retrieval is treated as a multi-label task.
Each article is one retrieval unit; no chunking is applied, so conditions, exceptions, and consequences stay together. The dense article representation prepends hierarchical context: law_name - chapter_title: article_body.
C. Retrieval Configurations
The experiments are organized into a sequence of retrieval configurations, beginning with lexical and dense baselines and progressively introducing per-law restriction, dense-sparse rank fusion, and the Decompose-and-Refine pipeline.
E1 (Lexical search (sparse)). BM25 on the full Fact field after Arabic normalization (diacritic and tatweel removal, character-variant standardization, whitespace collapse, tokens shorter than two characters dropped). Word-level tokenization with light affix stripping is compared against char-4.
E2 (Semantic Search (Dense)). Each Fact field is encoded as a single dense query; query and article embeddings are -normalized and scored by exact cosine similarity. No model is fine-tuned; all sixteen encoders are evaluated zero-shot.
E3 (Retrieval enhancement). Two enhancements are examined: per-law restriction (E3a) and reciprocal rank fusion (E3b).
E3a (Per-law restriction). Retrieval is restricted to one law's articles at a time (252 Family or 129 Evidence), so a system's ranking within a law is not diluted by competing articles from the other codification. This is the setting the DaR routes (E4) operate in, and the fair-comparison baseline against which DaR is measured.
E3b (Dense-sparse RRF). Rankings are combined by reciprocal rank fusion [20]:
where is the set of rankers and is the rank of article under ranker . We set , the default of the original RRF paper. Four whole-corpus combinations are tested: lexical-only (word + char-4 BM25), two dense-sparse pairs (word BM25 + instructed 8B; word BM25 + instructed 4B), and a four-way fusion (word + char-4 + 8B + 4B). RRF is a training-free method to test whether lexical and dense signals are complementary.
E4 (Decompose-and-Refine, DaR). We adapt the Decompose-and-Refine paradigm of Lee et al. [25], originally designed for single-provision parametric retrieval in Korean multi-hop legal question answering, to article-level retrieval from long narratives. A single narrative can raise several legally distinct disputes, and the governing articles must be reached by legal inference rather than by direct passage matching (Section II). E4 runs a single constrained LLM call per case per law route. The model reads the Fact field, identifies the legally distinct disputes the narrative raises under that law, and returns one JSON entry per dispute, each carrying a disputed element and three retrieval channels; the entries are then retrieved and fused as described below (Fig. 1). The same facts are decomposed independently under each route, so a case yields one family decomposition and one evidence decomposition.
Decomposition. A constrained LLM reads the Fact field of a case and returns between one and five entries, one per disputed issue, in a single JSON object. Each entry contains a disputed element (a short description of the issue) and three retrieval channels:
- provision: a statute-style paraphrase of the rule that governs the issue;
• keywords: 5–10 requested legal terms;
- candidate: a guessed location in the statute, written as <chapter> :: <issue label>, where the chapter is chosen from a fixed taxonomy.
The other fields of an entry are not used for retrieval. The taxonomy has 11 chapters for the Law of Evidence and 8 for the Family Law.
The prompt template is shown in Fig. 2. One template is instantiated per law route: the bracketed slots are filled with the route's persona (Saudi judge specializing in the Law of Evidence or the Family Law), the corresponding issue type (evidentiary or substantive legal), and that route's chapter taxonomy, yielding two distinct prompts. The model

Fig. 1. The Decompose-and-Refine (DaR) pipeline: an LLM decomposes a case narrative into m issue entries, each retrieved through three channels and fused by RRF, then merged across issues by a per-article max score.
is asked only to produce query formulations, not to retrieve or rank articles, and it returns a single JSON object with no surrounding prose. The schema is fixed: each entry carries a disputed element, a provision, keywords, and a candidate, with an additional family issue type field on the family route only.
You are a Saudi judge specializing in [Law of Evidence / Family Law]. Read the case facts and identify the disputed [evidentiary / substantive legal] issues the case raises. For each issue, produce from 1 to 5 structured query formulations used to retrieve the applicable statutory article.
Available taxonomy (candidate channel only): ({11-chapter Evidence taxonomy / 8-chapter Family taxonomy}).
Return JSON only: {"entries":[{"disputed_element":"...","parametric_provision":"...","[family_route_only":"family_issue_type":"...","parametric_sparse_keywords":"[...","..."],"parametric_statute_candidate":"<location> :: <legal_issue>"}]}
Fig. 2. Decompose-and-Refine prompt template (both routes).
Retrieval and fusion. Each channel is used as an independent query against the corpus of the corresponding law. For each issue, the three channel rankings are fused using Reciprocal Rank Fusion (RRF; Eq. (2)) with k=60. Rankings across different issues are then merged into a single case-level ranking by assigning each article its highest fusion score across all issues in the case. Consequently, an article remains in contention at the case level if it is retrieved as relevant to at least one issue. The resulting ranking is truncated at K. The channel queries are retrieved with one of four retrievers: word BM25, char-4 BM25, and the instructed Qwen3-Embedding-4B and -8B encoders, giving four DaR systems per route.
Implementation. The decomposition LLM is google/gemini-3.6-flash [27] at temperature 0. We chose it for its speed and cost efficiency at the scale of our experiments, since decomposition requires two LLM calls per case, one per route. In a pilot comparison, it recovered a similar set of retrieval-relevant issues to larger models while providing substantially lower latency.
D. Embedding Models and Evaluation
Sixteen zero-shot dense encoders spanning four paradigms are evaluated on E2: Arabic-specific encoders (AraBERT-v2, AraBERT-Large-v2 [11], GATE-AraBERT [28], Arabic-Triplet-Matryoshka-V2 [28]), multilingual contrastive encoders (multilingual-E5 [29], BGE-M3 [30], Snowflake-Arctic-Embed-L-v2.0 [31]), proprietary API embeddings (Cohere-Embed-Multilingual-v3.0 [32], Cohere-Embed-v4.0 [33], Gemini-Embedding-2 [34], OpenAI text-embedding-3-small/large), and decoder-based embeddings (Qwen3-Embedding-4B/8B [35], each instructed and non-instructed). Only the two instructed Qwen3 encoders, the strongest encoders on E2, are carried into the DaR route (E4). For the instructed variants, every query is prefixed with a fixed Arabic instruction conditioning the encoder toward the retrieval intent (asking it to represent the query so as to reflect the legal issue and applicable statutory rules, targeting the Family Law or Law of Evidence); non-instructed variants receive the raw Fact text with no prefix. Because both variants are evaluated at each of the two model sizes, comparing instructed against non-instructed models within a fixed size (Section IV-A) isolates the effect of the instruction prefix from that of model scale. E1–E4 are evaluated at using Precision, Recall, F1, Hit Rate, and MRR, macro-averaged over cases. All metrics are computed separately for the Family Law and the Law of Evidence rather than over the pooled 381-article corpus. For whole-corpus configurations (E1, E2, and E3b), the system first produces a single ranking over all 381 articles; for evaluation under a given law, this ranking is then filtered to retain only articles from that law before the metrics are computed. In contrast, law-restricted configurations (E3a and E4) retrieve exclusively from the corpus of the law under evaluation. For each law, only cases whose reference set contains at least one article from that law are included in the macro-average. All 200 cases contain at least one Family Law article, while only 161 contain at least one Law of
Evidence article; accordingly, Family metrics are averaged over 200 cases and Evidence metrics over 161. The same filtering process is applied to every system to ensure that systems compared within each law are evaluated on identical case sets.
IV. RESULTS AND DISCUSSION
We use MRR@10 as the main ranking metric and report R@10 (and R@20 where useful) alongside it. Family metrics are averaged over 200 cases and Evidence metrics over the 161 cases that cite an Evidence article. Table VI summarizes the best system of each method family under per-law scoring; the remaining tables give the full results. Three findings emerge: whole-corpus scores hide a failure on Evidence; without decomposition, no method retrieves Evidence articles well; and DaR is the only configuration that does.
A. E1–E2: Sparse and Dense Retrieval (RQ1)
Table II reports the sparse baselines and the sixteen zero-shot encoders on the whole 381-article corpus. Word-level BM25 outperforms char-4 BM25 on MRR@10 (0.361 vs. 0.134), whereas char-4 has higher R@20. The best encoder, instructed Qwen3-Embedding-8B, reaches MRR@10 0.849, and the instruction prefix improves both model sizes (0.803 → 0.849 for 8B; 0.762 → 0.836 for 4B). The best proprietary encoder, Gemini-Embedding-2, reaches 0.624. Both AraBERT variants are nearly unusable, which is expected because they are not trained as sentence encoders.
The whole-corpus advantage is a Family effect. Across the sixteen encoders the Family MRR@10 column matches the whole-corpus column within 0.005, while Evidence R@10 is exactly 0.000 for nine encoders and at most 0.019 for any encoder. For instructed 8B, Evidence MRR@10 is 0.001 against 0.849 on Family. Whole-corpus metrics are therefore not a usable diagnostic for Evidence, and we score each law separately from here on.
B. E3: Per-Law Restriction and RRF (RQ1, RQ2)
Whole-corpus fusion. Fusion does not help on the whole corpus (Table III). None of the four RRF combinations exceeds the best dense encoder on MRR@10: the best, word BM25 with instructed 8B, reaches 0.740 against 0.849. Lexical-only fusion is worse than word BM25 alone (0.258 vs. 0.361). Four-way fusion matches instructed 8B on R@20 (0.634 vs. 0.635) but not on R@10 (0.474 vs. 0.508) or Hit@10 (0.950 vs. 0.990). A plausible reason is that RRF combines a strong dense ranking with a much weaker lexical one.
Per-law restriction. Restricting the pool to one law (Table IV) barely changes Family (instructed 8B MRR@10 0.849 → 0.850) but makes Evidence measurable (0.001 → 0.087), and the two laws then behave differently. On Family, a single dense encoder is best (0.850) and dense-sparse fusion is worse (0.744). On Evidence, the 4B encoder has the highest recall (R@10 0.300, R@20 0.507), whereas fusion of the 8B encoder with word BM25 gives the best non-decomposed MRR@10 (0.207). That fusion's recall is close to that of the 8B encoder alone (R@10 0.220 vs. 0.196; R@20 0.310 vs.
TABLE II
E1–E2 WHOLE-CORPUS RETRIEVAL: SPARSE BASELINES AND SIXTEEN ZERO-SHOT ENCODERS. n=200 (WHOLE CORPUS, FAMILY), n=161 (EVIDENCE). BOLD: BEST PER COLUMN.
| Model | Whole corpus | Family | Evidence | ||||
|---|---|---|---|---|---|---|---|
| R@10 | R@20 | MRR@10 | R@10 | MRR@10 | R@10 | MRR@10 | |
| Sparse (BM25) | |||||||
| BM25 (word) | 0.258 | 0.379 | 0.361 | 0.351 | 0.352 | 0.049 | 0.025 |
| BM25 (char-4) | 0.202 | 0.434 | 0.134 | 0.249 | 0.110 | 0.082 | 0.033 |
| Arabic-specific encoders | |||||||
| AraBERT-v2 | 0.003 | 0.003 | 0.004 | 0.001 | 0.001 | 0.004 | 0.004 |
| AraBERT-Large-v2 | 0.024 | 0.067 | 0.021 | 0.037 | 0.018 | 0.008 | 0.005 |
| GATE-AraBERT | 0.237 | 0.393 | 0.327 | 0.339 | 0.327 | 0.000 | 0.000 |
| Arabic-Triplet-Matryoshka-V2 | 0.380 | 0.542 | 0.443 | 0.525 | 0.443 | 0.000 | 0.000 |
| Multilingual contrastive encoders | |||||||
| E5 (multilingual) | 0.208 | 0.313 | 0.285 | 0.276 | 0.285 | 0.000 | 0.000 |
| BGE-M3 | 0.396 | 0.514 | 0.525 | 0.565 | 0.525 | 0.000 | 0.000 |
| Snowflake-Arctic-Embed-L | 0.324 | 0.462 | 0.360 | 0.444 | 0.360 | 0.016 | 0.003 |
| Proprietary API embeddings | |||||||
| Cohere-Embed-Multilingual-v3.0 | 0.341 | 0.462 | 0.401 | 0.458 | 0.401 | 0.000 | 0.000 |
| Cohere-Embed-v4.0 | 0.277 | 0.414 | 0.329 | 0.355 | 0.324 | 0.018 | 0.009 |
| OpenAI text-embedding-3-large | 0.110 | 0.179 | 0.111 | 0.138 | 0.111 | 0.000 | 0.000 |
| OpenAI text-embedding-3-small | 0.116 | 0.225 | 0.087 | 0.155 | 0.087 | 0.000 | 0.000 |
| Gemini-Embedding-2 | 0.401 | 0.567 | 0.624 | 0.560 | 0.622 | 0.019 | 0.007 |
| Decoder-based embeddings (Qwen3) | |||||||
| Qwen3-Embedding-4B | 0.494 | 0.591 | 0.762 | 0.695 | 0.762 | 0.000 | 0.000 |
| Qwen3-Embedding-4B-instr. | 0.543 | 0.616 | 0.836 | 0.764 | 0.836 | 0.000 | 0.000 |
| Qwen3-Embedding-8B | 0.483 | 0.583 | 0.803 | 0.672 | 0.803 | 0.006 | 0.001 |
| Qwen3-Embedding-8B-instr. | 0.508 | 0.635 | 0.849 | 0.712 | 0.849 | 0.003 | 0.001 |
TABLE III
WHOLE-CORPUS RRF FUSION (n=200) COMPARED WITH ITS COMPONENTS. BOLD: BEST PER COLUMN.
| System | R@10 | R@20 | MRR@10 | Hit@10 |
|---|---|---|---|---|
| Components | ||||
| BM25 (word) | 0.258 | 0.379 | 0.361 | 0.780 |
| Qwen3-8B-instr. | 0.508 | 0.635 | 0.849 | 0.990 |
| Qwen3-4B-instr. | 0.543 | 0.616 | 0.836 | 1.000 |
| RRF combinations | ||||
| word + char-4 | 0.261 | 0.428 | 0.258 | 0.780 |
| word + 8B-instr. | 0.436 | 0.582 | 0.740 | 0.925 |
| word + 4B-instr. | 0.427 | 0.563 | 0.739 | 0.920 |
| word + char-4 + 8B + 4B | 0.474 | 0.634 | 0.732 | 0.950 |
0.314), so fusion mainly improves the rank of the first correct article and changes recall little. Lexical-only fusion ties word BM25 on Family MRR@10 (0.412) with higher R@10 (0.463 vs. 0.399), but it is weak on Evidence (0.018).
Hybrid fusion is therefore not a global default: its effect depends on the law and on the metric. Because the two laws differ in pool size (252 vs. 129 articles), references per case, and scored cases (200 vs. 161), Family and Evidence scores are not a like-for-like measure of difficulty.
C. E4: Decompose-and-Refine (RQ3)
Table V reports DaR with the four retrievers. On Evidence, DaR with char-4 BM25 is best (MRR@10 0.696, R@10 0.752), about 3.4 and 2.5 times the best non-decomposed values (0.207 and 0.300, Table VI). On Family, it reaches MRR@10 0.864 against 0.850 for the best baseline, and its R@10 (0.726) is below the best baseline (0.764). DaR with
TABLE IV
PER-LAW BASELINES (n=200 FAMILY, n=161 EVIDENCE). BOLD: BEST PER COLUMN.
| System | Family | Evidence | ||||
|---|---|---|---|---|---|---|
| R@10 | R@20 | MRR@10 | R@10 | R@20 | MRR@10 | |
| Dense | ||||||
| Qwen3-8B-instr. | 0.723 | 0.880 | 0.850 | 0.196 | 0.314 | 0.087 |
| Qwen3-4B-instr. | 0.764 | 0.864 | 0.836 | 0.300 | 0.507 | 0.130 |
| Fusion | ||||||
| RRF, 8B + word BM25 | 0.613 | 0.783 | 0.744 | 0.220 | 0.310 | 0.207 |
| RRF, word + char-4 | 0.463 | 0.672 | 0.412 | 0.069 | 0.204 | 0.018 |
| Sparse | ||||||
| BM25 (word) | 0.399 | 0.558 | 0.412 | 0.088 | 0.191 | 0.048 |
| BM25 (char-4) | 0.456 | 0.716 | 0.409 | 0.083 | 0.130 | 0.036 |
the 4B encoder has the highest Family R@10 (0.778) and the highest Evidence R@20 (0.923).
Table VII holds the retriever fixed. DaR helps lexical retrievers on both laws and dense retrievers on Evidence. On Family, it lowers the MRR@10 of the dense encoders by approximately 0.12 to 0.13 while leaving their recall almost unchanged (R@10 changes by at most 0.021), so it degrades the rank of the first correct article rather than coverage. Consequently, DaR lets a lexical retriever reach the level of dense retrieval on Family without clearly exceeding it. Under DaR the same retriever (char-4 BM25) is best on both laws, so the difference in best strategy between the two laws is specific to the non-decomposed setting.
Because DaR combines LLM-generated queries, issue splitting, and a taxonomy prior, and no control generates the three channels from the undecomposed narrative, we attribute
TABLE V
DAR SYSTEMS PER ROUTE (EVIDENCE: 161 CASES, FAMILY: 200 CASES). BOLD: BEST PER ROUTE AND COLUMN.
| Route | System | R@10 | R@20 | MRR@10 |
|---|---|---|---|---|
| Evidence | DaR, BM25 (char-4) | 0.752 | 0.865 | 0.696 |
| DaR, BM25 (word) | 0.707 | 0.842 | 0.661 | |
| DaR, Qwen3-4B-instr. | 0.750 | 0.923 | 0.469 | |
| DaR, Qwen3-8B-instr. | 0.674 | 0.853 | 0.386 | |
| Family | DaR, BM25 (char-4) | 0.726 | 0.928 | 0.864 |
| DaR, BM25 (word) | 0.749 | 0.926 | 0.848 | |
| DaR, Qwen3-4B-instr. | 0.778 | 0.891 | 0.720 | |
| DaR, Qwen3-8B-instr. | 0.702 | 0.870 | 0.716 |
TABLE VI
BEST-PERFORMING SYSTEMS FROM EACH RETRIEVAL METHOD GROUP, SELECTED BY MRR@10 FOR EACH LAW. (n=200 FAMILY, n=161 EVIDENCE).
| System | Family | Evidence | ||
|---|---|---|---|---|
| MRR@10 | R@10 | MRR@10 | R@10 | |
| BM25 (word) | 0.412 | 0.399 | 0.048 | 0.088 |
| Dense, Qwen3-8B-instr. | 0.850 | 0.723 | 0.087 | 0.196 |
| Dense, Qwen3-4B-instr. | 0.836 | 0.764 | 0.130 | 0.300 |
| RRF, 8B + word BM25 | 0.744 | 0.613 | 0.207 | 0.220 |
| DaR (char-4 BM25) | 0.864 | 0.726 | 0.696 | 0.752 |
these gains to the DaR pipeline as a whole rather than to decomposition alone.
Qualitative case study. Fig. 3 traces one case (five reference articles: family_77, family_79, family_80, evidence_14, evidence_53) through both the baseline and DaR paths end to end. On the Family side, DaR recovers all three reference articles at K=10 (R@10 = 1.00) against the baseline's two of three (R@10 = 0.67), correctly surfacing family_77 – the general definition of divorce – which the baseline never ranks in its top 10. On the Evidence side, both paths retrieve evidence_14 (judicial admission) but neither ranks evidence_53 (digital-evidence admissibility, the article governing the WhatsApp messages at the center of the case) inside the top 10. Extending to K=50 makes the two paths' failure qualitatively different rather than merely a matter of degree: evidence_53 never appears in the baseline's top 50 at all, while DaR surfaces it at rank 28. This is compatible with the generated channels moving the query toward the statute's vocabulary. Concatenating both laws' top-10 lists (the corpus's combined export format) raises Recall@20 from 0.60 (baseline) to 0.80 (DaR) on this case – consistent with the aggregate DaR gains in Table V, though a single case cannot establish significance on its own.
Limitations. The 200 narratives are synthetic and may not capture the variability of real judicial records, and citation-derived labels may omit applicable but uncited provisions. The corpus covers two Saudi laws and divorce-establishment scenarios only. Evidence is scored only on the 161 cases that cite it, so the cost of invoking the Evidence route on the other 39 cases is not measured. Decomposition uses one LLM run per case (google/gemini-3.6-flash [27], temperature 0), so run-to-run variance is unknown. The provision channel may draw on the model's memory of public statutes, the candi-
TABLE VII
EFFECT OF DAR WITH THE RETRIEVER HELD FIXED. BASE: RAW FACT QUERY WITH PER-LAW RESTRICTION; . GREEN: IMPROVEMENT; RED: DECLINE.
| MRR@10 | R@10 | |||||
|---|---|---|---|---|---|---|
| Retriever | Base | DaR | Base | DaR | ||
| Family (n=200) | ||||||
| BM25 (word) | 0.412 | 0.848 | +0.436 | 0.399 | 0.749 | +0.350 |
| BM25 (char-4) | 0.409 | 0.864 | +0.455 | 0.456 | 0.726 | +0.270 |
| Qwen3-4B-instr. | 0.836 | 0.720 | -0.116 | 0.764 | 0.778 | +0.014 |
| Qwen3-8B-instr. | 0.850 | 0.716 | -0.134 | 0.723 | 0.702 | -0.021 |
| Evidence (n=161) | ||||||
| BM25 (word) | 0.048 | 0.661 | +0.613 | 0.088 | 0.707 | +0.619 |
| BM25 (char-4) | 0.036 | 0.696 | +0.660 | 0.083 | 0.752 | +0.669 |
| Qwen3-4B-instr. | 0.130 | 0.469 | +0.339 | 0.300 | 0.750 | +0.450 |
| Qwen3-8B-instr. | 0.087 | 0.386 | +0.299 | 0.196 | 0.674 | +0.478 |

Fig. 3. Baseline vs. DaR retrieval on one case, both routes. Green IDs are reference articles; DaR recovers one additional Family article at K=10 that the baseline misses entirely, and both paths fail to rank the case's digital-evidence article inside the top 10, though DaR alone recovers it by rank 28 of 50.
date channel may exploit predictable chapter names. Because DaR bundles LLM query generation with decomposition, its gains cannot be attributed to decomposition alone, and the three channels were not evaluated separately; a channel-level ablation and an undecomposed control are needed to isolate their respective contributions. The findings may not generalize to other legal domains.
V. CONCLUSION
We evaluated sparse, dense, hybrid, and decomposition-based retrieval of statutory articles from Saudi Arabic judicial narratives. The strongest dense encoder owes its overall result to the Family Law: on the Law of Evidence alone it falls sharply, and fusion with BM25 gives the best non-decomposed Evidence result but remains weak. DaR substantially improves Evidence retrieval and yields a small increase in the best Family MRR@10. Without decomposition, the two laws favor different strategies; under DaR, the same retriever is best on both. Limitations include the synthetic nature of the benchmark, citation-derived labels, coverage of only two laws and divorce-establishment scenarios, unmeasured Evidence-route cost on non-Evidence cases, and single-run decomposition. Future work will expand the benchmark with more cases and additional Saudi laws, and will repeat decomposition runs to assess variance.
CONFLICT OF INTEREST
The authors declare that there is no conflict of interest regarding the publication of this paper.
REFERENCES
[1] Bureau of Experts at the Council of Ministers, “Family law (personal status law),” https://laws.boe.gov.sa/boelaws/laws/lawdetails/4d72d829-947b-45d5-b9b5-ae5800d6bac2/1, 2022, Kingdom of Saudi Arabia. Accessed: Sep. 19, 2026.
[2] —, “Law of evidence,” https://laws.boe.gov.sa/BoeLaws/Laws/LawDetails/2716057c-c097-4bad-8e1e-ae1400c678d5/1, 2021, Kingdom of Saudi Arabia. Accessed: Sep. 19, 2026.
[3] A. Mohamed, E. Elmahjub, and K. Shaban, “Arablip: an evidence-grounded and retrieval-augmented llm framework for reliable arabic legal judgment prediction in statute-centric legal systems,” Intelligent Systems with Applications, vol. 31, p. 200727, 2026.
[4] P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, S. Riedel, and D. Kiela, “Retrieval-augmented generation for knowledge-intensive nlp tasks,” in Proceedings of the 34th International Conference on Neural Information Processing Systems, ser. NIPS '20. Red Hook, NY, USA: Curran Associates Inc., 2020.
[5] P. ElKafrawy, A. Hakim, A. Balubaid, and F. Alkhalili, “Lawsuit ararag: A retrieval-augmented generation framework for arabic legal document understanding and hallucination reduction,” in 2026 23rd International Learning and Technology Conference (L&T), vol. 23, 2026, pp. 178–183.
[6] A. Louis and G. Spanakis, “A statutory article retrieval dataset in French,” in Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Dublin, Ireland: Association for Computational Linguistics, May 2022, pp. 6789–6803. [Online]. Available: https://aclanthology.org/2022.acl-long.468/
[7] J. Alsubhi, M. D. Alahmadi, A. Alhusayni, I. Aldailami, I. Hamdine, A. Shabana, Y. Iskandar, and S. Khayyat, “Optimizing rag pipelines for arabic: A systematic analysis of core components,” 2025. [Online]. Available: https://arxiv.org/abs/2506.06339
[8] J. Hrimech, M. Mghari, and Y. Zaz, “Retrieval-augmented generation for arabic legal information: the family code case study,” TELKOMNIKA (Telecommunication Computing Electronics and Control), vol. 23, pp. 1495–1505, December 2025.
[9] R. Aboasal, S. Montasser, F. H. Eldin, A. Abdelwahab, and H. Abdelazim, “Arabic legal information retrieval: The impact of morphological segmentation and semantic embeddings,” Procedia Computer Science, vol. 275, pp. 275–282, 2026, 7th International Conference on AI in Computational Linguistics.
[10] Z. Shao, Y. Gong, Y. Shen, M. Huang, N. Duan, and W. Chen, “Enhancing retrieval-augmented large language models with iterative retrieval-generation synergy,” in Findings of the Association for Computational Linguistics: EMNLP 2023. Singapore: Association for Computational Linguistics, Dec. 2023, pp. 9248–9274. [Online]. Available: https://aclanthology.org/2023.findings-emnlp.620/
[11] W. Antoun, F. Baly, and H. Hajj, “AraBERT: Transformer-based model for Arabic language understanding,” in Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, H. Al-Khalifa, W. Magdy, K. Darwish, T. Elsayed, and H. Mubarak, Eds. Marseille, France: European Language Resources Association, May 2020, pp. 9–15. [Online]. Available: https://aclanthology.org/2020.osact-1.2/
[12] F. Hijazi, S. AlHarbi, A. AlHussein, H. Abu Shairah, R. AlZahrani, H. AlShamlan, O. Knio, and G. Turkiyyah, “ArabLegalEval: A multitask benchmark for assessing Arabic legal knowledge in large language models,” in Proceedings of the Second Arabic Natural Language Processing Conference. Bangkok, Thailand: Association for Computational Linguistics, Aug. 2024, pp. 225–249. [Online]. Available: https://aclanthology.org/2024.arabiclnp-1.20/
[13] O. T. Sayed, A. E. Aboutabl, and A. S. Ghoneim, “Bridging the gap in arabic legal nlp: A novel large-scale corpus and benchmark for domain-adapted summarisation-classification,” Data, vol. 11, no. 7, p. 154, 2026. [Online]. Available: https://www.mdpi.com/2306-5729/11/7/154
[14] H. Abu Shairah, S. AlHarbi, A. AlHussein, S. Alsabea, O. Shaqaqi, H. AlShamlan, O. Knio, and G. Turkiyyah, “ALARB: An Arabic legal argument reasoning benchmark,” in Proceedings of The Third Arabic Natural Language Processing Conference. Suzhou, China: Association for Computational Linguistics, Nov. 2025, pp. 389–406. [Online]. Available: https://aclanthology.org/2025.arabiclnp-main.32/
[15] A. Almalki, S. Alsaafari, and N. M. Alotaibi, “Legal judgment prediction in the Saudi Arabian commercial court,” Future Internet, vol. 17, no. 10, p. 439, 2025.
[16] R. Al-Rasheed, A. Al Muaddi, H. Aljasim, R. Al-Matham, M. Alhoshan, A. Al Wazrah, and A. AlOsaimy, “Evaluating RAG pipelines for Arabic lexical information retrieval: A comparative study of embedding and generation models,” in Proceedings of the 1st Workshop on NLP for Languages Using Arabic Script. Abu Dhabi, UAE: Association for Computational Linguistics, Jan. 2025, pp. 155–164. [Online]. Available: https://aclanthology.org/2025.abjadnlp-1.16/
[17] S. Robertson and H. Zaragoza, “The probabilistic relevance framework: BM25 and beyond,” Foundations and Trends in Information Retrieval, vol. 4, no. 1–2, pp. 1–174, 2009.
[18] V. Karpukhin, B. Ozug, S. Min, P. Lewis, L. Wu, S. Edunov, D. Chen, and W.-t. Yih, “Dense passage retrieval for open-domain question answering,” in Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), B. Webber, T. Cohn, Y. He, and Y. Liu, Eds. Online: Association for Computational Linguistics, Nov. 2020, pp. 6769–6781. [Online]. Available: https://aclanthology.org/2020.emnlp-main.550/
[19] H. Su, W. Shi, J. Kasai, Y. Wang, Y. Hu, M. Ostendorf, W.-t. Yih, N. A. Smith, L. Zettlemoyer, and T. Yu, “One embedder, any task: Instruction-finetuned text embeddings,” in Findings of the Association for Computational Linguistics: ACL 2023, A. Rogers, J. Boyd-Graber, and N. Okazaki, Eds. Toronto, Canada: Association for Computational Linguistics, Jul. 2023, pp. 1102–1121.
[20] G. V. Cormack, C. L. A. Clarke, and S. Buettcher, “Reciprocal rank fusion outperforms condorcet and individual rank learning methods,” in Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval, ser. SIGIR '09. New York, NY, USA: Association for Computing Machinery, 2009, pp. 758—759. [Online]. Available: https://doi.org/10.1145/1571941.1572114
[21] L. Gao, X. Ma, J. Lin, and J. Callan, “Precise zero-shot dense retrieval without relevance labels,” in Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Toronto, Canada: Association for Computational Linguistics, Jul. 2023, pp. 1762–1777. [Online]. Available: https://aclanthology.org/2023.acl-long.99/
[22] L. Wang, N. Yang, and F. Wei, “Query2doc: Query expansion with large language models,” in Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, H. Bouamor, J. Pino, and K. Bali, Eds. Singapore: Association for Computational Linguistics, Dec. 2023, pp. 9414–9423. [Online]. Available: https://aclanthology.org/2023.emnlp-main.585/
[23] T. Khot, H. Trivedi, M. Finlayson, Y. Fu, K. Richardson, P. Clark, and A. Sabharwal, “Decomposed prompting: A modular approach for solving complex tasks,” 2023. [Online]. Available: https://arxiv.org/abs/2210.02406
[24] Y. Yu, W. Ping, Z. Liu, B. Wang, J. You, C. Zhang, M. Shoeybi, and B. Catanzaro, "Rankrag: Unifying context ranking with retrieval-augmented generation in llms," in Advances in Neural Information Processing Systems, vol. 37. Curran Associates, Inc., 2024, pp. 121 156–121 184.
[25] J. Lee, H. Kim, and G. Lee, “Decompose-and-refine: Structured legal question answering with parametric retrieval,” 2026. [Online]. Available: https://arxiv.org/abs/2605.24454
[26] Z. Shibli, A. Alhothali, and L. Alharigy, “Synthetic legal data generation for saudi family law courts using multi-role simulation,” Jul. 2026, preprint (Version 1), Research Square. [Online]. Available: https://doi.org/10.21203/rs.3.rs-9887183/v1
[27] Google, “Gemini 3.6 flash,” https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flash-lite-3-5-flash-cyber/, accessed: Sep. 2026.
[28] O. Nacar, A. Koubaa, S. Sibaee, Y. Al-Habashi, A. Ammar, and W. Boulila, “Gate: General arabic text embedding for enhanced semantic textual similarity with matryoshka representation learning and hybrid loss training,” 2025. [Online]. Available: https://arxiv.org/abs/2505.24581
[29] L. Wang, N. Yang, X. Huang, L. Yang, R. Majumder, and F. Wei, “Multilingual e5 text embeddings: A technical report,” 2024. [Online]. Available: https://arxiv.org/abs/2402.05672
[30] J. Chen, S. Xiao, P. Zhang, K. Luo, D. Lian, and Z. Liu, “M3-embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation,” in Findings of the Association for Computational Linguistics: ACL 2024, L.-W. Ku, A. Martins, and V. Srikumar, Eds. Bangkok, Thailand: Association for Computational Linguistics, Aug. 2024, pp. 2318–2335. [Online]. Available: https://aclanthology.org/2024.findings-acl.137/
[31] P. Yu, L. Merrick, G. Nuti, and D. Campos, “Arctic-embed 2.0: Multilingual retrieval without compromise,” 2024. [Online]. Available: https://arxiv.org/abs/2412.04506
[32] Cohere, “Introducing embed v3,” https://cohere.com/blog/introducing-embed-v3, accessed: Sep. 2026.
[33] —, “Introducing embed v4,” https://cohere.com/blog/embed-4, accessed: Sep. 2026.
[34] Google, “Gemini embedding 2,” https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-embedding-2/, accessed: Sep. 2026.
[35] Y. Zhang, M. Li, D. Long, X. Zhang, H. Lin, B. Yang, P. Xie, A. Yang, D. Liu, J. Lin, F. Huang, and J. Zhou, “Qwen3 embedding: Advancing text embedding and reranking through foundation models,” 2025. [Online]. Available: https://arxiv.org/abs/2506.05176