Abstract
Multi-agent reinforcement learning involves interacting agents whose learning processes are coupled through a shared environment. This work introduces a discrete-time approximation model for multi-agent Boltzmann Q-learning that accounts for agents’ update frequencies. We demonstrate why previous models do not accurately represent the actual stochastic learning dynamics while our model can reproduce several complex emergent dynamic regimes, including transient cooperation and metastable states in social dilemmas like the Prisoner’s Dilemma. We show that increasing the discount factor can prevent convergence by inducing oscillations through a supercritical Neimark–Sacker bifurcation, which transforms the unique stable fixed point into a stable limit cycle. This analysis provides a deeper understanding of the complexities of multi-agent learning dynamics and the conditions under which convergence may not be achieved.
1. Introduction
A typical approach to multi-agent reinforcement learning (MARL) [1] is to extend single-agent algorithms such as Q-learning to multi-agent settings by treating each agent’s learning as an isolated process, called “independent learning” [2] because the processes are only indirectly linked to other agents’ learning processes via the shared environment. Although this implies a loss of stationarity on which many single-agent convergence guarantees rely [3], independent learning is popular for its adaptability and scalability [4] and serves as a competitive baseline in MARL [5].
Still, it is well known that agents’ stochastic learning interactions can lead to complex emergent dynamics [6,7,8]. These can be analysed and sometimes improved by dynamical systems theory [9,10,11,12,13] if the stochastic algorithms are approximated by deterministic dynamical equations. Often, a continuous-time limit is taken that links the model to evolutionary game theory [14,15,16].
For Q-learning, such deterministic approximations were attempted, e.g., in [17,18]. The Frequency-Adjusted Q-learning (FAQL) model [17] simplifies the stochastic, discrete-time independent Q-learning process into a system of deterministic, continuous-time ordinal differential equations. They do so by letting the time step interval (and thus the per-step learning rate) go to zero and taking expectations. The Batch Q-Learning (BQL) model [18] instead keeps the discrete time and effectively eliminates the stochasticity by letting the batch size go to infinity, which makes update targets almost deterministic due to the law of large numbers.
Despite getting important aspects of the dynamics right, the FAQL and BQL models however do not approximate standard Q-learning but variants of the learning algorithm with markedly different dynamics. This fact was noted by some [3,19,20,21,22] but not all works in the field [7,23,24,25].
In this article, we clarify the relationships between those approximation models and the original Q-learning algorithm, explain the observed discrepancies, and propose a more accurate approximation model. Using the Prisoner’s Dilemma as a running example, we show that apparent stable cooperation is not an equilibrium of the dynamics but a prolonged transient. This metastable phase is induced by a Boltzmann policy driving update frequencies toward zero and eventually gives way to oscillatory dynamics arising from a moving target problem. Together, these results underscore that accounting for Q-value update frequencies is essential for understanding independent Q-learning dynamics. Initial experiments further suggest that these findings extend qualitatively to value-based Deep MARL algorithms.
2. Background, Problem and Pitfalls
2.1. Independent Q-Learning in a Single-State Environment
We study a minimal multi-agent system, serving as a paradigmatic example: two agents interacting in a single-state environment, playing the Prisoner’s Dilemma, characterised by a single pure Nash equilibrium where both agents defect. In each of finitely many steps, the agents can either choose to cooperate (C) or to defect (D). The per-step reward tensor is given by
At each time step t, agent i chooses an action , where and receives a reward based on the joint action , where the superscript denotes the opponent.
Agents update their Q estimates independently using ([26], Appendix A)
where is i’s learning rate, the discount factor and the random action process governed by a Boltzmann softmax policy with temperature ,
Appendix A provides additional discussion on this setup.
The dynamics of the learning process are fully described by the 4D state vector in Q space, . The joint policy is a function of that has only two free dimensions due to normalisation, here represented by the cooperation probabilities . We will see that a pitfall for forming an approximate model is that at each time step, only the Q values of the actions actually taken are updated, represented by the Kronecker delta in (2).
2.2. Previous Deterministic Models
The stochastic nature of MARL makes its dynamics obscure and difficult to interpret [3,27]. The goal of approximation models of MARL processes is thus to transform them into deterministic dynamical equations that are easier to analyse and reduce the dynamics to its core.
2.2.1. Frequency-Adjusted Q-Learning (FAQL) Model
After ref. [14] had established a connection between Cross Learning [28] and evolutionary game theory, ref. [17]—and similarly ref. [15]—attempted to apply their approach to independent Q-learning in single-state environments. The idea is to assume vanishing time steps and a learning rate to transform a stochastic, discrete-time process into a differential equation in continuous time. Ref. [17] proposed that the Boltzmann policy in independent Q-learning can thus be approximated by the replicator equation
But in their derivation, they implicitly assumed that all Q-values are updated at each time step, effectively treating the update rule (2) as if the Kronecker delta was absent. This mistaken assumption has two significant effects: (i) it reduces the dynamics to the two- (instead of four-) dimensional policy space and (ii) makes it independent of the discount factor. They lead to crucial discrepancies between model and actual dynamics, as was noted in ref. [20]. But instead of correcting the approximation, ref. [20] (and likewise ref. [19] beforehand), proposed a modified algorithm instead, called Frequency-Adjusted Q-learning (FAQL). It smooths the learning process by scaling the learning rate with the inverse of the update frequency (capped at some value ), resolving the discrepancies caused by the Kronecker delta in the derivation of (4).
2.2.2. Batch Q-Learning (BQL) Model
Ref. [18] extended previous deterministic models of MARL, such as the FAQL model, to encompass multi-state environments with discounting. Their BQL model approximates a batch version of temporal difference learning, where the timescales of interaction and adaptation are separated. Taking the infinite batch limit, essentially assuming agents have perfect knowledge of their opponents’ policy, allows one to derive deterministic equations. Appendix B translates the equations from [18] to our single-state setup, in which the FAQL model corresponds to the continuous-time limit of the discrete-time BQL model; hence, we also collectively refer to them as the ‘FAQL/BQL model’.
The fixed point (A10) of the resulting dynamics can be interpreted outside the learning context as defining a “soft” version of Nash equilibrium based on a form of bounded rationality rather than full rationality: if the equation is fulfilled, both players do not maximise but “soft maximise” their reward under the correct assumption that the other player does likewise, by playing the corresponding Boltzmann policy. In behavioural game theory, this form of equilibrium is called ‘Logit Quantal Response equilibrium’ [29]. As experimental evidence from humans suggest that indeed boundedly rational human decisions sometimes approximate such soft equilibria [30], the question of whether MARL algorithms converge to such points as well is an important plausibility check.
Both previous approximation models, FAQL and BQL, exhibit the following key characteristics:
- 1.
- A fixed point of the dynamics is a boundedly rational strategic equilibrium.
- 2.
- They operate within the lower-dim. policy space rather than the higher-dim. Q-value space.
- 3.
- For single-state environments, they are independent of the discount factor .
How well do these models still capture the core dynamics of actual independent Q-learning?
2.3. Comparison Between Independent Q-Learning and the FAQL/BQL Model
Q-learning occurs in Q space while the FAQL/BQL models operate in policy space, so we need to translate between them. Since with , each joint policy corresponds to a 2D affine subspace of Q space. As we want to study the influence of initial conditions in policy space, , on the dynamics, we need to translate those to corresponding initial conditions in Q space, , which we choose to be
where is a parameter that governs the overall initial level of -values. For simplicity, we consider to be homogeneous, and omit their indices thereafter.
Figure 1A,B depict the time evolution of single runs of independent Q-learning for , and two different initial joint policies. In both cases, after the first few hundred time steps, the policy trajectories settle into metastable phases where they remain for an extended period. The dynamics then undergo a drastic shift, transitioning into a sustained oscillatory pattern that persists indefinitely. In Figure 1A this occurs after approximately 70 thousand steps. In Figure 1B the shift is even more pronounced, occurring after about two million steps. In stark contrast, the FAQL/BQL models display fundamentally simpler behaviour, predicting convergence to a joint policy within just a few hundred steps.
A comparison of the dynamics in policy space highlights the differences. Figure 2I shows averaged policy trajectories of Q-learning over five runs for two different initialisation approaches and two different values of . Figure 2II displays the dynamics of the FAQL and BQL models. Apparently, the actual trajectories deviate from their predictions. For , the trajectories follow the edges of the policy space. For , the trajectories initially cluster near the centre of the policy space. For , although the trajectories differ from the FAQL/BQL model, they eventually equilibrate around the same fixed point. However, for the trajectories fall into indefinite oscillations, which are not centred around the fixed point. In Figure 2B, some trajectories appear to converge to mutual cooperation in the depicted time span of steps. Note that these states are only metastable. Given sufficient time, the trajectories eventually transition to the oscillatory pattern. In summary, the stylised discrepancies are:
- 1.
- Whereas the FAQL/BQL model dynamics converge to a single Logit Quantal Response equilibrium in the Prisoner’s Dilemma after a couple of hundred steps, actual independent Q-learning does not necessarily converge to any strategic equilibrium and may instead settle into oscillations that might emerge only after millions of steps.
- 2.
- Whereas the FAQL/BQL model reside in the lower-dim. policy space, actual independent Q-learning dynamics cannot be reduced from the higher-dim. Q space: the initialisation matters.
- 3.
- Whereas the FAQL/BQL model is independent of the discount factor in single-state environments, actual independent Q-learning dynamics are clearly influenced by changes in and exhibit fundamentally different behaviour.
Figure 1.
Comparison between a single run of independent Q-learning on the Prisoner’s Dilemma (top panels: (A,B) obtained by stochastic simulation), and the trajectory of our deterministic approximation model (bottom panels: (C,D) obtained by numerical integration), defined by (6), for , , , . (Timings and trajectories vary across different runs as learning is a stochastic process). We show the evolution of the Q-values () and the resulting probabilities of cooperation (). Dotted policy lines in (C,D) correspond to previous approximation models FAQL (4) and BQL (A8), obviously fitting the actual dynamics badly. The left panels (A,C) depict an initial joint policy , corresponding to Q-values via (5). The right panels (B,D) show an initial joint policy , corresponding to Q-values via (5).
3. A Choice-Probability-Aware Model of Independent Q-Learning
The discrepancies between the FAQL/BQL models and independent Q-learning arise from the implicit assumption that all Q-values are updated at each step. The works of [18,19,20] recognised the need to consider update frequencies but modified the algorithm to fit the model, rather than adjusting the model itself. While some publications [3,21,22] acknowledged that the FAQL model [17] does not accurately represent actual independent Q-learning, others—including [23,24] and more recent works like [7,25]—do not mention this discrepancy, potentially overlooking its implications.
Recently, ref. [31] proposed an adjusted “continuity equation model” of independent Q-learning in large-scale multi-agent systems modelled as population games. A similar model was proposed by [11] for non-sequential one-shot games. But crucially, their models are limited to the case . Thus, we cannot apply it to explain all of the stylised discrepancies from above.
Figure 2.
Comparison between averaged policy trajectories of independent Q-learning on the Prisoner’s Dilemma ((I), obtained by stochastic simulations) and previous deterministic models ((II), obtained by numerical integration) for and . (I): Top panels (A,B): . Bottom panels (C,D): . Left panels (A,C): . Right panels (B,D): . For each initialisation, five runs are executed. Trajectories from the same initialisation are grouped based on their location in policy space on the last simulated time step (below or above the diagonal from (0,1) to (1,0)), and the mean of each group is plotted. Line thickness indicates the proportion of runs in each group. The colour gradient (purple to yellow) indicates time evolution. The red cross marks the fixed point of the FAQL/BQL model. Note that in panel B, some trajectories initialised in the top right appear to converge to the metastable phase of mutual cooperation in the depicted time span of steps. (II): Vector fields of previous models. (E): FAQL model in continuous time, defined by (4). (F): BQL model in discrete time, defined by (A8). (G): Stability analysis of the BQL model (see Appendix C). It has a unique symmetric fixed point , depending on the temperature . All absolute eigenvalues of the Jacobian at are below 1, indicating a stable node.
Here, we propose an approximation model for independent Q-learning in a single-state, repeated environment, with discounting but no memory, that makes update frequencies proportional to current policies and can explain all of the dynamics observed above. It essentially adapts the model of ref. [11] to sequential decision-making.
Our model retains the discrete-time steps of actual Q-learning and represents the expected change in Q values from step to step:
It is not possible to reduce these dynamics to policy space since depends on absolute Q values rather than only on Q differences.
However a projection of the dynamics onto policy space can still reveal interesting dynamics (Figure 3). For reasonably small learning rates (), a comparison with the averaged trajectories of actual independent Q-learning (Figure 2) demonstrates that our model captures the observed complexities. For , all trajectories converge to the fixed point of the FAQL/BQL model, . In contrast, for , the behaviour depends on the initial policies: symmetric initial policies converge to while asymmetric initial policies lead to oscillatory dynamics. Note that for , the trajectory starting at the symmetric initial condition remains in the cooperation state for up to two million steps, seemingly contradicting the statement just made. However, after four billion steps, it settles at (see Figure A1 in Appendix D).
Figure 3.
Projection of the 4D deterministic dynamics (obtained by numerical integration), defined by (6), into 2D policy space for the Prisoner’s Dilemma with , , and different values of and . The colour gradient (purple to yellow) represents time evolution. The end point of each trajectory is indicated by a red cross. Top panels (A,B): . Bottom panels (C,D): . Left panels (A,C): . Right panels (B,D): . Note that in panel B, the trajectory initialised at eventually converges to the fixed point , but only after steps, far beyond the depicted steps.
These phenomena are readily explained and proven through a stability analysis (Appendix D), offering an efficient approach while avoiding ambiguities of interpreting individual trajectories or specific parameter cases. Note that a policy space projection of a fixed point of (6) is also an equilibrium solution of the FAQL/BQL model, but their stability differs. While is a stable node for all values of T and in the FAQL/BQL model, the stability of is more nuanced.
For , the 4D fixed point is a stable focus for (Figure 4B). At , the system undergoes a supercritical Neimark–Sacker bifurcation, turning the stable focus into an unstable one, around which a stable limit cycle emerges. A Neimark–Sacker bifurcation can be viewed as a discrete-time analogue of an Andronov–Hopf bifurcation.
Figure 4.
Stability analysis of (6) for the Prisoner’s Dilemma, with and three different temperature values: (A), (B), and (C). The first row shows a projection of the 4D fixed point , defined by (A12), in 2D policy space, illustrating how the equilibrium policy is not affected by the discount factor. The second row shows the absolute eigenvalues of the Jacobian at as a function of , with the discrete-time stability threshold () highlighted. It demonstrates that although the position of the fixed point in policy space remains unaffected by , its stability properties in Q space change. The third row provides schematic representations in a lower-dim. representation of the corresponding dynamical regimes for different ranges of , illustrating transitions between stability, oscillatory dynamics, and divergence.
All trajectories with asymmetric initial conditions, even with minimal deviation, converge to this limit cycle, leading to the oscillations observed for . For , the unstable focus turns into a saddle node. Figure 5 illustrates these different dynamical regimes. Note that the trajectory initialised at for remains at mutual cooperation within any finite number of steps feasible for computational simulation. However, the equations show that this is not a stable fixed point.
Figure 4 further reveals that varying T not only shifts the fixed point in policy space but also alters how the discount factor influences stability.
Using the fixed point (A12) (Appendix D), which also defines an agent’s target values given its opponent’s policy, we can now explain the phenomena observed in Figure 1 and Figure 2 step by step. As a representative case, we analyse the trajectory shown in Figure 1C.
Figure 5.
Projection of the 4D deterministic dynamics (obtained by numerical integration), defined by (6), for the Prisoner’s Dilemma with , and different values of . Left panels (A,D,G): . Middle panels (B,E,H): . Right panels (C,F,I): . All trajectories are initialised around the fixed point Q-values, defined by (A12): . The colour gradient (purple to yellow) represents time evolution over steps. The end point of each trajectory is indicated by a red cross. Top panels (A–C): Projection of 4D dynamics into 2D policy space. Middle panels (D–F): Projection into a 3D space defined by the basis vectors , , and . The first two dimensions represent the -values, while the third dimension captures the difference between agents. Bottom panels (G–I): Projection into the same 3D space, viewed from a different angle. For and , only the last two-thirds of the time evolution are shown for clarity. For , the unique fixed point is a stable focus. For , it is an unstable focus surrounded by a stable limit cycle for all asymmetric joint policies. For , it is a saddle point, with stable eigenvectors projected onto the diagonal of the policy space and unstable eigenvectors directed perpendicular to it. The trajectory initialised at remains at mutual cooperation within any finite number of steps feasible for computational simulation. Note, however, that the equations show that this is not a true fixed point and pure policies are prohibited due to .
- Metastable Phases
Starting at zero, all Q-values grow at first. Since defection yields higher rewards, grows faster than so that increases and both cooperation probabilities decline fast. Assuming w.l.o.g. , the cooperation probability of agent 2 approaches zero first. At this point agent 1’s target values given are according to (A12)
resulting in . In return, agent 2’s target values are then and . Since agent 2 primarily defects, updates frequently and reaches its target quickly, while lags due to very infrequent updates, exacerbated by the Boltzmann policy’s exponential amplification of Q differences, thus keeping near zero. This metastable phase persists until finally received enough updates as well to approach its target. Over time, gradually catches up, closing the gap , and the assumption no longer holds.
- Oscillations.
As grows, the expected rewards and hence the target values of agent 1 grow. But again, due to the asymmetric update frequency, increases much faster than . The policy plummets close to zero. This has the effect that the target values of agent 2 decrease drastically as well, closing the gap even further. As a result, grows rapidly. Now, the roles of agent 1 and 2 are swapped and the process begins all over again, albeit with a shorter period.
The oscillations can be understood as a feedback loop in which the agents’ adaptations consistently lag behind the changes of their effective environment. This phenomenon, known as the ‘moving target problem’ [32], poses a significant challenge in MARL [1,3]. In summary, the phenomena are caused by the interplay of the incremental bootstrapping update, which creates self-referential moving targets, and the Boltzmann policy, which exponentially suppresses the update frequency of underperforming actions, allowing the adaptation timescale to significantly lag behind the interaction timescale.
- Other Games.
As noted in the introduction, we restrict our analysis in this work to a paradigmatic example, the Prisoner’s Dilemma. Nevertheless, Figure 6 illustrates that the idealised dynamics of (6) provide a good fit to stochastic learning trajectories in other two-agent, two-action games including Matching Pennies (MP), Stag Hunt (SH), and Bach Or Stravinsky (BS), also known as Battle of the Sexes (Appendix E). It depicts how initialisation in Q space, controlled by the parameter , affects policy dynamics.
- Deep MARL.
The approximation models discussed here are restricted to tabular RL, since neural network function approximators do not readily lend themselves to low-dimensional deterministic approximations. Nevertheless, initial experiments suggest that the dynamics identified in this work extend to Deep MARL (Appendix F). Figure A2 shows representative runs of independent Deep Q-Networks (DQN) [33] (with and without replay buffer) and Proximal Policy Optimization (PPO) [34] on the Prisoner’s Dilemma. DQN without replay buffer reproduces the oscillatory dynamics of tabular Q-learning, showing that the complex behaviour is a property of the learning algorithm rather than the tabular representation. However, adding a replay buffer recovers dynamics qualitatively resembling the FAQL/BQL model, since the buffer separates interaction and adaptation timescales in much the same way the infinite batch limit does in BQL. PPO is a policy gradient method that updates the policy directly, without an intermediate Q-value estimation step. It converges monotonically to mutual defection, the Nash equilibrium.
These results point to the bootstrapping feedback loop combined with a Boltzmann policy as the essential mechanism driving the complex dynamics, and suggest the deterministic model’s qualitative predictions carry over to any value-based algorithm that relies on incremental bootstrapping updates.
Figure 6.
(I): Policy trajectories of independent Q-learning (obtained by stochastic simulation) for , averaged over 5 runs, on MP, SH and BS, as defined in Appendix E. For SH and BS, runs for each initialisation were grouped and averaged accordingly as done in Figure 2. Number of steps per run: MP—2 × , SH—3 × , BS—4 × . Top row: ; Bottom row: . (II): Corresponding deterministic dynamics (obtained by numerical integration), defined by (6). Blue plus signs are initial conditions, red crosses are final positions.
4. Conclusions
- Detecting metastability by tracing more dynamic variables.
The fact that a Boltzmann policy can cause update frequencies to approach zero and thus induce very long metastable phases that can be mistaken for equilibria highlights the importance of examining all dynamic variables (all Q-values) rather than focusing solely on the target variables of interest (the policy), as only a few of these variables might display perceptible drift during a metastable phase and thus indicate instability [35]. While such misinterpretations are relatively easy to avoid in simple environments like the Prisoner’s Dilemma, they become far more challenging in complex environments with many agents, actions, and multiple Nash equilibria.
- Timing depends on stochasticity and initial conditions.
Although our proposed approximation model captures the dynamics of independent Q-learning better than previous models, it still has a notable shortcoming: it cannot predict exact timing or outcomes of individual runs, which depend on the learning process’ inherent stochasticity and sensitivity to initial conditions. Incorporating a noise term, turning the ordinary difference equations into stochastic ones, could improve fidelity in this regard.
- Approximation models and a dynamical systems perspective can reveal algorithmic traps.
We have seen that fundamental algorithmic traps, such as stable oscillations preventing convergence, can emerge spontaneously when training parameters cross bifurcations points, highlighting that caution is required when interpreting learning results. As shown here, this happens even in paradigmatic two-by-two games with a single state. Preliminary results show that in environments with two states and low transition probabilities, similar behaviour can emerge [36]. Further exploration has shown that non-tabular (deep) learning algorithms like independent DQN can also exhibit these phenomena and that adding a replay buffer can mitigate them. By stripping away the complexity of the deep representation, our analysis isolates the underlying dynamical drivers of these instabilities, which persist regardless of whether the Q-function is represented by a table or a network. Thus, we hypothesise that the mechanisms identified here underlie the dynamics observed in the deep learning case, and that our work provides a diagnostic baseline for distinguishing between inherent algorithmic divergence and representation-induced errors in modern Deep MARL systems.
Author Contributions
Conceptualization, D.G., W.B. and J.H.; Methodology, D.G., W.B. and J.H.; Investigation, D.G., W.B. and J.H.; Data curation, D.G., W.B. and J.H.; Writing—original draft, D.G., W.B. and J.H.; Writing—review & editing, D.G., W.B. and J.H.; Supervision, W.B. and J.H.; Project administration, J.H. All authors have read and agreed to the published version of the manuscript.
Funding
D.G. acknowledges support from the German Federal Ministry of Research, Technology and Space through the project “KI-Servicezentrum Berlin Brandenburg” (16IS22092). W.B. acknowledges support from the Cooperative AI Foundation (no grant number was assigned).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The code supporting the conclusions of this article will be made available by the authors on request.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Q-Learning
The original single-agent incremental Q-learning algorithm [26] is defined in the framework of a finite Markov Decision Process (MDP) [1], consisting of a finite non-empty set of states , a subset of terminal states , a finite non-empty set of actions , a reward function and a state transition probability function , such that for all .
At each time step t, a singular Q-learning agent observes state of the environment, chooses action , upon which the environment transitions to state and the agent receives the reward . The agent then updates its value estimate of the state–action pair , called Q-value, via the update rule
where is the agent’s learning rate, and the discount factor determines the weight the agent assigns to the current estimate of the optimal value of the next state . Note that only the Q-value of the state–action pair actually played at time t gets updated, the remaining Q-values retain their current values. Q-learning is guaranteed to converge to optimal state–action values under certain conditions [26], with one key requirement being that the environment remains stationary—a crucial property of an MDP.
Remarks on the Setup Studied in This Work
Formally, the environment analysed in this work consists of a single non-terminal state, , defined by (1). After each non-terminal time step, the environment transitions back to . The learning process concludes at a terminal time step, at which point the environment transitions to a terminal state, . By definition, no rewards are provided in the terminal state, and agents remain there indefinitely [1]. We note that this setup corresponds to the game-theoretic definition of a finitely repeated normal-form game, where agents do not condition their policies on past interactions.
In the original single-agent Q-learning algorithm, the discount factor is a hyperparameter that determines an agent’s preference for future state values in multi-state environments. The necessity of including a discount factor in a single-state environment, as considered here, is therefore debatable. Some studies effectively set by defining the environment to transition into a terminal state after each round [7,23,24,31]. Others define the environment as static yet repetitive and keep the term involving [17,20,25,37,38,39]. To preserve the algorithm’s core structure—where the term involving is a defining feature—we consider a repetitive environment and retain the discount factor. Given that the agents lack knowledge of when the game will end, our framework is consistent with the common interpretation of to be the agent’s belief about the probability that the game continues in the next time step.
The Boltzmann exploration policy is chosen over common alternatives like epsilon-greedy because it uses a smooth probability distribution based on Q-values rather than discrete choices. Some studies suggest this mechanism aligns with human and animal decision-making in competitive and observational learning tasks [40,41]. The temperature parameter regulates the exploration–exploitation trade-off: higher promotes exploration by equalising probabilities, while lower emphasises exploitation of actions with higher Q-values. As , the agent converges to a pure policy. We keep the temperature constant throughout the learning process, rather than annealing it [42], to simplify the process and enhance the interpretability of the results.
In QL, the outcome of the learning process is typically interpreted as a pure policy: the action with the maximum Q-value in a given state is regarded as the “learned” action. However, in this work, we focus on the dynamics of the learning process itself, interpreting the Boltzmann distribution as the “learned” policy at any time t, as it reflects the agent’s probabilistic decision-making process. Our primary interest lies in understanding the long-term behaviour of the learning process as a function of parameters and initial conditions.
Appendix B. The BQL Model
In the BQL model [18], agents interact times under a constant joint policy . Information from these interactions are stored inside a batch of size K. At the update step , agents then use the sample average of the gathered experience to update their Q-values and subsequently the joint policy . With a minor abuse of notation to improve readability, (2) is modified to
where denotes the number of times agent i played action . To avoid division of zero, if the action was never played. For a batch size of , Batch Q-Learning is equal to regular Q-learning. Note however that for , batch learning allows to update multiple Q-values per agent per update step—all Q-values whose actions were played in the batch.
In the limit (and subsequently ), the stochastic batch temporal difference error (A4) becomes almost surely (a.s.) deterministic because of the law of large numbers. The limit implies that, with probability one, all Q-values are updated simultaneously at each update step. This enables the derivation of a deterministic update rule in a separated update timescale u that operates exclusively in the lower-dimensional policy space. The temporal difference becomes
where the last two terms are the inverse of (3). The deterministic update rule for the Q-values in the separated update timescale u then reads
As it is, (A7) depends on the four-dimensional vector . To have an approximation that conveniently reduces the learning dynamics to the two-dimensional policy space, (A7) needs to be expressed purely in terms of . Luckily, one can make use of the fact that (A7) is invariant under adding terms to that are constant in , such as the last term of (A5). Note that in single-state environments, also the second term including the discount factor is constant in action—no matter which actions the agents choose, the environment transitions back to the same unique non-terminal state—and can thus be excluded. This means that the dynamics are independent of the discount factor. Equation (A7) simplifies to
where
Good agreement of (A8) with actual behaviour for was demonstrated in [22], but not for smaller K-values. To emphasise its distinction from incremental Q-learning, we will refer to this model throughout this work as the ‘Batch Q-Learning’ (BQL) model. In single-state environments, the FAQL model corresponds to the continuous-time limit of the BQL model; hence, we also collectively refer to them as the ‘FAQL/BQL model’.
Appendix C. Stability Analysis of the BQL Model
We solve the two-dimensional system of Equations (A10) numerically using the fsolve function from Python’s SciPy library, version 1.15.2. For the Prisoner’s Dilemma, there exists a unique symmetric fixed point (see Figure 2). To determine its stability, we conduct a linear stability analysis at the fixed point. To this end, we calculate the Jacobian
where
We calculate the eigenvalues of the Jacobi matrix numerically with the function numpy.linalg.eig from Python’s NumPy library, version 2.2.4. Since all eigenvalues are , we deduce the discrete-time fixed point to be a stable node.
Appendix D. Stability Analysis of Our Model
The four-dimensional fixed point of (6) is obtained by finding the roots of the second term for all . The coupled equations read
Note that in the translation of to via (3), the second term of (A12) is irrelevant as it is an offset constant in and only the differences of the Q-values matter. This means that a fixed point of the dynamics described by (A8) is also a fixed point of (6) in policy space, and vice versa. So why does the model described by (6) behave so differently compared to the FAQL/BQL model?
The key lies in stability. Although both models share the same unique fixed point in policy space, their stability properties differ. While it is a stable node for all values of T and all values of in the BQL and FAQ model, it is more nuanced in the new model.
If we take into account that for the Prisoner’s Dilemma, holds at the fixed point , the maximum term of (6) reduces to . We can therefore simplify (6) at the fixed point to
To shorten the notation, we omit the dependencies and the fixed point subscript index * in the following, and make use of the relations
To shorten the notation further, we introduce
and
which help to write the Jacobi matrix at the fixed point as
We solve the eigenvalues of the Jacobi matrix at the fixed point (A12) numerically with the function numpy.linalg.eig from Python’s NumPy library, version 2.2.4. The absolute eigenvalues are plotted against the discount factor in Figure 4 for three different temperature values, revealing that the 4D dynamics may undergo bifurcations upon changes of the discount factor. Figure 4 further depicts that changes of T not only affect the fixed point position but also the effect of the discount factor on its stability.
Appendix E. Other Games
Figure 6 depicts the learning dynamics of independent Q-learning on the following two-agent, two-action games: Matching Pennies,
Stag Hunt,
and Bach Or Stravinsky, also known as Battle of the Sexes,
Figure A2.
Policy trajectories of independent RL algorithms on the Prisoner’s Dilemma for . (A): Q-learning; (B): DQN without replay buffer; (C): DQN with replay buffer size ; (D): DQN with ; (E): PPO.
Appendix F. Deep MARL Dynamics
To test whether the complex dynamics extend beyond tabular Q-learning, we simulate two independent learners in the stateless Prisoner’s Dilemma using two Deep RL algorithm classes: DQN [33], and PPO [34].
- DQN.
The DQN agent maps a constant input through a single hidden layer (32 units, ReLU) to two Q-value outputs, trained with MSE loss and the Adam optimiser. Actions are selected via Boltzmann sampling over the Q-values at temperature . We test three replay buffer configurations: no replay (buffer size B = 1, batch size of 1), (batch size of 32), and (batch size of 32). Without replay, the network trains on the current transition only, making the update analogous to tabular Q-learning but via gradient descent.
- PPO.
The PPO agent uses an actor–critic network with a shared hidden layer (32 units, ReLU), an actor head producing two policy logits, and a critic head producing a scalar value estimate V. The policy is updated every step via the clipped surrogate objective with . Actions are sampled from a Boltzmann distribution over the policy logits at temperature . The discount factor enters only through estimation of the advantage .
Figure A2 shows representative runs. Notably, DQN without replay shows similar dynamics to tabular QL. However, adding a replay buffer recovers dynamics qualitatively resembling the FAQL/BQL model. The trajectories fluctuate around the fixed point (Figure 2II). Increasing the buffer size decreases the amplitude of the fluctuations. PPO agents learn mutual defection, which is the Nash equilibrium.
References
- Albrecht, S.V.; Christianos, F.; Schäfer, L. Multi-Agent Reinforcement Learning: Foundations and Modern Approaches; MIT Press: Cambridge, MA, USA, 2024. [Google Scholar]
- Tan, M. Multi-Agent Reinforcement Learning: Independent vs. Cooperative Agents; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1997; pp. 487–494. [Google Scholar]
- Hernandez-Leal, P.; Kaisers, M.; Baarslag, T.; De Cote, E.M. A survey of learning in multiagent environments: Dealing with non-stationarity. arXiv 2017, arXiv:1707.09183. [Google Scholar]
- Matignon, L.; Laurent, G.J.; Le Fort-Piat, N. Independent reinforcement learners in cooperative markov games: A survey regarding coordination problems. Knowl. Eng. Rev. 2012, 27, 1–31. [Google Scholar] [CrossRef] [Scilit]
- Papoudakis, G.; Christianos, F.; Schäfer, L.; Albrecht, S.V. Benchmarking multi-agent deep reinforcement learning algorithms in cooperative tasks. arXiv 2020, arXiv:2006.07869. [Google Scholar]
- Galla, T.; Farmer, J.D. Complex dynamics in learning complicated games. arXiv 2011, arXiv:1109.4250. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Leonardos, S.; Piliouras, G. Exploration-exploitation in multi-agent learning: Catastrophe theory meets game theory. Artif. Intell. 2022, 304, 103653. [Google Scholar] [CrossRef] [Scilit]
- Hussain, A.; Belardinelli, F. Stability of multi-agent learning in competitive networks: Delaying the onset of chaos. Proc. AAAI Conf. Artif. Intell. 2024, 38, 17435–17443. [Google Scholar] [CrossRef] [Scilit]
- Sato, Y.; Akiyama, E.; Farmer, J.D. Chaos in learning a simple two-person game. Proc. Natl. Acad. Sci. USA 2002, 99, 4748–4751. [Google Scholar] [CrossRef] [Scilit]
- Barfuss, W.; Mann, R.P. Modeling the effects of environmental and perceptual uncertainty using deterministic reinforcement learning dynamics with partial observability. Phys. Rev. E 2022, 105, 034409. [Google Scholar] [CrossRef] [Scilit]
- Leung, C.-W.; Hu, S.; Leung, H.-F. Modelling the dynamics of multi-agent q-learning: The stochastic effects of local interaction and incomplete information. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence (IJCAI-22), Vienna, Austria, 23–29 July 2022; pp. 384–390. [Google Scholar]
- Hu, S.; Soh, H.; Piliouras, G. The best of both worlds in network population games: Reaching consensus and convergence to equilibrium. Adv. Neural Inf. Process. Syst. 2023, 36, 77149–77173. [Google Scholar]
- Barfuss, W.; Flack, J.; Gokhale, C.S.; Hammond, L.; Hilbe, C.; Hughes, E.; Leibo, J.Z.; Lenaerts, T.; Leonard, N.; Levin, S.; et al. Collective cooperative intelligence. Proc. Natl. Acad. Sci. USA 2025, 122, e2319948121. [Google Scholar] [CrossRef] [Scilit]
- Börgers, T.; Sarin, R. Learning through reinforcement and replicator dynamics. J. Econ. Theory 1997, 77, 1–14. [Google Scholar] [CrossRef] [Scilit]
- Sato, Y.; Crutchfield, J.P. Coupled replicator equations for the dynamics of learning in multiagent systems. Phys. Rev. E 2003, 67, 015206. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Galla, T. Intrinsic noise in game dynamical learning. Phys. Rev. Lett. 2009, 103, 198702. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tuyls, K.; Verbeeck, K.; Lenaerts, T. A selection-mutation model for q-learning in multi-agent systems. In Proceedings of the Second International Joint Conference on Autonomous Agents and Multiagent Systems; AAMAS ′03; Association for Computing Machinery: New York, NY, USA, 2003; pp. 693–700. [Google Scholar]
- Barfuss, W.; Donges, J.F.; Kurths, J. Deterministic limit of temporal difference reinforcement learning for stochastic games. Phys. Rev. E 2019, 99, 043305. [Google Scholar] [CrossRef] [Scilit]
- Leslie, D.S.; Collins, E.J. Individual q-learning in normal form games. SIAM J. Control Optim. 2005, 44, 495–514. [Google Scholar] [CrossRef] [Scilit]
- Kaisers, M.; Tuyls, K. Frequency adjusted multi-agent q-learning. In Proceedings of the 9th International Conference on Autonomous Agents and Multiagent Systems: Volume 1, Toronto, ON, Canada, 10–14 May 2010; pp. 309–316. [Google Scholar]
- Bloembergen, D.; Tuyls, K.; Hennes, D.; Kaisers, M. Evolutionary dynamics of multi-agent learning: A survey. J. Artif. Intell. Res. 2015, 53, 659–697. [Google Scholar] [CrossRef] [Scilit]
- Barfuss, W. Dynamical systems as a level of cognitive analysis of multi-agent learning. Neural Comput. Appl. 2022, 34, 1653–1671. [Google Scholar] [CrossRef] [Scilit]
- Kianercy, A.; Galstyan, A. Dynamics of boltzmann q learning in two-player two-action games. Phys. Rev. E 2012, 85, 041145. [Google Scholar] [CrossRef] [Scilit]
- Galstyan, A. Continuous strategy replicator dynamics for multi-agent q-learning. Auton. Agents Multi-Agent Syst. 2013, 26, 37–53. [Google Scholar] [CrossRef] [Scilit]
- Mintz, B.; Fu, F. Evolutionary multi-agent reinforcement learning in group social dilemmas. arXiv 2024, arXiv:2411.10459. [Google Scholar] [CrossRef] [Scilit]
- Watkins, C.; Dayan, P. Q-learning. Mach. Learn. 1992, 8, 279–292. [Google Scholar] [CrossRef] [Scilit]
- Hernandez-Leal, P.; Kartal, B.; Taylor, M.E. A survey and critique of multiagent deep reinforcement learning. Auton. Agents Multi-Agent Syst. 2019, 33, 750–797. [Google Scholar] [CrossRef] [Scilit]
- Cross, J.G. A Stochastic Learning Model of Economic Behavior. Q. J. Econ. 1973, 87, 239–266. [Google Scholar] [CrossRef] [Scilit]
- McKelvey, R.D.; Palfrey, T.R. Quantal response equilibria for normal form games. Games Econ. Behav. 1995, 10, 6–38. [Google Scholar] [CrossRef] [Scilit]
- Teeselink, B.K.; van Dolder, D.; van den Assem, M.J.; Dana, J.D. High-stakes failures of backward induction. Games Econ. Behav. 2024, 157, 418–439. [Google Scholar] [CrossRef] [Scilit]
- Hu, S.; Leung, C.-W.; Leung, H.-F.; Soh, H. The dynamics of q-learning in population games: A physics-inspired continuity equation model. arXiv 2022, arXiv:2203.01500. [Google Scholar]
- Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction, 2nd ed.; The MIT Press: Cambridge, MA, USA, 2018. [Google Scholar]
- Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; Riedmiller, M. Playing atari with deep reinforcement learning. arXiv 2013, arXiv:1312.5602. [Google Scholar] [CrossRef] [Scilit]
- Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal Policy Optimization Algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef] [Scilit]
- Kittel, T.; Heitzig, J.; Webster, K.; Kurths, J. Timing of transients: Quantifying reaching times and transient behavior in complex systems. New J. Phys. 2017, 19, 083005. [Google Scholar] [CrossRef] [Scilit]
- Goll, D. Analysis of Multi-Agent Reinforcement Learning from a Statistical Physics Perspective. Master’s Thesis, Humboldt-Universität zu Berlin, Berlin, Germany, January 2025. Available online: https://doi.org/10.5281/zenodo.18673513 (accessed on 30 March 2026). [CrossRef]
- Babes, M.; Wunder, M.; Littman, M. Q-learning in two-player two-action games. In Proceedings of the AAMAS 2009, Budapest, Hungary, 10–15 May 2009; pp. 1–6. [Google Scholar]
- Wunder, M.; Littman, M.L.; Babes, M. Classes of multiagent q-learning dynamics with epsilon-greedy exploration. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), Haifa, Israel, 21–24 June 2010; pp. 1167–1174. [Google Scholar]
- Zschache, J. Melioration learning in iterated public goods games: The impact of exploratory noise. J. Math. Sociol. 2018, 42, 1–16. [Google Scholar] [CrossRef] [Scilit]
- Lee, D.; Conroy, M.L.; McGreevy, B.P.; Barraclough, D.J. Reinforcement learning and decision making in monkeys during a competitive game. Cogn. Brain Res. 2004, 22, 45–58. [Google Scholar] [CrossRef] [Scilit]
- Kim, S.; Hwang, J.; Seo, H.; Lee, D. Valuation of uncertain and delayed rewards in primate prefrontal cortex. Neural Netw. 2009, 22, 294–304. [Google Scholar] [CrossRef] [Scilit]
- Sandholm, T.W.; Crites, R.H. Multiagent reinforcement learning in the iterated prisoner’s dilemma. Biosystems 1996, 37, 147–166. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.







