شماره ركورد
26378
شماره راهنما
COM2 737
عنوان
پالايش پرسشهاي چندگامي حقوق كيفري ايران براي سيستم توليد تقويتشده با بازيابي
مقطع تحصيلي
كارشناسي ارشد
رشته تحصيلي
مهندسي كامپيوتر - نرم افزار
دانشكده
مهندسي كامپيوتر
تاريخ دفاع
12 مهر 1405
صفحه شمار
136 ص.
استاد راهنما
محمدعلي نعمت بخش
لينك پروفايل استاد راهنما
كليدواژه فارسي
توليد تقويتشده با بازيابي , مدلهاي زباني بزرگ , پالايش پرسش , پرسشهاي چندگامي , بازيابي گرافمحور , استدلال حقوقي , بازنويسي پرسش
چكيده فارسي
چكيده
سيستمهاي توليد تقويتشده با بازيابي در سالهاي اخير به رويكردي غالب براي پرسشوپاسخ در حوزههاي دانشبنيان تبديل شدهاند، زيرا پاسخ را بر منابع معتبر مستند ميكنند و از توهم مدلهاي زباني بزرگ ميكاهند. با اين حال، در حوزههاي تخصصي مانند حقوق، دقت اين سيستمها بهشدت وابسته به كيفيت پرسش ورودي است. كاربران هدف اين پژوهش، وكلا و قضات هستند كه پرسشهاي خود را عموماً در قالب شرح يك سناريوي واقعي پرونده مطرح ميكنند؛ چنين سناريوهايي، ماهيت چندگامي دارند و حاوي جزئيات توصيفياي هستند كه تفكيك هستههاي موضوعي مستقل و اتهامات حقوقي متناظر را دشوار ميسازد. افزون بر اين، براي يك عنوان مجرمانه واحد ممكن است معادلهاي اصطلاحي متعددي در متون قانوني بهكار رود (مانند «تجاوز به عنف»، «زناي به عنف» يا «زنا با اكراه»)، كه در كنار شكاف واژگاني ميان زبان روايي پرسش و زبان انتزاعي متون قانوني، بازيابي مستقيم بر پايهي چنين پرسشهاي تجزيهنشدهاي را به سمت بازيابي اسناد نامرتبط يا ناقص سوق ميدهد. پژوهش جاري با تمركز بر پالايش پرسشهاي چندگامي، معمارياي براي سيستمهاي توليد تقويتشده با بازيابي حقوق كيفري ايران ارائه ميدهد كه پرسش ورودي را با بهرهگيري از مدلهاي زباني بزرگ در قالب زنجيرهاي از مؤلفههاي تخصصي استخراج زمينه، تحليل و تفكيك هستههاي موضوعي، بازنويسي هدفمند، نقد و اعتبارسنجي، به پرسشهاي فرعي بازيابيمحور تجزيه و بازنويسي ميكند؛ هر هستهي موضوعي نيز به برچسب جرم و مجازات مشخص، معادلهاي حقوقي و استدلال مختصر مزين ميشود تا شكاف واژگاني كاهش يابد. بازيابي از سه مسير مكمل پرسشهاي بازنويسيشده، استدلالهاي تركيبي، و پرسش خام بهعنوان مسير پشتيبان، با امتيازدهي تركيبي از شباهت معنايي چندبرداري (متن، جرم، مجازات) و همپوشاني واژگاني فازي صورت ميگيرد، و با پيمايش بهتريناول روي گراف دانش حقوقي و دنبالكردن يالهاي ارجاعي تكميل ميشود. اين معماري بر پايهي LangChain و LangGraph بهصورت يك گراف حالت پيادهسازي شده كه مسيرهاي شرطي بازنويسي، نقد و بازيابي را ماژولار مديريت ميكند. ارزيابي سيستم با استفاده از مدل زباني بزرگ بهعنوان داور، روي دو مجموعهداده انجام شد: روي مجموعهداده اسكودا، پژوهش حاضر به صحت 0.72 دست يافت كه نسبت به سيستم پايه بدون بازرتبهسنج 23% و نسبت به سيستم پايه با بازرتبهسنج 15% بهبود نشان ميدهد؛ روي مجموعهداده سناريوهاي واقعي نيز صحت 0.85 بهدست آمد كه بهترتيب معادل 36% و 28% بهبود نسبت به همين سيستم پايه است. اين نتايج نشان ميدهند پالايش صريح پرسشهاي چندگامي، پيش از بازيابي، سهم مستقلي در بهبود ارتباط اسناد بازيابيشده و دقت پاسخ نهايي دارد و ميتواند بهعنوان الگويي براي ساير حوزههاي تخصصي حقوقي بهكار رود.
كليدواژه لاتين
Retrieval-Augmented Generation , Large Language Models , , Query Refinement , Multi-Hop Queries , Graph-Based Retrieval , Legal Reasoning , Query Rewriting
عنوان لاتين
Refine multi-Hop queries of Iranian criminal law for retrieval augmented generation
گروه آموزشي
مهندسي نرم افزار
چكيده لاتين
Abstract
Retrieval-Augmented Generation (RAG) has emerged in recent years as the dominant paradigm for question answering in knowledge-intensive domains, as it grounds responses in verifiable sources and mitigates hallucination in large language models. In specialized domains such as law, however, retrieval accuracy is highly sensitive to the quality of the input query. The target users of this research—lawyers and judges—typically pose questions as narrative descriptions of real case scenarios; such scenarios are inherently multi-hop and contain descriptive detail that makes it difficult to isolate independent topical cores and their corresponding legal charges. Moreover, a single criminal offense may be expressed through multiple terminological variants across legal texts (e.g., "rape by coercion," "adultery by coercion," or "adultery under duress"), which, combined with the lexical gap between the narrative language of the query and the abstract language of statutory text, causes direct retrieval on undecomposed queries to surface irrelevant or incomplete documents.
Focusing on the refinement of multi-hop queries, this thesis presents an architecture for Retrieval-Augmented Generation systems tailored to Iranian criminal law, in which large language models decompose and rewrite the input query through a chain of specialized components—context extraction, topical-core analysis and decomposition, targeted rewriting, and critique and validation—producing retrieval-oriented sub-queries. Each topical core is further enriched with an explicit crime/punishment label, legal terminological equivalents, and a concise rationale to narrow the lexical gap.
Retrieval is performed along three complementary paths—rewritten queries, composite reasoning, and the raw query as a fallback path—using a hybrid scoring function that combines multi-vector semantic similarity (over text, crime, and punishment) with fuzzy lexical overlap, and is further augmented by best-first traversal of a legal knowledge graph that follows explicit reference edges. The architecture is implemented as a state graph on LangChain and LangGraph, which modularly manages the conditional pathways of rewriting, critique, and retrieval.
The system was evaluated using an LLM-as-a-Judge protocol on two datasets. On the ESCODA dataset, the proposed system achieved an accuracy of 0.72, corresponding to improvements of 23% and 15% over the baseline system without and with a reranker, respectively. On a dataset of real-world case scenarios, the system achieved an accuracy of 0.85, corresponding to improvements of 36% and 28% over the same two baselines. These results indicate that explicit refinement of multi-hop queries prior to retrieval makes an independent contribution to the relevance of retrieved documents and the accuracy of the final answer, and can serve as a template for other specialized legal domains.
تعداد فصل ها
6
فهرست مطالب pdf
175321
نويسنده