SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.02099 · 2024

Helpful assistant or fruitful facilitator? Investigating how personas affect language model behavior

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 11 functions out of this paper's own repositories and ran 7 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
peluz/persona-behavior canonical 7 of 11
FunctionStatusWhere it lives
attitude_prompts Ran peluz/persona-behavior/dataloaders/loaders.py
code served (permissive licence) · get_code("6f31258dbe3e4025")
augment_attitudes Ran peluz/persona-behavior/dataloaders/loaders.py
code served (permissive licence) · get_code("4e2ee80cc1d56d83")
extract_score Ran peluz/persona-behavior/compute_results.py
code served (permissive licence) · get_code("0dbfb54acfddc8c8")
get_preds Ran peluz/persona-behavior/compute_results.py
code served (permissive licence) · get_code("a19fac296d166c3b")
openai_request Ran peluz/persona-behavior/models/inference.py
code served (permissive licence) · get_code("7321ced2b3b46d6b")
radar_factory Ran peluz/persona-behavior/utils/util.py
code served (permissive licence) · get_code("f71793c2e80df1bf")
reverse Ran peluz/persona-behavior/compute_results.py
code served (permissive licence) · get_code("822511420d0a0c8d")
generate_prompts Not yet run peluz/persona-behavior/dataloaders/loaders.py
code served (permissive licence) · get_code("62f9ebf49705f32b")
get_preds Not yet run peluz/persona-behavior/models/inference.py
code served (permissive licence) · get_code("cd72dc4024974449")
get_results_df Not yet run peluz/persona-behavior/utils/util.py
code served (permissive licence) · get_code("c39d1e6ce673bfd8")
load_model Not yet run peluz/persona-behavior/models/inference.py
code served (permissive licence) · get_code("789a9a0046f0f6b5")

Repositories linked to this paper

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

Abstract

One way to personalize and steer generations from large language models (LLM) is to assign a persona: a role that describes how the user expects the LLM to behave (e.g., a helpful assistant, a teacher, a woman). This paper investigates how personas affect diverse aspects of model behavior. We assign to seven LLMs 162 personas from 12 categories spanning variables like gender, sexual orientation, and occupation. We prompt them to answer questions from five datasets covering objective (e.g., questions about math and history) and subjective tasks (e.g., questions about beliefs and values). We also compare persona's generations to two baseline settings: a control persona setting with 30 paraphrases of "a helpful assistant" to control for models' prompt sensitivity, and an empty persona setting where no persona is assigned. We find that for all models and datasets, personas show greater variability than the control setting and that some measures of persona behavior generalize across models.

For agents

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

get_harvested_code_for_paper("2407.02099")
get_code_for_paper("2407.02099")
have("2407.02099")

Connect an agent — have() is free.