Papers › Virtual Personas for Language Models via an Anthology of Backstories

Virtual Personas for Language Models via an Anthology of Backstories

9 Jul 2024arXiv:2407.06576archive 2025-07-28

Suhong Moon, Marwa Abdulhai, Minwoo Kang, Joseph Suh, Widyadewi Soedarmadji, Eran Kohen Behar, David M. Chan

Large language models (LLMs) are trained from vast repositories of text authored by millions of distinct authors, reflecting an enormous diversity of human traits. While these models bear the potential to be used as approximations of human subjects in behavioral studies, prior efforts have been limited in steering model responses to match individual human users. In this work, we introduce "Anthology", a method for conditioning LLMs to particular virtual personas by harnessing open-ended life narratives, which we refer to as "backstories." We show that our methodology enhances the consistency and reliability of experimental outcomes while ensuring better representation of diverse sub-populations. Across three nationally representative human surveys conducted as part of Pew Research Center's American Trends Panel (ATP), we demonstrate that Anthology achieves up to 18% improvement in matching the response distributions of human respondents and 27% improvement in consistency metrics. Our code and generated backstories are available at https://github.com/CannyLab/anthology.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.06576")

Code

Syntology Ran 10 of 15 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cannylab/anthology officialmentioned in papermentioned on GitHubBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 10 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
9ran
5unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from cannylab/anthology. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

generate_mcq cannylab/anthology/anthology/lm_inference/question_utils.py official repository ran BSD-3-Clause (permissive) · 2216c17ba1c6e4b5 · report
label_to_index_mapper cannylab/anthology/anthology/demographic_survey/response_parse_utils.py official repository ran fingerprinted BSD-3-Clause (permissive) · 9832a0e52b22286b · report
load_backstory CannyLab/anthology/anthology/backstory/backstory.py official repository ran · our draft was wrong BSD-3-Clause (permissive) · 1169149be5b9f40b · report
load_data cannylab/anthology/anthology/analysis/atp.py official repository ran BSD-3-Clause (permissive) · 6a7644fed88642f7 · report
nonzero_index_finder cannylab/anthology/anthology/demographic_survey/response_parse_utils.py official repository ran fingerprinted BSD-3-Clause (permissive) · 515607e16f43d17c · report
prepare_llm cannylab/anthology/anthology/lm_inference/llm.py official repository ran BSD-3-Clause (permissive) · 09aa43be3289a19d · report
regex_leaning_letter_classifier cannylab/anthology/anthology/demographic_survey/political_affiliation.py official repository ran fingerprinted BSD-3-Clause (permissive) · 393f36298ef6a632 · report
regex_strength_letter_classifier cannylab/anthology/anthology/demographic_survey/political_affiliation.py official repository ran fingerprinted BSD-3-Clause (permissive) · a536ee7b78d018e3 · report
regex_strength_response_classifier cannylab/anthology/anthology/demographic_survey/political_affiliation.py official repository ran fingerprinted BSD-3-Clause (permissive) · 0d42cc0269a379e6 · report
retry_with_exponential_backoff cannylab/anthology/anthology/lm_inference/backoff.py official repository ran BSD-3-Clause (permissive) · 052a7adf33f0375f · report
get_tokenizer cannylab/anthology/anthology/lm_inference/llm.py official repository unverified BSD-3-Clause (permissive) · c3a7b5e25aa5107e · report
number_to_index_mapper cannylab/anthology/anthology/demographic_survey/response_parse_utils.py official repository unverified BSD-3-Clause (permissive) · 305afac82adc9356 · report
numerical_response_parser cannylab/anthology/anthology/demographic_survey/response_parser.py official repository unverified BSD-3-Clause (permissive) · 2282f20fccb0175c · report
preprocess_numerical_response cannylab/anthology/anthology/demographic_survey/response_parser.py official repository unverified BSD-3-Clause (permissive) · 41533974dab8e04c · report
string_response_parser cannylab/anthology/anthology/demographic_survey/response_parser.py official repository unverified BSD-3-Clause (permissive) · 320efa985e8b290b · report

Tasks

Diversity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections