Reproduce “Prompt Design Matters for Computational Social Science Tasks but in Unpredictable Ways” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Shubham Atreja, Joshua Ashkinaze, Lingyao Li, Julia Mendelsohn, Libby Hemphill

Researchers from the University of Michigan School of Information conducted a large-scale, multi-prompt experiment to systematically assess how prompt design features impact the compliance and accuracy of large language models (LLMs) in computational social science annotation tasks. The study found that prompt design choices led to unpredictable and substantial variations in LLM performance and significantly altered the distribution of generated labels across different models and tasks.

Key insights

  • LLM compliance and accuracy are highly prompt-dependent, with minor prompt changes causing large shifts in label distribution, and effects varying significantly by model and task.
  • Prompting for numerical scores generally decreased both LLM compliance and accuracy due to limitations in numerical reasoning.
  • Requesting explanations improved compliance for some models but critically altered the distribution of generated labels, which could impact downstream research conclusions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.