Synthesizing Public Opinions with LLMs: Role Creation, Impacts, and the Future to eDemorcacy

Rabimba Karanjai, Boris Shor, Amanda Austin, Ryan Kennedy, Yang Lu +2 more
3/31/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

This paper investigates the use of Large Language Models (LLMs) to synthesize public opinion data, addressing challenges in traditional survey methods like declining response rates and non-response bias. We introduce a novel technique: role creation based on knowledge injection, a form of in-context learning that leverages RAG and specified personality profiles from the HEXACO model and demographic information, and uses that for dynamically generated prompts. This method allows LLMs to simulate diverse opinions more accurately than existing prompt engineering approaches. We compare our results with pre-trained models with standard few-shot prompts. Experiments using questions from the Cooperative Election Study (CES) demonstrate that our role-creation approach significantly improves the alignment of LLM-generated opinions with real-world human survey responses, increasing answer adherence. In addition, we discuss challenges, limitations and future research directions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{karanjai2025synthesizing,
  title  = {Synthesizing Public Opinions with LLMs: Role Creation, Impacts, and the Future to eDemorcacy},
  author = {Rabimba Karanjai and Boris Shor and Amanda Austin and Ryan Kennedy and Yang Lu and Lei Xu and Weidong Shi},
  year   = {2025},
  eprint = {2504.00241},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.00241v1}
}

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/2504.00241.svg)](https://codeofpaper.com/paper/2504.00241)

Discussion