QU-NLP at QIAS 2026: Multi-Stage QLoRA Fine-Tuning for Arabic Islamic Inheritance Reasoning
Organizations: Qatar University Doha, Qatar
Abstract
Islamic inheritance law (ilm al-mawarıth) presents a challenging domain for evaluating large language models' structured reasoning capabilities, requiring multi-step legal analysis, rule-based blocking decisions, and precise fractional calculations. We present QU-NLP's submission to the QIAS 2026 shared task on Arabic Islamic inheritance reasoning. Our approach employs a multi-stage Quantized Low-Rank Adaptation (QLoRA) fine-tuning strategy on Qwen3-4B: (1) domain adaptation on 3,166 Islamic fatwa records to acquire inheritance terminology and jurisprudential reasoning patterns, followed by (2) task-specific training on 12,000 structured inheritance cases to optimize JSON-formatted output generation. Using 4-bit NF4 quantization with rank-128 LoRA adapters, our model achieves 90% MIR-E (Mawarith Inheritance Reasoning Evaluation) score on the test set, demonstrating competitive performance while requiring minimal computational resources. Our results show that domain-specific pre-adaptation combined with structured output training enables small language models to perform complex legal reasoning tasks effectively comparing to commercial systems such as Gemini-2.5-flash.
Figures & tables
| Split | Simple | ’awl | radd | Total |
|---|---|---|---|---|
| Training | 11,079 | 577 | 344 | 12,000 |
| Test | 456 | 39 | 5 | 500 |
| Total | 11,535 | 616 | 349 | 12,500 |
| Field | Content |
|---|---|
| Question | \textAR مات وترك: عم لأب و ابن أخ لأب و أربع بنات ابن و أم الأم و أب الأب و زوجة و خمسة أبناء ابن أخ لأب. ما هو نصيب كل وريث؟ |
| (A person died leaving: a paternal uncle, a son of a paternal brother, four sons’ daughters, the maternal grandmother, the paternal grandfather, a wife, and five sons of a paternal nephew. What is each heir’s share?) | |
| Heirs | [ \textAR وريث: أم الأم، عدد: 1، \textAR وريث: زوجة، عدد: 1، \textAR وريث: أب الأب، عدد: 1، \textAR وريث: بنت ابن، عدد: 4 ] |
| (heir: maternal grandmother, count: 1; heir: wife, count: 1; heir: paternal grandfather, count: 1; heir: son’s daughter, count: 4) | |
| Blocked | [ \textAR وريث: عم لأب، عدد: 1، \textAR وريث: ابن أخ لأب، عدد: 1، \textAR وريث: ابن ابن أخ لأب، عدد: 5 ] |
| (heir: paternal uncle, count: 1; heir: son of a paternal brother, count: 1; heir: sons of a son of a paternal brother, count: 5) |
| Configuration | Phase 1: Domain Adaptation | Phase 2: Task-Specific Training |
|---|---|---|
| Training data | 3,166 Islamic fatwa records | 12,000 inheritance cases |
| Objective | Causal language modeling | Structured JSON generation |
| Learning rate | ||
| Epochs | 2 | 6 |
| Batch size | 1 | 1 |
| Gradient accumulation | 8 steps | 8 steps |
| Model | MIR-E | |||
|---|---|---|---|---|
| Gemini-2.5-flash | 94.5% | 92.9% | 89.4% | 90.1% |
| QU-NLP (Ours) | 97.1% | 94.3% | 84.6% | 90.0% |
| Qwen3-32B | 69.0% | 44.6% | 26.5% | 43.7% |
| GPT-OSS-120B | 69.3% | 32.7% | 27.1% | 39.1% |
| LLaMA-3.3-70B | 64.8% | 40.3% | 21.5% | 39.0% |
| Fanar-Sadiq | 62.1% | 36.7% | 20.4% | 36.8% |
| Metric | Original | Basic | PostTasil |
|---|---|---|---|
| MIR-E Overall | 89.8% | 90.0% | 90.0% |
| Heirs & Blocking | 96.4% | 97.1% | 97.1% |
| Share Assignment | 94.3% | 94.3% | 94.3% |
| ’Awl/Radd Detection | 84.6% | 84.6% | 84.6% |
| Final Distribution | 80.5% | 80.5% | 80.5% |
| Type | N | MIR-E | ||||
|---|---|---|---|---|---|---|
| Simple | 456 | 90.8% | 96.4% | 94.1% | 86.2% | 83.5% |
| \textAR عول ( ’awl ) | 39 | 79.2% | 96.2% | 95.1% | 66.7% | 50.4% |
| \textAR رد ( radd ) | 5 | 83.0% | 100.0% | 100.0% | 80.0% | 50.0% |
| Error Type | Cases | Total | Impact |
|---|---|---|---|
| Calculation | 29 | 5.8% | 1.7pp |
| Residue label avoidance † | 314 | 62.9% | 0.85pp |
| Heir Identification | 19 | 3.8% | 0.4pp |
| Radd Detection | 11 | 2.2% | 0.2pp |
| Case ID | Error Type | MIR-E | ||||
|---|---|---|---|---|---|---|
| nf8w4p3x_7 | Calculation | 1.00 | 1.00 | 1.00 | 0.00 | 0.700 |
| nf5n5k1z_7 | Heir ID | 0.66 | 1.00 | 1.00 | 1.00 | 0.898 |
| ng7z4j2b_2 | Radd Detection | 1.00 | 1.00 | 0.00 | 0.00 | 0.600 |
| ng2p5t2e_10 | Share Assignment | 0.81 | 0.67 | 0.00 | 0.33 | 0.542 |
| Residue label behaviour | Cases | Rate |
|---|---|---|
| Gold requires residue label | 417 | 83.4% of test |
| Model provides label (recall) | 103 | 24.7% of required |
| Model avoids label | 314 | 75.3% of required |
| of which: correct fraction | 261 | 83.1% of avoided |
| of which: wrong fraction | 53 | 16.9% of avoided |
| Global MIR-E cost | pp | |
| Reasoning Stage | Success Rate |
|---|---|
| (Heirs correct) | 84.0% |
| (+ Shares correct) | 81.2% |
| (+ Adjustment) | 79.4% |
| All stages correct | 65.5% |