Measuring Spiritual Values and Bias of Large Language Models

Songyuan Liu, Ziyang Zhang, Runze Yan, Wei Wu, Carl Yang, Jiaying Lu · DOI

Introduction

While the political and gender biases of Large Language Models (LLMs) have been extensively documented, their spiritual and religious dimensions remain largely unexplored. As these models are trained on vast swaths of internet data—a medium saturated with religious discourse and historical conflict—they inevitably inherit complex value systems. This research investigates whether LLMs possess measurable spiritual "personalities," how these values influence downstream tasks like hate speech detection, and whether intentional exposure to religious texts can mitigate bias.

Methodology

To assess the spiritual inclinations of LLMs, the researchers treated the models as participants in social science surveys. They employed two primary frameworks:

  1. SP-Typology (Pew Research Center): Categorizes individuals into seven groups based on beliefs and practices, ranging from "Sunday Stalwarts" to "Solidly Secular."
  2. SP-10Axes: A granular metric measuring ten religious value axes, such as Islamophilic vs. Islamophobic or Atheistic vs. Religious.
The SP-10Axes framework provides a granular measurement of religious values across ten distinct dimensions for various models.

The evaluation utilized System Prompting with In-context Learning (ICL) to elicit responses from a diverse set of models, including GPT-4-turbo, Llama-3, and RWKV-6. Furthermore, the study explored the impact of unsupervised continued pre-training on GPT-2 using major religious canons (e.g., the Bible, Quran, and Vedas) to observe changes in sensitivity toward religious hate speech.

Spiritual Profiles of LLMs

Contrary to the common assumption that AI is inherently secular, the study found that most models exhibit distinct religious inclinations. Most models were classified as "Highly Religious" or "Somewhat Religious." For instance, RWKV-6 aligned with the "Sunday Stalwart" category, while Llama-3 was identified as a "God-and-Country Believer." GPT-4-turbo stood out as the primary outlier, categorized as "Solidly Secular."

Classification of various LLMs into the SP-Typology categories, revealing a range of spiritual personalities from highly religious to secular.

The research also noted a moderate correlation between the SP-Typology and SP-10Axes assessments, suggesting that these spiritual profiles are relatively stable and consistent across different testing formats rather than random artifacts of prompting.

Impact on Hate Speech Detection

A significant finding was the relationship between a model's "religiosity" and its performance in identifying religious hate speech. Models with higher spiritual scores generally demonstrated superior performance in detecting hate speech across all religious categories. For example, Llama-3 achieved an F1-score of 74.76%, whereas Vicuna (a "Religion Resister") managed only 9.19%.

The study also demonstrated that pre-training models on religious literature significantly boosts their fairness and accuracy. Training GPT-2 on the Vedas, for instance, improved its overall F1-score for hate speech detection from 53.30% to 67.14%. This suggests that "spiritual bias" in this context may actually reflect a deeper semantic understanding of religious sensitivities, enabling better detection of harmful content.

Conclusion and Future Work

This research highlights that LLMs are not value-neutral; they possess inherited spiritual values that significantly impact their utility in sensitive social tasks. While pre-training on religious texts offers a path toward more nuanced and fair models, several challenges remain. Future work should address the limitations of applying human-centric surveys to AI and explore automated prompt generation to further minimize evaluation bias. Understanding these "spiritual personalities" is a crucial step toward developing more responsible and culturally aware AI systems.

Summary updated

BibTeX
@inproceedings{liu2025measuring,
  author = {Songyuan Liu and Ziyang Zhang and Runze Yan and Wei Wu and Carl Yang and Jiaying Lu},
  title = {{Measuring Spiritual Values and Bias of Large Language Models}},
  booktitle = {SciSocLLM @ KDD},
  year = {2025},
  url = {https://openreview.net/forum?id=fIaoqJ5UCc},
}
Figure