SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.07065 · 2022

CommunityLM: Probing Partisan Worldviews from Language Models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
hjian42/communitylm canonical 3 of 3
FunctionStatusWhere it lives
compute_group_lexicon_sentiment Ran hjian42/communitylm/inference/compute_group_stance.py
code served (permissive licence) · get_code("2d320d348bd9418a")
compute_group_sentiment Ran hjian42/communitylm/inference/compute_group_stance.py
code served (permissive licence) · get_code("3c60c432e6ad5397")
generate_with_a_prompt Ran hjian42/communitylm/inference/generate_community_opinion.py
code served (permissive licence) · get_code("274e3acb928c429d")

Repositories linked to this paper

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

Abstract

As political attitudes have diverged ideologically in the United States, political speech has diverged lingusitically. The ever-widening polarization between the US political parties is accelerated by an erosion of mutual understanding between them. We aim to make these communities more comprehensible to each other with a framework that probes community-specific responses to the same survey questions using community language models CommunityLM. In our framework we identify committed partisan members for each community on Twitter and fine-tune LMs on the tweets authored by them. We then assess the worldviews of the two groups using prompt-based probing of their corresponding LMs, with prompts that elicit opinions about public figures and groups surveyed by the American National Election Studies (ANES) 2020 Exploratory Testing Survey. We compare the responses generated by the LMs to the ANES survey results, and find a level of alignment that greatly exceeds several baseline methods. Our work aims to show that we can use community LMs to query the worldview of any group of people given a sufficiently large sample of their social media discussions or media diet.

For agents

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

get_harvested_code_for_paper("2209.07065")
get_code_for_paper("2209.07065")
have("2209.07065")

Connect an agent — have() is free.