Tuesday, September 22, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Psychology & Psychiatry

New Open-Source Tools Let Scientists Study How Humans and AI Team Up

September 22, 2026
in Psychology & Psychiatry
Glenn Wilkins
By Glenn Wilkins Scienmag Editorial Profile - Clinical Psychology
Reading Time: 5 mins read
0
New Open-Source Tools Let Scientists Study How Humans and AI Team Up

New Open-Source Tools Let Scientists Study How Humans and AI Team Up

New Open-Source Tools Let Scientists Study How Humans and AI Team Up

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Artificial intelligence has become remarkably good at beating humans at games, from Go to Diplomacy to Stratego, yet the question that increasingly matters is not whether machines can outplay us but whether they can work with us. Researchers at Carnegie Mellon University have now released a pair of open-source tools designed to make that question dramatically easier to study. The tools, called CoGrid and the Multi-User Gymnasium, or MUG, give behavioral scientists a ready-made pipeline for building multi-agent virtual worlds, training AI agents inside them, and then putting real human participants into those same worlds through a web browser. The work, published in Behavior Research Methods, aims to dismantle the technical barriers that have kept human–AI interaction experiments rare, bespoke, and difficult to replicate.

The problem the researchers set out to solve is one of infrastructure. Studying how people and autonomous agents make decisions together requires an unusual combination of capabilities: a simulation environment flexible enough to model social dilemmas or cooperative tasks, reinforcement learning machinery to train AI partners, networking code to synchronize multiple participants in real time, and the mundane apparatus of online experiments, including consent forms, waiting rooms, matchmaking, surveys, and data collection. In most labs, each of these pieces has been rebuilt from scratch for every study, a burden that pushes researchers toward simpler proxies such as surveys, rule-based expert systems, or Wizard-of-Oz setups in which a human secretly plays the role of the AI. The result is a literature in which state-of-the-art learning agents are rarely tested against real people.

CoGrid attacks the first half of the problem. It is a multi-agent, grid-based simulation library inspired by Minigrid, a widely used single-agent toolkit, but redesigned so that any number of agents—human or artificial—can inhabit the same grid. Environments are formalized as partially observable Markov decision processes, with modular components for observations, actions, and rewards that researchers can mix, extend, and customize through configuration files and small Python classes. Crucially, CoGrid adopts the PettingZoo API, the emerging standard for multi-agent reinforcement learning, so any environment built with it plugs directly into existing training libraries. Agents are implemented as first-class grid objects rather than hidden state tracked outside the world, which is precisely the design choice that made the original Minigrid single-agent only.

The most distinctive feature of CoGrid is its dual backend. All simulation code runs through a backend-agnostic array namespace that dispatches to either NumPy or JAX at runtime. With the JAX backend active, environment functions are just-in-time compiled and can be vectorized across thousands of parallel environment instances on a GPU, enabling the high-throughput training that modern reinforcement learning demands. With the NumPy backend, the identical environment code runs without any JAX dependency, which makes it compatible with Pyodide, a compilation of Python to WebAssembly that allows code to execute directly inside a web browser. This single-implementation approach means a researcher can train an agent at scale on hardware and then deploy the exact same environment to participants’ browsers, something JAX-only libraries such as JaxMARL and NAVIX cannot do.

The empirical payoff of that architecture is striking. In a demonstration recreating the Overcooked cooperative cooking environment, CoGrid’s JAX backend scaled from roughly 4,500 simulation steps per second with a single instance to 5.6 million steps per second with 1,024 parallel instances running on a single NVIDIA GeForce RTX 3090, a throughput improvement of about 1.9 times over JaxMARL’s implementation of the same task. The NumPy backend is far slower, at around 450 steps per second, but it is the only variant of the three compared that can run natively in a browser. The authors argue this trade-off is the point: rapid prototyping, accelerated training, and web deployment from one codebase.

