Relative Bias: A Comparative Framework for Quantifying Bias in LLMs
Alireza Arbabi, Florian Kerschbaum
TL;DR
Bias in LLMs is hard to quantify due to context dependence and rapid model development. The authors propose Relative Bias, a comparative framework that measures a target model's deviation from baselines within a domain using Embedding Transformation and LLM-as-a-Judge. They formalize equivalence testing via Two One-Sided Tests (TOST) to decide practical significance and validate on case studies including DeepSeek R1 and Meta/Llama 4, showing alignment between methods and deployment-induced biases. The framework enables scalable, black-box bias auditing and can inform bias mitigation during model deployment.
Abstract
The growing deployment of large language models (LLMs) has amplified concerns regarding their inherent biases, raising critical questions about their fairness, safety, and societal impact. However, quantifying LLM bias remains a fundamental challenge, complicated by the ambiguity of what "bias" entails. This challenge grows as new models emerge rapidly and gain widespread use, while introducing potential biases that have not been systematically assessed. In this paper, we propose the Relative Bias framework, a method designed to assess how an LLM's behavior deviates from other LLMs within a specified target domain. We introduce two complementary methodologies: (1) Embedding Transformation analysis, which captures relative bias patterns through sentence representations over the embedding space, and (2) LLM-as-a-Judge, which employs a language model to evaluate outputs comparatively. Applying our framework to several case studies on bias and alignment scenarios following by statistical tests for validation, we find strong alignment between the two scoring methods, offering a systematic, scalable, and statistically grounded approach for comparative bias analysis in LLMs.
