Elamur Research⌕
☰
home / papers / 2025 / HUMAIN at IslamicEval 2025 Shared Task 1: A Three-Stage LLM-Based Pipeline for Detecting and Correcting Hallucinations in Quran and Hadith

HUMAIN at IslamicEval 2025 Shared Task 1: A Three-Stage LLM-Based Pipeline for Detecting and Correcting Hallucinations in Quran and Hadith

Paper · 2025 · Arwa Omayrah, Sakhar Alkhereyf, Ahmed Abdelali et al.

Summary

The paper tackles a problem specific to religious content: LLMs often produce Quranic verses or Hadith that look plausible but are misquoted, misattributed or invented. HUMAIN entered all three parts of IslamicEval 2025 Subtask 1, which asks systems to find such quotations in Arabic LLM output, decide whether each one is authentic, and replace faulty ones with the genuine reference text.

Their pipeline has three stages:

  • Detection. An LLM is prompted, without fine-tuning, to rewrite the input with inline span markup in the TANL style. The markup is then aligned back to the original text.
  • Validation. Normalized spans are checked against the Quran and Hadith collections, using lookup indices and either fuzzy LCS matching or strict substring matching depending on the source.
  • Correction. Candidates pass through a cascade of exact matching, LCS similarity and a multilingual semantic reranker.

On the test set the system reached 87.2% F1 for detection, 86.1% accuracy for validation and 68.2% for correction. The authors conclude that finding quotations is largely solved, but fixing them is still hard. Corrections are most difficult when a hallucinated span shares its theme with the true text but uses very different wording.

Key points

  • Data. All data is Arabic. Each subtask has 50 dev and 104 test samples, scored on CodaBench. Validation and correction use the Quran and six Hadith books as reference corpora.
  • Detection models. The authors compared GPT-4o, ALLAM-34B, Command-R7B-Arabic, Fanar and Jais-13B, all prompted with few-shot examples and none fine-tuned.
    • Dev F1: GPT-4o 81.1, ALLAM-34B 77.2, Command-R7B-Arabic 48.1, Fanar 27.0, Jais-13B 12.9.
    • Test F1: GPT-4o 87.2, ALLAM-34B 78.1.
  • Best validation setting. Quran spans used LCS-based fuzzy matching with a 0.90 threshold, and Hadith spans used strict substring matching, giving 86.14% test accuracy. The authors explain the split by the corpora themselves: Quran text circulates in several valid script forms, such as Uthmani or with and without diacritics, while Hadith collections are formatted consistently.
  • Correction cascade. Candidates are first pre-filtered with a word inverted index plus a character 3-gram index. Up to 20 candidates are then reranked with bge-reranker-v2-m3, whose score is mixed with LCS similarity using weight α = 0.7. Thresholds are 0.85 for Quran and 0.75 for Hadith, and spans below threshold are labelled W (no valid correction).
  • Correction results. Test accuracy rose from 57.48% with LCS alone, to 65.91% with exact matching plus LCS, to 68.18% with the reranker added. Code and prompts are released on GitHub.

Interesting ideas

  • I1. Let the LLM reproduce the passage with inline tags, then recover exact source offsets with Needleman–Wunsch alignment, so the model's small edits to spacing or wording do not break the annotation
  • I2. Use schema-constrained JSON decoding (via vLLM) when the model is hosted locally, and fall back to markup plus alignment for API-only models
  • I3. Pick the matching strictness per reference source: fuzzy where several legitimate variants of a text exist, strict where the text is standardized
  • I4. Run a cheap-to-expensive cascade of exact match, then LCS, then a semantic reranker on the top candidates, blend lexical and semantic scores, and abstain with an explicit "uncorrectable" label below threshold
  • I5. Before checking a span, detect whether it actually contains several quoted units (from separators and verse numbers), verify each part separately, and combine the verdicts

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): LLM teacher tiers could return tagged text that is aligned back onto our own tokens, turning messy teacher output into usable silver labels.
  • I2 (learn): keeping both output modes behind one interface would let us swap teacher models without rewriting how their annotations are parsed.
  • I3 (world): when linking entity mentions to WordNet/Wikidata labels, we could tune tolerance per resource instead of using one global similarity cutoff.
  • I4 (answer): our readers could match answer options or retrieve supporting facts this way, with each step logged for explainability and an explicit "no answer" outcome instead of a weak guess.
  • I5 (frames): splitting compound quotations or reported speech into units before attributing them would make speech-act and source tracking more precise.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Fields, topics and concepts

Cite

