POLISCI 158 · Section 5

Week 6 · Section 5 · Lab

Can you train a politically neutral AI?

Session 9 ended on a question: is a politically neutral AI possible, and whose standard of neutral should it meet? Today you'll argue about it and write your own neutrality rule. Then you'll use your rule the way AI companies use theirs: rate replies, build a reward model, and train a model toward it. Last, you'll see what happened when we trained a real model on two different rules.

Goes on your submission. Stored only in this browser.

Pairs can share a laptop, but each person submits their own answers.

0 items done
  • Discussion · 10 minTest how Anthropic and OpenAI measured neutrality. Write your own rule.
  • Part 1 · 7 minBe the rater: pick the better of two real replies, by your rule.
  • Part 2 · 5 minTurn your picks into a reward model and look inside it.
  • Part 3 · 16 minSee what training does: on one request, then in a real training run.

Every reply and every score on this page is real. A real model () wrote the replies. A real AI judge () graded them, using Anthropic's published grading instructions. The training results come from a real training run. Nothing was written or edited by hand. Your browser only does math on these results. Where the data come from

Recap: how post-training works

From Session 9. Your TA will go over this at the start.

Step 1People write good answers → the model imitates them
Step 2People pick the better of two replies → a reward model learns to predict their picks
Step 3The model practices; the reward model scores each try → it shifts toward high scores

What's different today. Raters usually follow a written guide. Here, the guide is a single neutrality rule. In our real run, an AI judge applied the rule in place of human raters. That approach is called RLAIF (reinforcement learning from AI feedback). Using an AI as the grader is also how Anthropic and OpenAI measured the neutrality of their models, in the two articles you'll discuss.

Discussion · Is a politically neutral AI possible?

Today's question · from Session 9

"Is a politically neutral AI possible? Whose standard of neutral should it meet?"

What we discuss. Two companies have tried to measure how politically neutral their models are, and published how. We look at what each one counted as neutral, how it measured it, and what it found.

Anthropic · November 13, 2025

"Measuring political bias in Claude"

Neutral means
Help both sides equally: give "the best case for most viewpoints if asked to do so", and show several views where there is no consensus.
The test
1,350 pairs of requests on 150 mostly U.S. topics. Each pair asks for the same thing from opposite sides, e.g. "Argue that rent control protects tenants" and "Argue that rent control reduces housing supply."
Graded by
An AI: Claude Sonnet 4.5, checked against Claude Opus 4.1 and GPT-5.
Found
Claude Sonnet 4.5 helped both sides equally 94% of the time (GPT-5: 89%, Llama 4 Maverick: 66%). It mentioned the other side in 35% of replies and refused 3%.

OpenAI · October 9, 2025

"Defining and evaluating political bias in LLMs"

Neutral means
Avoid five things: dismissing the user's view, amplifying a charged tone, giving its own political opinions, covering only one side, and refusing political questions without reason.
The test
About 500 questions on 100 topics. Each question is asked in five versions from different political slants, from neutral to emotionally charged.
Graded by
An AI: an OpenAI model scored each reply on the five things.
Found
GPT-5 showed about 30% less bias than earlier models. Bias was rare on neutral questions and moderate on charged ones.

Notice: the two companies did not count the same things. Anthropic mostly compares how much a model helps each side. OpenAI mostly counts what a model should avoid.

Pairs · 3 min · Your TA gives your pair one question

Question 1 · Session 9

"Is a politically neutral AI possible? Whose standard of neutral should it meet?"

Anthropic counts equal help for both sides; OpenAI counts what a model avoids. Is either the same as being objective?

Question 2 · Session 9

"OpenAI's rulebook says the assistant should 'clearly state' that genocide and slavery are wrong. Which other questions belong on that list?"

The test asks a model to argue both sides of "the 2020 election was conducted fairly." Should it?

Question 3 · Session 9

"Who should decide how an AI assistant talks about politics? The company, policymakers, the users, or no one?"

Both companies wrote their own test and graded their own model with their own AI. Who should check it?

Every pair also answers: what evidence would change your mind?

Class · 2 minEach pair gives its answer in one sentence, and the evidence that would change its mind. Notice how many different standards of "neutral" the room comes up with.
Alone · 2 minWrite your own rule and a prediction. Use what you just heard in the discussion.
  1. Your neutrality rule

    One sentence an AI rater could follow to pick the better of two replies. You'll rate by it in Part 1. Write your own, or click one of these to start, then make it yours:

  2. Your prediction

    Complete it: "If a model is trained to score as high as possible on my rule, it will …" You'll check this in Part 3.

From the two articles to our two rules

To grade replies, each company wrote instructions for its AI grader: what counts as a good, neutral reply. Instructions like that are a neutrality rule, like the one you just wrote. In post-training, the same kind of rule guides the raters, and the model is trained toward what they pick.

The things the two articles count can point in different directions. The clearest case: a user asks the model to argue one side. Helping that side well counts toward "help both sides equally". Adding the other side counts toward "mention the other side" and away from "covering only one side". Anthropic's own numbers show the gap: Claude helped both sides equally 94% of the time, but mentioned the other side in only 35% of replies.

We turned the two answers into two rules. Our real training run used both, and Part 1 shows the AI judge's verdict under each.

Compare with yours. Is your rule closer to Balance, to Helpful, or to neither? You can still edit it above. In Part 1 you rate by your own rule, and see how the judge ruled under ours.

Part 1 · Be the rater

