Elamur Research⌕
☰
home / papers / 2025 / ThinkDrill at IslamicEval 2025 Shared Task: LLM Hybrid Approach for Qur'an and Hadith Question Answering

ThinkDrill at IslamicEval 2025 Shared Task: LLM Hybrid Approach for Qur'an and Hadith Question Answering

Paper · 2025 · Eman Elrefai, Toka Khaled and Ahmed Soliman

Summary

The paper addresses Subtask 2 of IslamicEval 2025. Given a question in Modern Standard Arabic, a system must rank answer-bearing passages drawn from the whole Qur'an (1,266 QPC passages) and Sahih Bukhari (2,254 hadiths), or report that no answer exists. Earlier Qur'an QA editions supplied a gold passage and covered only the Qur'an; this task removes the passage and adds hadith.

The team built three retrieval pipelines and merged them:

  • a multilingual-e5-base retriever fine-tuned with triplet loss and refined by an MS MARCO cross-encoder reranker;
  • GPT-4 keyword extraction followed by RapidFuzz fuzzy matching;
  • Claude Sonnet 4 prompted to return exact verses or hadiths, or -1.

To expand the training data, they added hadith answers by hand and aligned the external HAQA dataset to Bukhari narrations. Pipeline scores were normalized and combined by weighted averaging. The submission reached MAP@10 of 0.2296 on test (0.32 on dev). The hybrid outperformed each individual pipeline, which suggests that dense, lexical and LLM signals complement each other when retrieving religious texts.

Key points

  • Test scores: MAP@10 0.2296, MAP_Q@5 0.2623, MAP_H@5 0.215. On dev, MAP@10 was 0.32 and MAP_Q@5 was 0.35.
  • Dev ablation (MAP@10): embedding only 0.15, keyword only 0.08, LLM only 0.12, hybrid 0.173. The paper's reporting is inconsistent: the conclusion also calls 0.173 the final benchmark score.
  • Models: intfloat/multilingual-e5-base was fine-tuned for 2 epochs with batch size 16, learning rate 2e-5, 100 warm-up steps and cosine-distance triplet loss. The reranker was cross-encoder/ms-marco-MiniLM-L-6-v2.
  • Preprocessing:
    • Arabic cleanup removed diacritics, tatweel and honorifics and normalized letter variants; stopwords were kept.
    • Long passages were split into 150-character chunks with a 30-character overlap.
    • Fuzzy matching used a partial-ratio threshold of 70%.
  • Coverage and no-answer detection: the test set had 71 questions, 17 of them unanswerable, and coverage was 76.1%. A top-score threshold of 0.35 flagged no-answer questions with precision 0.65 and recall 0.47.

Interesting ideas

  • I1. Unanswerable questions enter triplet training with a "no answer" placeholder as the positive and every real passage as a negative, so abstention is learned directly rather than bolted on afterwards.
  • I2. An external QA set (HAQA) was made usable by normalizing both sides, fuzzy-aligning its answers to the target corpus and keeping only matches above a similarity threshold.
  • I3. The LLM is restricted to quoting exact source text or answering -1, which makes its output checkable by string lookup and limits hallucinated content.
  • I4. Each component was scored alone on dev and then compared with the weighted combination, which shows exactly how much every signal contributes.
  • I5. The error analysis separates lexical overlap with a different intent (prayer times vs. prayer importance) from genuine relevance.

For Mova

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

  • I1 (answer): fable and school-test readers could treat "not stated in the text" as an explicit candidate that competes with evidence-backed answers under a calibrated threshold.
  • I2 (learn): silver data could be built the same way by aligning outside resources to our corpora, keeping only high-confidence alignments and checking a sample with negative controls.
  • I3 (learn): LLM teacher tiers could be required to return verbatim spans from the input, so each label can be verified mechanically against the text before it is accepted.
  • I4 (learn): when merging witness parsers or teachers, report each one's standalone score beside the ensemble so a weak witness is visible rather than hidden in the average.
  • I5 (frames): question frames should mark the asked-about role or aspect, so that answers sharing words but filling a different frame slot are rejected.

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

 Institutions

 Fields, topics and concepts