MUG handles the second half of the pipeline: turning a simulation into an actual experiment. It takes any Python environment that follows the Gymnasium or PettingZoo APIs and makes it playable in the browser, without game engines or a video-game development cycle. Experiments are composed as sequences of scenes—landing pages, instructions, waiting rooms, gameplay, surveys—stitched together by a Stager that can randomize or counterbalance conditions at the participant level. Data collection is handled through callbacks that fire at key events, logging actions, states, and custom variables to disk or external databases, and the platform generates completion codes for recruitment platforms such as Prolific and Amazon Mechanical Turk. Participants can even be filtered in advance by browser, device, or network latency.

The genuinely novel engineering lies in how MUG deals with latency. Most existing platforms run the environment on a server and stream frames to participants, which means every action requires a network round trip. At the 30 to 60 frames per second typical of real-time tasks, even moderate latency renders such interactions unusable, and the problem compounds in multiplayer settings where all players’ inputs must reach the server before the world can advance. MUG instead offers client-side execution, running the Python environment inside the participant’s browser via Pyodide, and for multiplayer it implements GGPO-style rollback netcode, a technique borrowed from latency-sensitive fighting games. Each client runs a deterministic copy of the environment with a shared random seed, applies its own input immediately, predicts the remote players’ inputs, and, when a prediction proves wrong, rolls back to the last confirmed state and silently re-simulates the intervening frames with the correct actions.

To demonstrate the framework end to end, the team ran proof-of-concept studies with human participants recruited through Amazon Mechanical Turk, approved by Carnegie Mellon’s Institutional Review Board. In the Overcooked studies, 29 participants played 20 episodes alongside a fixed reinforcement learning partner trained with Proximal Policy Optimization, while 40 participants played in human–human pairs; after exclusions, 23 and 36 participants respectively remained. The results echoed earlier findings from the original Overcooked-AI work: AI–AI pairs delivered roughly 7.5 dishes per episode, far outperforming human–AI pairs, whose performance stayed flat over time even as human–human pairs steadily improved by developing shared strategies from scratch.

A subtler behavioral pattern emerged in the contribution data. Although total team performance in human–AI pairs barely changed across episodes, humans gradually shifted toward delivering finished dishes rather than placing onions in the pot, quietly ceding the cooking role to the AI even though this produced no measurable gain. That dissociation—stable performance but evolving division of labor—is exactly the kind of psychological phenomenon the authors say the platform is built to expose, touching on questions of trust, role adoption, and complementarity in mixed human–AI teams. A second case study using the fast-paced physics game Slime Volleyball, which is not grid-based, showed that MUG works with external Gymnasium environments too, with human–AI pairs sustaining longer rallies than human–human pairs thanks to the trained agent’s higher baseline skill.

The authors are candid about limitations. CoGrid is confined to grid-based worlds and cannot model continuous control or physics-heavy dynamics, and MUG currently supports no explicit communication—no text chat or structured messaging—so all interaction is mediated through actions and observations. Communication features are planned for future releases. Even so, the framework fills a conspicuous gap. Existing environment libraries either require non-Python languages, lack hardware acceleration, or cannot run in browsers, and existing experiment platforms do not jointly support standard APIs, real-time multi-human play, and client-side execution. By lowering the barrier to entry on both fronts, CoGrid and MUG are intended to let researchers ask novel questions about how humans and machines coordinate, compete, and adapt to one another—questions that will only grow more urgent as autonomous agents enter everyday social life. Both tools, with documentation and source code, are freely available to the research community.

Subject of Research: An open-source framework for multi-agent simulation and web-based human–AI interaction experiments

Article Title: CoGrid & the Multi-User Gymnasium: A framework for multi-agent experimentation

Article References: McDonald, C., & Gonzalez, C. (2026). CoGrid & the Multi-User Gymnasium: A framework for multi-agent experimentation. Behavior Research Methods, 58(11), Article 295. https://doi.org/10.3758/s13428-026-03078-x

Image Credits: AI Generated

DOI: 10.3758/s13428-026-03078-x

Keywords: human-AI interaction, multi-agent systems, reinforcement learning, CoGrid, Multi-User Gymnasium, open-source software, web-based experiments, PettingZoo, JAX, rollback netcode, Overcooked, behavioral research methods

Cite Scienmag News

Glenn Wilkins. (September 22, 2026). New Open-Source Tools Let Scientists Study How Humans and AI Team Up. Scienmag. https://scienmag.com/new-open-source-tools-let-scientists-study-how-humans-and-ai-team-up/

Glenn Wilkins. "New Open-Source Tools Let Scientists Study How Humans and AI Team Up." Scienmag, 22 September 2026, https://scienmag.com/new-open-source-tools-let-scientists-study-how-humans-and-ai-team-up/. Accessed 22 September 2026.

Glenn Wilkins. "New Open-Source Tools Let Scientists Study How Humans and AI Team Up." Scienmag. September 22, 2026. https://scienmag.com/new-open-source-tools-let-scientists-study-how-humans-and-ai-team-up/

Tags: accessible platforms for human and AI collaborationbehavioral research methodsbuilding collaborative AI systemsCoGriddemocratizing human-AI decision-making studiesfacilitating human-AI teamwork studiesHuman-AI Collaboration.Human-AI InteractionJAXmulti-agent systemsmulti-agent virtual environmentsMulti-User Gymnasiumonline experimental infrastructure for AI researchonline human-AI interaction experimentsopen-source AI tools for behavioral researchopen-source softwareOvercookedPettingZooreal-time multi-user virtual worldsreinforcement learningreinforcement learning for AI partnersrollback netcodetools for social dilemma simulationsweb-based experiments
Share26Tweet16
Previous Post

Antibiotic Resistance May Depend on Environment, Danish Researchers Argue

Next Post

Saturn’s Dusty Middle Magnetosphere May Hide Ultra-Low-Frequency Solitary Waves

Related Posts

Wearable Sensors Track Sleep and Movement Across Pregnancy, Study Finds
Psychology & Psychiatry

Wearable Sensors Track Sleep and Movement Across Pregnancy, Study Finds

September 22, 2026
Virtual Lifestyle Program Shows Promise and Limits for People with Schizophrenia
Psychology & Psychiatry

Virtual Lifestyle Program Shows Promise and Limits for People with Schizophrenia

September 22, 2026
Rage, Not Tics: Explosive Outbursts Strain Families of Children With Tourette Syndrome
Psychology & Psychiatry

Rage, Not Tics: Explosive Outbursts Strain Families of Children With Tourette Syndrome

September 22, 2026
Half a Century Later, a New Survey Reveals Gaps in Psychiatry Training for Medical Students
Psychology & Psychiatry

Half a Century Later, a New Survey Reveals Gaps in Psychiatry Training for Medical Students

September 22, 2026
Therapists Weave Spirituality and Psychology Into One Clinical Practice, Study Finds
Psychology & Psychiatry

Therapists Weave Spirituality and Psychology Into One Clinical Practice, Study Finds

September 22, 2026
Work-Focused CBT Helps People With Depression and Anxiety Return to Work, Major Review Finds
Psychology & Psychiatry

Work-Focused CBT Helps People With Depression and Anxiety Return to Work, Major Review Finds

September 22, 2026
Next Post
Saturn’s Dusty Middle Magnetosphere May Hide Ultra-Low-Frequency Solitary Waves

Saturn's Dusty Middle Magnetosphere May Hide Ultra-Low-Frequency Solitary Waves

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Sliding Drops Reveal Competing Paths to Static Charge
  • Cellular Recycling Switch SIRT1-FOXO1 May Hold Key to Taming Brain Inflammation
  • Radar and Terrain Data Reveal Which Watersheds Are Primed for Deadly Flash Floods
  • Long-Term Fungicide Exposure Makes Foodborne Pathogen Bacillus cereus More Lethal

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading