TL;DR
HumanStudyProgram is a framework that transforms static research papers into executable Python code, allowing researchers to run human-subject protocols using LLMs as "silicon participants." By separating study logic from participant implementation, it enables rapid prototyping, deep inspection of published protocols, and a new way to study AI behavior through the lens of established social science.
What Problem Does This Paper Address?
In fields like Human-Computer Interaction (HCI) and psychology, reproducing a study is notoriously difficult. Even when authors share materials, the exact protocol—the specific wording, the order of tasks, the logic for branching conditions—is often scattered across the methods section, appendices, and supplementary files.
Unlike machine learning, where researchers can simply clone a GitHub repository to reproduce a result, human-subject research lacks a standardized "digital artifact." Reconstructing a study from a paper requires significant manual effort, and testing it requires the high cost of recruiting and compensating human participants. This paper aims to bring the "frictionless reproducibility" of empirical machine learning to the social sciences.
Methods
The authors introduce a computational abstraction that represents a study as an executable program. The core innovation is the separation of study logic from participant implementation.
1. The Abstraction: Show and Ask
The framework uses two primary API operations to interact with participants:
Show(participants, content): Presents information (instructions, vignettes) to one or more agents.Ask(participants, question): Poses a question and returns a response.
By using these APIs within ordinary Python code (for loops, if-statements, etc.), any study—from a simple survey to a multi-round group game—can be expressed as a program.
2. The Authoring Tool
The system consists of two linked stages:
- Build Study: An LLM-assisted pipeline extracts five components (Materials, Participants, Procedure, Response, and Analysis) from a paper or ZIP archive. Crucially, it links every extracted detail back to its source in the PDF and flags missing or conflicting information for researcher review.
- Playground: A runtime environment where researchers configure "silicon participants" (assigning them personas, models like GPT-4, and memory settings), execute the study, and analyze the results.
Datasets
The paper does not introduce a new training dataset. Instead, it demonstrates the framework's versatility using 13 diverse study cases from existing literature, including:
- The $p$-Beauty Contest: A multi-round game where participants guess numbers based on group averages.
- The Trust Game: An exchange-based experiment involving "investors" and "trustees."
- Framing Effects: Classic cognitive psychology experiments.
For evaluation, the authors recruited 12 doctoral-level social science researchers who used the tool to reconstruct and run studies from their own areas of expertise (economics, management, political science).
Key Insights and Ideas
- Protocol as Code: By forcing a study into an executable format, ambiguities in the original paper are immediately surfaced. For example, if a paper says "tasks were randomized," the code must specify how they were randomized.
- Silicon Participants as "Protocol Exercisers": The authors emphasize that LLMs are not necessarily meant to replace human evidence. Instead, they serve as a way to "exercise" the protocol—identifying bugs in the logic or testing how different question phrasings might influence responses before spending money on human trials.
- Traceable Interpretation: The tool allows researchers to click on a high-level statistical finding and drill down through condition-level distributions all the way to the raw prompt and response of a single "silicon" individual.
- Source-Grounded Reconstruction: Rather than "hallucinating" missing details, the tool flags them. In one instance, it identified that a published paper's described scale didn't match the one actually used in the experiment.
Key Results
- Expert Validation: All 12 researchers successfully completed the workflow, collectively identifying 98 issues in the published papers they were reviewing (e.g., missing anchor values or unclear branching logic).
- High Utility: The tool received a median rating of 6/7 for "Value for research practice." Researchers noted it helped them "read" papers more deeply and provided a "comprehensive" way to address uncertainties in literature.
- Transparency: Participants specifically valued the "Assembled Prompt Inspector," which showed exactly what the AI agent saw at every step, reducing the "black box" nature of LLM-based simulations.
Limitations and Future Work
- Media Constraints: Currently, the framework only supports text-based social experiments. It does not yet handle studies involving physical action, physiological sensors (like heart rate), or immersive VR environments.
- Dependency on Source Quality: The quality of the generated program is strictly capped by the information available in the source paper and its supplements.
- Human-AI Gap: While useful for prototyping, the authors caution that silicon participant data cannot yet substitute for human evidence when making claims about human populations.
- Future Vision: The authors propose "Executable Research Publications," where the paper is not a static PDF but a living document generated directly from the study's code and execution records.
Summary updated