Abstract: Quantifying bias in Large Language Models (LLMs) is challenging due to the subjective nature of "neutrality." This paper introduces the Relative Bias framework, which measures bias as a statistical deviation from a consensus of peer models. By utilizing task-aware sentence embeddings and LLM-based evaluation, the framework identifies domain-specific alignments and corporate evasiveness. Case studies on DeepSeek R1 and Meta AI demonstrate the framework's ability to detect significant behavioral shifts across different deployment environments and sensitive topics.
Introduction
Quantifying bias in Large Language Models (LLMs) is notoriously difficult because "bias" is a subjective, moving target. What one culture considers a neutral response, another might see as censored or ideologically skewed. Traditional benchmarks often rely on static datasets that cannot keep up with the rapid release of new models or the nuanced ways developers "steer" model behavior through fine-tuning and system-level filters.
Researchers at the University of Waterloo propose a pragmatic shift: moving from asking "What is absolute bias?" to "How much does this model deviate from its peers?" They argue that while a universal definition of "unbiased" may be elusive, we can mathematically define Relative Bias as a significant statistical deviation from the normative behavior of a diverse set of peer models.
The Relative Bias Framework
The framework consists of three main stages designed to provide a scalable and objective way to identify "hidden" alignments:
- Question Generation: A high-capability model (e.g., GPT-4o) generates "bias-inducing" questions across specific domains, such as political sensitivity or corporate censorship.
- Dual-Scoring Pipeline:
- Embedding Transformation: Using the INSTRUCTOR model—an instruction-tuned embedding model—LLM responses are projected into a vector space tailored to the specific bias topic. The cosine distance between the target model and the baseline average provides a deterministic, fast, and reproducible bias score.
- LLM-as-a-Judge: As a cross-validation step, frontier models score responses on a fine-grained 1–10 rubric (from "fully neutral" to "full censorship/disinformation").
- Statistical Validation: The framework applies Two One-Sided Tests (TOST) for equivalence. This ensures that a model is only flagged as "relatively biased" if its deviation is statistically significant and falls outside a data-driven "equivalence margin" derived from baseline variability.
Experimental Probes
The researchers curated three case-study probes to test the framework:
- China-Sensitive Topics: 100 questions across 10 categories (e.g., Cultural Revolution, border disputes) to test for geopolitical alignment.
- US-Sensitive Topics: 100 questions across 10 categories (e.g., gun violence, healthcare) to serve as a control.
- Meta-Sensitive Topics: Questions across 5 categories (e.g., privacy violations, youth manipulation) to test for corporate-specific evasiveness.
The baseline "consensus" was formed by 8 state-of-the-art models, including Claude 3.7 Sonnet, Llama 4 Maverick, and Mistral Large.
Key Results and Analysis
The "Deployment Gap"
A striking finding was the difference between the same model in different environments. The version of DeepSeek R1 hosted on its own website showed significant relative bias on China-sensitive topics (scoring ~7.01 against a baseline of ~2.60), while the version hosted on AWS Bedrock did not. This suggests that "bias" is often a property of deployment-time filters and system prompts rather than the base weights alone.
Corporate Evasiveness
The Meta AI chatbot (built on Llama 4) showed a clear "evasiveness" bias on questions regarding Meta’s own corporate policies, scoring ~5.22 against a baseline of ~3.11. Interestingly, the open-source version of Llama 4 Maverick did not show this bias, highlighting how post-training alignment can introduce corporate-specific "blind spots."
Consensus as a Proxy for Truth
By treating the average behavior of multiple credible models as the "norm," the framework bypasses the need for a human-defined "perfect" answer. The high correlation between fast embedding-based scores and expensive LLM-judge scores suggests that automated "bias smoke detectors" can be built efficiently without constant API calls to frontier models.
Limitations and Future Work
The authors acknowledge that results are dependent on the choice of baseline models; a Western-centric baseline will naturally flag an Eastern-centric model as biased. Furthermore, the framework only detects bias in the specific areas it is prompted to probe. Future work suggests integrating the embedding-based bias score as a penalty term in a loss function during fine-tuning, allowing developers to mathematically steer models toward a neutral consensus during training.
Summary updated