auto-psych: Automating the science of mind using agent-driven theory discovery and experimentation

Ben Prystawski, Kushin Mukherjee, Daniel Wurgaft, Linas Nasvytis, Michael Y. Li, Noah D. Goodman, Michael C. FrankarXiv 2026

TL;DR

auto-psych is an autonomous, agent-based framework that closes the scientific discovery loop in computational cognitive science by generating hypotheses, designing optimal experiments, programmatically recruiting human participants online, and iteratively refining probabilistic models. When tested on the classic psychological problem of subjective randomness, the system successfully recovered ground-truth models in simulation and discovered new cognitive models that fit real human behavior significantly better than established theories from the literature.

What Problem Does This Paper Address?

While AI has made massive strides in assisting scientists with data analysis or hypothesis generation, fully automating the scientific process remains an open challenge. A major bottleneck is data collection, particularly in fields like psychology where experiments require real human participants.

Fortunately, computational cognitive science is uniquely positioned for automation: its theories are frequently formalized as executable code (probabilistic programs), and modern crowdsourcing platforms (like Prolific) offer robust APIs for programmatic data collection. The authors introduce auto-psych to exploit these advantages, creating a system capable of running iterative scientific cycles completely without humans in the loop.

Methods

The core architecture of auto-psych relies on two nested, LLM-driven loops (powered by gemini-3.1-pro-preview via the OpenCode harness):

Figure 1: An agent-based discovery loop for automated cognitive science. In the outer loop, an LLM agent designs an experiment by proposing candidate stimuli, which are then ranked by their expected information gain over a model registry. Selected stimuli are implemented as a jsPsych experiment and deployed to participants on Prolific. The collected human data are passed to the inner loop. In the inner loop, each registry model is first fit to the data. A critic agent then performs posterior-predictive checks: it both proposes and computes test statistics on datasets simulated from the best incumbent model and compares this reference distribution to the value computed on the human data. A theorist agent uses this critique to propose new probabilistic models. The best-fitting model is carried forward to the model registry. In practice, we have an additional theorist agent in the outer loop proposing models before designing experiments on iterations after the first.
  1. The Outer Loop ("Lab-in-the-Loop"): This loop handles experiment design and data collection. An LLM agent proposes candidate experimental stimuli (e.g., pairs of coin-flip sequences). These are ranked using Expected Information Gain (EIG) to select the most informative trials. An implementation agent then generates a web-based experiment using jsPsych, deploys it to Google Firebase, programmatically recruits human participants via the Prolific API, and streams the results back once complete.
  2. The Inner Loop ("Box's Loop"): Once data arrives, the inner loop scores the existing models using Markov chain Monte Carlo (MCMC) sampling in PyMC. A critic agent performs posterior-predictive checks to find statistically significant flaws in the best model. A theorist agent then reads these critiques and writes new PyMC code to address the model's shortcomings.

Datasets

The framework was evaluated using a classic cognitive psychology testbed: subjective randomness (determining which sequences of coin flips humans perceive as more random).

  • Synthetic Data (Model Recovery): To validate the system, data was generated using held-out "seed" models from psychological literature, as well as intentionally implausible "alien" models (e.g., assuming longer runs of the same outcome look more random).
  • Human Data: The authors deployed three independent live replicates of the loop. Each replicate ran for 3 rounds, recruiting 40 human participants per round via Prolific, culminating in a pooled dataset of approximately 11,000 individual behavioral trials.

Key Insights and Ideas

  • The Power of Nesting: The dual-loop structure is essential. When the authors ablated the inner loop (removing the targeted critique-and-refine step), the system's ability to recover ground-truth models degraded significantly.
  • Algorithmic Serendipity: Rather than just combining existing heuristics into a messy "mega-model," the theorist agent successfully isolated distinct, parsimonious cognitive mechanisms.
  • API-Driven Science: The paper proves that integrating LLM agents with cloud databases and crowdsourcing APIs allows automated systems to safely and legally navigate human-subject research pipelines (under IRB approval).

Key Results

Model Recovery Validation

In simulation, auto-psych consistently minimized root mean squared error (RMSE) against ground-truth models, proving it can reliably reverse-engineer the underlying cognitive processes generating the data.

Figure 2: Root mean squared error between held-out seed models (top) and psychologically implausible “alien” models (bottom) for each model scoring step. Orange lines show the fit of the best seed model (other than the held-out one) fit to all of the data. Vertical gray lines delimit the three experimental rounds. Error bars show standard error of the mean.

Human Experiments

When tested against real human behavior, the models discovered autonomously by auto-psych outperformed all baseline models established in the existing literature.

Figure 3: Comparison of the best-fitting model proposed by an agent to the seed models at the end of each run. Error bars denote difference standard error.

The standout discovery was the "Minkowski typicality" model. It posits that humans judge randomness by comparing a sequence's properties to an internal prototype, penalizing deviations using a distance metric that sits precisely between Manhattan and Euclidean distance (a power exponent of 1.35). On pooled human data, this model achieved the highest Expected Log Predictive Density (ELPD-LOO) and captured 83% of the explainable variance ($R^2 = 0.664$ against a noise ceiling of $0.80$).

Limitations and Future Work

  • Domain Scope: The study was restricted to a discrete, low-dimensional stimulus space (short binary sequences). Scaling this to complex, naturalistic stimuli (like images or language) remains an open challenge.
  • Conservative Revisions: The discovered models were largely optimizations of existing frameworks rather than entirely radical paradigm shifts.
  • The "Perils" of Automation: The authors note broader risks, including the potential for AI agents to homogenize scientific theories, create an overwhelming flood of automated publications for peer review, or lead to the "deskilling" of human researchers.

Summary updated

BibTeX
@misc{prystawski2026auto,
  author = {Ben Prystawski and Kushin Mukherjee and Daniel Wurgaft and Linas Nasvytis and Michael Y. Li and Noah D. Goodman and Michael C. Frank},
  title = {{auto-psych: Automating the science of mind using agent-driven theory discovery and experimentation}},
  year = {2026},
  eprint = {2606.26460},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26460},
}
Figure