Cite

Cite as Eman Elrefai, Toka Khaled and Ahmed Soliman. 2025. ThinkDrill at IslamicEval 2025 Shared Task: LLM Hybrid Approach for Qur'an and Hadith Question Answering. 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.72

@inproceedings{elrefai2025thinkdrill,
  title = {{ThinkDrill at IslamicEval 2025 Shared Task: LLM Hybrid Approach for Qur'an and Hadith Question Answering}},
  author = {Eman Elrefai, Toka Khaled and Ahmed Soliman},
  booktitle = {Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
  year = {2025},
  doi = {10.18653/v1/2025.arabicnlp-sharedtasks.72},
  url = {https://doi.org/10.18653/v1/2025.arabicnlp-sharedtasks.72}
}

References

14 references, 8 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Mohammed Alaa Elkomy and Amany Sarhan. 2024. Tce at qur’an qa 2023 shared task: Low resource enhanced transformer-based ensemble approach for qur’anic qa. arXiv preprint arXiv:2401.13060. ↗
  2. Mahmoud Fawzi, Walid Magdy, and Björn Ross. 2025. ’the prophet said so!’: On exploring hadith presence on arabic social media. Proceedings of the ACM on Human-Computer Interaction, 9(2):1–23. ↗
  3. Ahsan Mahmood, Hikmat Ullah Khan, Fawaz K Alar-faj, Muhammad Ramzan, and Mahwish Ilyas. 2018. A multilingual datasets repository of the hadith content. International Journal of Advanced Computer Science and Applications, 9(2):165–172. ↗
  4. Ghazaleh Mahmoudi, Yeganeh Morshedzadeh, and Sauleh Eetemadi. 2023. Gym at quran qa 2023 shared task: Multi-task transfer learning for quranic passage retrieval and question answering with large language models. In Proceedings of ArabicNLP 2023, pages 714–719.
  5. Rana Malhas, Watheq Mansour, and Tamer Elsayed. 2022. find
  6. Qur’an QA 2022: Overview of the first shared task on question answering over the holy qur’an. In Proceedinsg of the 5th Workshop on Open-Source Arabic Corpora and Processing Tools with Shared Tasks on Qur’an QA and Fine-Grained Hate Speech Detection, pages 79–87, Marseille, France. European Language Resources Association.
  7. Rana Malhas, Watheq Mansour, and Tamer Elsayed. 2023. find
  8. Qur’an QA 2023 shared task: Overview of passage retrieval and reading comprehension tasks over the holy qur’an. In Proceedings of ArabicNLP 2023, pages 690–701, Singapore (Hybrid). Association for Computational Linguistics.
  9. 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 (Arabic-NLP 2025), Suzhou, China. Association for Computational Linguistics. Co-located with EMNLP 2025, November 5–9.
  10. Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. arXiv preprint arXiv:1908.10084. ↗
  11. Ahmed Sleem, Eman Mohammed lotfy Elrefai, Marwa Mohammed Matar, and Haq Nawaz. 2022. Stars at quran qa 2022: Building automatic extractive question answering systems for the holy quran with transformer models and releasing a new dataset. In Proceedinsg of the 5th Workshop on Open-Source Arabic Corpora and Processing Tools with Shared Tasks on Qur’an QA and Fine-Grained Hate Speech Detection, pages 146–153.
  12. Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Multilingual e5 text embeddings: A technical report. arXiv preprint arXiv:2402.05672. ↗
  13. Aoshuang Ye, Lina Wang, Lei Zhao, Jianpeng Ke, Wenqi Wang, and Qinliang Liu. 2021. Rapidfuzz: Accelerating fuzzing via generative adversarial networks. Neurocomputing, 460:195–204. ↗
  14. Nagamani Yeruva, Sarada Venna, Hemalatha Indukuri, and Mounika Marreddy. 2022. Triplet loss based siamese networks for automatic short answer grading. In Proceedings of the 14th annual meeting of the forum for information retrieval evaluation, pages 60–64. find

Updated

↑ back to top

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