Tracking bias throughout LLM training: an empirical study of bias emergence, training configurations and mechanismsTracing LLM Bias across Training: an Empirical Study on Bias Emergence, Training Configurations, and Mechanisms
The authors track LLM bias across more than 780 training checkpoints, stating that it appears as early as pretraining and that post-training largely preserves its causal location.
- Existing bias research mostly looks at models after training is complete; the authors focus on when bias emerges, how pre-training seeds and data recipes affect it, and whether post-training changes its internal causal mechanisms.
- The authors track checkpoints along pre-training, mid-training, and post-training, combining bias and language ability evaluations, corpus PMI co-occurrence correlation analysis, and within-model and Pre–Post bidirectional activation patching, using LPD, Effect Gap, and NIE to analyze causal contributions.
- The authors state that bias emerges alongside language ability early in pretraining and is then generally relatively stable; seeds and data recipes affect different bias types differently. Post-training largely preserves the NIE causal location, and the direction of clean LPD change varies by model and bias type.
- In Limitations, the authors state that the bias benchmarks used are limited, that models above 13B were not considered due to GPU resource constraints, and that they plan to expand the scope of the research. The mechanism analysis uses three bias categories from StereoSet: gender, race and profession; Pythia has no Post model.
- Evaluated models
- OLMo 2 1BOLMo 2 7BOLMo 2 13BPythia 1BPythia 410M25 1B DataDecide modelsQwen2.5 1.5BLlama 3.2 1B
- Metrics
- Bias ScoreStereoSet SSStereoSet LMSBBQ sDISBBQ sAMBBBQ EMLPDEffect GapNIEpartial Spearman correlation ρ
This empirical study systematically examined the formation and evolution of LLM social bias across pre-training, mid-training and post-training, with experiments covering more than 780 model checkpoints, 10 random training seeds and 25 pre-training data recipes, involving multiple model families and bias types. The results show that bias emerges very early in pre-training, and the overall bias level remains stable during mid-training and post-training, with only some bias types shifting slightly. Cross-model activation patching analysis shows that post-training largely preserves the causal contribution patterns of bias established during pre-training, only slightly changing stereotype preferences, and the changes vary by bias type and model. The authors therefore argue that effective debiasing requires intervention at the pre-training stage rather than reliance on post-training alignment.
Related events and news
1 events · 0 news mentions
- This event's paper
研究发现LLM偏见在预训练早期形成,后训练基本保留
Paper analysis
What problem does this paper attempt to solve?
Studies when social bias in LLMs emerges during training, how configuration affects it, and its internal causal mechanisms.
The core question is: how social bias in LLMs emerges, evolves, and is carried by internal mechanisms during pre-training, mid-training, and post-training.
- Research setting: The authors argue that looking only at models after training is complete makes it difficult to understand when bias first forms, which training factors influence its development, and where opportunities for intervention during training lie.
- Gaps in existing research: The paper states that related work on Pythia and PolyPythias examines gender word frequency in the corpus and random seeds, respectively, but is limited to gender bias and pre-training; Itzhak et al. (2025) analyzes cognitive bias. The authors also state that no prior work has studied how training shapes the mechanism representations that causally drive biased behavior.
- Core hypothesis: The authors conjecture that stereotypical associations are themselves high-frequency co-occurrence patterns in the corpus and may be learned through the same distributed learning signal that supports general language modeling; once the model internalizes these statistics, the demographic asymmetries within them are also encoded.
- Research content: The paper is organized around three RQs: how bias emerges during training (RQ1), how pre-training configuration affects bias (RQ2), and how training shapes bias mechanisms (RQ3). The experiments cover more than 780 checkpoints, 10 random seeds, and 25 pre-training data recipes, and use cross-model activation patching.
- Authors' claim: The authors argue that effective debiasing requires intervention during pre-training rather than relying only on post-training alignment; this is a research implication drawn from their training dynamics and causal patching results, not an evaluated debiasing method.
What related research exists?
Related work is divided into bias evaluation, analysis of the training process, and post-training debiasing; this paper connects behavior and mechanism.
Bias evaluation
- Likelihood and perplexity evaluation: WinoBias, Bias in Bios, CrowS-Pairs, StereoSet, and RedditBias are used to measure social bias in language models; this paper uses the revised English CrowS-Pairs and StereoSet intrasentence.
- Generative evaluation: CEB, FairMT-Bench, and BiasFreeBench target instruction-tuned LLMs and evaluate bias using model responses and LLM-as-a-judge. This paper additionally uses BBQ to examine generative bias, but Appendix B.3 notes that its early checkpoint results are affected by answer letter preference.
Bias and representations during training
- Early cases: Van Der Wal et al. (2022), Tang and Jiang (2022), and Gadhia et al. (2026) mainly study gender bias; Thaler et al. (2026) and Bayazit et al. (2026) study the formation of social bias or language representations during training.
- Checkpoint suites: Pythia provides a suite for training analysis, and PolyPythias extends it to multi-seed pre-training runs. The paper's introduction states that the related existing work is limited to gender bias and pre-training.
- Cognitive bias: Itzhak et al. (2025) studies the sources of cognitive bias and observes that pre-training is the main cause of bias in language models; this paper studies social bias and its mechanism representations.
Debiasing and causal analysis
- Post-training debiasing: The paper mentions evaluations by Rajwal et al. (2025) and Fan et al. (2025), as well as post-training work that identifies or reduces bias, such as BiasEdit, FairSteer, Self-debiasing, and BiasFreeBench.
- Causal methods: Vig et al. (2020) uses causal mediation analysis for gender bias, Meng et al. (2022)'s ROME provides a method for locating and patching factual associations, and Du et al. (2025) studies post-training from a mechanistic perspective; this paper accordingly uses within-model and cross-model activation patching.
Experimental comparison: This paper does not propose a new debiasing method and compare baselines; instead, it compares different training checkpoints, 10 Pythia 410M seeds, 25 DataDecide 1B data recipes, and Pre/Post models, using CrowS-Pairs, StereoSet, BBQ, and three general capability benchmarks.
The authors position this paper as an empirical study covering all training stages and multiple bias types, and examining both external behavior and internal causal mechanisms.
How does the paper address this problem?
Answers the three RQs using training-trajectory evaluation, corpus co-occurrence correlation analysis, and bidirectional activation patching.
The overall approach is to treat the training process itself as the object of analysis: first track bias and language ability, then vary seeds and data recipes, and finally use causal tracing to compare the internal representations of Pre and Post.
Training trajectories and bias measurement
- Checkpoint selection: 92, 61 and 122 checkpoints are selected for OLMo 2 1B, 7B and 13B respectively, and 40 pretraining checkpoints for Pythia 1B; early training checkpoints of OLMo 2 1B with the same initialization are also evaluated, one every 1k steps up to 36k.
- Bias benchmarks: The revised English CrowS-Pairs contains 10 categories and 1,677 items; the StereoSet intrasentence development set contains 4 categories and 2,106 items. Samples consist of stereotypical and anti-stereotypical contexts sharing a demographic subject, compared by log probabilities normalized over UTF-8 bytes.
- Ability controls: LAMBADA, WinoGrande and ARCc are used; LAMBADA reports inverse perplexity, while the other two use log-probability scoring to compute accuracy. BBQ uses HELM to generate answers and computes sDIS, sAMB and EM.
Seeds, data recipes and corpus co-occurrence
- Seed control: PolyPythias/Pythia 410M uses seeds 1–9 and the original seed 1234, with all other architecture, corpus and hyperparameters fixed; 40 checkpoints are evaluated per model, the final one being step143000.
- Data control: The 25 DataDecide 1B models change only the pretraining data recipe, comparing the final step69369-seed-default; the recipes fall into six groups including cross-corpus, Dolma source ablations, mixing and quality filtering.
- Co-occurrence analysis: 280 DCLM shards are randomly sampled from OLMo-mix-1124, and the first 10K training steps of the Pile (about 21B tokens) are taken. PMI is computed with a ±40-word window, and then the difference between stereotypical and anti-stereotypical associations, ∆PMI, is computed.
- Correlation control: For each checkpoint, the partial Spearman correlation ρ between ∆PMI and sample bias is computed, controlling for shared word frequency, differential word frequency and sentence length difference; 95% intervals are obtained with 1,000 bootstraps.
Causal tracing and cross-model patching
- Analysis targets: Analysis is performed on gender, race and profession in StereoSet for OLMo 2 1B, Qwen2.5 1.5B, Llama 3.2 1B and Pythia 1B; for OLMo 2, Pre is the last mid-training checkpoint and Post is Instruct's step_2000.
- Three forward passes: clean records activations; corrupted adds Gaussian noise to the input embeddings of all subject tokens; patched restores clean activations at the specified token and layer. For each sample, 10 noise samples with a fixed seed are averaged.
- Preference definition: LPD=1/N∑i=1N[log Pθ(xistereo)−log Pθ(xianti)], where probabilities are length-normalized; Effect Gap is the difference between the LPD of clean and corrupted.
- Restoration effect: NIE=(LPDrestored−LPDcorrupted)/(LPDclean−LPDcorrupted), where 1 indicates full restoration and 0 indicates no restoration; NIE is reported only when |Effect Gap| is at least 0.03.
- Patching positions: subject, pre-target and target are analyzed; single states are restored layer by layer, MLP/attention use windows, with w=5 for 16-layer models and w=7 for 28-layer models. Cross-model patching exchanges clean activations at corresponding positions in both the Pre→Post and Post→Pre directions.
Statistics and implementation
- Interval estimation: Causal results use 10,000 bootstraps, retaining the same sample indices when comparing models; CrowS-Pairs, ARCc and WinoGrande use Wilson intervals, and LAMBADA uses standard error.
- Runtime settings: Traced models use bfloat16 except Pythia, which uses float16, on NVIDIA RTX A6000 hardware; the paper does not report the number of repeated runs for behavioral evaluations.
What experiments did the paper conduct?
The experiments cover training trajectories, seeds and data recipes, corpus co-occurrence, and Pre–Post causal patching.
Experimental setup
- Models tested: OLMo 2 1B/7B/13B, Pythia 1B, 10 Pythia 410M seed models, 25 DataDecide 1B models; causal tracing additionally includes Qwen2.5 1.5B and Llama 3.2 1B.
- Data sizes: CrowS-Pairs has 1,677 items, StereoSet intrasentence has 2,106 items, and BBQ has 58,492 items; LAMBADA, WinoGrande, and ARCc have 5,153, 1,267, and 1,172 items, respectively.
- Metric determination: CrowS-Pairs and StereoSet SS measure the proportion of stereotyped sentences preferred, with 50% as the neutral reference; BBQ computes EM and bias scores from generated answer letters, with no LLM judge.
- Training coverage: OLMo 2 covers pre-training, mid-training, SFT, DPO, RLVR, and Instruct; Pythia and DataDecide mainly analyze pre-training, and DataDecide compares final checkpoints.
- Mechanism samples: Tracing covers 21 model × bias-type combinations and 9 Pre–Post comparisons; profession uses 810 items, and gender and race reuse BiasEdit samples, whose item counts for the latter two are not listed in the provided text of the appendix.
- Statistical setup: Corpus analysis uses 1,000 bootstraps and causal analysis uses 10,000; the paper does not report the number of repetitions of behavioral evaluations.
Main results
The table below selects key comparisons explicitly reported in the paper; it is not a leaderboard of the same models. OLMo 2 values are decimals from the Overall column of Tables 10, 12, and 14.
Swipe horizontally to read the table
Experimental subject and condition Metric Result Source OLMo 2 1B, pre-training step0→step130000 CrowS-Pairs Overall 0.4609→0.5808 Table 10 OLMo 2 1B, mid-training step1000→23852 CrowS-Pairs Overall 0.5951→0.5975 Table 12 OLMo 2 1B, SFT→DPO→Instruct main CrowS-Pairs Overall 0.5909→0.5993→0.5969 Table 14 10 Pythia 410M seeds, final checkpoints CrowS-Pairs overall mean±std 51.32±1.21% Table 22 Same as above StereoSet overall mean±std 58.33±0.84% Table 22 25 DataDecide 1B recipes, final checkpoints CrowS-Pairs overall range 52.00%–59.75% Table 24 9 Pre–Post comparisons Maximum absolute difference in NIE curves 0.17 Table 29 - Emergence time: The authors locate the bias acquisition period of OLMo 2 1B in the first 130k steps of pre-training, i.e., about 6.82% of total pre-training; Figure 2 and Tables 8–17 show that it develops concurrently with general language ability.
- Subsequent changes: The authors state that overall bias is relatively stable during mid-training and post-training, with only small changes in some types; Table 14 also shows that different sub-stages and bias types are not entirely unchanged.
- Mechanism conclusion: The authors state that the layer-wise NIE patterns of Pre and Post are similar and that post-training largely preserves causal locations, while the direction of change in stereotype preference strength varies by model and bias type.
Corpus co-occurrence and language ability
- What was measured: The partial correlation between each checkpoint's sample bias and the ∆PMI of its own pre-training corpus was compared, and LAMBADA inverse perplexity was tracked in parallel.
- Correlation results: In Figure 3(b), the positive correlation is absent at initialization and remains statistically significant from step 2k onward on both benchmarks and both LLMs; in Figure 3(d), the 95% intervals for most bias types do not contain zero.
- Authors' interpretation: The authors consider this consistent with the conjecture that stereotypical associations are corpus co-occurrence patterns learned together with language modeling ability; this is correlational evidence, not causal proof from intervening on the corpus.
Seeds and data recipes
- Seed differences: The overall CrowS-Pairs range across seeds for Pythia 410M final checkpoints is 3.94 percentage points, but physical appearance is 19.44 percentage points; the seed closest to 50% varies by benchmark, and rankings fluctuate during training (Tables 21, 22, Figure 4).
- Data mixtures: On StereoSet, the 75% DCLM-Baseline recipe is 63.49%, 100% Dolma1.7 and 100% DCLM-Baseline are 60.97% and 61.92%, respectively, and the 25% and 50% DCLM recipes are 61.82% and 61.40% (Table 23).
- Filtering exception: Retaining documents ranked in the top 10% by the replicated DCLM classifier increases the CrowS-Pairs score of Falcon+CC by 3.70 percentage points but decreases that of DCLM-Baseline by 1.85 percentage points; the authors therefore state that the effect depends on the corpus and bias type.
Pre–Post causal mechanisms
- Causal locations: Across the 9 comparisons, the maximum absolute difference between Pre/Post NIE curves is 0.17; for the Layer 0 subject NIE change, the 95% interval excludes zero only for race in OLMo 2 and Llama 3.2, and the increase is below 0.1 (Table 29).
- Cross-model patching: At the Layer 0 subject position, the absolute NIE difference between cross-model and within-model patching is at most 0.024, and the 95% bootstrap intervals for all differences contain zero (Table 31).
- Preference changes: For profession, clean LPD from Pre to Post changes by +14.1% and +9.7% in OLMo 2 and Qwen2.5, respectively, and by −8.9% in Llama 3.2; race decreases slightly in all three (Tables 28, 30). The authors state that the overall relative order remains gender highest, profession next, and race last.
Other ablations and analyses
- Effect Gap: The change between Pre and Post is at most 0.012 across the three model families (Table 32).
- OLMo 2 reference choice: The median cosine similarity of weights between the last mid-training checkpoint and Post is 0.995197, while released base main is close to zero with Post, so the former is chosen as Pre (Table 26).
- BBQ exception: OLMo 2 1B and 7B prefer particular answer letters during pre-training and continue into post-training; Figure 15 marks checkpoints with more than 1% invalid answers with an X and plots them as zero bias.
- Authors' judgment on BBQ: Appendix B.3 states that bias scores of its early checkpoints may be affected by answer position preference and cannot reflect model bias alone.
- Anomalous checkpoints: Three early pre-training checkpoints of OLMo 2 13B behave like untrained models and are excluded from Figures 13–15.
What are some points that can be further explored?
The authors explicitly acknowledge limitations in benchmarks and model scale; the experimental coverage also has clear boundaries.
Limitations and future directions noted by the authors
- Scope of bias benchmarks: In Limitations, the authors state that "the bias benchmarks used are limited" and do not further list specific missing benchmarks.
- Model scale: The same section states that, due to GPU resource constraints, LLMs larger than 13B were not considered.
- Future plans: The same section states that future work will broaden the research scope to generalize the findings and make them actionable; no specific models, data, or intervention plans are given.
Scope of experimental coverage
- Behavioral models: Training trajectories cover three OLMo 2 sizes and Pythia 1B; the configuration experiments use 10 Pythia 410M seeds and 25 DataDecide 1B final checkpoints.
- Training stages: Full SFT, DPO, RLVR, and Instruct trajectories are used for OLMo 2; Pythia analyzes pre-training, and DataDecide compares pre-training data recipes.
- Mechanism scope: Causal tracing uses only the gender, race, and profession subsets of StereoSet intrasentence, covering 4 Pre models, 3 Post models, and 9 Pre–Post comparisons; Pythia has no Post model.
- Evidence types: Corpus analysis is a partial correlation controlling for word frequency and sentence length; causal evidence comes from activation corruption and restoration, and no intervention experiments on the training corpus or the post-training process itself are reported.
- Evaluation protocol: Behavioral metrics are computed directly from log probabilities or answer letters, with no human or LLM judge; the paper does not report the number of repetitions of behavioral evaluations, and confidence intervals come from benchmark samples or bootstrap resampling.
Summarize the main content of the paper
The authors state that bias forms as early as pretraining and that post-training mostly preserves its causal mechanism.
This is an empirical study on the training dynamics and internal mechanisms of social bias in LLMs, focusing on when bias emerges, whether pretraining configurations can change it, and whether post-training rewrites its causal representation.
- Problem: Existing work mostly evaluates or mitigates bias after training, which the authors argue is insufficient for understanding how bias forms and for identifying opportunities for intervention during training.
- Method: The study tracks more than 780 checkpoints, combining CrowS-Pairs, StereoSet and general language ability evaluations, comparing 10 seeds and 25 data recipes, and using PMI partial correlation and Pre–Post bidirectional activation patching to connect behavior and mechanism.
- Emergence stage: The bias acquisition period of OLMo 2 1B lies in the first 130k pretraining steps, about 6.82% of total pretraining; the authors state that it emerges at the same time as general language ability and is then generally relatively stable.
- Configuration effects: The final CrowS-Pairs overall range across 10 Pythia 410M seeds is 3.94 percentage points, while for physical appearance it is 19.44 percentage points; the effects of the 25 DataDecide recipes vary with corpus and bias type.
- Mechanism results: The maximum absolute difference in NIE curves across 9 Pre–Post comparisons is 0.17; the NIE difference between cross-model and within-model patching at the Layer 0 subject position is at most 0.024, and all difference intervals contain zero.
- Preference exception: The clean LPD for profession increases by 14.1% and 9.7% in OLMo 2 and Qwen2.5 respectively, and decreases by 8.9% in Llama 3.2, indicating that post-training does not produce changes in the same direction for all models and bias types.
On this basis, the authors argue that post-training largely preserves the causal location and representation of bias formed during pretraining, only slightly adjusting stereotypical preferences; effective debiasing should focus more on interventions during pretraining. In Limitations, the authors also acknowledge the limited scope of benchmarks and the restriction to model scales below 13B.
Research lineage
Connected via shared benchmarks in libraryRelated papers
- Latent space bias directions in LLMs capture confidence, not fairnessAnalysis / interpretabilityarXiv
Show 3 more papers
- The Capacity for Moral Self-Correction in Large Language ModelsAnalysis / interpretabilityarXiv