As Large Language Models (LLMs) becomes a popular source for religious knowledge, it is important to know if it treats different groups fairly. This study is the first to measure how LLMs handle the differences between the two main sects of Islam: Sunni and Shia. We present a test called SectEval, available in both English and Hindi, consisting of 88 questions, to check the bias-ness of 15 top LLM models, both proprietary and open-weights. Our results show a major inconsistency based on language. In English, many powerful models DeepSeek-v3 and GPT-4o often favored Shia answers. However, when asked the exact same questions in Hindi, these models switched to favoring Sunni answers. This means a user could get completely different religious advice just by changing languages. We also looked at how models react to location. Advanced models Claude-3.5 changed their answers to match the user's country-giving Shia answers to a user from Iran and Sunni answers to a user from Saudi Arabia. In contrast, smaller models (especially in Hindi) ignored the user's location and stuck to a Sunni viewpoint. These findings show that AI is not neutral; its religious ``truth'' changes depending on the language you speak and the country you claim to be from. The data set is available at https://github.com/secteval/SectEval/
Figures & tables
Figure 1: Sectarian Theological Alignment of LLMs on Islamic Knowledge Questions (Hindi)
Figure 2: Sectarian Theological Alignment of LLMs on Islamic Knowledge Questions (English)
Figure 3: Model responses across regional contexts and languages
Model
Shia (%)
Sunni (%)
Small (¡ 8B)
Llama3.2-3B
43
57
Gemma-3-4b
43
57
Qwen2.5-7B
51.6
48.4
Medium (8B - 20B)
Gemma-2-9B
44.4
55.6
Table 1: Model performance is analyzed within each size category for english Questions, and the higher value between Sunni- and Shia-aligned responses is highlighted in bold .
Topic
Language
Shia (%)
Sunni (%)
History and Faith
English
62.2
37.8
Hindi
58.1
41.9
Imamat and Khilafat
English
53.8
46.2
Hindi
55.4
44.6
Quran, Hadith, Sahaba
English
40.6
59.4
Hindi
41.3
58.7
Table 2: This table presents the average bias distribution across 15 LLMs for specific Islamic topics. It highlights the shift in alignment between Shia and Sunni perspectives depending on the language of the query. Bold values indicate the dominant alignment.
Model Name
English (%)
Hindi (%)
Shia
Sunni
Shia
Sunni
Claude-3.5-Sonnet
38.2
61.8
34.8
65.2
DeepSeek-v3
43.8
56.2
29.2
70.8
Gemma-2-27B
35.2
64.8
37.5
62.5
Gemma-2-9B
34.1
65.9
38.1
61.9
Gemma-3-12B
31.5
68.5
38.2
61.8
Table 3: This table compares the percentage of Shia vs. Sunni aligned responses across 15 different LLMs. Bold values indicate the dominant alignment for that specific model and language.
Figure 4: Major Branches of Islam and their Associated Schools of Thought. Source: Wikipedia, Islamic schools and branches .
Questions in Hindi
Type
Question
Option (A)
Option (B)
Reference
\writehi इमामत व ख़िलाफ़त
\writehi पैग़म्बर मुहम्मद के बाद मुस्लिम समाज के नेतृत्व का अधिकार किसे माना जाता है?
\writehi इमाम अली और उनके वंशज
\writehi अबुबक्र / उम्मत की सहमति से चुने गए ख़लीफ़ा
\writehi शिया: अल-काफी, खंड 1, हदीस 1–5
\writehi नमाज़ व इबादत
\writehi इस्लामिक परंपरा में किसी मुस्लिम व्यक्ति द्वारा नमाज़ पढ़ते समय हाथों की सही स्थिति क्या होती है?
Department of Computer Science, Informatics Institute, Istanbul Technical University, ˙Istanbul, Türkiye · Department of Computer Science and Engineering, Jashore University of Science and Technology, Bangladesh.