Learning Robust Social Strategies with Large Language Models
Dereck Piche, Mohammed Muqeeth, Milad Aghajohari, Juan Duque, Michael Noukhovitch, Aaron Courville
TL;DR
This work investigates how LLMs behave in multi-agent social dilemmas under reinforcement learning. Naive MARL drives LLMs toward greedy, exploitable strategies across diverse environments and even exposes vulnerabilities in advanced closed-source models. The authors adapt Advantage Alignment, with a group-relative baseline and an LoRA-based agent buffer, to train LLMs toward cooperative and non-exploitable behavior, demonstrated on IPD, Split No-Comm, and Trust-and-Split, including a communication-enabled Trust-and-Split scenario. Results show improved collective welfare and robustness to exploitation, including tit-for-tat-like and grim-trigger-like strategies, and the approach remains effective against adversarial RL opponents. The work also introduces a scalable social-dilemma testbed and releases code to support future multi-agent RL research for LLMs.
Abstract
As agentic AI becomes more widespread, agents with distinct and possibly conflicting goals will interact in complex ways. These multi-agent interactions pose a fundamental challenge, particularly in social dilemmas, where agents' individual incentives can undermine collective welfare. While reinforcement learning (RL) has been effective for aligning large language models (LLMs) in the single-agent regime, prior small-network results suggest that standard RL in multi-agent settings often converges to defecting, self-interested policies. We show the same effect in LLMs: despite cooperative priors, RL-trained LLM agents develop opportunistic behavior that can exploit even advanced closed-source models. To address this tendency of RL to converge to poor equilibria, we adapt a recent opponent-learning awareness algorithm, Advantage Alignment, to fine-tune LLMs toward multi-agent cooperation and non-exploitability. We then introduce a group-relative baseline that simplifies advantage computation in iterated games, enabling multi-agent training at LLM scale. We also contribute a novel social dilemma environment, Trust-and-Split, which requires natural language communication to achieve high collective welfare. Across a wide range of social dilemmas, policies learned with Advantage Alignment achieve higher collective payoffs while remaining robust against exploitation by greedy agents. We release all of our code to support future work on multi-agent RL training for LLMs.