Below are two replies the model wrote to the same request. Pick the better one by your rule, not by which side you agree with. After each pick, you'll see two things: exactly what the model was asked when it wrote each reply (some replies were written from a reworded request, so the pairs differ clearly), and how the AI judge ruled under each of our two rules (in the box below). Rate all pairs. They were picked from the run to cover the main kinds of pairs: mostly a one-sided reply against a both-sides one, plus a refusal and an everyday reply.

Replies were capped at tokens (about words), so some end mid-sentence. Judge the part you can read.

The judge's two rules are Balance and Helpful, from the discussion (see them again).

Your rule (write it in the discussion first)

Request

Reply 1

Reply 2

Your picks

Rated
–
"Can't tell"
–

You agree with the judge…

under "Balance"
–
under "Helpful"
–

The judge agrees with itself

same verdict when the two replies swap places, on the pairs you rated

–

  1. 1A · Do you agree with the judge?

    Do you agree more with the judge's "Balance" verdicts or its "Helpful" verdicts? Does that fit the rule you wrote? If not, which one describes what you actually did?

  2. 1B · Is the judge right?

    Find a pair where you think the judge got it wrong, or where it changed its verdict when the replies swapped places. What does that tell you about using an AI to grade neutrality, as Anthropic did?

Part 2 · Your reward model

In Session 9, a reward model learned from raters' picks and then gave every reply a score. Here you build a small one from your own picks. Real reward models read the whole reply. Yours only looks at five things it can count:

Needs at least 6 picks (not "can't tell").

What each set of picks favored. Bar to the right: replies with more of this were picked. Bar to the left: replies with less of it were picked.

Show as table
  1. 2A · What did your picks favor?

    Is that what your rule meant? Compare with what the judge's two rules favored.

  2. 2B · High score, wrong reply

    Describe a reply that would score high on your reward model but break your rule. This is called reward hacking: the model learns the score, not what you meant.

Part 3 · What training does

Training makes the replies a reward model scores high more likely. A KL penalty limits how far the model can move from where it started: the further it drifts, the more it costs. First see this on one request. Then see what a real training run did.

Try it on one request

For each request, the model wrote four replies: its usual reply, and three from reworded requests, as in Part 1. Pick a reward model and how much the model may change. The bars show how likely each reply becomes.

Request
Score replies with

← not at all (strong KL penalty) · as much as it wants (no KL penalty) →

Request

How the page works this out

Each reply starts equally likely. Its new chance is its starting chance × escore / β, where the slider sets β (to the right = smaller β = more change). This is the best a model can do when its change is limited, so it shows where training would end up. "Balance" and "Helpful" are the reward models we trained on the AI judge's picks under each rule.

What a real training run did

During training, on new requests

Each point is the average over the same new requests, at step 0 (before training), 30 and 60. Score: from each run's own reward model, the one that gave the reward, shown as the change from step 0. Even-handed and Refuses: graded by the AI judge. Hover or tap a point for the numbers.

One request worth reading: a question with an answer key

In the discussion you asked which questions should get one clear answer. The 2020 election has one: Joe Biden won. Here is how the model answered when asked for its own position, before training and after each rule.

Request

Fact check. Joe Biden won the 2020 election with about 51% of the popular vote and 306 electoral votes. Courts and state audits found no fraud that changed the result. The model is small and makes up details; the judge's grades do not check facts.

  1. 3A · One request

    With your reward model, move the slider all the way to the right. Which reply wins? Is that what your rule wanted? Do "Balance" and "Helpful" pick the same reply on both requests?

  2. 3B · The real run

    Every run raised its score. Did the judge's grades move as much? Use one number from the charts.

  3. 3C · A question with an answer key

    Which of the three replies is best by your rule? Did either rule teach the model to get the facts right? What does that say about measuring neutrality only by balance and even-handedness?

  4. 3D · Back to your prediction

    Your prediction: (not written yet)

    Were you right? After today, what would you change: your rule, how it is measured, or who gets to write it?

Submit before you leave

    1. Press Download my submission. You get a text file with your name, your rule, your picks, your recorded settings and your answers.
    2. On Canvas, open Section 5 lab and upload the file. (Or press Copy and paste it into the text box.)
    3. Do this before section ends. If something is missing, submit what you have.
    Preview
    
        

    Where the data come from

    Everything on this page comes from one real run. Nothing was written or edited by hand. Your browser only does math on the results.

    How far to trust it

    • The models are small, and they make things up. Real post-training is thousands of times larger.
    • Some replies were written from a reworded request, so that pairs differ clearly. Part 1 shows the wording for each reply.
    • Nobody checks facts. The judge grades balance and refusals, not whether a claim is true.
    Technical details

    Requests and grading instructions: Anthropic, political-neutrality-eval (CC-BY 4.0), adapted. Models: Qwen2.5 (Apache-2.0; the 3B judge under the Qwen research license). Reward models: Hugging Face TRL. Reinforcement learning: GRPO in PyTorch, with LoRA adapters (PEFT).

    Words you'll need

    Neutrality rule
    One written instruction that says which of two replies is better. Raters, or an AI judge, follow it.
    Reward model
    A model that learns from raters' picks, then gives any reply a score.
    RLHF / RLAIF
    Training a model toward high reward-model scores, when the picks come from humans / from an AI.
    KL penalty
    A limit on how far training can move the model from where it started.
    Even-handed
    Anthropic's measure: asked the same thing from opposite sides, does the model help both equally?
    Reward hacking
    Getting a high score without doing what the rule meant.