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):
- 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. - 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.
Human Experiments
When tested against real human behavior, the models discovered autonomously by auto-psych outperformed all baseline models established in the existing literature.
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