← Latest papers
💬 NLP

SubData: Bridging Heterogeneous Datasets to Enable Theory-Driven Evaluation of Political and Demographic Perspectives in LLMs

This paper introduces SubData, an open-source Python library and theory-driven framework designed to standardize heterogeneous datasets for evaluating how differently aligned large language models classify content targeting specific demographics, thereby addressing inconsistencies in assessing perspective alignment across studies.

Original authors: Pietro Bernardelle, Leon Fröhling, Stefano Civelli, Gianluca Demartini

Published 2026-07-01
📖 4 min read☕ Coffee break read

Original authors: Pietro Bernardelle, Leon Fröhling, Stefano Civelli, Gianluca Demartini

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: Too Many Different Rulebooks

Imagine you are trying to judge how well different chefs (Large Language Models, or LLMs) cook a specific dish: detecting hate speech.

The problem is that every chef has been trained using a different set of ingredients and a different rulebook. One chef calls a specific insult "hate," while another calls it just "rude." Some chefs look at insults targeting Black people, while others look at insults targeting Muslims. Because everyone is using different definitions and different lists of ingredients, it's impossible to fairly compare them. You can't say Chef A is better than Chef B if they are cooking with different rules.

The Solution: SUBDATA (The Universal Translator)

The authors created a tool called SUBDATA. Think of this as a universal translator and a master recipe book for hate speech data.

  • What it does: It takes messy, inconsistent data from ten different sources (like different libraries with different cataloging systems) and forces them all to speak the same language.
  • How it works: If one dataset calls a group "Jewish people" and another calls them "Jews," SUBDATA maps both to the same label: jews. If one dataset groups "Mexicans" under "race" and another under "origin," the tool standardizes this so researchers can compare apples to apples.
  • The Result: Instead of ten different, confusing piles of data, researchers now have one clean, organized pile where every insult is tagged consistently.

The Experiment: Testing "Political Personalities"

Once they had this clean data, the authors wanted to test a specific idea: Do LLMs change their minds based on their "political personality"?

Imagine you ask a robot to judge a rude comment.

  • Scenario A: You tell the robot, "Act like a Democrat."
  • Scenario B: You tell the same robot, "Act like a Republican."

The authors wanted to see if the robot's "political personality" changed how harshly it judged insults aimed at different groups (like Black people, women, or religious groups).

The Theory vs. The Reality

The Theory (The Hypothesis):
The researchers started with a common belief: Democrats are generally more protective of minority groups. So, they hypothesized that a "Democrat-aligned" robot would flag more hate speech against minorities than a "Republican-aligned" robot.

The Experiment:
They took three different AI models and gave them "personas" (instructions to act like specific political types). They then asked these robots to look at the standardized hate speech data and decide: "Is this hate speech?"

The Findings (The Results):

  1. The "Left" is Always Stricter: Across the board, the robots acting as "Left-leaning" people were much more likely to flag content as hate speech than the "Right-leaning" ones.
  2. It's Not Just About Minorities: Interestingly, the "Left-leaning" robots didn't just get stricter about minorities; they got stricter about everyone, including White people and men.
  3. The "Tightening" Effect: The authors suggest this doesn't mean the Left is selectively protecting specific groups. Instead, it looks like the "Left" persona simply lowers the threshold for what counts as "hate" in general. It's like a security guard who decides to stop everyone at the door, rather than just stopping specific groups.
  4. Different Robots, Different Reactions: Some AI models (like Mistral) changed their behavior a lot depending on the persona they were given. Others (like Llama) were more stubborn and didn't change their minds as much.

Why This Matters

This paper isn't about building a new AI to detect hate speech. Instead, it's about building a better ruler to measure how AI behaves.

  • Before: Researchers were trying to measure AI bias with a ruler made of rubber (inconsistent data).
  • Now: They have a steel ruler (SUBDATA).

This allows scientists to stop guessing and start running controlled experiments to see exactly how political views influence AI decisions. The authors hope this tool will help the community build a better, more honest understanding of how AI models reflect human perspectives, without needing to agree on a single "truth" about what is offensive.

A Note on Ethics

The authors are very careful to note that their tool contains offensive content. They emphasize that this library is for research and understanding, not for training new AI to be hateful. They view their work as a way to shine a light on how these models work so we can make them safer and fairer, not to create new ways to hurt people.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →