Tracing LLM Bias across Training: an Empirical Study on Bias Emergence, Training Configurations, and Mechanisms

Omar Yahia, Xuran Zhou, Aaryan Gupta, Julian McAuley, Xin XuarXiv 2026

TL;DR

Social biases in large language models (LLMs) don't just appear at the end of training—they emerge right at the beginning of pre-training, hand-in-hand with basic language fluency. Once established, overall bias remains remarkably stubborn through mid-training and post-training alignment (like SFT, DPO, and RLVR). If we want genuinely less biased models, we can't just "fix it in post"; we have to intervene during pre-training.

What Problem Does This Paper Address?

Most research on LLM fairness treats models like finished products: we evaluate them after training and apply post-hoc fixes or alignment techniques to curb biased outputs. But modern LLMs go through a multi-stage lifecycle—pre-training on massive text corpora, mid-training, and post-training alignment—each with different data and objectives.

Studying only the final model leaves a massive blind spot. We don't know when bias first takes root, how choices like random seeds or data recipes shape it, or whether post-training actually rewires the underlying mechanisms of bias or just papers over them. To fill this gap, the authors conduct a massive empirical study across more than 780 training checkpoints, asking three core questions:

  1. RQ1: How do biases emerge during training?
  2. RQ2: How do pre-training configurations (seeds and data) affect learned bias?
  3. RQ3: How does training shape the internal causal mechanisms of bias?
Figure 1: Three research questions explored in this work and main findings.

Methods

To trace bias from infancy to adulthood, the authors combine behavioral benchmarks, corpus statistics, and mechanistic interpretability:

  • Tracking Training Dynamics: They evaluate intermediate checkpoints across OLMo 2 (1B, 7B, 13B) and Pythia (1B), including dense early-training checkpoints (every 1,000 steps) to catch the exact moment bias appears.
  • Corpus-Bias Co-occurrence Analysis: Using Pointwise Mutual Information (PMI), they measure how often demographic subjects and stereotypical vs. anti-stereotypical words co-occur in each model's pre-training data, then compute the partial Spearman correlation ($\rho$) between these corpus statistics and the model's bias scores.
  • Configuration Ablations: They test 10 different random training seeds (PolyPythias 410M) and 25 different pre-training data recipes (DataDecide 1B) covering corpus mixtures, source ablations, and quality filtering.
  • Cross-Model Activation Patching: Moving beyond behavior to internal wiring, they use causal tracing on OLMo 2 1B, Qwen2.5 1.5B, and Llama 3.2 1B. By corrupting subject tokens and restoring activations between base (Pre) and instruct (Post) models—both Pre→Post and Post→Pre—they test whether post-training changes where and how bias is stored.

Datasets

  • Bias Benchmarks: Revised English CrowS-Pairs (10 bias types) and StereoSet (4 bias types). Both pair stereotyped sentences with anti-stereotyped counterparts. (The authors also considered BBQ, but early pre-training checkpoints couldn't reliably generate valid formatted answers).
  • General Language Benchmarks: LAMBADA, WinoGrande, and ARCc to track general language capability alongside bias.
  • Pre-training Corpora: 280 DCLM shards from OLMo-mix-1124 (for OLMo 2) and the first 10k steps (~21B tokens) of The Pile (for Pythia).

Key Insights and Ideas

  • Bias is the shadow of fluency: Biases emerge very early in pre-training—right alongside general language modeling ability—and then plateau. Because stereotypes are embedded in high-frequency word co-occurrences, a model cannot learn fluent language statistics without simultaneously absorbing demographic asymmetries.
  • Aggregate scores hide wild variance: Different random seeds and data recipes produce similar overall bias scores, but individual bias types (like physical appearance or religion) fluctuate dramatically and unpredictably. Picking a "good" random seed or filtering data doesn't reliably fix bias.
  • Post-training preserves bias wiring: Cross-model activation patching reveals that Pre and Post models share nearly identical causal locations for bias. Post-training slightly nudges stereotypical preferences, but it leaves the underlying pre-trained representations intact.

Key Results

  • Early Emergence: For OLMo 2 1B, the sharpest rise in bias occurs within the first 130k steps—just 6.82% of the total pre-training run. Corpus-bias correlation ($\rho$) becomes consistently significant from step 2k onward.
Figure 2: Evolution of bias score (>0.5 stereotyped, <0.5 anti-stereotyped) and performance scores (↑) across OLMo 2 1B training. Task performance (↑) on LAMBADA is reported as inverse perplexity (1/PPL) ranging from 0 to 1. Steps are shown independently for each sub-stage. The right panel: the main run. The left panel: the first 36k steps of the early-training run described in §2.1. Metric formulations are described in Appendix B.2. 95% confidence intervals are in Figure 10. Detailed scores are in Table 10.
  • Seed & Data Sensitivity: Across 10 random seeds, overall bias standard deviation is small (1.21 percentage points on CrowS-Pairs; 0.84 on StereoSet), yet physical appearance bias varies by 19.44 percentage points. Similarly, data filtering has corpus-dependent effects: top-10% DCLM quality filtering increases CrowS-Pairs bias by 3.70 points on Falcon+CC, but decreases it by 1.85 points on DCLM-Baseline.
  • Post-Training Nudges: Post-training shifts clean log-probability differences (LPD) modestly and inconsistently—profession bias increases by 14.1% in OLMo 2 and 9.7% in Qwen2.5, but decreases by 8.9% in Llama 3.2. Meanwhile, race bias decreases slightly across all three, and the overall causal Effect Gap changes by at most 0.012.

Limitations and Future Work

The authors note two main limitations: they rely on a limited set of bias benchmarks (CrowS-Pairs and StereoSet), and due to GPU constraints, they do not evaluate models larger than 13B parameters. In the future, they plan to scale this analysis to larger models and translate these mechanistic insights into actionable, training-time debiasing strategies.

Summary updated

BibTeX
@misc{yahia2026tracing,
  author = {Omar Yahia and Xuran Zhou and Aaryan Gupta and Julian McAuley and Xin Xu},
  title = {{Tracing LLM Bias across Training: an Empirical Study on Bias Emergence, Training Configurations, and Mechanisms}},
  year = {2026},
  eprint = {2611.41054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.41054},
}
Figure