TL;DR
Current open-weight LLMs are remarkably confident—and remarkably wrong—when asked to recall specific religious texts. This study introduces a bilingual benchmark for Hadith recall and finds a 0% success rate across 30,000 trials, proving that even Arabic-specialized models cannot reliably quote scripture from memory without retrieval grounding.
What Problem Does This Paper Address?
As LLMs become ubiquitous, users increasingly treat them as "oracles" for religious knowledge. However, unlike general trivia where a paraphrase might suffice, religious scripture like the Hadith (recorded sayings and actions of the Prophet Muhammad) requires verbatim accuracy. A Hadith is a canonical unit of text; any deviation isn't just a "typo," it’s a fabrication—effectively putting invented words into the mouth of a prophet.
The authors identify a critical gap: while we have benchmarks for general factuality and coding, we lack rigorous probes for high-stakes, verifiable religious text recall. They set out to determine if "parametric memory" (what the model "knows" internally) is a safe substitute for a vetted digital corpus.
Methods
The researchers developed a systematic pipeline to test five popular open-weight models: Mistral-7B, Gemma3-4B, Jais-7B (Arabic-adapted), ALLaM-7B (Arabic-centric), and Phi4-mini-3.8B.
The evaluation process, visualized in Figure 1, follows these steps:
- Prompting: Models are given a bare bibliographic reference (e.g., "Sahih Bukhari, Hadith 1087") and told to provide the exact text in either English or Arabic. No external search or context is allowed.
- Filtering: Responses are checked for "refusals" (e.g., "I don't know").
- Dual-Axis Scoring:
- Lexical Fidelity: Measured via BLEU scores to check for word-for-word matches.
- Semantic Fidelity: Measured via multilingual cosine similarity to see if the model at least got the "theme" right.
- Classification: Responses are sorted into five categories: Correct, Partial, Theme-only, Hallucinated, or Refused.
Datasets
The study utilizes the Hadith Dataset (available on Kaggle), which contains parallel Arabic and English texts for the six canonical Sunni collections (kutub al-sittah):
- Sahih al-Bukhari
- Sahih Muslim
- Sunan Abi Da’ud
- Jami’ al-Tirmidhi
- Sunan an-Nasa’i
- Sunan Ibn Majah
The authors sampled 500 Hadith from each collection, resulting in a 3,000-reference evaluation set per language.
Key Insights and Ideas
- Fluency is not Memorization: One might expect Arabic-centric models like Jais or ALLaM to perform better on Arabic scripture. They don't. In fact, Arabic responses were often worse than English ones. This suggests that being "good at a language" does not mean the model has successfully memorized the long-tail of specific texts within that language.
- The Danger of "Silent Fabrications": Models rarely admitted they didn't know the answer (refusal rates were <0.7%). Instead, they generated "convincing forgeries"—fluent, authoritative-sounding texts that were entirely made up.
- Near-Zero Lexical Fidelity: Across the board, BLEU scores for Arabic were between 0.006 and 0.024. For context, a perfect match is 1.0. The models aren't just missing a few words; they are failing to reproduce the source text entirely.
Key Results
The headline result is stark: 0% of the 30,000 responses achieved the "Correct" classification.
Even the Arabic-specialized models failed to approach the correctness threshold. As shown in Figure 5, Jais-7B's performance is dominated by "Partial" and "Hallucinated" labels, with "Correct" remaining at zero across all six collections.
- Phi4-mini-3.8B showed the highest hallucination rates in English, exceeding 70% in some collections.
- Mistral and Gemma fared slightly better on semantic similarity (getting the "theme" right) but still failed the lexical accuracy test.
Limitations and Future Work
- Model Scale: The study focused on "locally-deployable" models (3.8B to 8B parameters). It remains to be seen if massive closed-source models like GPT-4o or Claude 3.5 Sonnet would perform better, though the authors suspect the "long-tail" nature of numbered Hadith remains a challenge for all parametric memories.
- Zero-Shot vs. RAG: This study was a "stress test" for internal memory. The authors strongly conclude that any real-world application for Islamic scholarship must use Retrieval-Augmented Generation (RAG) to ground the model in a verified database.
- Dataset Noise: While the source dataset was cleaned, the authors note that some residual noise exists, though not enough to explain the total failure of the models to recall the text.