TL;DR
Researchers have introduced the first multilingual, symbolic benchmark designed to test LLMs on the complex, rule-bound logic of Islamic finance (Shariah). While frontier models like GPT-5.1 lead the pack, the study reveals a startling "Boolean collapse" where models perform worse than a coin flip at determining whether a financial contract is actually Shariah-compliant.
What Problem Does This Paper Address?
The Islamic finance industry manages over $4 trillion in assets, yet it remains a "blind spot" for AI evaluation. Unlike conventional finance, which is often driven by interest rates and corporate disclosures, Islamic finance is governed by strict jurisprudential rules—such as the prohibition of interest (ribā) and excessive uncertainty (gharar), and specific formulas for almsgiving (zakāt) and inheritance (farā’id).
Existing financial NLP benchmarks are almost exclusively English-centric and anchored in Western, interest-bearing instruments. This paper addresses the lack of a reproducible, multilingual framework to verify if LLMs can actually reason through these religious-legal constraints rather than just translating terms or performing generic arithmetic.
Methods
The authors employ a symbolic template approach to prevent "benchmark contamination" (where models simply memorize static questions from their training data).
- Expert-Validated Templates: They created 129 templates grounded in AAOIFI Shariah standards. Each template includes a natural-language question with placeholders and a corresponding executable Python verifier.
- Stratified Sampling: By plugging different values into these templates, they generated 38,700 unique instances. This allows them to test "edge cases," such as wealth levels just above or below the threshold for paying Zakat (nisāb).
- Cross-Lingual Realization: The templates were translated into six languages (English, Arabic, Bahasa Indonesia, Urdu, Hindi, and Kazakh) and reviewed by specialists to ensure the legal nuances survived the translation.
- Evaluation Metric: They used Final Answer Correctness (FAC), which allows for a 5% margin of error on numerical tasks, alongside Exact Match scoring.
Datasets
The paper introduces a new, primary benchmark dataset:
- 129 Expert Templates covering six categories: Zakat (50), Inheritance (31), Sukuk/ETB pricing (21), Leasing (16), Construction contracts (9), and Cost-plus financing (2).
- 38,700 Total Instances across six languages.
- Comparison Models: The researchers evaluated seven models, including frontier proprietary models (GPT-5.1, Claude 4.5), large open-weight models (DeepSeek-V3.2), and math-specialized models (WizardMath, MetaMath).
Key Insights and Ideas
- Jurisprudence vs. Arithmetic: A model can be a "math genius" and still fail Shariah reasoning. For example, many models failed because they assumed a year has 365 days (Gregorian), whereas Zakat calculations require the Hijri lunar year (354–355 days).
- The "Boolean Collapse": On questions requiring a simple True/False answer regarding contract validity, models performed at a mean of 23.4%—significantly worse than random chance (50%). This suggests that while models can crunch numbers, they struggle to synthesize multiple legal conditions (like the simultaneous absence of interest and uncertainty).
- The Imprecision Gap: There is a massive gap (35–43 percentage points) between "approximately correct" (FAC) and "exactly correct" answers. In a legal/religious context where a 5% error in inheritance or Zakat is unacceptable, this highlights a major hurdle for deploying LLMs as financial advisors.
- Math as a Bridge: The performance gap between English and low-resource languages like Kazakh was smaller here than on general knowledge benchmarks. This suggests that the underlying "language of math" helps models maintain some consistency across different translations.
Key Results
- Top Performers: GPT-5.1 led with 61.8% FAC, followed closely by Claude Sonnet 4.5 (60.9%) and DeepSeek-V3.2 (58.4%).
- Math Specialization Matters: Small, math-specialized models (7B parameters) outperformed general-purpose models of the same size by up to 3.3 percentage points, though they still couldn't catch the frontier "tier-one" models.
- Topic Difficulty: Zakat was the easiest category for models (75.9% FAC) due to its proportional arithmetic. Murabahah (cost-plus financing) was the hardest (26.1%) because it requires complex structural reasoning about contract types rather than just multiplication.
Limitations and Future Work
- Legal Diversity: The benchmark currently only encodes rules from the AAOIFI standard. It does not yet account for variations between different schools of Islamic jurisprudence (madhhabs).
- Qualitative Reasoning: The coverage for certain contracts like murabahah is small because those problems are often qualitative (classification) rather than numerical.
- Prompting Strategies: This study focused on zero-shot performance. The authors note that few-shot prompting and Chain-of-Thought (CoT) reasoning remain open areas for exploration.
- Human Baseline: A formal independent human baseline (comparing LLM performance to that of human Shariah scholars) has been left for future research.
Summary updated