Table of Contents
Fetching ...

What Is The Political Content in LLMs' Pre- and Post-Training Data?

Tanise Ceron, Dmitry Nikolaev, Dominik Stammbach, Debora Nozza

Abstract

Large language models (LLMs) are known to generate politically biased text. Yet, it remains unclear how such biases arise, making it difficult to design effective mitigation strategies. We hypothesize that these biases are rooted in the composition of training data. Taking a data-centric perspective, we formulate research questions on (1) political leaning present in data, (2) data imbalance, (3) cross-dataset similarity, and (4) data-model alignment. We then examine how exposure to political content relates to models' stances on policy issues. We analyze the political content of pre- and post-training datasets of open-source LLMs, combining large-scale sampling, political-leaning classification, and stance detection. We find that training data is systematically skewed toward left-leaning content, with pre-training corpora containing substantially more politically engaged material than post-training data. We further observe a strong correlation between political stances in training data and model behavior, and show that pre-training datasets exhibit similar political distributions despite different curation strategies. In addition, we find that political biases are already present in base models and persist across post-training stages. These findings highlight the central role of data composition in shaping model behavior and motivate the need for greater data transparency.

What Is The Political Content in LLMs' Pre- and Post-Training Data?

Abstract

Large language models (LLMs) are known to generate politically biased text. Yet, it remains unclear how such biases arise, making it difficult to design effective mitigation strategies. We hypothesize that these biases are rooted in the composition of training data. Taking a data-centric perspective, we formulate research questions on (1) political leaning present in data, (2) data imbalance, (3) cross-dataset similarity, and (4) data-model alignment. We then examine how exposure to political content relates to models' stances on policy issues. We analyze the political content of pre- and post-training datasets of open-source LLMs, combining large-scale sampling, political-leaning classification, and stance detection. We find that training data is systematically skewed toward left-leaning content, with pre-training corpora containing substantially more politically engaged material than post-training data. We further observe a strong correlation between political stances in training data and model behavior, and show that pre-training datasets exhibit similar political distributions despite different curation strategies. In addition, we find that political biases are already present in base models and persist across post-training stages. These findings highlight the central role of data composition in shaping model behavior and motivate the need for greater data transparency.

Paper Structure

This paper contains 35 sections, 2 equations, 9 figures, 11 tables.

Figures (9)

  • Figure 1: Relative distributions of source domains in the pre-training datasets.
  • Figure 2: Stances of the models at different training stages and in the documents from the training data across policy issues. Colors of the bars match models and datasets used to train them at that stage. Dolma and Dolmino are in blue because they are both used in the base model. Error bars show the 95% confidence intervals for the stance scores.
  • Figure 3: Confusion matrix of the left-neutral-right classification with Llama3.1-70B.
  • Figure 4: Top 30 source domains from RefinedWeb in comparison with Dolma and Dolmino.
  • Figure 5: Top 25 source domains from documents classified as left or right.
  • ...and 4 more figures