arXiv:2608.28977cs.AIAug 2026

Manuscript Offprint

arXiv:2608.28977

The Role of Network Topology and Opponent Information in Shaping Cooperation in Multi-Agent Reinforcement Learning Systems

Seongho Son, Stephen Hailes, Mirco Musolesi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Several works have investigated the influence of graph topology on cooperation among artificial agents, while the majority of the literature has focused on modelling agents' adaptation through strategy imitation, which relies solely on the cumulative payoffs of others. This paper investigates scenarios in which each agent learns to play the two-player Iterated Prisoner's Dilemma (IPD) using deep reinforcement learning. Each agent is represented as a node in a graph, where its neighbours constitute the pool of opponents with whom it can interact. During each IPD episode, agents are provided with different types of information about their opponent, consisting of action history and opponent identity. Experimental results across different graph topologies show that the number of neighbours per node and the average path length are the main factors affecting the emergence of cooperation. We also show that, while partner selection fosters mutual cooperation by limiting the diversity of the opponent pool, providing agents with the identity of their opponent hinders the proliferation of cooperative strategies.

Keywords: Iterated Prisoner's Dilemma; cooperation; graph topology; deep reinforcement learning; partner selection; state information.

1 Introduction

A large portion of interactions within human societies consists of altruistic behaviour, ranging from donating blood [1, 2] to investing in early-stage ventures with little expectation of direct returns [3]. Similar forms of altruistic behaviour can also emerge among artificial agents, where agents may incur individual costs to benefit others or contribute to collective outcomes.

If self-interested behaviour of each individual is assumed, what could be the factors that affect their tendency to be cooperative? The emergence of cooperation among multiple agents has attracted a substantial amount of attention in academic research [4, 5]. Social dilemmas in particular have been extensively studied, as they present mixed-motive situations where individually optimal choices are to act selfishly while socially optimal choices are to be cooperative [6–8].

Reinforcement learning (RL) has been widely used to model the learning dynamics of societies of artificial and human agents [9–14]. In RL, agents learn by changing behaviour to maximise their return, which is defined as the discounted sum of rewards. If the agent receives

*Corresponding author: seong.son.22@ucl.ac.uk a reward rk∈Rr_k \in \mathbb{R} at time step kk and the discount rate is denoted as γ∈(0,1]\gamma \in (0,1], the return GG is defined by G=∑k=0∞γkrkG = \sum_{k=0}^{\infty} \gamma^k r_k. With RL, we can investigate the behaviour of individual agents learning with various reward structures and different levels of access to information about the surrounding environment. The stationarity of the environment surrounding the agent is essential for the theoretical guarantee of the agent's performance improvement, which is violated with multiple agents learning at the same time [12]. Along with partial observability of the state, these features of multi-agent environments have been the major obstacles to stable and efficient training. Although approaches such as [9, 15] tried to address this issue by modelling or actually gaining access to the information of the agents' opponents, the methods can become intractable due to weak scalability. On the other hand, partner selection algorithms have been proposed as an approach to training multiple RL agents in decentralised scenarios, enabling agents to learn norm-inducing behaviours and promote cooperation [10, 13, 16, 17].

Graph topology representing agents as nodes provides a useful way to analyse relation between individuals and draw insights from the structure. Numerous approaches have been presented on the issue of cooperation using graph representation of the society [18–29]. Many existing works simulated agents' behaviour with learning algorithm based on imitation, in which each agent copies one of its neighbour's strategies with probability proportional to the difference between their accumulated payoffs. This approach enables agents to adopt the strategy that results in higher payoff, while it requires access to information on others' payoffs [18–21, 26]. Reinforcement learning does not rely on this requirement by using only the reward gained by the agent itself to adjust its behaviour. Although previous studies have highlighted the significant impact of graph topology on the emergence of cooperation, relatively little research has explored how it shapes the behaviour of reinforcement learning-based agents.

During interactions, agents' behaviours strongly depend on the information about their opponents. Previous work has investigated the role of reputation in the emergence of cooperation, often in the format of action history [10, 30–32]. Agents can prefer other agents with cooperative action history as their interaction partners, which can motivate agents to build a reputation of being cooperative. On the other hand, exposing information on their behaviours can render agents vulnerable to be targeted by defective agents and be exploited. Agents' behaviours can also be affected by the presence of their interaction partners' identity information in their observation [33–35]. When agents can observe the identity of their interaction partners, they can use different strategy. Behaviours like unconditionally cooperating with some of the agents while exploiting the others are possible in this setting. In this paper, we investigate cases where identity information is provided such that each individual can be distinguished from others by decoding state information.

Our work investigates how graph topology and opponent identity influence the emergence of cooperation. Each agent is represented as a node in a graph and interacts with its neighbours by playing two-player Iterated Prisoner's Dilemma (IPD) [4]. We provide experimental results with three different types of synthetic graphs and show that longer average path length and sparser graphs lead to more mutual cooperation of the agents. We also conduct experiments in which agents perform partner selection before IPD. We demonstrate that access to longer histories of an opponent's actions allows agents to more accurately discern the opponent's strategic behaviour. We report the results of the experiment of including identity information from the opponent in the state, in which the emergence of cooperation is hindered by enabling agents with defective strategies to spot entirely cooperative agents while avoiding retaliating agents, while providing more information on the action history alleviates the phenomenon.

References (40)