Manuscript Offprint

arXiv:2610.13710

OpenSocialJax: Evaluating Social Adaptation in Sequential Social Dilemmas with Open-Ended Environmental Dynamics

Zihao Guo, Meng Fang, Joel Z. Leibo, Yali Du

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Sequential social dilemma benchmarks capture diverse social interactions, but rarely test whether agents can infer hidden environmental rules through repeated interaction while adapting to other agents. We introduce OpenSocialJax, which extends Clean Up and Commons Harvest across an open-ended distribution of latent environment configurations, systematically varying spatial layouts and hidden rules governing tool crafting, payoffs, and resource dynamics. Each episode samples one configuration from tens of millions of possibilities and holds it fixed across five trials. We evaluate eight large language models, including three closed source models and five open source models. Our evaluation tests whether models can discover hidden rules and adapt to other agents in homogeneous and mixed teams. We find that rule discovery often improves performance but does not reliably sustain cooperation, as the cleaning burden becomes concentrated among fewer agents in OpenCleanup and every team eventually exhausts the shared resource in OpenHarvest. In our mixed arena, one cooperative agent was able to sustain the public good in OpenCleanup at a cost to its own return, but could not prevent resource depletion in OpenHarvest. Together, these results highlight the difficulty of adapting jointly to unfamiliar environmental dynamics and the changing behavior of other agents. Code and demo are available at https://github.com/cooperativex/OpenSocialJax.

1 INTRODUCTION

Developing agents that can use experience to adapt across diverse and unfamiliar tasks is an important challenge. In multi-agent settings, adaptation requires agents to infer not only how the environment operates, but also the behaviors, capabilities, and objectives of other agents. This is particularly challenging in sequential social dilemmas, where individual and collective interests may conflict. Consequently, it is crucial to develop benchmarks that systematically vary hidden environmental rules and dynamics. Such benchmarks enable controlled evaluation of how agents adapt to unfamiliar environmental mechanisms and the social dilemmas they induce.

Existing environments have made substantial progress in evaluating agents in sequential social dilemmas. Melting Pot (Leibo et al., 2021; Agapiou et al., 2022) provides a diverse suite of social environments with procedurally generated elements, while SocialJax (Guo et al., 2026) offers efficient JAX implementations of widely used social dilemma environments. However, these benchmarks are not designed to vary the hidden environmental dynamics underlying a social dilemma or evaluate how agents discover and adapt to them over repeated interactions.

Prior open-ended and meta learning environments have substantially expanded the diversity of settings available for training and evaluating adaptive agents. XLand (Team et al., 2021) constructs a vast, procedurally generated multi-agent task space, while XLand-MiniGrid (Nikulin et al., 2024) provides a JAX-based implementation of 2D XLand. Craftax (Matthews et al., 2024) offers a JAX-based benchmark for open-ended reinforcement learning. However, these environments do not ex-plicitly examine how adaptation to changing environmental rules interacts with the social dilemmas those rules induce.

From the perspective of agent adaptation, large language model (LLM) agents offer a promising means of studying how agents reason about and respond to unfamiliar interactive environments. Prior work has shown that LLMs can use textual descriptions of game states to reason, plan, and select actions in interactive games (Wu et al., 2023; Wang et al., 2023). These capabilities may allow them to infer latent environmental rules, reason about the behaviors and objectives of other agents, and revise their strategies as new evidence becomes available (Meta Fundamental AI Research Diplomacy Team (FAIR)† et al., 2022). Nevertheless, their ability to adapt when environmental rules and social dependencies vary jointly remains unclear.

These gaps motivate benchmarks for open-ended experimentation that systematically vary hidden environmental rules and the social dependencies they induce. To address this need, we introduce OpenSocialJax, as shown in Figure 1, which extends Clean Up and Commons Harvest (Leibo et al., 2021; Agapiou et al., 2022; Guo et al., 2026) with newly designed procedural generators for environment layouts and hidden mechanisms. Each episode samples a latent configuration that remains fixed across multiple trials, allowing agents to accumulate evidence and revise their strategies through interaction. Resampling the configuration across episodes produces a broad and controllable distribution of unfamiliar conditions rather than a fixed collection of predefined scenarios. This design enables controlled investigation of how LLM-based agents explore unfamiliar settings, infer hidden mechanisms, and adapt to the evolving behaviors of other agents while navigating conflicts between individual and collective interests.

To evaluate how effectively LLMs reason and adapt in sequential social dilemmas, we consider eight recent models spanning diverse model families and capability levels. The closed source set includes GPT-6-Luna (OpenAI, 2026a), GPT-6-Sol (OpenAI, 2026b), and Claude Opus 5.5 (Anthropic, 2026). The open source set comprises Qwen3.8-27B (Qwen Team, 2026b), Qwen3.5-4B (Qwen Team, 2026a), DeepSeek-V4.1-Flash (Xu et al., 2026), Gemma 4 (Team et al., 2026), and GLM-5.3-Flash (Zeng et al., 2026).

In summary, our contributions are threefold. First, we introduce OpenSocialJax, a benchmark of sequential social dilemmas whose map layouts and hidden rules are drawn from tens of millions of configurations. OpenSocialJax moves beyond dilemma benchmarks with fixed rules to test joint environmental and social adaptations. Second, we develop a protocol with repeated trials for evaluating LLM agents over long horizons, in which agents must adapt to both hidden environmental dynamics and the behavior of other agents. Agents maintain their own notes between trials, preserving their discoveries and enabling us to analyze how they respond to changing environmental dynamics in social dilemmas. Third, we evaluate eight recent open source and closed source frontier LLMs in both homogeneous populations and mixed arenas. We analyze the interplay between exploration guided by hypotheses, exploitation of the discovered rules, and free riding. Even the strongest model reasons explicitly about the dilemma in its own notes, yet still ends up depleting the shared resource or being exploited by others.

References (80)