CIS-RG at QIAS 2025 Shared Task: Approaches for Enhancing Performance of LLM on Islamic Legal Reasoning and its Mathematical Calculations
Paper · 2025 · Farouk Zaki, Osama
Summary
This system paper for the QIAS 2025 shared task examines how well LLMs handle Islamic inheritance law (ʿilm al-mawārīth). The task is hard because it combines legal reasoning with multi-step fraction arithmetic. A model must identify eligible and blocked heirs, apply fixed-share rules (farāʾiḍ), handle residuary heirs, and then adjust the resulting fractions. The authors fine-tuned four models (Fanar, Llama, Gemini, Mistral). Their small training sets of 100 and 200 questions were split into two groups: cases with arithmetic and cases without. They also drafted a step-by-step Chain of Thought (CoT) template for few-shot prompting, but the CoT results were still incomplete at the time of writing. On the unlabeled 1,000-question multiple-choice test set, the commercial models stayed above 90%, while the open models reached only the mid-70s. A qualitative analysis of four test items suggests that how a question is worded matters more than its difficulty label. The paper also points out weaknesses of the multiple-choice format and argues for neuro-symbolic or agentic approaches, with human legal verification of the outputs.
Key points
- The test data consists of 1,000 unlabeled MCQs, each with six options (A–F), covering inheritance scenarios. The setup follows the earlier benchmark studies by Bouchekif (2024, 2025).
- The fine-tuned open models scored 76% (Fanar), 74% (Mistral) and 73% (LLaMA). Gemini 2.5 and o3 exceeded 90%.
- The fine-tuning subsets had 100 and 200 questions, divided into "no calculation" and "requires calculation" clusters.
- The CoT template walks through six steps:
- list the heir types;
- mark the fixed-share heirs;
- mark the non-fixed (residuary) heirs;
- mark the blocked heirs;
- draw the conclusion;
- count the heirs in each type.
- The authors deliberately placed two identically worded options (B and E) in one question. Three models failed to notice and answered E. Labelling questions as beginner or advanced showed no clear effect on results.
Interesting ideas
- I1. Break a domain calculation into a fixed checklist: first enumerate the participants, then sort them into fixed-share, remainder-taking and excluded groups, and only then do the arithmetic. This separates comprehension errors from calculation errors.
- I2. Plant a known flaw in a test item, such as two options with exactly the same text, and check whether the system notices. This works as a cheap negative control for shallow pattern matching.
- I3. Group evaluation and training items by the kind of difficulty (logical reasoning versus numeric computation) rather than by a nominal level, since the level label did not predict errors here.
- I4. The paper warns that multiple-choice items whose justification text is shared across several options make the gold answer ambiguous. Explanations should therefore be tied uniquely to the answer they support.
- I5. Residuary heirs are ranked by an explicit rule order: first by the direction of kinship, then by its degree, then by its strength. This is a deterministic precedence that a symbolic layer can apply exactly, which matches the authors' case for neuro-symbolic solving.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (answer): the maths word-problem reader could follow the same staged order over world entities, so every step can be inspected and blamed separately.
- I2 (learn): add duplicated or contradictory distractors to evaluation sets, so a reader that picks an answer without truly discriminating between options gets flagged.
- I3 (learn): stratify scores into "relational/logic" and "arithmetic" buckets to see which pipeline stage is actually failing.
- I4 (answer): when building school-test or fable QA sets, check that each option's supporting evidence is distinct, so explanation-based grading stays meaningful.
- I5 (world): encode transfer and holding rules as ordered precedence criteria in compiled knowledge, so share distributions in a text world are computed by rules rather than guessed.
Fields, topics and concepts
📚 Shelves 6The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 worksSocial Sciences · 1,954 worksPolitical Science and International Relations · 206 works
🧭 Topics 2Research subjects and languages the work is about.Reasoning · 1,685 worksLegal AI · 150 works
Cite
Cite as Farouk Zaki, Osama. 2025. CIS-RG at QIAS 2025 Shared Task: Approaches for Enhancing Performance of LLM on Islamic Legal Reasoning and its Mathematical Calculations. Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks.
@inproceedings{osama2025cis,
title = {{CIS-RG at QIAS 2025 Shared Task: Approaches for Enhancing Performance of LLM on Islamic Legal Reasoning and its Mathematical Calculations}},
author = {Farouk Zaki, Osama},
booktitle = {Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
year = {2025},
doi = {10.18653/v1/2025.arabicnlp-sharedtasks.129},
url = {https://doi.org/10.18653/v1/2025.arabicnlp-sharedtasks.129}
}References
- A bdessalam Bouchekif, Samer Rashwani, Heba Sbahi, Shahd Gaben, Mutaz Al-Khatib, and Mohammed Ghaly. 2025. Assessing Large Language Models on Islamic Legal Reasoning: Evidence from Inheritance Law Evaluation, Proceedings of The Third Arabic Natural Language Processing Conference, Suzhou, China. Association for Computational Linguistics.
- Abdessalam Bouchekif and Samer Rashwani and Emad Mohamed and Mutaz Al-Khatib and Heba Sbahi and Shahd Gaben and Wajdi Zaghouani and Aiman Erbad and Mohammed Ghaly. 2025. QIAS 2025: Overview of the Shared Task on Islamic Inheritance Reasoning and Knowledge Assessment. Proceedings of The Third Arabic Natural Language Processing Conference, ArabicNLP 2025, Suzhou, China, November 5–9, 2025. Association for Computational Linguistics.
- Osama Zaki. 2024. Coupling Machine Learning with Ontology for Robotics Applications. Robotics. arXiv:2407.02500. ↗
- Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. 2023. A survey of large language models. arXiv preprint arXiv:2303.18223. ↗
- Jonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella, Taco Cohen, and Gabriel Syn-naeve. 2024. Rlef: Grounding code llms in execution feedback with reinforcement learning. arXiv preprint arXiv:2410.02089. ↗
- Liangchen Luo, Yinxiao Liu, Rosanne Liu, Samrat Phatale, Harsh Lara, Yunxuan Li, Lei Shu, Yun Zhu, Lei Meng, Jiao Sun, et al. 2024. Improve mathematical reasoning in language models by automated process supervision. arXiv preprint arXiv:2406.06592. ↗
- Sebastian Raschka. 2025. Understanding Reasoning LLMs. Ahead AI. https://magazine.sebastianraschka.com/p/understa nding-reasoning-llms Chuanneng Sun, Songjun Huang, and Dario Pompili. 2024. Retrieval-augmented hierarchical in-context reinforcement learning and hindsight modular reflections for task planning with llms.2024. ↗
- OpenAI. 2024. Learning to reason with llms. find
- Taylor Webb, Keith J Holyoak, and Hongjing Lu. 2023. Emergent analogical reasoning in large language models. Nature Human Behaviour, 7(9):1526–1541. ↗
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824– 24837. Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/zaki-2025-cis-rg-qias-2025-shared/