Cite as Arwa Omayrah, Sakhar Alkhereyf, Ahmed Abdelali, Abdulmohsen Al-Thubaity, Jeril Kuriakose and Ibrahim AbdulMajeed. 2025. HUMAIN at IslamicEval 2025 Shared Task 1: A Three-Stage LLM-Based Pipeline for Detecting and Correcting Hallucinations in Quran and Hadith. Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.arabicnlp-sharedtasks.70

@inproceedings{omayrah2025humain,
  title = {{HUMAIN at IslamicEval 2025 Shared Task 1: A Three-Stage LLM-Based Pipeline for Detecting and Correcting Hallucinations in Quran and Hadith}},
  author = {Arwa Omayrah, Sakhar Alkhereyf, Ahmed Abdelali, Abdulmohsen Al-Thubaity, Jeril Kuriakose and Ibrahim AbdulMajeed},
  booktitle = {Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
  year = {2025},
  doi = {10.18653/v1/2025.arabicnlp-sharedtasks.70},
  url = {https://doi.org/10.18653/v1/2025.arabicnlp-sharedtasks.70}
}

References

10 references, 7 of them with a card of ours. ↗ leads to the work.

  1. Yazeed Alnumay, Alexandre Barbet, Anna Bialas, William Darling, Shaan Desai, Joan Devassy, Kyle Duffy, Stephanie Howe, Olivia Lasche, Justin Lee, and 1 others. 2025. Command R7B Arabic: A small, enterprise focused, multilingual, and culturally aware Arabic llm. arXiv preprint arXiv:2503.14603. ↗
  2. M Saiful Bari, Yazeed Alnumay, Norah A. Alzahrani, Nouf M. Alotaibi, Hisham A. Alyahya, Sultan Al-Rashed, Faisal A. Mirza, Shaykhah Z. Alsubaie, Hassan A. Alahmed, Ghadah Alabduljabbar, Raghad Alkhathran, Yousef Almushayqih, Raneem Alnajim, Salman Alsubaihi, Maryam Al Mansour, Majed Alrubaian, Ali Alammari, Zaki Alawami, Abdulmohsen Al-Thubaity, and 6 others. 2024. ALLaM: Large language models for Arabic and English. Preprint, arXiv:2407.15390. ↗
  3. Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2023. Bge m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. Preprint, arXiv:2309.07597. ↗
  4. Daniel S. Hirschberg. 1975. A linear space algorithm for computing maximal common subsequences. Communications of the ACM, 18(6):341–343. ↗
  5. Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles.
  6. Hamdy Mubarak, Rana Malhas, Watheq Mansour, Abubakr Mohamed, Mahmoud Fawzi, Majd Hawasly, Tamer Elsayed, Kareem Darwish, and Walid Magdy. 2025. IslamicEval 2025: The First Shared Task of Capturing LLMs Hallucination in Islamic Content. In Proceedings of the Third Arabic Natural Language Processing Conference (ArabicNLP 2025), Suzhou, China. Association for Computational Linguistics. Co-located with EMNLP 2025, November 5–9.
  7. Saul B Needleman and Christian D Wunsch. 1970. A general method applicable to the search for similarities in the amino acid sequence of two proteins. Journal of molecular biology, 48(3):443–453. ↗
  8. Giovanni Paolini, Ben Athiwaratkun, Jason Krone, Jie Ma, Alessandro Achille, Rishita Anubhai, Cicero Nogueira dos Santos, Bing Xiang, and Stefano Soatto. 2021. Structured prediction as translation between augmented natural languages. Preprint, arXiv:2101.05779. 1.1.1 ↗
  9. Neha Sengupta, Sunil Kumar Sahu, Bokang Jia, Satheesh Katipomu, Haonan Li, Fajri Koto, William Marshall, Gurpreet Gosal, Cynthia Liu, Zhiming Chen, and 1 others. 2023. Jais and Jais-chat: Arabic-centric foundation and instruction-tuned open generative large language models. arXiv preprint arXiv:2308.16149. ↗
  10. œlˆ , For input text ¢l˜ ¤ Cdq˜ Fanar Team, Ummar Abbas, Mohammad Shahmeer Ahmad, Firoj Alam, Enes Altinisik, Ehsannedin Asgari, Yazan Boshmaf, Sabri Boughorbel, Sanjay Chawla, Shammur Chowdhury, Fahim Dalvi, Kareem Darwish, Nadir Durrani, Mohamed Elfeky, Ahmed Elmagarmid, Mohamed Eltabakh, Masoomali Fatehkia, Anastasios Fragkopoulos, Maram Hasanain, and 23 others. 2025. Fanar: An Arabic-centric multimodal generative ai platform. Preprint, arXiv:2501.13944. ↗

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/omayrah-2025-humain-islamiceval-2025-shared-task/