Virtual Personas for Language Models via an Anthology of Backstories

Suhong Moon, Marwa Abdulhai, Minwoo Kang, Joseph Suh, Widyadewi Soedarmadji +2 more
7/9/2024
cs.CLcs.AI

Official code: CannyLab/anthology (37 stars, BSD-3-Clause, last commit 2026-02-10).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

CannyLab/anthologyOfficial100%
BSD-3-Clause

[EMNLP 2024 Main] Virtual Personas for Language Models via an Anthology of Backstories

375PythonJun 30, 20248 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{moon2024virtual,
  title  = {Virtual Personas for Language Models via an Anthology of Backstories},
  author = {Suhong Moon and Marwa Abdulhai and Minwoo Kang and Joseph Suh and Widyadewi Soedarmadji and Eran Kohen Behar and David M. Chan},
  year   = {2024},
  eprint = {2407.06576},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.06576v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.06576.svg)](https://codeofpaper.com/paper/2407.06576)

Discussion