TUSI: A Citation-Grounded Graph-Based Benchmark

arXiv cs.CL Papers

Summary

The paper introduces TUSI-Bench, a Persian legal RAG evaluation benchmark built on a multi-layered knowledge framework of 7,261 legal articles with a supporting knowledge graph, offering TUSI-QA and TUSI-Bar tasks; graph-based retrieval improves recall by up to 8 percentage points.

arXiv:2611.21823v1 Announce Type: new Abstract: Evaluating retrieval-augmented generation (RAG) systems in Persian law remains challenging because benchmarks lack realism, grounding, and coverage of legal reasoning. Existing resources are either synthetically generated from statutory texts, lacking natural information needs, or derived from informal legal question--answer sources without explicit linkage to authoritative legal documents, making them unsuitable for rigorous evaluation of grounded legal reasoning. To address this gap, we introduce TUSI-Bench, a structured Persian legal benchmark designed for the evaluation of RAG-based systems. TUSI-Bench is built upon a multi-layered legal knowledge framework containing 7,261 legal articles and integrating codified statutes, legal commentaries, doctrinal writings, and Supreme Court unification rulings. We also construct a legal knowledge graph linking articles and concepts for structure-aware retrieval. Based on this foundation, TUSI-Bench provides two complementary evaluation tasks: (i) TUSI-QA, an open-ended question answering benchmark containing 1,999 questions that requires grounded responses with explicit legal citations, and (ii) TUSI-Bar, a multiple-choice benchmark containing approximately 500 four-option questions derived from Iranian Bar examination questions. Furthermore, we propose a graph-based retrieval baseline that leverages relational structure within the legal knowledge graph. Experimental results demonstrate that incorporating graph-based relations improves retrieval recall by up to 8 percentage points compared to standard baselines, highlighting the importance of structured legal representations for RAG systems. The proposed benchmark provides a standardized resource for evaluating grounded legal reasoning in Persian and enables future research on structured legal intelligence.
Original Article
View Cached Full Text

Cached at: 11/19/26, 02:59 AM

# TUSI: A Citation-Grounded Graph-Based Benchmark for Retrieval-Augmented Generation in Persian Legal Question Answering
Source: [https://arxiv.org/html/2611.21823](https://arxiv.org/html/2611.21823)
††highlights:TUSI\-Bench enables grounded RAG evaluation in Persian legal QA\. TUSI\-QA and TUSI\-Bar cover complementary legal reasoning tasks\. A legal knowledge graph supports structure\-aware retrieval\. Graph\-based retrieval improves recall by up to 8 percentage points\.Mehran Safayanisafayani@iut\.ac\.irAlireza Basiribasiri@iut\.ac\.irorganization=Department of Electrical and Computer Engineering, Isfahan University of Technology, city=Isfahan, postcode=84156\-83111, country=Iran

###### Abstract

Reliable evaluation of retrieval\-augmented generation \(RAG\) systems in the legal domain remains challenging, particularly for low\-resource languages such as Persian, where available benchmarks are limited in realism, grounding, and coverage of legal reasoning\. Existing resources are either synthetically generated from statutory texts, lacking natural information needs, or derived from informal legal question–answer sources without explicit linkage to authoritative legal documents, making them unsuitable for rigorous evaluation of grounded legal reasoning\. To address this gap, we introduce TUSI\-Bench, a structured Persian legal benchmark designed for the evaluation of RAG\-based systems\. TUSI\-Bench is built upon a multi\-layered legal knowledge framework containing 7,261 legal articles and integrating codified statutes, legal commentaries, doctrinal writings, and Supreme Court unification rulings\. In addition, we construct a legal knowledge graph that explicitly models relationships among legal articles and concepts to support structure\-aware retrieval\. Based on this foundation, TUSI\-Bench provides two complementary evaluation tasks: \(i\) TUSI\-QA, an open\-ended question answering benchmark containing 1,999 questions that requires grounded responses with explicit legal citations, and \(ii\) TUSI\-Bar, a multiple\-choice benchmark containing approximately 500 four\-option questions derived from Iranian Bar examination questions\. Furthermore, we propose a graph\-based retrieval baseline that leverages relational structure within the legal knowledge graph\. Experimental results demonstrate that incorporating graph\-based relations improves retrieval recall by up to 8 percentage points compared to standard baselines, highlighting the importance of structured legal representations for RAG systems\. The proposed benchmark provides a standardized resource for evaluating grounded legal reasoning in Persian and enables future research on structured legal intelligence\.

###### keywords

Retrieval\-Augmented Generation ,Legal Information Retrieval ,Knowledge Graph Representation ,Evaluation Benchmark ,Structured Legal Dataset

††credit:Conceptualization, Methodology, Software, Data curation, Writing – original draft, Writing – review and editing††credit:Methodology, Data curation, Writing – review and editing††credit:Methodology, Validation, Writing – review and editing## 1Introduction

Recent advances in artificial intelligence have led to the widespread adoption of large language models \(LLMs\) across diverse domains, including education, healthcare, and particularly the legal domain\[[1](https://arxiv.org/html/2611.21823#bib.bib1)\]\. In legal applications, these models are increasingly used to support tasks such as legal information retrieval, question answering, and case analysis\[[2](https://arxiv.org/html/2611.21823#bib.bib48),[3](https://arxiv.org/html/2611.21823#bib.bib10)\]\. The appeal is clear: legal knowledge is expressed in dense natural\-language text, and access to professional legal advice is costly and unevenly distributed\. However, the reliability of such systems remains a critical concern in a high\-stakes domain such as law, where incorrect or unsupported outputs may lead to serious legal and ethical consequences\.

Working with real legal data exposes several well\-documented weaknesses of LLM\-based systems\. First, LLMs are prone to hallucination, i\.e\., generating fluent but factually unsupported content\[[4](https://arxiv.org/html/2611.21823#bib.bib34)\]\. In the legal domain this takes a particularly harmful form: recent studies show that general\-purpose models frequently fabricate case law and misstate legal holdings\[[5](https://arxiv.org/html/2611.21823#bib.bib35)\], and that even commercial legal research tools built on retrieval\-augmented pipelines still produce incorrect or misgrounded answers at a non\-trivial rate\[[6](https://arxiv.org/html/2611.21823#bib.bib36)\]\.

Second, legal texts are long, densely cross\-referenced, and written in a formal register with complex syntax and specialized terminology, so that even foundational tasks such as named entity recognition require domain\-specific adaptation\[[7](https://arxiv.org/html/2611.21823#bib.bib47)\]; this register also differs markedly from the everyday language in which laypeople describe their problems, and as a result the lexical and semantic gap between a user’s narrative question and the governing provision is large, which makes retrieval difficult\[[3](https://arxiv.org/html/2611.21823#bib.bib10),[8](https://arxiv.org/html/2611.21823#bib.bib38)\]\. Third, a legally sound answer rarely depends on a single passage: it often requires combining several articles, their authoritative interpretations, and judicial rulings, whereas LLMs tend to under\-use evidence placed in long contexts\[[9](https://arxiv.org/html/2611.21823#bib.bib39)\]\. Fourth, legal knowledge is jurisdiction\-specific and changes over time, whereas the knowledge stored in model parameters is static, and may reflect a different jurisdiction or an outdated version of the law\. Finally, evaluating legal outputs is intrinsically hard: legal tasks demand multi\-step reasoning that goes beyond surface\-level text understanding\[[10](https://arxiv.org/html/2611.21823#bib.bib37)\], and open\-ended answers admit multiple acceptable formulations, so reference\-based metrics alone are insufficient\.

Legal systems worldwide are broadly classified into two major traditions: civil law \(Romano\-Germanic\) systems and common law systems\. In civil law systems—including the Iranian legal system, which is the focus of this study—sound legal reasoning requires strict adherence to codified statutory texts, legal doctrines, and authoritative sources, in contrast to common law systems, where judicial precedent plays the primary role\. This dependence on explicit, codified legal evidence highlights a fundamental limitation of current LLMs: their knowledge is implicitly encoded within static parameters and cannot naturally adapt to continuously evolving legal systems\. Consequently, ensuring factual grounding, interpretability, and up\-to\-date legal reasoning remains a persistent challenge, and it is particularly acute in codified legal systems such as Iran’s, where a legally sound answer must be explicitly traceable to a specific statutory article\.

To address these limitations, Retrieval\-Augmented Generation \(RAG\)\[[11](https://arxiv.org/html/2611.21823#bib.bib4)\]has emerged as a promising approach\. By integrating external knowledge sources at inference time, RAG\-based methods reduce reliance on parametric memory, enable dynamic retrieval of relevant legal documents, and make it possible to attach explicit citations to generated answers\. Nevertheless, the development of robust legal RAG systems critically depends on high\-quality evaluation benchmarks that can jointly assess retrieval effectiveness and grounded generation in domain\-specific settings, since errors in either component propagate to the final answer\[[12](https://arxiv.org/html/2611.21823#bib.bib40)\]\.

Several English\-language legal benchmarks have been introduced in this direction\. Among the most notable are the Competition on Legal Information Extraction and Entailment \(COLIEE\)\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]and CLERC\[[14](https://arxiv.org/html/2611.21823#bib.bib8)\], which primarily focus on legal retrieval and entailment, as well as reasoning\-oriented resources such as the Reasoning\-Focused Legal Retrieval Benchmark\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\], which introduces more complex legal question answering grounded in document retrieval\. Broader suites such as LegalBench\[[10](https://arxiv.org/html/2611.21823#bib.bib37)\]cover a wide range of legal reasoning tasks, but they are built on English\-language legal materials and do not cover Persian or the Iranian legal system\.

These English\-centric resources cannot simply be reused for Persian legal applications, for three main reasons\. First, law is jurisdiction\-bound\. Substantive rules, legal concepts, and procedural requirements differ across countries, so a model or benchmark grounded in U\.S\., European, or other legal systems cannot validate answers about Iranian law; an answer that is correct under one jurisdiction may be wrong, or even meaningless, under another\. The Iranian legal system is a codified civil\-law system whose sources, structure, and doctrinal foundations differ substantially from those of common\-law jurisdictions, and it includes judicial institutions specific to its system, such as the binding Unification Rulings of the General Assembly of the Supreme Court\. Second, the structure of legal evidence differs: many English benchmarks are case\-based, with queries and relevant documents linked through judicial citations, and those that are statute\-based cover other jurisdictions, whereas Iranian legal reasoning is anchored in individually numbered statutory articles, so retrieval must be evaluated at the article level\. Third, translation does not bridge the gap: translating English benchmarks into Persian would change the language but not the underlying law, and it would also erase the terminology, register, and phrasing of real Persian legal consultations\.

The Persian language adds a further layer of difficulty\. Persian is a comparatively low\-resource language in NLP: annotated corpora, retrieval benchmarks, and domain\-specific resources are scarce relative to English, and multilingual models are trained on far less Persian text\. Persian is written in a right\-to\-left Perso\-Arabic script with frequent orthographic variation \(e\.g\., Arabic versus Persian character forms, and inconsistent use of the zero\-width non\-joiner\), which complicates normalization, matching, and indexing\. Persian legal language is moreover a specialized register that mixes modern Persian with Arabic\-derived legal terminology and archaic constructions, and its vocabulary is rarely seen in general\-purpose training data\. In addition, tokenizers trained on predominantly English data tend to fragment non\-English text into more tokens, which increases cost and shortens the effective context available to the model\[[15](https://arxiv.org/html/2611.21823#bib.bib41)\], a significant handicap when legal provisions and their interpretations are long\. As a result, both retrieval models and generators tend to perform less reliably on Persian legal text\.

Despite these needs, existing resources for Persian legal NLP remain very limited\. Available datasets are confined to a few repositories on HuggingFace\[[16](https://arxiv.org/html/2611.21823#bib.bib18),[17](https://arxiv.org/html/2611.21823#bib.bib17)\]and generally fall into two categories: either synthetically generated question sets derived directly from civil law articles—lacking realistic information needs and natural query complexity—or crawled question–answer pairs from legal forums, where answers provided by legal practitioners are not systematically linked to legal articles and are neither curated nor structured for evaluation purposes\. General\-purpose Persian QA datasets, in turn, are mostly extractive and non\-legal\. As a result, no existing Persian resource provides a reliable benchmark for rigorous evaluation of retrieval\-augmented legal systems\.

To address this gap, we introduce TUSI\-Bench, a structured Persian legal evaluation benchmark specifically designed for assessing retrieval\-augmented legal systems\. The name TUSI is inspired by Nasir al\-Din al\-Tusi, the renowned Persian polymath and scholar\. TUSI\-Bench is built on a multi\-layer legal knowledge framework of 7,261 statutory articles, linked to expert interpretations and Supreme Court Unification Rulings through a legal knowledge graph\. On top of this framework, it provides two complementary components: TUSI\-QA, an open\-ended question answering benchmark of 1,999 real lawyer–client questions with explicit, validated legal citations, and TUSI\-Bar, a four\-option multiple\-choice benchmark derived from Iranian Bar examination questions\. We further propose a structure\-aware retrieval baseline that exploits the relational structure of the knowledge graph\.

Our main contributions are summarized as follows:

- •We introduce TUSI\-Bench, to the best of our knowledge among the first structured Persian legal benchmarks designed for evaluating RAG systems, addressing both the scarcity of Persian legal resources and the jurisdictional mismatch of English\-centric benchmarks\. It comprises two complementary components: TUSI\-QA, covering citation\-grounded open\-ended legal question answering, and TUSI\-Bar, covering four\-option multiple\-choice legal reasoning\.
- •We construct a legal knowledge graph that links statutory articles, expert interpretations, and Unification Rulings, and use it to define a structure\-aware retrieval baseline that improves Recall@5 by up to 8 percentage points over its dense\-retrieval counterpart\.
- •Unlike existing Persian legal datasets, TUSI\-Bench connects statutory texts with naturally formulated legal questions and evidence\-grounded answers, validated through an iterative agent\-and\-expert filtering process, providing a realistic and challenging evaluation setting\.

The remainder of this paper is organized as follows\. Section[2](https://arxiv.org/html/2611.21823#S2)reviews related work in legal NLP and retrieval\-augmented systems\. Section[3](https://arxiv.org/html/2611.21823#S3)describes the dataset construction process and data sources\. Section[4](https://arxiv.org/html/2611.21823#S4)presents the structure of the proposed benchmarks and annotation methodology\. Section[5](https://arxiv.org/html/2611.21823#S5)reports the experimental setup, evaluation results, and discussion\. Finally, Section[6](https://arxiv.org/html/2611.21823#S6)concludes the paper and outlines future research directions\.

## 2Related Work

This section situates TUSI\-Bench with respect to four lines of prior work: general\-domain retrieval and question answering \(QA\) benchmarks, legal retrieval and QA benchmarks, graph\-based retrieval\-augmented generation \(RAG\) for legal text, and Persian\-language benchmarks\. For each, we state what existing resources provide and which requirements of Persian statutory legal QA they leave unaddressed\.

### 2\.1General\-Domain Retrieval and Question Answering

Open\-domain QA benchmarks such as Natural Questions \(NQ\)\[[18](https://arxiv.org/html/2611.21823#bib.bib3)\]and HotpotQA\[[19](https://arxiv.org/html/2611.21823#bib.bib2)\]evaluate systems that retrieve evidence from Wikipedia and answer questions over it, and they are widely used to evaluate RAG\[[11](https://arxiv.org/html/2611.21823#bib.bib4)\]\. BEIR\[[20](https://arxiv.org/html/2611.21823#bib.bib5)\]unifies 18 retrieval datasets across 9 task types\. In these benchmarks, answers are typically short spans \(or yes/no\), and relevant passages share considerable vocabulary with the query; Zheng et al\.\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]show that the query–passage lexical similarity of NQ and HotpotQA is markedly higher than in reasoning\-intensive legal retrieval\. HotpotQA adds multi\-hop reasoning across several documents, but its evidence remains unstructured text rather than a structured body of rules with cross\-references\.

Recent retrieval benchmarks reduce this reliance on surface matching\. BRIGHT\[[21](https://arxiv.org/html/2611.21823#bib.bib7)\]collects realistic reasoning\-intensive queries in 12 datasets from domains such as economics, psychology, mathematics, and coding, and BIRCO\[[22](https://arxiv.org/html/2611.21823#bib.bib6)\]evaluates retrieval under multi\-faceted objectives\. Neither targets legal text, so neither captures the structure of statutory provisions, their cross\-references, or the need to ground an answer in specific articles\.

### 2\.2Legal Retrieval and Question Answering Benchmarks

Legal text differs from general\-domain text in its formal register, its dense cross\-referencing, and the requirement that conclusions be traceable to authoritative sources\.

##### Case\-law retrieval\.

Many legal retrieval datasets are built from citation links between court decisions\. CLERC\[[14](https://arxiv.org/html/2611.21823#bib.bib8)\]derives queries from passages of U\.S\. federal case law and asks systems to retrieve the precedents cited in them; it also includes a task of generating legal analysis from retrieved cases, in which models frequently hallucinate citations\. The case\-law tasks of COLIEE\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]follow a similar query\-case\-to\-supporting\-case setup over Canadian Federal Court decisions, with entire case documents serving as queries \(thousands of tokens on average, Table[1](https://arxiv.org/html/2611.21823#S4.T1)\)\. Because cited rules are often restated in the citing text, such queries tend to share much vocabulary with their relevant documents\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]\. These resources therefore differ from ours in two ways: their queries are long judicial texts rather than short natural\-language questions from people seeking legal advice, and their evidence is unstructured precedent text rather than numbered statutory articles\.

##### Statute retrieval and question answering\.

The statute\-law tasks of COLIEE\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]are the closest precedent to our setting: given a yes/no question from the Japanese bar exam, systems retrieve relevant Civil Code articles \(Task 3\) and decide whether they entail the answer \(Task 4\)\. These tasks cover a single legal system and use short, hypothetical exam questions with binary answers, so they cannot assess whether a system can explain, interpret, and cite the supporting provisions in a free\-text answer to a real consultation\. The reasoning\-focused benchmark of Zheng et al\.\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]comprises Bar Exam QA \(bar exam fact patterns paired with judicial\-opinion passages\) and Housing Statute QA \(6,853 questions over U\.S\. state statutes, with a corpus of about 1\.8 million passages\)\. It shows that low lexical overlap between queries and relevant text defeats lexical retrievers such as BM25, a property that TUSI\-QA shares and even exceeds \(Table[2](https://arxiv.org/html/2611.21823#S4.T2)\)\. It is, however, built entirely on English\-language U\.S\. materials and therefore cannot validate answers about Iranian law\.

##### Broader legal suites\.

LegalBench\[[10](https://arxiv.org/html/2611.21823#bib.bib37)\]is a collaboratively built benchmark of 162 tasks covering six types of legal reasoning \(issue\-spotting, rule\-recall, rule\-application, rule\-conclusion, interpretation, and rhetorical understanding\)\. Because the relevant legal text is supplied in the prompt, it evaluates reasoning but not retrieval\. LegalBench\-RAG\[[12](https://arxiv.org/html/2611.21823#bib.bib40)\]isolates the retrieval step of legal RAG, with 6,858 query–snippet pairs over a corpus of about 79M characters; however, it is built from contract and privacy\-policy tasks, evaluates span\-level rather than article\-level retrieval, and does not evaluate answer generation\. MSLR\[[23](https://arxiv.org/html/2611.21823#bib.bib49)\]evaluates multi\-step legal reasoning over 1,389 Chinese insider\-trading judgments, with about 60,000 annotated step\-level reasoning paths based on the IRAC \(Issue–Rule–Application–Conclusion\) framework\. It shows that current models remain limited in multi\-step legal reasoning, but it targets reasoning quality within a single offense category of the Chinese legal system rather than statute\-grounded retrieval and citation\.

Overall, these benchmarks cover a handful of jurisdictions and languages \(English/U\.S\., Japanese, and Chinese\), and none combines a statutory corpus with both open\-ended, citation\-grounded QA and exam\-style multiple\-choice evaluation\.

### 2\.3Graph\-Based Retrieval\-Augmented Generation for Legal Text

Legal evidence is rarely confined to a single passage: a sound answer may depend on an article, the provisions it refers to, expert interpretations, and judicial rulings\. Conventional RAG treats a corpus as a flat collection of passages and cannot follow such relations\. Graph\-based RAG \(GraphRAG\) addresses this by organizing the corpus as a graph and using its structure during retrieval and generation\. In the original GraphRAG\[[24](https://arxiv.org/html/2611.21823#bib.bib46)\], an LLM extracts entities and relations from the corpus into a knowledge graph, the graph is partitioned into communities, and answers to corpus\-level questions are built from community summaries, improving the comprehensiveness and diversity of the answers\. Surveys describe a common workflow of graph\-based indexing, graph\-guided retrieval, and graph\-enhanced generation\[[25](https://arxiv.org/html/2611.21823#bib.bib42)\]\.

Structure\-aware retrieval has also been explored for statutes\. For statutory article retrieval, Louis et al\.\[[26](https://arxiv.org/html/2611.21823#bib.bib45)\]derive a graph of the legislative structure from the division headings of the Belgian codes and apply graph neural networks to it, reporting that the hierarchy of the law is a useful retrieval signal\. More recent work adapts GraphRAG to legal corpora explicitly\. LegalGraphRAG\[[27](https://arxiv.org/html/2611.21823#bib.bib43)\]argues that legal corpora are heterogeneous, mixing cases, articles, and interpretations, and that a flat graph cannot separate them\. It organizes legal knowledge into a hierarchical graph with ontology, fact, and rule layers and reasons over it with three cooperating agents \(researcher, auditor, and adjudicator\), and it is applied to criminal charge prediction\. Oliveira et al\.\[[28](https://arxiv.org/html/2611.21823#bib.bib44)\]model Portuguese normative documents as graphs whose nodes are structural units \(documents, articles, paragraphs, and items\) and whose edges are normative relationships; their retriever assembles evidence along root\-to\-leaf paths before generation, and they evaluate it with RAGAS on 203 internal resolutions of a single energy company\.

These works propose methods for individual corpora: the Portuguese study is limited to the internal resolutions of one organization, and LegalGraphRAG targets criminal charge prediction rather than statute\-grounded question answering\. We are not aware of any publicly available benchmark for Persian law that pairs an article\-level legal knowledge graph with questions whose supporting provisions are annotated\.

### 2\.4Persian Benchmarks

Persian is a comparatively low\-resource language in NLP, and the available benchmarks are dominated by general\-domain tasks\.

##### General question answering and evaluation\.

ParSQuAD\[[29](https://arxiv.org/html/2611.21823#bib.bib13)\], PQuAD\[[30](https://arxiv.org/html/2611.21823#bib.bib11)\], and PersianQuAD\[[31](https://arxiv.org/html/2611.21823#bib.bib12)\]follow an extractive reading\-comprehension format and are commonly used for Persian RAG\-style evaluation; they assess span extraction rather than reasoning over legal statutes\. Multiple\-choice benchmarks evaluate general model ability\. The Khayyam Challenge \(PersianMMLU\)\[[32](https://arxiv.org/html/2611.21823#bib.bib14)\]contains 20,192 four\-choice questions from 38 subjects of Persian school examinations\. PerMMLU\[[33](https://arxiv.org/html/2611.21823#bib.bib15)\]is a localized and extended Persian counterpart of MMLU that covers school\-level, general, and specialized knowledge as well as knowledge specific to Persian\-speaking societies; its general\-knowledge subset touches on topics such as national laws, but only as isolated questions\. PerCoR\[[34](https://arxiv.org/html/2611.21823#bib.bib16)\]offers 106K multiple\-choice sentence\-completion problems for commonsense reasoning\. None of these benchmarks includes a statutory corpus or involves retrieval\.

##### Persian legal resources\.

Publicly released resources for Persian law are scarce\. To our knowledge, the only openly available Persian legal QA collections are a few repositories on Hugging Face, such as the Iran Legal FAQ datasets\[[16](https://arxiv.org/html/2611.21823#bib.bib18),[17](https://arxiv.org/html/2611.21823#bib.bib17)\]\. They consist either of synthetically generated questions derived directly from legal articles, which lack realistic information needs, or of question–answer pairs crawled from legal forums, whose answers are explanatory, context\-dependent, and not curated for evaluation\. Crucially, neither kind provides ground\-truth labels linking each question to the statutory articles that support its answer\. To the best of our knowledge, no publicly released Persian legal dataset combines real\-world legal questions with verified, article\-level ground\-truth labels, and as a result there is currently no way to evaluate whether a Persian legal system retrieves and cites the correct provisions\.

To the best of our knowledge, no Persian benchmark combines

1. 1\.a corpus of statutory legal texts,
2. 2\.real\-world legal questions,
3. 3\.bar exam\-style multiple\-choice questions,
4. 4\.reasoning\-intensive retrieval with low lexical overlap between queries and relevant laws, and
5. 5\.an article\-level legal knowledge graph with annotated supporting provisions\.

TUSI\-Bench addresses this gap by providing a Persian legal benchmark grounded in statutory law, designed to evaluate retrieval\-based legal reasoning under realistic exam and practice settings\.

Figure 1:Overview of the structured legal knowledge layer and the proposed TUSI\-Bench\. TUSI\-Bench consists of two complementary subsets: TUSI\-QA, a citation\-grounded question answering set derived from real lawyer–client consultations; and TUSI\-Bar, a multiple\-choice question set derived from Iranian Bar Exam questions\.

## 3Structured Legal Knowledge Layer

Our dataset is designed to support two primary tasks: Legal Information Retrieval and Legal Question Answering\. In this setting, a system is expected to retrieve the relevant legal provisions for a given query and generate an answer grounded in statutory law and authoritative legal sources\. Accordingly, the dataset is not limited to isolated question–answer pairs; instead, it incorporates a structured legal knowledge layer to enable systematic evaluation of retrieval\-based and evidence\-grounded legal systems\. An overview of the resulting dataset architecture is presented in Figure[1](https://arxiv.org/html/2611.21823#S2.F1)\. The framework integrates a structured legal knowledge layer with benchmark\-oriented evaluation resources, forming a unified foundation for legal information retrieval and citation\-grounded question answering\.

The dataset is organized as a multi\-layer legal knowledge architecture consisting of: \(1\) statutory laws and executive regulations, \(2\) Judicial Unification Rulings, \(3\) expert interpretations and legal doctrine, and \(4\) a graph of inter\-article relationships\. This structure enables evaluation not only of surface\-level retrieval, but also of multi\-hop reasoning, cross\-source retrieval, and interpretation\-aware legal question answering\. The outcome of this stage is a segmented statutory corpus accompanied by a legal relationship graph and complementary interpretative and judicial layers\.

### 3\.1Article\-Level Statutory Corpus

To construct the core legal knowledge layer, we selected a set of principal Iranian statutes that serve as foundational sources in formal legal education and the national bar examination\. The selection criteria included: \(i\) frequency of citation in lawyers’ responses within the raw QA corpus, and \(ii\) recognized doctrinal and examination authority\. The full texts of these statutes, relevant executive regulations, and Judicial Unification Rulings were collected from official and authoritative sources\.

A preprocessing pipeline was applied, including removal of non\-textual elements, orthographic normalization, and standardization of spacing and punctuation\. For fine\-grained retrieval and precise referencing, statutory texts were segmented at the level of articles\. Each segment was assigned a unique identifier to enable exact addressing during retrieval, evaluation, and QA alignment\. This design allows performance assessment not only at the statute level but also at the article level, which is essential for rigorous Legal Information Retrieval evaluation\.

To enrich the semantic depth of the corpus, a complementary layer of expert legal interpretation was incorporated\. These interpretations were extracted from a specialized legal knowledge source, where legal experts provide doctrinal explanations of complex statutory provisions grounded in authoritative legal scholarship and interpretative practice\[[35](https://arxiv.org/html/2611.21823#bib.bib32)\]\. Each interpretative unit was explicitly linked to its corresponding statutory article\. This enrichment supports interpretation\-aware retrieval and retrieval\-augmented legal reasoning\. An example of a statutory article and its corresponding expert interpretation is presented in Figure[A\.1](https://arxiv.org/html/2611.21823#A1.F1)\.

### 3\.2Interpretation\-Enriched Knowledge Graph

Beyond statutory text and interpretation, inter\-article relationships were systematically extracted in two ways\. First, if one article explicitly referenced another within its text, we established a direct link between those two articles\. Second, in the expert interpretations, when a connection to a particular statutory article was mentioned, a link was created between the interpretation and the referenced article\.

Based on these references, we constructed a legal relationship graph\. Formally, the legal knowledge graph is defined asG=\(V,E\)G=\(V,E\), where:

- •VVconsists of nodes representing: - –statutory articles, - –interpretative units, and - –Unification Rulings, examples of which are shown in Figure[A\.2](https://arxiv.org/html/2611.21823#A1.F2);
- •EEconsists of typed edges representing: - –article\-article references, - –article\-interpretation links, and - –article\-ruling associations\.

This graph structure enables the evaluation of graph\-aware retrieval methods and multi\-hop reasoning scenarios, particularly in cases where a legally sound answer requires combining multiple interrelated provisions\. By incorporating these structured dependencies, the dataset supports experimentation with graph\-based ranking, multi\-source retrieval, and structured legal inference\.

### 3\.3Corpus Statistics

Figure 2:Length distributions of statutory articles \(left\) and their corresponding legal interpretations \(right\)\.To characterize the structural, textual, and temporal properties of the legal corpus, we conduct a comprehensive quantitative analysis covering document length distributions, graph connectivity, coverage patterns, and temporal dynamics \(Figures[2](https://arxiv.org/html/2611.21823#S3.F2),[3](https://arxiv.org/html/2611.21823#S3.F3),[4](https://arxiv.org/html/2611.21823#S3.F4)and[5](https://arxiv.org/html/2611.21823#S3.F5)\)\. The dataset comprises 50 statutes and 7,261 legal articles, forming a heterogeneous legal knowledge graph with 9,272 nodes and 5,183 undirected cross\-references\.

Figure 3:Temporal distribution of legal articles in the dataset across decades\. The total number of articles is \(n = 5,323\)\.Figure 4:Structural properties of the legal reference graph\. \(a\) Out\-degree distribution on a log scale, showing a heavy\-tailed pattern consistent with a power\-law \(α=2\.50\\alpha=2\.50,R2=0\.961R^\{2\}=0\.961\), indicating highly uneven citation behavior\. \(b\) Coverage of explanation annotations across nodes, where 27\.7% of articles have associated interpretations\. \(c\) Coverage of reference annotations, showing that 33\.6% of nodes participate in at least one reference link, highlighting moderate but sparse connectivity in the graph structure\.The corpus exhibits strong textual heterogeneity with highly skewed, heavy\-tailed length distributions\. As illustrated in Figure[2](https://arxiv.org/html/2611.21823#S3.F2), article lengths show a pronounced imbalance, with a median of 240 tokens and a mean of 370 tokens, indicating the presence of a large number of short provisions alongside a smaller set of substantially longer legal texts\. In contrast, legal interpretations \(when available\) are consistently longer, with a median of 538 tokens and a mean of 695 tokens, reflecting their role as expert\-driven expansions of selected statutory provisions\. Importantly, these interpretations are not uniformly required across all articles; rather, they are selectively added by domain experts to clarify complex or ambiguous provisions, while many articles remain semantically self\-contained\.

The interpretative layer covers 27\.7% of articles \(Figure[4](https://arxiv.org/html/2611.21823#S3.F4)\), which should not be interpreted as a deficiency in the corpus, but rather as an intentional and selective enrichment process targeting legally or semantically complex cases\. This results in a partially augmented knowledge structure where only a subset of provisions is accompanied by explanatory commentary\.

Figure 5:Top 10 laws by article count in the dataset\.From a structural perspective, the reference network is highly sparse and exhibits a clear power\-law degree distribution \(α=2\.50\\alpha=2\.50,R2=0\.961R^\{2\}=0\.961\), as shown in Figure[4](https://arxiv.org/html/2611.21823#S3.F4)\. A large proportion of nodes \(66\.4%\) have zero out\-degree, while a small number of highly connected nodes act as structural hubs, indicating an uneven distribution of cross\-referencing activity across legal provisions\.

The corpus also demonstrates strong temporal heterogeneity \(Figure[3](https://arxiv.org/html/2611.21823#S3.F3)\), spanning multiple decades from early legislative records to contemporary statutes, with a noticeable concentration in recent decades, particularly the 2010s\. This reflects both the historical depth and the modern expansion of the legal system represented in the dataset\.

Finally, the distribution of articles across statutes is highly imbalanced \(Figure[5](https://arxiv.org/html/2611.21823#S3.F5)\), with a small number of laws accounting for a large fraction of the corpus\. This long\-tail pattern further reinforces the non\-uniform nature of the dataset at both the document and structural levels\.

By capturing the full and realistic diversity of Iranian legal rules across textual, structural, and temporal dimensions, this corpus forms a highly complex and heterogeneous legal knowledge graph, which in turn makes tasks such as information retrieval, reasoning, and graph\-based learning particularly challenging\.

## 4TUSI\-Bench: A Citation\-Grounded Legal QA Benchmark

This section details the process of creating TUSI\-Bench \(Persian LEgal eXam & consultation Benchmark\), a hybrid question\-answer dataset tailored for the Persian legal domain\. The objective of this benchmark is to provide a comprehensive resource for the simultaneous evaluation of legal document retrieval systems and legal question\-answering models\. TUSI\-Bench consists of two complementary components: \(1\) TUSI\-QA, a citation\-grounded Question\-Answer set extracted from real user\-lawyer interactions, and \(2\) TUSI\-Bar, a Multiple\-Choice Question set extracted from formal legal exams\.

TUSI\-QA includes real user questions answered by legal professionals and is based on two core principles: first, the use of actual data derived from real user\-lawyer interactions; and second, ensuring that the answers are directly traceable to specific legal texts\. TUSI\-Bar is derived from the Iranian bar exam questions of the past three years\.

### 4\.1TUSI\-QA: Consultation\-Driven QA with Legal Citations

The first component of TUSI\-Bench focuses on real\-world legal queries and expert open\-ended responses\. The construction of TUSI\-QA follows a multi\-stage pipeline designed to transform raw legal question\-answer interactions into a citation\-grounded and quality\-controlled benchmark\. As illustrated in Figure[6](https://arxiv.org/html/2611.21823#S4.F6), the process begins with collecting real\-world legal queries and expert responses from multiple sources, followed by data integration and standardization\. Subsequently, citation\-based filtering is applied to retain only legally grounded responses, and an iterative validation process combining intelligent agent\-based evaluation and expert legal review is performed to ensure citation correctness, semantic alignment, and overall legal reliability\. The final outcome is a high\-quality collection of validated legal question\-answer pairs suitable for evaluating retrieval and reasoning capabilities in Legal RAG systems\.

Figure 6:Overview of the TUSI\-QA dataset construction pipeline\.#### 4\.1\.1Data Collection and Structural Integration

In the initial stage, question\-answer data was gathered from two public sources to ensure that the samples reflect real\-world legal issues\. The first source was an Iranian legal consultancy website, where users post questions and receive responses from lawyers\. Approximately 7,900 questions along with their corresponding answers were extracted from this source\. The data collection was strictly limited to publicly available content, adhering to technical constraints\.

The second source was a publicly available dataset published on the Hugging Face platform\[[16](https://arxiv.org/html/2611.21823#bib.bib18)\], containing 600,000 real Persian legal question\-answer pairs with multiple answers from lawyers\. This source was used to increase the thematic and stylistic diversity of TUSI\-QA\.

The data from both sources was standardized and integrated into a uniform structure, ensuring each sample included the question text and the lawyer’s response\. The output of this stage was a preliminary legal question\-answer repository\.

#### 4\.1\.2Selection of Target Laws and Explicit References

After compiling the preliminary dataset, a set of Target Laws was defined to focus the selection of samples on legally\-grounded responses\. This set of laws includes the primary laws from the bar exam and all relevant legal provisions\. These laws serve as both a reference framework for locating legal citations and as a retrieval corpus for subsequent evaluations\.

To ensure the quality of the answers, only those responses were selected that explicitly referenced at least one of the target laws, while those without any legal citations were excluded\. Once the lawyer responses containing legal references were selected, a step was added to link these responses to the corresponding legal articles\. This process involved using an intelligent agent to automatically extract relevant legal provisions from the dataset of laws and link articles to the corresponding answers\. Representative examples of the resulting citation\-grounded QA instances are shown in Figure[A\.3](https://arxiv.org/html/2611.21823#A1.F3)\.

#### 4\.1\.3Iterative Citation Filtering via Intelligent Agent and Human Evaluation

Initial qualitative analysis revealed that the mere presence of a legal citation does not guarantee the quality or correctness of the reference\. In several cases, cited provisions were partially irrelevant, insufficient for supporting the reasoning, or only loosely connected to the generated answer\. In other cases, although legal articles were cited, the reasoning itself was not explicitly grounded in the referenced legal text\.

As illustrated in Figure[6](https://arxiv.org/html/2611.21823#S4.F6), citation validation for TUSI\-QA was therefore formulated as an iterative human\-in\-the\-loop process combining an intelligent agent with expert legal review\. In the first stage, the intelligent agent automatically evaluated every sample by jointly analyzing the question, answer, and cited legal provisions according to three criteria: \(1\) the relevance and sufficiency of the cited legal provisions with respect to the question, \(2\) explicit grounding of the answer in the cited legal text, and \(3\) semantic consistency between the question and the generated answer\. Samples violating any of these criteria were discarded\.

In the second stage, a legal expert inspected a randomly selected subset of the automatically filtered samples\. Rather than reviewing the entire dataset, the expert assessed the correctness of the citations, the adequacy of legal grounding, and the consistency between questions and answers\. Whenever deficiencies were identified, structured feedback was provided to refine the filtering strategy\. The intelligent agent was subsequently updated based on this feedback, the filtering process was repeated, and another random subset was reviewed\. This iterative procedure continued until the expert confirmed that the retained samples consistently satisfied both the predefined automatic criteria and the expected legal quality standards\.

After the iterative filtering process, the final TUSI\-QA dataset contained 1,999 validated question\-answer pairs\. These samples were subsequently partitioned into training and test sets using a stratified sampling strategy designed to preserve the citation\-frequency distribution of legal provisions across both subsets\. Instead of performing a purely random split, the sampling process maintained approximately the same proportion of highly frequent and infrequently cited legal articles in the training and test sets\. This strategy prevents distributional bias and yields a more representative evaluation benchmark for both retrieval and downstream legal reasoning\.

Figure[7](https://arxiv.org/html/2611.21823#S4.F7)illustrates the resulting citation\-frequency distributions\. The legal references exhibit a pronounced long\-tail distribution, where a small number of legal provisions account for a large fraction of all citations, whereas most provisions appear only a few times\. Despite this highly skewed distribution, the train\-test split preserves a similar citation profile, ensuring that both subsets contain representative proportions of frequent and rare legal provisions\.

Finally, we analyzed the number of supporting legal provisions required to answer each question\. Unlike many existing legal question answering datasets that assume a single supporting statute, each question in TUSI\-QA may require one, two, or three relevant legal articles\. As shown in Figure[8](https://arxiv.org/html/2611.21823#S4.F8), although most questions are grounded in a single legal provision, a considerable number require reasoning over two provisions, and a smaller subset depends on three legal articles\. This multi\-reference characteristic substantially increases retrieval complexity, as successful systems must retrieve the complete set of supporting legal provisions rather than only the most relevant article, providing a more realistic evaluation of retrieval completeness and legal reasoning capabilities\.

Figure 7:Distribution of citation frequencies across ranked legal provisions in the training and test sets of TUSI\-QA\. Legal provisions are ranked according to their citation frequency in the training set\. The figure shows that the long\-tail citation distribution is preserved after the stratified train\-test split\.Figure 8:Distribution of the number of relevant legal articles required to answer each question in TUSI\-QA \(training and test sets\)\. Each question may depend on one, two, or three legal provisions, reflecting different levels of retrieval and reasoning complexity\.
#### 4\.1\.4Quantitative Analysis of the Filtering Effect

To quantitatively evaluate the impact of citation filtering on TUSI\-QA, we computed two semantic alignment metrics using BGE\-M3 embeddings\[[36](https://arxiv.org/html/2611.21823#bib.bib21)\]: \(1\) answer–legal provision similarity and \(2\) question–legal provision similarity, both measured via cosine similarity\.

As shown in[Figure 9](https://arxiv.org/html/2611.21823#S4.F9), the KDE distributions shift to the right after filtering, indicating higher overall semantic alignment\. For answer–legal provision similarity, the mean increased from 0\.526 to 0\.556\. A similar improvement was observed for question–legal provision similarity\.

Figure 9:KDE plots of cosine similarity scores before and after citation filtering in TUSI\-QA\. Left: question–legal provision similarity\. Right: answer–legal provision similarity\. The rightward shift after filtering indicates stronger semantic alignment\.To assess whether these differences are statistically meaningful, we conducted Welch’s t\-test\[[37](https://arxiv.org/html/2611.21823#bib.bib24)\], which is robust to unequal variances and large sample sizes\. The test yielded a statistically significant difference for answer–legal provision similarity \(p≪0\.001p\\ll 0\.001\), with a small\-to\-medium effect size \(Cohen’sd=0\.36d=0\.36\)\. The very smallpp\-value indicates that the observed improvement is highly unlikely to have occurred by random variation alone\. Comparable statistically significant results were obtained for question–legal provision similarity\.

Importantly, while a clear rightward shift is observed, the overall shape of the distributions remains largely unchanged\. This suggests that the filtering process did not merely retain samples with extremely high lexical or semantic similarity while discarding the rest\. Instead, it selectively reduced low\-alignment cases while preserving the natural variability of the dataset\.

Overall, the filtering improves semantic grounding and citation relevance without artificially compressing the similarity distribution, resulting in a more stable and realistic component of TUSI\-Bench for evaluating Legal RAG and explainable QA systems\.

### 4\.2TUSI\-Bar: Bar Exam Multiple\-Choice QA

The second component of TUSI\-Bench, TUSI\-Bar, consists of multiple\-choice questions and answers extracted from the Iranian Bar Exam held over the past three years\. Each question in this set follows a four\-choice format, with one correct answer and three distractors\. Importantly, every question in TUSI\-Bar is associated with a specific legal provision, although the annotation is at the law level rather than the individual article level\.

The questions, derived from the actual Bar Exam, cover various areas of Iranian law, ensuring thematic diversity\. In contrast to TUSI\-QA, where each answer directly references a legal article, TUSI\-Bar does not provide article\-level citations but rather links each question to the broader legal provision or law it addresses\. Examples of TUSI\-Bar instances, including their answer choices, ground\-truth answers, and associated legal sources, are presented in Figure[A\.4](https://arxiv.org/html/2611.21823#A1.F4)\.

The multiple\-choice nature of the questions also allows for more controlled evaluation of system performance, as it provides a set of discrete answer options that can be easily compared against model predictions\. This structure is ideal for benchmarking, as it allows for clear, quantifiable measures of accuracy based on the system’s ability to select the correct answer from the provided choices\.

### 4\.3Comparison with Existing Datasets

To better contextualize TUSI\-Bench, we compare it with existing legal and general\-domain question\-answering datasets in terms of scale, passage structure, query and answer length, and lexical overlap\. As summarized in Table[1](https://arxiv.org/html/2611.21823#S4.T1), TUSI\-Bench differs from prior resources along multiple dimensions\. In terms of scale, it contains fewer passages than several existing datasets, but its passages are relatively longer\. In terms of task formulation, unlike datasets that focus primarily on retrieval, TUSI\-QA defines a complete open\-ended question\-answering task\. With respect to query and answer structure, it includes long, context\-rich questions and explanatory, analytical answers\. Finally, as shown in Table[2](https://arxiv.org/html/2611.21823#S4.T2)and Figure[10](https://arxiv.org/html/2611.21823#S5.F10), it exhibits a distinct lexical similarity pattern, with a larger gap between users’ natural\-language descriptions and formal legal texts, while the answers remain grounded in legal sources\.

Table 1:Summary of datasets\. We report number of queries \(Q\), number of passages \(P\), number of answers \(A\), and the average length of queries, passages and answers \(calculated with the GPT\-2 tokenizer\[[38](https://arxiv.org/html/2611.21823#bib.bib28)\]\)\.DatasetSplitTotal NumberAverage LengthQPAQPATUSI\-QA \(Ours\)Train149072611490448\.04555\.22397\.50Test5097261509426\.85548\.42362\.95ComparisonPersianQuAD\[[31](https://arxiv.org/html/2611.21823#bib.bib12)\]Train1856731491856759\.071032\.4716\.14Test100035233957\.791525\.6612\.05PQuAD\[[30](https://arxiv.org/html/2611.21823#bib.bib11)\]Train6399489794827365\.43782\.9933\.63Test80021059854067\.93771\.5133\.13ParsQuAD\[[29](https://arxiv.org/html/2611.21823#bib.bib13)\]Train1890657231551759\.36582\.0911\.20Test57111165874259\.53762\.6712\.59Bar Exam QA\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]–1,195 / 1,815856,835–172 / 157131–Housing Statute QA\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]–6,8531,837,403–15349–Natural Questions\[[18](https://arxiv.org/html/2611.21823#bib.bib3)\]–3,4522,681,468–11102–HotpotQA\[[19](https://arxiv.org/html/2611.21823#bib.bib2)\]–7,4055,233,329–2063–COLIEE\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]–1,2785,616–6,7306,768–CLERC\[[14](https://arxiv.org/html/2611.21823#bib.bib8)\]–2,8511,842,422–4153,303–Table 2:Lexical similarity scores for the retrieval task and downstream QA task across datasets\. Values are reported as mean±\\pm95% confidence interval\.DatasetLSretrievalLSQATUSI\-QA \(Ours\)0\.03±0\.000\.03\\pm 0\.000\.19±0\.020\.19\\pm 0\.02PersianQuAD\[[31](https://arxiv.org/html/2611.21823#bib.bib12)\]0\.12±0\.000\.12\\pm 0\.000\.09±0\.000\.09\\pm 0\.00PQuAD\[[30](https://arxiv.org/html/2611.21823#bib.bib11)\]0\.16±0\.000\.16\\pm 0\.000\.12±0\.000\.12\\pm 0\.00ParSQuAD\[[29](https://arxiv.org/html/2611.21823#bib.bib13)\]0\.10±0\.000\.10\\pm 0\.000\.12±0\.000\.12\\pm 0\.00Bar Exam QA\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]0\.07±0\.000\.07\\pm 0\.000\.14±0\.010\.14\\pm 0\.01Housing Statute QA\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]0\.09±0\.000\.09\\pm 0\.000\.00±0\.000\.00\\pm 0\.00Natural Questions\[[18](https://arxiv.org/html/2611.21823#bib.bib3)\]0\.27±0\.010\.27\\pm 0\.010\.25±0\.010\.25\\pm 0\.01HotPotQA\[[19](https://arxiv.org/html/2611.21823#bib.bib2)\]0\.26±0\.000\.26\\pm 0\.000\.24±0\.000\.24\\pm 0\.00COLIEE\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]0\.27±0\.000\.27\\pm 0\.00–CLERC\[[14](https://arxiv.org/html/2611.21823#bib.bib8)\]0\.26±0\.010\.26\\pm 0\.01–In terms of scale, the number of passages in TUSI\-Bench is smaller than in some legal benchmarks, such as Bar Exam QA and Housing Statute QA\[[3](https://arxiv.org/html/2611.21823#bib.bib10)\]\. However, as shown in Table[1](https://arxiv.org/html/2611.21823#S4.T1), the average passage length in TUSI\-QA is higher than in these two benchmarks\. Thus, although the retrieval corpus is smaller, its textual units are longer and more content\-rich\. By contrast, datasets such as COLIEE\[[13](https://arxiv.org/html/2611.21823#bib.bib9)\]and CLERC\[[14](https://arxiv.org/html/2611.21823#bib.bib8)\]have a different task formulation and contain both a substantial number of passages and considerably longer average passage lengths\. The long query lengths in these datasets are mainly due to the structure of legal retrieval tasks, where long legal texts or case descriptions are used as retrieval inputs, rather than natural user questions in a question\-answering framework\.

From the perspective of language and QA formulation, PersianQuAD\[[31](https://arxiv.org/html/2611.21823#bib.bib12)\], PQuAD\[[30](https://arxiv.org/html/2611.21823#bib.bib11)\], and ParsQuAD\[[29](https://arxiv.org/html/2611.21823#bib.bib13)\]are among the main Persian resources for evaluating question\-answering and RAG systems in the general domain\. These datasets mainly consist of questions whose answers are short, specific, and usually extractable from the reference text\. This characteristic is also reflected in the answer\-length statistics in Table[1](https://arxiv.org/html/2611.21823#S4.T1): the average answer length in these datasets is substantially lower than in TUSI\-QA\. Therefore, although these resources are valuable for evaluating Persian information retrieval and answer extraction, they generally do not require the generation of long, analytical, or explanatory answers\.

In contrast, TUSI\-QA is designed as an open\-ended QA benchmark\. Its answers are not merely short or factoid responses; rather, they require legal explanation, interpretation of statutory provisions, and alignment between the cited law and the conditions described in the question\. This distinction is reflected in Table[1](https://arxiv.org/html/2611.21823#S4.T1), where the answers in both the training and test splits are considerably longer than those in Persian QuAD\-based datasets\. Moreover, among the QA datasets considered in this study, TUSI\-QA stands out in terms of both query and answer length\. This reflects its focus on context\-dependent legal problems, where users often need to describe the facts of the case, temporal conditions, relationships between parties, and relevant legal details\. Although COLIEE has the highest average query length statistically, its task formulation differs from QA datasets: its queries are not necessarily natural\-language questions and often correspond to legal cases or text segments\. Therefore, its query length is not directly comparable to the question length in QA datasets\.

TUSI\-QA also exhibits distinctive lexical similarity characteristics\. As shown in Table[2](https://arxiv.org/html/2611.21823#S4.T2)and Figure[10](https://arxiv.org/html/2611.21823#S5.F10), its lexical similarity in the retrieval setting is lower than that of the other compared datasets\. This indicates limited surface\-level overlap between user questions and the corresponding legal passages, which is consistent with the nature of legal consulting scenarios: users typically describe their problems in natural and narrative language, whereas statutory texts are written in a formal and structured style\. In contrast, the higher lexical similarity in the QA setting indicates that the final answers remain connected to the relevant legal texts and do not drift away from legal grounding\.

Overall, TUSI\-Bench is not necessarily the largest resource in terms of the number of passages, but it offers a distinctive combination of properties: relatively long passages, context\-rich user questions, long open\-ended answers, and explicit grounding in legal texts\. In addition, among the QA datasets considered in this study, TUSI\-QA is particularly prominent in terms of average query and answer length\. These characteristics make TUSI\-Bench a suitable benchmark for evaluating Legal RAG systems in scenarios where both accurate evidence retrieval and explainable answer generation are essential\.

For all experiments, retrieval is performed over the complete collection of legal provisions introduced in Section[3](https://arxiv.org/html/2611.21823#S3), and all evaluations are conducted on the corresponding test splits of TUSI\-Bench\.

## 5Experimental Setup and Results

This section presents the experimental results of the proposed benchmark\. We consider three evaluation tasks: retrieval of relevant legal provisions, open\-ended question answering, and legal reasoning\. Retrieval and open\-ended QA are evaluated on the proposed Legal QA benchmark, while legal reasoning is evaluated on the Bar Exam benchmark as a four\-choice question answering task\.

Figure 10:Distribution of cosine similarity scores across datasets for Query–Gold Passage and Answer–Gold Passage settings\. The figure illustrates lexical similarity patterns and highlights the distinct behavior of the proposed dataset compared with existing benchmarks\.All experiments were conducted on a workstation equipped with an NVIDIA RTX A6000 GPU\. For large language model inference, including the iterative citation filtering and quality control pipeline described in Section[4](https://arxiv.org/html/2611.21823#S4), we employ Gemma 3 27B\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]quantized to 8\-bit precision\. Document embeddings are indexed using the Weaviate vector database, and retrieval is performed using dense, BM25, or hybrid search depending on the experimental setting\. Unless otherwise specified, all reported results are obtained using identical preprocessing and retrieval settings for fair comparison\.

### 5\.1Evaluation Metrics

The proposed benchmark supports the evaluation of both Legal Information Retrieval \(LIR\) and Legal Question Answering \(LQA\)\. Accordingly, we employ two complementary evaluation protocols\. For retrieval experiments, we adopt standard information retrieval metrics that assess the quality of document ranking\. For question answering, we employ an LLM\-as\-a\-Judge framework to evaluate the legal quality and practical usefulness of generated responses\.

##### Retrieval Metrics

LetQQdenote the set of evaluation queries and letRqR\_\{q\}be the set of relevant documents associated with queryqq\.

##### Precision@k\.

Precision measures the proportion of retrieved documents that are relevant among the top\-kkretrieved results:

P​@​k=\|R​e​lk\|k,P@k=\\frac\{\|Rel\_\{k\}\|\}\{k\},\(1\)whereR​e​lkRel\_\{k\}denotes the set of relevant documents retrieved within the firstkkpositions\. Precision reflects the ability of a retrieval system to avoid returning irrelevant legal provisions\.

##### Recall@k\.

Recall measures the proportion of relevant documents that are successfully retrieved:

R​@​k=\|R​e​lk\|\|Rq\|\.R@k=\\frac\{\|Rel\_\{k\}\|\}\{\|R\_\{q\}\|\}\.\(2\)
Recall is particularly important in legal retrieval since missing a relevant statutory provision may result in incomplete legal reasoning\.

##### Mean Average Precision \(MAP\)\.

For a queryqq, Average Precision \(AP\) is defined as

A​P​\(q\)=1\|Rq\|​∑k=1NP​@​k×r​e​l​\(k\),AP\(q\)=\\frac\{1\}\{\|R\_\{q\}\|\}\\sum\_\{k=1\}^\{N\}P@k\\times rel\(k\),\(3\)whereNNis the total number of retrieved documents andr​e​l​\(k\)rel\(k\)equals 1 if the document at rankkkis relevant and 0 otherwise\. The Mean Average Precision is computed as

M​A​P=1\|Q\|​∑q∈QA​P​\(q\)\.MAP=\\frac\{1\}\{\|Q\|\}\\sum\_\{q\\in Q\}AP\(q\)\.\(4\)MAP rewards systems that consistently rank relevant legal documents near the top of the retrieval list\.

##### Mean Reciprocal Rank \(MRR\)\.

MRR\[[40](https://arxiv.org/html/2611.21823#bib.bib26)\]evaluates the rank of the first relevant retrieved document:

M​R​R=1\|Q\|​∑q∈Q1r​a​n​kq,MRR=\\frac\{1\}\{\|Q\|\}\\sum\_\{q\\in Q\}\\frac\{1\}\{rank\_\{q\}\},\(5\)wherer​a​n​kqrank\_\{q\}denotes the position of the first relevant document for queryqq\. MRR is particularly useful in legal retrieval scenarios where identifying a key statutory provision early can significantly improve downstream reasoning\.

##### Normalized Discounted Cumulative Gain \(NDCG\)\.

NDCG\[[41](https://arxiv.org/html/2611.21823#bib.bib27)\]measures ranking quality while assigning greater importance to highly ranked relevant documents\. The Discounted Cumulative Gain is defined as

D​C​G​@​k=∑i=1k2r​e​li−1log2⁡\(i\+1\),DCG@k=\\sum\_\{i=1\}^\{k\}\\frac\{2^\{rel\_\{i\}\}\-1\}\{\\log\_\{2\}\(i\+1\)\},\(6\)wherer​e​lirel\_\{i\}denotes the relevance score of the document at positionii\. The normalized version is

N​D​C​G​@​k=D​C​G​@​kI​D​C​G​@​k,NDCG@k=\\frac\{DCG@k\}\{IDCG@k\},\(7\)whereI​D​C​G​@​kIDCG@kis the maximum achievable DCG\. NDCG is well suited for legal retrieval because multiple statutory provisions may be relevant to a single legal question, and their ranking order is important\.

##### LLM\-as\-a\-Judge Evaluation

While retrieval metrics evaluate the ability to identify relevant legal documents, they cannot fully assess the quality of generated legal responses\. Therefore, for the Legal Question Answering task, we adopt an LLM\-as\-a\-Judge\[[42](https://arxiv.org/html/2611.21823#bib.bib29)\]evaluation framework\.

We employ DeepSeek\-V4\-Pro\[[43](https://arxiv.org/html/2611.21823#bib.bib30)\]as an automatic evaluator\. Given the user question, the retrieved legal context, the reference lawyer answer, and the model\-generated answer, the judge model produces both a qualitative justification and a score for each evaluation criterion\.

The generated answers are evaluated according to five complementary dimensions, each scored on a five\-point integer scale\.

- •Correctness: legal correctness and consistency with the reference answer and supporting legal evidence\.
- •Effectiveness: practical usefulness and the ability to guide the user toward an appropriate legal course of action\.
- •Objectiveness: professional and impartial legal tone while avoiding unsupported certainty\.
- •Clarity: readability, organization, and accessibility of legal concepts\.
- •Completeness: adequate coverage of legally relevant aspects without introducing unnecessary or unrelated content\.

Each criterion receives an integer score from 1 to 5, where higher scores indicate better performance\. In addition to the individual criterion scores, the overall QA performance is reported as the average score across all five dimensions\. This evaluation protocol enables assessment not only of factual legal correctness but also of the practical, professional, and communicative quality of generated legal advice\.

Figure 11:Retrieval evaluation results across different embedding models and the proposed Structure\-Aware Legal RAG framework\. The figure illustrates consistent improvements over the baseline in most configurations\.

### 5\.2Baselines

We evaluate two primary retrieval baselines: BM25\[[44](https://arxiv.org/html/2611.21823#bib.bib19)\]and a vanilla dense retrieval\-based RAG pipeline\[[11](https://arxiv.org/html/2611.21823#bib.bib4)\]\. BM25 serves as a sparse lexical matching baseline, while the dense retrieval setting encodes each segmented legal chunk into vector representations stored in a vector database, where relevant passages are retrieved based on semantic similarity with the input query\.

To ensure a fair comparison across embedding strategies, we evaluate the dense retrieval pipeline using five different embedding models:jina\-embeddings\-v3\[[45](https://arxiv.org/html/2611.21823#bib.bib20)\],bge\-m3\[[36](https://arxiv.org/html/2611.21823#bib.bib21)\],multilingual\-e5\-large\[[46](https://arxiv.org/html/2611.21823#bib.bib22)\], and a domain\-adapted Persian embedding model based on fine\-tuning of a pre\-trained multilingual XLM\-RoBERTa encoder, trained on Persian legal corpora, andQwen3\-Embedding\-0\.6B\[[47](https://arxiv.org/html/2611.21823#bib.bib23)\]\. These models are selected to cover both multilingual and Persian\-specialized embedding spaces, enabling a comprehensive evaluation of retrieval performance across different representation paradigms\.

In particular, the first three models are widely adopted in prior Persian and multilingual retrieval studies due to their strong semantic retrieval performance\[[48](https://arxiv.org/html/2611.21823#bib.bib31)\], while the Persian\-specific model is included as a domain\-adapted baseline for Persian legal text retrieval\. Finally,Qwen3\-Embedding\-0\.6Bis added as a recently released large\-scale multilingual embedding model from the Qwen3 family, representing a stronger modern baseline\.

### 5\.3Structure\-Aware Legal RAG

Recent studies on Graph Retrieval\-Augmented Generation show that conventional RAG is not always sufficient for specialized domains\[[24](https://arxiv.org/html/2611.21823#bib.bib46)\]\. In such domains, relevant knowledge is often distributed across multiple documents, and understanding it depends on conceptual and structural relations among knowledge units\. In this setting, flat text retrieval may fail to preserve the structural dependencies required for domain\-specific reasoning\. This limitation is particularly important in legal question answering, where the correct answer may depend not only on the semantic similarity between a query and a statutory provision, but also on the relation of that provision to other articles, authoritative interpretations, and Judicial Unification Rulings\.

To address this issue, we propose a structure\-aware legal retrieval method that combines semantic retrieval with graph\-based legal context expansion\. The method uses the legal knowledge graph introduced in our dataset\. In this graph, nodes represent statutory articles, expert interpretations, and Judicial Unification Rulings, while edges represent legal relations such as article\-to\-article references, article–interpretation links, and article–ruling associations\.

In the proposed method, all legal texts are first segmented into semantically coherent chunks\. Each chunk is then encoded as a dense vector and stored in a vector database\. Given a user query, the system first retrieves the chunks that are most semantically similar to the query\. This step provides the initial evidence required for answering the question\.

Next, the retrieved chunks are mapped to their corresponding nodes in the legal knowledge graph\. For each matched node, the method retrieves all nodes located in its one\-hop neighborhood\. The resulting one\-hop expanded node set is returned as the graph\-augmented retrieval output and is used as the evidence set for downstream answer generation\.

As a result, the final evidence set includes not only the chunks that are semantically similar to the query, but also the legally connected articles and sources\. This structural expansion allows the system to retrieve materials that may be legally necessary for reasoning, even if they are not ranked highly by semantic similarity alone\.

Finally, the expanded evidence set is provided to the language model as grounded context, and the model generates the answer based on the retrieved statutory articles, interpretations, and judicial decisions\. In this way, the proposed method combines semantic similarity with the explicit structure of legal knowledge, making retrieval more aligned with statute\-based legal question answering than flat retrieval\.

Table 3:Downstream evaluation results on the Cited Question\-Answer Set\.MethodCorrectnessEffectivenessObjectivenessClarityCompletenessGemma3 27B 8bit\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]1\.9472\.0923\.3143\.8271\.782Gemma3 27B 8bit\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]\+ Structure\-AwareLegal RAG2\.4202\.5403\.4873\.6442\.206GPT\-5\-nano\[[49](https://arxiv.org/html/2611.21823#bib.bib33)\]2\.1102\.4504\.1504\.0002\.010
### 5\.4Retrieval Evaluation

In the first stage, we evaluate the retrieval performance of the proposedStructure\-Aware Legal RAGframework in comparison with the BM25\[[44](https://arxiv.org/html/2611.21823#bib.bib19)\]baseline and embedding\-based retrieval models, as shown in Figure[11](https://arxiv.org/html/2611.21823#S5.F11)\. The objective is to assess the impact of incorporating structural legal information and relational signals into the retrieval process\.

The results indicate that the proposed framework improves retrieval performance across all embedding\-based configurations\. The only exception is BM25, where a decrease is observed in both Precision@5 and Recall@5, dropping by 0\.6 and 0\.3 percentage points, respectively, as reported in Figure[11](https://arxiv.org/html/2611.21823#S5.F11)\. This suggests that purely lexical matching methods are limited in capturing the semantic and structural complexity of legal documents\.

Among embedding\-based models, Jina\-v3 achieves the best performance, reaching a Recall@5 of 41\.22% with the proposed Structure\-Aware Legal RAG framework, an improvement of up to 8 percentage points over its dense\-retrieval\-only counterpart, as shown in Figure[11](https://arxiv.org/html/2611.21823#S5.F11)\. This demonstrates the effectiveness of combining dense embeddings with structure\-aware retrieval for improving relevant passage identification\.

Overall, these results highlight the importance of structural signals in legal retrieval, particularly in scenarios where lexical similarity between queries and legal provisions is low\. As illustrated in Figure[11](https://arxiv.org/html/2611.21823#S5.F11), relational and structural cues play a critical role in bridging the semantic gap between queries and legal texts\.

### 5\.5Downstream Evaluation

To comprehensively evaluate the proposed framework, we conduct experiments on two downstream legal reasoning tasks: \(i\) a Cited Question Answering task, which requires generating open\-ended, citation\-grounded legal responses, and \(ii\) a Bar Exam multiple\-choice question answering task, designed to assess structured legal reasoning under constrained answer selection\.

In the Cited QA setting, model performance is evaluated across five dimensions, including correctness, effectiveness, objectiveness, clarity, and completeness\. As shown in Table[3](https://arxiv.org/html/2611.21823#S5.T3), the Structure\-Aware Legal RAG framework improves performance on four of the five evaluation criteria compared to the non\-RAG baseline, with the largest gains observed in correctness, effectiveness, and completeness\. In particular, incorporating structured legal knowledge leads to more reliable and better\-grounded responses, improving both reasoning quality and factual consistency\. Clarity is the one criterion that decreases with the addition of retrieved context \(from 3\.827 to 3\.644\), a plausible trade\-off in which longer, evidence\-grounded answers become somewhat less concise and readable even as they become more accurate and complete\. Objectiveness shows a modest improvement, indicating that grounding responses in retrieved legal sources does not come at the cost of a professional and impartial tone\. For additional reference, GPT\-5\-nano\[[49](https://arxiv.org/html/2611.21823#bib.bib33)\]is also evaluated in a zero\-shot setting without access to the proposed retrieval framework\. Notably, the Structure\-Aware Legal RAG framework still yields improvements over the open\-source Gemma3 baseline, highlighting the benefits of incorporating structured legal knowledge even with an open\-source model\.

In the Bar Exam multiple\-choice setting, we further evaluate the model’s ability to perform structured legal reasoning and select the correct option among four candidates\. As reported in Table[4](https://arxiv.org/html/2611.21823#S5.T4), the proposed Structure\-Aware Legal RAG framework consistently outperforms both the vanilla model and the standard RAG baseline, improving accuracy from 33\.0% to 37\.7%\. These results demonstrate that structure\-aware retrieval improves not only open\-ended generation tasks but also strengthens discriminative reasoning in exam\-style legal problems, leading to more robust and reliable decision\-making\.

Table 4:Downstream evaluation results on Bar Exam multiple\-choice QA\.MethodAccuracy \(%\)Gemma3 27B 8bit\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]33\.0Gemma3 27B 8bit\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]\+ RAG36\.8Gemma3 27B 8bit\[[39](https://arxiv.org/html/2611.21823#bib.bib25)\]\+ Structure\-Aware Legal RAG37\.7Deepseek V4 flash\[[43](https://arxiv.org/html/2611.21823#bib.bib30)\]57\.5
### 5\.6Discussion

The proposed work addresses a critical gap in legal information retrieval and question answering for low\-resource languages, particularly Persian\. Existing benchmarks in this domain are either synthetic, limited in scope, or lack explicit grounding in authoritative legal structures\. In contrast, this study introduces a multi\-layered Persian legal dataset that integrates statutes, legal texts, doctrinal writings, interpretative sources, and judicial decisions into a unified and structured framework\.

The experimental results demonstrate that leveraging structured legal knowledge significantly improves both retrieval and reasoning performance\. The observed improvements are primarily attributed to the explicit modeling of legal relationships through a knowledge graph, which enables the retrieval system to move beyond surface\-level semantic similarity and incorporate legally meaningful dependencies\.

Furthermore, the introduction of two complementary components under TUSI\-Bench—TUSI\-QA, an open\-ended citation\-grounded question answering task, andTUSI\-Bar, a multiple\-choice legal reasoning exam—provides a more realistic and comprehensive evaluation setting for Persian legal NLP systems\. These benchmarks directly address the limitations of existing datasets, which typically fail to capture real\-world legal reasoning complexity or lack reliable ground truth alignment with authoritative sources\.

Despite these advantages, the proposed framework also introduces certain challenges\. The construction of a high\-quality legal knowledge graph requires careful curation and expert validation, as incorrect or incomplete relational links may propagate noise into the retrieval process\. Additionally, evaluating open\-ended legal answers remains inherently challenging due to the complexity of legal interpretation and variability in acceptable responses\.

## 6Conclusion

This study introduced TUSI\-Bench, a Persian legal benchmark for evaluating retrieval\-augmented generation systems, together with the structured legal knowledge layer on which it is built\. The knowledge layer comprises 7,261 articles from 50 statutes, linked to expert interpretations and Supreme Court Unification Rulings through a legal knowledge graph of 9,272 nodes and 5,183 cross\-references\. On top of this layer, TUSI\-Bench provides two complementary tasks: TUSI\-QA, an open\-ended question answering benchmark of 1,999 questions, and TUSI\-Bar, a four\-option multiple\-choice benchmark derived from Iranian Bar examination questions\.

The main novelty of TUSI\-Bench lies in the nature and quality of its data\. TUSI\-QA is built from real lawyer–client consultations rather than synthetically generated questions, so its queries reflect the narrative, fact\-rich way in which people actually describe legal problems, and they exhibit very low lexical overlap with the governing statutory text\. Each retained answer is explicitly linked to one to three supporting articles of the target laws, which makes citation\-level evaluation of both retrieval and generation possible\. The data were cleaned through an iterative filtering process that combines an intelligent agent with expert legal review, discarding samples whose citations were irrelevant, insufficient, or not actually used in the reasoning; the resulting semantic alignment between questions, answers, and cited provisions is significantly higher after filtering\. Finally, the train–test split preserves the long\-tail citation distribution of the legal provisions, and all questions are linked to a shared retrieval corpus, so results are comparable across systems\.

Our experiments show that incorporating structured legal knowledge helps\. A simple structure\-aware baseline, which expands retrieved chunks with their one\-hop neighbors in the legal knowledge graph, improves Recall@5 by up to 8 percentage points over its dense\-retrieval counterpart, raises answer quality on TUSI\-QA, and increases accuracy on TUSI\-Bar\. At the same time, the absolute scores remain low, which indicates that TUSI\-Bench is a challenging benchmark with substantial room for improvement\.

Several directions remain for future work\. First, we plan to expand the corpus beyond the current 50 statutes by adding further laws and other legal documents, such as executive regulations, additional judicial rulings, and legal commentaries, which would broaden coverage and make the benchmark more representative of legal practice\. Second, the current graph is unweighted: all edges of a given type contribute equally, and one\-hop expansion can therefore introduce noise, especially around highly connected hub articles\. Assigning weights to edges, for example based on reference frequency, relation type, semantic similarity, or co\-citation patterns in TUSI\-QA, would allow the graph to model the strength of the relations between provisions more faithfully and to rank expanded neighbors rather than include them all\. Third, we plan to improve automatic relation extraction to enhance the scalability and coverage of the graph, and to extend TUSI\-Bar with article\-level annotations in addition to the current law\-level links\.

Data AvailabilityThe dataset developed in this study is publicly available in the[TUSI\-Bench repository](https://huggingface.co/datasets/Marykka/TUSI-Bench)on the Hugging Face Hub\.

## References

- \[1\]R\. Bommasani, D\. A\. Hudson, E\. Adeli, R\. Altman, S\. Arora, S\. von Arx, M\. S\. Bernstein, J\. Bohg, A\. Bosselut, E\. Brunskill,et al\.\(2021\)On the opportunities and risks of foundation models\.arXiv preprint arXiv:2108\.07258\.External Links:[Link](https://arxiv.org/abs/2108.07258)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p1.1)\.
- \[2\]B\. Li, S\. Fan, S\. Zhu, and L\. Wen\(2025\)CoLE: a collaborative legal expert prompting framework for large language models in law\.Knowledge\-Based Systems311,pp\. 113052\.External Links:[Document](https://dx.doi.org/10.1016/j.knosys.2025.113052),[Link](https://doi.org/10.1016/j.knosys.2025.113052)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p1.1)\.
- \[3\]L\. Zheng, N\. Guha, J\. Arifov, S\. Zhang, M\. Skreta, C\. D\. Manning, P\. Henderson, and D\. E\. Ho\(2025\)A reasoning\-focused legal retrieval benchmark\.InProceedings of the 4th ACM Symposium on Computer Science and Law \(CS&Law ’25\),External Links:[Document](https://dx.doi.org/10.1145/3709025.3712219)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p1.1),[§1](https://arxiv.org/html/2611.21823#S1.p3.1),[§1](https://arxiv.org/html/2611.21823#S1.p6.1),[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px1.p1.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px2.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p2.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.12.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.13.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.6.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.7.1)\.
- \[4\]Z\. Ji, N\. Lee, R\. Frieske, T\. Yu, D\. Su, Y\. Xu, E\. Ishii, Y\. J\. Bang, A\. Madotto, and P\. Fung\(2023\)Survey of hallucination in natural language generation\.ACM Computing Surveys55\(12\),pp\. 1–38\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p2.1)\.
- \[5\]M\. Dahl, V\. Magesh, M\. Suzgun, and D\. E\. Ho\(2024\)Large legal fictions: profiling legal hallucinations in large language models\.Journal of Legal Analysis16\(1\),pp\. 64–93\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p2.1)\.
- \[6\]V\. Magesh, F\. Surani, M\. Dahl, M\. Suzgun, C\. D\. Manning, and D\. E\. Ho\(2025\)Hallucination\-free? assessing the reliability of leading ai legal research tools\.Journal of Empirical Legal Studies\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p2.1)\.
- \[7\]S\. P\. Romano, G\. Sperlí, M\. Varlese, and A\. Vignali\(2027\)NER in the courtroom: a data\-driven framework for legal entity extraction\.Information Processing & Management64\(2, Part A\),pp\. 105132\.External Links:ISSN 0306\-4573,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.ipm.2026.105132),[Link](https://www.sciencedirect.com/science/article/pii/S0306457326005224)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p3.1)\.
- \[8\]A\. Louis, G\. van Dijck, and G\. Spanakis\(2024\)Interpretable long\-form legal question answering with retrieval\-augmented large language models\.InProceedings of the AAAI Conference on Artificial Intelligence,Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p3.1)\.
- \[9\]N\. F\. Liu, K\. Lin, J\. Hewitt, A\. Paranjape, M\. Bevilacqua, F\. Petroni, and P\. Liang\(2024\)Lost in the middle: how language models use long contexts\.Transactions of the Association for Computational Linguistics12,pp\. 157–173\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p3.1)\.
- \[10\]N\. Guha, J\. Nyarko, D\. E\. Ho,et al\.\(2023\)LegalBench: a collaboratively built benchmark for measuring legal reasoning in large language models\.InNeurIPS Datasets and Benchmarks Track,Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p3.1),[§1](https://arxiv.org/html/2611.21823#S1.p6.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px3.p1.1)\.
- \[11\]P\. Lewis, E\. Perez, A\. Piktus, F\. Petroni, V\. Karpukhin, N\. Goyal, H\. Kuttler, M\. Lewis, W\. Yih, T\. Rocktaschel,et al\.\(2020\)Retrieval\-augmented generation for knowledge\-intensive nlp tasks\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\. 9459–9474\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p5.1),[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p1.1),[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p1.1)\.
- \[12\]N\. Pipitone and G\. H\. Alami\(2024\)LegalBench\-rag: a benchmark for retrieval\-augmented generation in the legal domain\.arXiv preprint arXiv:2408\.10343\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p5.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px3.p1.1)\.
- \[13\]R\. Goebelet al\.\(2024\)Overview of benchmark datasets and methods for coliee 2024\.InNew Frontiers in Artificial Intelligence,pp\. 109–124\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p6.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px1.p1.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px2.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p2.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.16.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.10.1)\.
- \[14\]A\. B\. Houet al\.\(2025\)CLERC: a dataset for us legal case retrieval and retrieval\-augmented analysis generation\.InFindings of ACL: NAACL,pp\. 7898–7913\.Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p6.1),[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px1.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p2.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.17.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.11.1)\.
- \[15\]A\. Petrov, E\. La Malfa, P\. H\. S\. Torr, and A\. Bibi\(2023\)Language model tokenizers introduce unfairness between languages\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p8.1)\.
- \[16\]PerSets\(2025\)Iran legal persian qa\.Note:Hugging Face Dataset, accessed June 2026External Links:[Link](https://huggingface.co/datasets/PerSets/iran-legal-persian-qa)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p9.1),[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px2.p1.1),[§4\.1\.1](https://arxiv.org/html/2611.21823#S4.SS1.SSS1.p2.1)\.
- \[17\]Amir7440\(2025\)IRAN\-madani\-law\.Note:Hugging Face Dataset, accessed June 2026External Links:[Link](https://huggingface.co/datasets/Amir7440/IRAN-MADANI-LAW)Cited by:[§1](https://arxiv.org/html/2611.21823#S1.p9.1),[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px2.p1.1)\.
- \[18\]T\. Kwiatkowski, J\. Palomaki, O\. Redfield, M\. Collins, A\. Parikh, C\. Alberti, D\. Epstein, I\. Polosukhin, J\. Devlin, K\. Lee,et al\.\(2019\)Natural questions: a benchmark for question answering research\.Transactions of the Association for Computational Linguistics7,pp\. 452–466\.External Links:[Document](https://dx.doi.org/10.1162/tacl%5Fa%5F00276)Cited by:[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.14.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.8.1)\.
- \[19\]Z\. Yang, P\. Qi, S\. Zhang, Y\. Bengio, W\. W\. Cohen, R\. Salakhutdinov, and C\. D\. Manning\(2018\)HotpotQA: a dataset for diverse, explainable multi\-hop question answering\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,pp\. 2369–2380\.External Links:[Document](https://dx.doi.org/10.18653/v1/D18-1259)Cited by:[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.15.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.9.1)\.
- \[20\]N\. Thakur N\. Reimerset al\.\(2021\)BEIR: a heterogeneous benchmark for zero\-shot evaluation of information retrieval models\.arXiv preprint arXiv:2104\.08663\.Cited by:[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p1.1)\.
- \[21\]H\. Suet al\.\(2025\)BRIGHT: a realistic and challenging benchmark for reasoning\-intensive retrieval\.InInternational Conference on Learning Representations,pp\. 48941–48991\.Cited by:[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p2.1)\.
- \[22\]X\. Wanget al\.\(2024\)BIRCO: a benchmark of information retrieval tasks with complex objectives\.arXiv preprint arXiv:2402\.14151\.Cited by:[§2\.1](https://arxiv.org/html/2611.21823#S2.SS1.p2.1)\.
- \[23\]W\. Yu, X\. Lin, L\. Ni, J\. Cheng, and L\. Sha\(2026\)Benchmarking multi\-step legal reasoning and analyzing Chain\-of\-Thought effects in Large Language Models\.Information Processing & Management\.External Links:[Document](https://dx.doi.org/10.1016/j.ipm.2026.105030)Cited by:[§2\.2](https://arxiv.org/html/2611.21823#S2.SS2.SSS0.Px3.p1.1)\.
- \[24\]D\. Edge, H\. Trinh, N\. Cheng, J\. Bradley, A\. Chao, A\. Mody, S\. Truitt, D\. Metropolitansky, R\. O\. Ness, and J\. Larson\(2024\)From local to global: a graph rag approach to query\-focused summarization\.arXiv preprint arXiv:2404\.16130\.Cited by:[§2\.3](https://arxiv.org/html/2611.21823#S2.SS3.p1.1),[§5\.3](https://arxiv.org/html/2611.21823#S5.SS3.p1.1)\.
- \[25\]B\. Peng, Y\. Zhu, Y\. Liu, X\. Bo, H\. Shi, C\. Hong, Y\. Zhang, and S\. Tang\(2024\)Graph retrieval\-augmented generation: a survey\.arXiv preprint arXiv:2408\.08921\.Cited by:[§2\.3](https://arxiv.org/html/2611.21823#S2.SS3.p1.1)\.
- \[26\]A\. Louis, G\. Van Dijck, and G\. Spanakis\(2023\)Finding the law: enhancing statutory article retrieval via graph neural networks\.InProceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics,Cited by:[§2\.3](https://arxiv.org/html/2611.21823#S2.SS3.p2.1)\.
- \[27\]Z\. Chen, Q\. Zhang, Z\. Xiang, Z\. Wei, L\. Gao, X\. Huang, Z\. Zhang, and J\. Su\(2026\)LegalGraphRAG: multi\-agent graph retrieval\-augmented generation for reliable legal reasoning\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),San Diego, California, United States,pp\. 37455–37484\.External Links:[Link](https://aclanthology.org/2026.acl-long.1738/)Cited by:[§2\.3](https://arxiv.org/html/2611.21823#S2.SS3.p2.1)\.
- \[28\]V\. T\. d\. Oliveira, D\. O\. d\. Silva, M\. d\. A\. Souza, M\. R\. Lima, S\. S\. T\. d\. Oliveira, and T\. C\. Rosa\(2026\)Retrieval\-augmented generation and knowledge graphs in Portuguese\-language legal documents\.InProceedings of the 17th International Conference on Computational Processing of Portuguese \(PROPOR 2026\) – Vol\. 1,Salvador, Brazil,pp\. 1–10\.External Links:[Link](https://aclanthology.org/2026.propor-1.1/)Cited by:[§2\.3](https://arxiv.org/html/2611.21823#S2.SS3.p2.1)\.
- \[29\]N\. Abadani, J\. Mozafari, A\. Fatemi, M\. Nematbakhsh, and A\. Kazemi\(2021\)ParSQuAD: persian question answering dataset based on machine translation of squad 2\.0\.International Journal of Web Research4\(1\),pp\. 34–46\.External Links:[Document](https://dx.doi.org/10.22133/ijwr.2021.293313.1101)Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p3.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.10.1.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.5.1)\.
- \[30\]K\. Darvishi, N\. Shahbodaghkhan, Z\. Abbasiantaeb, and S\. Momtazi\(2023\)PQuAD: a persian question answering dataset\.Computer Speech & Language80,pp\. 101486\.Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p3.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.8.1.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.4.1)\.
- \[31\]A\. Kazemi, J\. Mozafari, and M\. A\. Nematbakhsh\(2022\)PersianQuAD: the native question answering dataset for the persian language\.IEEE Access10,pp\. 26045–26057\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2022.3157289)Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1),[§4\.3](https://arxiv.org/html/2611.21823#S4.SS3.p3.1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.5.6.1.1),[Table 2](https://arxiv.org/html/2611.21823#S4.T2.5.3.1)\.
- \[32\]O\. Ghahroodiet al\.\(2024\)Khayyam challenge \(persianmmlu\): is your llm truly wise to the persian language?\.arXiv preprint arXiv:2404\.06644\.Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1)\.
- \[33\]MCINext\(2025\)PerMMLU benchmark: persian multiple\-choice qa dataset\.External Links:[Link](https://huggingface.co/datasets/MCINext/permmlu)Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1)\.
- \[34\]M\. Alikhaniet al\.\(2025\)PERCOR: evaluating commonsense reasoning in persian via multiple\-choice sentence completion\.InProceedings of NAACL IJCNLP,pp\. 2205–2224\.Cited by:[§2\.4](https://arxiv.org/html/2611.21823#S2.SS4.SSS0.Px1.p1.1)\.
- \[35\]Edaalat Sara\(2026\)Edaalat sara: iranian legal knowledge platform\.Note:Accessed: July 29, 2026External Links:[Link](https://edalatsara.com/)Cited by:[§3\.1](https://arxiv.org/html/2611.21823#S3.SS1.p3.1)\.
- \[36\]J\. Chen, S\. Xiao, P\. Zhang, K\. Luo, D\. Lian, and Z\. Liu\(2024\)M3\-embedding: multi\-linguality, multi\-functionality, multi\-granularity text embeddings through self\-knowledge distillation\.InFindings of ACL 2024,pp\. 2318–2335\.Cited by:[§4\.1\.4](https://arxiv.org/html/2611.21823#S4.SS1.SSS4.p1.1),[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p2.1)\.
- \[37\]B\. L\. Welch\(1947\)The generalisation of ‘student’s’ problem when several different population variances are involved\.Biometrika34\(1–2\),pp\. 28–35\.External Links:[Document](https://dx.doi.org/10.1093/biomet/34.1-2.28)Cited by:[§4\.1\.4](https://arxiv.org/html/2611.21823#S4.SS1.SSS4.p3.1)\.
- \[38\]A\. Radford, J\. Wu, R\. Child, D\. Luan, D\. Amodei, and I\. Sutskever\(2019\)Language models are unsupervised multitask learners\.OpenAI Blog1\(8\),pp\. 9\.Cited by:[Table 1](https://arxiv.org/html/2611.21823#S4.T1),[Table 1](https://arxiv.org/html/2611.21823#S4.T1.4)\.
- \[39\]Kimi Team, A\. Du, B\. Yin, B\. Xing, B\. Qu, B\. Wang, C\. Chen, C\. Zhang, C\. Du, C\. Wei,et al\.\(2025\)Kimi\-vl technical report\.arXiv preprint arXiv:2504\.07491\.Cited by:[Table 3](https://arxiv.org/html/2611.21823#S5.T3.5.2.1),[Table 3](https://arxiv.org/html/2611.21823#S5.T3.5.3.1),[Table 4](https://arxiv.org/html/2611.21823#S5.T4.5.2.1),[Table 4](https://arxiv.org/html/2611.21823#S5.T4.5.3.1),[Table 4](https://arxiv.org/html/2611.21823#S5.T4.5.4.1),[§5](https://arxiv.org/html/2611.21823#S5.p2.1)\.
- \[40\]E\. M\. Voorhees\(1999\)The trec\-8 question answering track report\.InTREC,Cited by:[§5\.1](https://arxiv.org/html/2611.21823#S5.SS1.SSS0.Px5.p1.1)\.
- \[41\]K\. Järvelin and J\. Kekäläinen\(2002\)Cumulated gain\-based evaluation of ir techniques\.ACM Transactions on Information Systems20\(4\),pp\. 422–446\.Cited by:[§5\.1](https://arxiv.org/html/2611.21823#S5.SS1.SSS0.Px6.p1.1)\.
- \[42\]L\. Zhenget al\.\(2023\)Judging llm\-as\-a\-judge with mt\-bench and chatbot arena\.arXiv preprint arXiv:2306\.05685\.Cited by:[§5\.1](https://arxiv.org/html/2611.21823#S5.SS1.SSS0.Px7.p1.1)\.
- \[43\]DeepSeek\-AI\(2026\)DeepSeek\-v4: towards highly efficient million\-token context intelligence\.External Links:[Link](https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro)Cited by:[§5\.1](https://arxiv.org/html/2611.21823#S5.SS1.SSS0.Px7.p2.1),[Table 4](https://arxiv.org/html/2611.21823#S5.T4.5.5.1)\.
- \[44\]S\. Robertson and H\. Zaragoza\(2009\)The probabilistic relevance framework: bm25 and beyond\.Foundations and Trends in Information Retrieval3\(4\),pp\. 333–389\.Cited by:[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p1.1),[§5\.4](https://arxiv.org/html/2611.21823#S5.SS4.p1.1)\.
- \[45\]S\. Sturua, I\. Mohr, M\. K\. Akram, M\. Günther, B\. Wang, M\. Krimmel, F\. Wang, G\. Mastrapas, A\. Koukounas, N\. Wang,et al\.\(2024\)Jina\-embeddings\-v3: multilingual embeddings with task lora\.arXiv preprint arXiv:2409\.10173\.Cited by:[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p2.1)\.
- \[46\]L\. Wang, N\. Yang, X\. Huang, L\. Yang, R\. Majumder, and F\. Wei\(2024\)Multilingual e5 text embeddings: a technical report\.arXiv preprint arXiv:2402\.05672\.Cited by:[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p2.1)\.
- \[47\]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\(2025\)Qwen3 embedding: advancing text embedding and reranking through foundation models\.arXiv preprint arXiv:2506\.05176\.Cited by:[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p2.1)\.
- \[48\]E\. Zinvandi, M\. Alikhani, M\. Sarmadi, Z\. Pourbahman, S\. Arvin, R\. Kazemi, and A\. Amini\(2025\)Famteb: massive text embedding benchmark in persian language\.Preprint\.Cited by:[§5\.2](https://arxiv.org/html/2611.21823#S5.SS2.p3.1)\.
- \[49\]A\. Singh, A\. Fry, A\. Perelman, A\. Tart, A\. Ganesh, A\. El\-Kishky, A\. McLaughlin, A\. Low, A\. Ostrow, A\. Ananthram,et al\.\(2025\)Openai gpt\-5 system card\.arXiv preprint arXiv:2601\.03267\.Cited by:[§5\.5](https://arxiv.org/html/2611.21823#S5.SS5.p2.1),[Table 3](https://arxiv.org/html/2611.21823#S5.T3.5.5.1)\.

liographycas\-refs

## Appendix

## Appendix AExamples from TUSI\-Bench

This appendix provides qualitative examples from the proposed TUSI\-Bench evaluation suite\. The examples illustrate the structure and content of the two introduced benchmarks, TUSI\-QA and TUSI\-Bar\. Specifically, TUSI\-QA is designed as a citation\-grounded open\-ended legal question answering benchmark, where each instance connects a legal query with an answer supported by authoritative legal sources\. TUSI\-Bar, on the other hand, evaluates legal reasoning ability through multiple\-choice questions derived from professional legal examination settings\.

Figure[A\.1](https://arxiv.org/html/2611.21823#A1.F1)presents an example instance from TUSI\-QA, consisting of a statutory provision from the Iranian legal system and its corresponding expert interpretation\. Such paired representations enable the evaluation of whether models can retrieve and reason over relevant legal texts beyond surface\-level matching\.

Figure[A\.2](https://arxiv.org/html/2611.21823#A1.F2)shows examples of judicial precedents included in TUSI\-QA\. These examples demonstrate the incorporation of Supreme Court unification judgments, which represent an important source of legal reasoning and interpretation in the Iranian judicial system\.

Figure[A\.3](https://arxiv.org/html/2611.21823#A1.F3)provides examples of citation\-grounded question answering instances\. Each example includes a legal question, the generated answer, and the supporting legal citation, allowing evaluation of both answer correctness and the reliability of cited sources\.

Finally, Figure[A\.4](https://arxiv.org/html/2611.21823#A1.F4)illustrates examples from TUSI\-Bar\. Each instance contains a multiple\-choice legal reasoning question, candidate answers, the correct option, and the corresponding legal reference\. These examples highlight the benchmark’s focus on evaluating structured legal reasoning and knowledge application in an exam\-style setting\.

\(a\)Original legal article \(Article 10 of the Iranian Civil Code\)\.\(b\)Corresponding expert interpretation of Article 10\.
Figure A\.1:An example instance from TUSI\-QA, consisting of a statutory article and its corresponding expert interpretation\.\(a\)Summary of Unification Judgment No\. 847 of the General Assembly of the Supreme Court of Iran, issued on May 14, 2024\.\(b\)Summary of Unification Judgment No\. 794 of the General Assembly of the Supreme Court of Iran, issued on August 11, 2020\.
Figure A\.2:Examples of judicial precedents included in TUSI\-QA: Unification Judgments No\. 847 and No\. 794 of the General Assembly of the Supreme Court of Iran\. Each example presents a concise summary of the corresponding judicial decision\.\(a\)Example instance 1 from TUSI\-QA\.\(b\)Example instance 2 from TUSI\-QA\.
Figure A\.3:Examples of citation\-grounded legal question answering instances in TUSI\-QA\. Each instance contains a legal question, the corresponding answer, and the referenced legal article providing the supporting citation\.\(a\)Example of a TUSI\-Bar multiple\-choice question regarding the recognition of a foreign divorce judgment and its related legal reference\.\(b\)Example of a TUSI\-Bar multiple\-choice question regarding compensation for destroyed fungible property\.
Figure A\.4:Illustrative examples from TUSI\-Bar\. Each example consists of a multiple\-choice legal question, four candidate answers, the ground\-truth answer, and the associated legal source for citation\-based legal reasoning\.

Similar Articles

TUA-Bench: A Benchmark for General-Purpose Terminal-Use Agents

Hugging Face Daily Papers

TUA-Bench is a comprehensive benchmark for evaluating general-purpose terminal-use agents across diverse digital activities and specialized workflows, revealing significant performance gaps among current frontier agents.