SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.24190 · EMNLP · 2024

Hidden Persuaders: LLMs' Political Leaning and Their Influence on Voters

Dawn Song, Valentin Hofmann, Paul Röttger, Shiyang Lai, James Evans, Yujin Potter, Junsol Kim

arXiv · PDF · Open in the Atlas

Code that ran

2 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 9 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.24190.json · badge: /api/ran/2410.24190.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
sunblaze-ucb/political_leaning_RepE canonical (classifier label)
classifier basis: census
2 ran · 9 no recorded run
FunctionStatusWhere it lives
project_onto_direction Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sunblaze-ucb/political_leaning_RepE/repe/rep_readers.py
code served (permissive licence) · get_code("8c6b734d5c949090")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# H should be a tensor of shape (n, d_1)
H = torch.randn(2, 4)

# direction should be a tensor of shape (d_2,)
direction = torch.randn(4)

ARGS = {
    "H": H,
    "direction": direction,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
recenter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sunblaze-ucb/political_leaning_RepE/repe/rep_readers.py
code served (permissive licence) · get_code("1ceba3fc481567ab")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor for x parameter (batch_size=2, features=4)
x_data = torch.randn(2, 4)

# Create a small mean tensor (1, 4) to match the shape expected by the function
mean_data = torch.randn(1, 4)

ARGS = {
    "x": x_data,
    "mean": mean_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
arc_dataset Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/arc.py
code served (permissive licence) · get_code("18886c949c98a5c9")
How it ran

no invocation recorded.

contrast_greedy_search Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe/rep_control_contrast_vec.py
code served (permissive licence) · get_code("2b4c9fbd7f2a466f")
How it ran

no invocation recorded.

csqa_dataset Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/csqa.py
code served (permissive licence) · get_code("2ef192a290c2db9a")
How it ran

no invocation recorded.

forward_contrast_vector Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe/rep_control_contrast_vec.py
code served (permissive licence) · get_code("a953412e8172dfef")
How it ran

no invocation recorded.

load_tqa_mc1 Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/tqa.py
code served (permissive licence) · get_code("c625ea354103bd3d")
How it ran

no invocation recorded.

load_tqa_primer_shots Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/tqa.py
code served (permissive licence) · get_code("4b0824fc130b1f4c")
How it ran

no invocation recorded.

openbookqa_dataset Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/obqa.py
code served (permissive licence) · get_code("c56f53c029e84df9")
How it ran

no invocation recorded.

race_dataset Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/race.py
code served (permissive licence) · get_code("1cbd400d0816ba10")
How it ran

no invocation recorded.

tqa_dataset Not yet run
unverified (harvested, no recorded run)
sunblaze-ucb/political_leaning_RepE/repe_eval/tasks/tqa.py
code served (permissive licence) · get_code("f9679f2e59850389")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 2 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
project_onto_direction 3 other papers
2 dated earlier, 1 later
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency
2405.18727 (2024-05)
CtrlA: Adaptive Retrieval-Augmented Generation via Inherent Control
2025.findings-acl.652 (2025 (year only))
CTRLA: Adaptive Retrieval-Augmented Generation via Inherent Control
recenter 3 other papers
2 dated earlier, 1 later
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency
2405.18727 (2024-05)
CtrlA: Adaptive Retrieval-Augmented Generation via Inherent Control
2025.findings-acl.652 (2025 (year only))
CTRLA: Adaptive Retrieval-Augmented Generation via Inherent Control
arc_dataset 1 other paper
1 dated earlier
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency
contrast_greedy_search 1 other paper
1 dated earlier
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency
csqa_dataset 1 other paper
1 dated earlier
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency
forward_contrast_vector 1 other paper
1 dated earlier
2310.01405 (2023-10)
Representation Engineering: A Top-Down Approach to AI Transparency

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Do LLMs have political leanings and are LLMs able to shift our political views? This paper explores these questions in the context of the 2024 U.S. presidential election. Through a voting simulation, we demonstrate 18 openweight and closed-source LLMs' political preference for Biden over Trump. We show how Biden-leaning becomes more pronounced in instruction-tuned and reinforced models compared to their base versions by analyzing their responses to political questions related to the two nominees. We further explore the potential impact of LLMs on voter choice by recruiting 935 U.S. registered voters. Participants interacted with LLMs (Claude-3, Llama-3, and GPT-4) over five exchanges. Intriguingly, although LLMs were not asked to persuade users to support Biden, about 20% of Trump supporters reduced their support for Trump after LLM interaction. This result is noteworthy given that many studies on the persuasiveness of political campaigns have shown minimal effects in presidential elections. Many users also expressed a desire for further interaction with LLMs on political subjects. Further research on how LLMs affect users' political views is required, as their use becomes more widespread.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.24190")
get_code_for_paper("2410.24190")
have("2410.24190")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.24190.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.24190.svg)](https://syntology.ai/paper/2410.24190)

Connect an agent — have() is free.