LLMs exhibit social biases that can produce inaccurate and discriminatory inferences, posing risks in high-stakes applications. While prior work has made progress in measuring and mitigating bias, it largely focuses on final outputs of models, with limited understanding of the mechanisms that produce biased outcomes. Recent advances in LLM reasoning offers a new lens for investigating bias, yet the link between reasoning and bias remains poorly understood. Existing approaches focus primarily on final answer correctness or explicitly biased language, overlooking different behaviours in reasoning that can drive biased outcomes. We introduce BiasTrace, an annotation scheme for labelling reasoning behaviours in model-generated traces and linking them to biased outcomes. BiasTrace captures bias-specific behaviours (e.g., unsupported demographic assumptions) as well as general reasoning patterns that may implicitly contribute to bias (e.g. overthinking). We apply BiasTrace to reasoning traces in bias-sensitive contexts, scaled using validated LLM-as-a-judge methods, producing a large annotated dataset. Our analysis shows that biased outputs often stem from subtle reasoning behaviours rather than explicitly biased language, and that reasoning-level annotations improve bias detection. We further show that BiasTrace behaviours can be exploited for inference-time mitigation. These findings underscore the importance of examining a broader range of reasoning patterns to better understand bias in LLMs.
Figures & tables
Figure 1: Our framework applies the BiasTrace annotation scheme to link reasoning behaviours to biased outcomes i.e. biased final conclusion from the model. We present a redacted trace from Qwen3-8B on the BBQ dataset where the model should have selected answer option ‘unknown’ but instead chose the stereotypical answer. This example demonstrates how biased outputs can arise from different reasoning behaviours, such as overthinking, rather than only from the use of stereotypical language.
Label
Description
Example Behaviour
Bias-Specific
Group Assumption
Reasoning attributes behaviours, traits, or likelihoods to a social or demographic group (e.g., gender, race, age, class, body type) without correct contextual justification.
“ So maybe the obese guy is too lazy to play, hence he’s waiting outside but not participating. ”
Bias Acknowledgment
Reasoning recognises the possibility of bias, stereotyping, or unfair assumptions within its own thought process.
“ I should be careful not to assume based on stereotypes. ”
Meta-Cognitive
Meta Reflection
Reasoning reflects on or questions the intent, scope, or framing of the question.
“ Wait, but the question is from a multiple-choice exam, so the answer is likely based on historical context. ”
Out-of-Context Knowledge
Table 1: BiasTrace reasoning behaviour annotation scheme with description and examples. Labels are on a binary scale, indicating whether the reasoning exhibits the behaviour (1) or not (0). Full description of labels can be found in Appendix D.1 .
Figure 2: Odds ratio from Logistic Regression of BiasTrace reasoning behaviours and of guided prompt and ambiguous context. Significance is indicated with stars ( ∗p<0.05,∗∗p<0.01,∗∗∗p<0.001 ). Bias Acknowledgement was removed due to unstable convergence, details in Appendix F .
Figure 3: Pearson correlations between each reasoning evaluation method and biased outcomes on the BBQ dataset, comparing the BiasTrace prompt against baseline methods. For Baseline FRM, we report the absolute value. Baseline0–5 bin: binary version (>0 labelled as 1).
Score
r
5%
10%
20%
BiasTrace Prompt
0.38
0.36
0.52
0.62
Baseline 0-5
0.32
0.55
0.52
0.49
Baseline 0/1
0.30
0.27
0.35
0.57
Baseline FRM
0.01
0.09
0.09
0.17
Table 2: Bias score performance: correlation of reasoning bias score with per-sample fairness contribution (Pearson r ) and Top-K% (5, 10, 20%) overlap with fairness-critical samples.
Model
Method
Acc.
Bias ↓
Qwen3-1.7B
Single
85.45
3.64
Maj -All
90.00
2.55
Maj - BiasTrace
90.73
1.73
Qwen3-4B
Single
89.45
4.27
Maj -All
90.00
4.00
Maj - BiasTrace
91.18
2.55
Table 3: Bias mitigation results on BBQ dataset. Single selects the first sampled trace, Maj -All applies majority voting over all samples, and Maj - BiasTrace applies majority voting over BiasTrace -filtered unbiased samples. Accuracy and bias rates in percentages (%).
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
Model
Qwen3-8B
Qwen3-8B
Qwen3-14B
Qwen3-14B
GPT-OSS-120B
Prompt
Simple
Full
Simple
Full
Full, Simple
Hardware
2 GPUs
2 GPUs
2 GPUs
2 GPUs
4 GPUs
Batch size
16
32
32
16
32
Max generation length
2048
2048
2048
2048
2048
Temperature
0.6
0.6
0.6
0.6
1.0
Top-p
0.95
0.95
0.95
0.95
1.0
Appendix
Table B.1: Model inference configurations, including sampling parameters. Only Qwen3-8B, Qwen-14 were used for developing BiasTrace , and for predictive analysis. GPT-OSS-120B was used in subsequent analysis of improved reasoning evaluation.
Reasoning Behaviour
Initial κ
Final κ
Group Assumption
0.80
1.00
Bias Acknowledgement
0.25
1.00
Meta Reflection
0.00
1.00
Outside Demographic Knowledge
0.75
1.00
Outside Topical Knowledge
0.25
1.00
Unresolved
0.31
1.00
Appendix
Table E.1: Inter-annotator agreement (Cohen’s κ ) on the 12-sample pilot set before and after annotation guideline refinement.
Label
Acc.
F1
κ
Outside Demographic Knowledge
0.94
0.87
0.84
Group Assumption
0.84
0.75
0.65
Overthinking
0.83
0.87
0.64
Meta Reflection
0.84
0.75
0.64
Bias Acknowledgment
0.84
0.55
0.46
Outside Topicical Knowledge
0.64
0.53
0.30
Appendix
Table E.2: Performance of DeepSeek-Chat across BiasTrace annotation behaviours, sorted by Cohen’s κ . High κ indicates consistent agreement with ground truth of human labels. Results shown on full ground truth dataset.
Figure F.1: Bar chart showing the logistic regression coefficients for the effects of BiasTrace reasoning behaviours on biased outcomes (isolated effect of each reasoning behaviour when considered independently, or its net effect when accounting for the interactions). Statistical significance is indicated by asterisks ( ∗p<0.05 , ∗∗p<0.01 , ∗∗∗p<0.001 ). For net effects, significance shown is for coefficient of the corresponding interaction term.
Variable
Coef.
Std. Err.
p-value
Intercept
-6.667
0.260
< 0.001
Prompt & Input
Full prompt (vs. simple)
-2.087
0.406
< 0.001
Ambiguous
0.881
0.299
0.003
Qwen3-8B
0.245
0.085
0.004
Categories
Appendix
Table F.1: Full logistic regression results predicting biased outputs on the BBQ Dataset. Coefficients are reported in log-odds.
Figure G.1: Biased outcome and incorrect response rates for GPT-OSS-120B on the BBQ dataset, comparing low and medium reasoning effort settings across simple and guided prompt types
Figure G.2: Biased outcome rates for GPT-OSS-120B on the BBQ dataset across the different BBQ demographic categories, comparing low and medium reasoning effort settings across simple and guided prompt types.
Model
Qwen3-1.7B
Qwen3-4B
Llama3.2-3B-Instruct
Llama3-8B-Instruct
Prompt
Simple
Simple
Simple
Simple
Hardware
1 GPU
1 GPU
1 GPU
1 GPUs
Batch size
32
32
32
32
Max generation length
2048
2048
2048
2048
Temperature
0.6
0.6
0.6
0.6
Top-p
0.95
0.95
0.95
0.95
Appendix
Table H.1: Model inference configurations, including sampling parameters. The models presented were used for experiment on bias mitigation at inference time.
Figure H.1: Per-category effect of Maj - BiasTrace over Maj -All majority voting. Each row is a model; columns show accuracy change (left, Acc. Maj - BiasTrace − Acc. Maj -All) and bias-rate change (right, BiasRate. Maj - BiasTrace − BiasRate. Maj -All) for each BBQ social group category. Bars are coloured green when Maj - BiasTrace yields the desired outcome (higher accuracy on the left; lower bias on the right) and red otherwise.
Table I.1: Simple prompt for multiple choice reasoning on the BBQ dataset
Table I.2: Guided prompt for multiple choice reasoning on the BBQ dataset
Table I.3: Prompt for multiple choice reasoning on the COMPAS dataset
Table I.4: Baseline prompt for evaluating bias in model-generated reasoning, providing score of 0/1
Table I.5: Baseline prompt for evaluating bias in model-generated reasoning, providing score of 0-5
Table I.6: Prompt which incorporates BiasTrace reasoning behaviours to evaluate bias in model-generated reasoning, providing a 0/1 score of whether reasoning will result in a biased outcome
Table I.7: Redacted LLM-as-a-Judge prompt used for BiasTrace annotations; the full prompt is available in the codebase. Note that this prompt includes labels (unresolved and missing logic) that were excluded from the BiasTrace scheme and subsequent analysis due to unreliable judge annotations.
Table I.8: Prompt used to identify reasoning behaviours with Claude during development of the BiasTrace annotation scheme
Table I.9: Prompt used to group reasoning behaviours with Claude during development of the BiasTrace annotation scheme
Table I.10: Redacted Claude output showing categories of erroneous reasoning behaviours used to refine the BiasTrace annotation scheme.
Attribution theory explains how individuals interpret and attribute others' behavior in a social context by employing personal (dispositional) and impersonal (situational) causality. Large Language Models (LLMs), trained on human-generated corpora, may implicitly mimic this social attribution process in social contexts. However, the extent to which LLMs utilize these causal attributions in their reasoning remains underexplored. Although using reasoning paradigms, such as Chain-of-Thought (CoT), has shown promising results in various tasks, ignoring social attribution in reasoning could lead to biased responses by LLMs in social contexts. In this study, we investigate the impact of incorporating a user's goal as knowledge to infer dispositional causality and message context to infer situational causality on LLM performance. To this end, we introduce a scalable method to mitigate such biases by enriching the instruction prompts for LLMs with two prompt aids using social-attribution knowledge, based on the context and goal of a social media message. This method improves the model performance while reducing the social-attribution bias of the LLM in the reasoning on zero-shot classification tasks for behavior analytics applications. We empirically show the benefits of our method across two tasks-intent detection and theme detection on social media in the disaster domain-when considering the variability of disaster types and multiple languages of social media. Our experiments highlight the biases of three open-source LLMs: Llama3, Mistral, and Gemma, toward social attribution, and show the effectiveness of our mitigation strategies.
Hossein Salemi, Jitin Krishnan, Hemant Purohit
George Mason University, Fairfax, Virginia, United States
As large language models (LLMs) are adopted into frameworks that grant them the capacity to make real decisions, it is increasingly important to ensure that they are unbiased. In this paper, we argue that the predominant approach of simply removing existing biases from models is not enough. Using a paradigm from the psychology literature, we demonstrate that LLMs can spontaneously develop novel social biases about artificial demographic groups even when no inherent differences exist. These biases result in highly stratified task allocations, which are less fair than assignments by human participants and are exacerbated in newer and larger models. In humans, emergent biases like these have been shown to result from exploration-exploitation trade-offs, where the decision-maker explores too little, allowing early observations to strongly influence impressions about entire demographic groups. To alleviate this effect, we explore a series of interventions targeting model inputs, problem structure, and explicit steering. While most interventions have limited effect, explicitly incentivizing exploration robustly reduces stratification, highlighting the need for better multifaceted objectives to mitigate bias. These results reveal that LLMs are not merely passive mirrors of human social biases, but can actively create new ones from experience, raising urgent questions about how these systems will shape societies over time.
Chain-of-thought prompting can expose and amplify demographic stereotypes within an LLM's intermediate reasoning and create a failure mode that final-answer debiasing alone cannot address. Mitigating such bias during generation presents a fundamental timing problem: intervening too late allows biased reasoning to propagate, while unnecessarily intervening can disrupt otherwise correct reasoning. Existing approaches largely avoid this decision by either evaluating completed reasoning chains post hoc or intervening at predetermined steps, leaving open when a developing reasoning trajectory provides sufficient evidence to warrant correction. We formulate this decision as an online change-point detection problem. A per-step bias signal updates a CUSUM statistic and a targeted correction is injected only when accumulated evidence crosses a detector-specific threshold calibrated on held-out data. We instantiate the framework with a white-box signal derived from next-token probabilities and a black-box signal obtained from an LLM judge, enabling deployment with both open-weight and hosted models. On gpt-4o-mini adaptive black-box triggering recovers most of the disambiguated-context accuracy lost under fixed-interval intervention while requiring substantially fewer interventions. That result holds even with an independent judge. Across six open-weight models, the white-box signal improves ambiguous-item accuracy on all six but reduces disambiguated-item accuracy on five because it cannot distinguish unsupported stereotype reliance from correct, stereotype-congruent evidence.
Nayoung Kim, Mickey Mancenido, Huan Liu
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ, USA · School of Mathematical and Natural Sciences, Arizona State University, Phoenix, AZ, USA