Manuscript Offprint
arXiv:2610.34799Centralized Critics for N-Agent Ad Hoc Teamwork
Abstract
Centralized training with decentralized execution (CTDE) has become the dominant paradigm in multi-agent reinforcement learning (MARL), motivating extensive study of what privileged information should be made available to the critic during training. While prior work has examined the role of global state in fully cooperative settings, the design of centralized critics for N-agent ad hoc teamwork—in which dynamically varying set of learning agents must coordinate with an arbitrary set of uncontrolled teammates drawn from an unknown distribution—remains poorly understood. We study this question by comparing two natural classes of advantage estimators: controlled history estimators, which condition only on the observation and action histories of the learner's own agents, and joint history estimators, which additionally condition on the histories of the uncontrolled teammates. We prove that both estimators are unbiased and characterize the conditions under which the joint history estimate attains strictly lower variance than its controlled counterpart. Empirically, joint history critics match or outperform controlled history critics across a range of NAHT tasks, yielding improved sample efficiency and final returns. Together, these results provide both a theoretical justification and an empirical recommendation for incorporating uncontrolled agent histories into centralized critics for N-agent ad hoc teamwork.
1 Introduction
Cooperative multi-agent reinforcement learning (CMARL) is a paradigm for learning coordinated team policies on fully cooperative tasks, assuming full control over all agents [Gronauer and Diepold, 2022]. In contrast, ad hoc teamwork (AHT) considers the challenge of training a single agent to collaborate with previously unknown teammates on fully cooperative tasks [Stone et al., 2010]. The recently introduced N-agent ad hoc teamwork (NAHT) problem generalizes both paradigms by considering the scenario where a set of controlled agents must collaborate with dynamically varying numbers and types of uncontrolled teammates without the ability to pre-coordinate. The primary challenges of the NAHT problem are (1) dealing with a changing number of (un)controlled agents, and (2) generalizing to unseen uncontrolled teammate behavior [Wang et al., 2024].
For the NAHT problem, we assume that controlled agents only have access to controlled agent information, as the number of uncontrolled agents changes per episode, and the controlled agents must generalize to differing types of uncontrolled agents without being given direct information about their partners at inference time. Previous successful algorithms for NAHT have chosen to also include this restriction for critics, with algorithms [Wang et al., 2025b, 2024, 2025a] only including controlled agent information in critics. The CTDE paradigm then poses the question of if uncontrolled agent information can be helpful in training while still restricting this information during inference.
Since the purpose of critics is to estimate the advantage function, it follows that better advantage estimation should lead to better sample efficiency when training policies. We study this question by comparing two natural classes of advantage estimators: controlled history estimators, which
Preprint.
condition only on the observation and action histories of the learner's own agents, and joint history estimators, which additionally condition on the histories of the uncontrolled teammates. We prove in Section 4 that both estimators are unbiased and characterize the conditions under which the joint history estimate attains strictly lower variance than its controlled counterpart. Empirically (Section 6), joint history critics match or outperform controlled history critics across a range of NAHT tasks, yielding improved sample efficiency and final returns. Together, these results provide both a theoretical justification and an empirical recommendation for incorporating uncontrolled agent histories into centralized critics for N-agent ad hoc teamwork.
Previous Algorithms for NAHT. POAM [Wang et al., 2024] was the first proposed algorithm for NAHT. It uses decentralized, RNN-based critics that attempt to model the value function using only information from an individual controlled agent. Similarly, the Shapley Machine algorithm [Wang et al., 2025b] uses the POAM critic, but models a different value function per-agent. The MAT-NAHT algorithm [Wang et al., 2025a] is the first to use a single attention-based centralized critic with information from all controlled agents. The same paper introduced Cent Obs POAM, which uses a single centralized RNN-based critic with information from all controlled agents. Since our work is focused on centralized critics, we use MAT-NAHT and Cent Obs Poam for experiments, and abbreviate both methods to “MAT” and “POAM.”
Centralized Critics in MARL. A separate line of work has analyzed the role of privileged information in centralized critics for cooperative MARL. Lyu et al. [2023] provide an extensive theoretical and empirical study of history-based, state-based, and history-state-based critics for Dec-POMDPs. Among their results, they show that centralized history-based critics yield the same expected policy gradient as decentralized history-based critics but with strictly higher variance, that state-based critics may introduce unbounded bias when used to train history-based policies, and that history-state critics are unbiased but again carry higher variance than purely history-based critics. While their analysis covers what kind of global information should be exposed to the critic in MARL, the NAHT setting introduces a different design choice: whether the critic should condition on the trajectories of agents that are not under the learner's control. Our work extends the bias-variance style of analysis pioneered by Lyu et al. [2023] to this setting, deriving an unbiasedness result and a variance comparison between controlled-history and joint-history advantage estimators in the NAHT problem. Since we use PPO for optimization instead of the vanilla policy gradient, we focus on analyzing the bias and variance of advantage function.
3 Background
The N-agent ad hoc teamwork (NAHT) problem is formalized in the framework of Decentralized Partially Observable Markov Decision Processes (Dec-POMDPs) [Bernstein et al., 2002]. A Dec-POMDP is described by the tuple . Here, denotes the number of agents, the global state space, the local observation space for agent , and the joint action space. Let the notation denote a probability distribution over the space . The transition function governs the dynamics, and the reward function provides a shared reward signal. In this work, we examine a control scheme where each agent selects actions according to the stochastic policy , where is the fixed length history of observations and actions available to agent . The decision-making problem occurs under the horizon .
The NAHT problem considers a controlled set of agents C, and an uncontrolled set U. The learning algorithm generates policies for agents in C, while uncontrolled agents in U follow fixed, potentially unknown policies. Each episode begins with a team sampling process , consisting of two steps: first, the number of controlled agents is sampled, and second, a set of
N agents is drawn from the controlled set , while agents are drawn from the uncontrolled set . The NAHT learning problem considers a parameterized set of controlled agents, , and aims to maximize the expected return under varying teammates and team compositions:
A trajectory is sampled under the joint policy: at each timestep, the controlled agents select and the uncontrolled agents select , with joint action , rewards , and transitions . We denote by and the observation-action histories of the controlled and uncontrolled agents, respectively, up to timestep . Note that throughout all future sections, we abbreviate to . The symbol denotes the controlled joint action, and denotes the uncontrolled joint action. Uncontrolled actions are sampled from and marginalized as part of the environment randomness.
We define action-value functions, value functions, and advantage functions at two levels of information access, differing in whether the centralized critic has access to the uncontrolled agents' histories.
The joint history action-value function (or Q-function) is a centralized action-value function conditioned on the full joint history of all agents. For a fixed policy , it is defined as:
where the expectation is with respect to the randomness of the trajectory (state transitions, observations, and any stochasticity in ) from timestep onward, conditioned on the joint history and action . represents the expected discounted return of the team when the joint history has been observed and the controlled agents take action .
The controlled history action-value function is defined as:
where the expectation additionally averages over the uncontrolled history given . The two levels are related by:
The joint history and controlled history value functions are defined as:
Equivalently, these are recovered from the action-value functions by averaging over actions:
And they are related by:
Finally, we define the joint and controlled history advantage functions:
Note again that:
3.1 Proximal Policy Optimization
Controlled policies are trained with the Proximal Policy Optimization (PPO) algorithm [Schulman et al., 2017]. Recall that since controlled policies are conditioned only controlled histories, the PPO actor loss is defined as:
(9) where is the importance sampling ratio between the current policy and the behavior policy used to collect the trajectory. Note that the true loss we wish to estimate has no dependence on uncontrolled histories: they have been marginalized out. We care only about choosing the best action given a controlled history. This paper will compare various estimators for and demonstrate that estimators utilizing joint history critics (taking into account uncontrolled histories) can be more accurate than those using only controlled histories.
3.2 Generalized Advantage Estimation
The advantage in the PPO objective is not directly observed and must be estimated from rollouts. A commonly used technique (and the technique used for all experiments in this paper) is Generalized Advantage Estimation (GAE) [Schulman et al., 2016], which trades off bias and variance through an exponentially-weighted average of k-step TD residuals. Given a learned value function and a trajectory , the one-step TD residual at timestep t is
and the GAE advantage is defined as
where is the discount factor and controls the bias-variance tradeoff. Setting recovers the one-step TD estimator , which has low variance but is biased by errors in . Setting recovers the Monte Carlo advantage , which is unbiased (with respect to the true value function) but suffers from high variance. Intermediate values of interpolate between these regimes.
Note also that we can recover an estimate of the action-value function from the GAE advantage by adding back the value baseline:
In the standard single-agent setting, the value function is conditioned on the same information as the policy. In our multi-agent setting, however, we have a choice: may condition on the controlled history alone, or on the joint history that additionally includes uncontrolled agents' observations and actions. Section 4 compares these two choices and analyzes how the conditioning of the critic affects the variance of the resulting advantage estimator.
Training and Evaluation in Practice Similar to the training and evaluation procedure specified by Wang et al. [2024], we assume access to a training and test set of teammates, and , which are drawn from the same distribution over teammate types. NAHT algorithms learn from interaction with teammates within the training set , while evaluations are conducted with teammates in the test set, .
4 Theoretical Analysis
Existing algorithms for NAHT are policy-gradient based approaches, implemented via PPO, so our theoretical analysis examines the bias and variance of advantage estimators. We will show that both estimators are unbiased for the controlled advantage function, and then show that the joint estimator is often lower variance than the controlled estimator.
The following assumptions and definitions are used throughout this section:
Assumption 4.1 (Unbiased value function estimators). Let and be any unbiased estimators of the joint and controlled value functions, respectively, i.e., any random variables satisfying:
This is an idealization standard in the theoretical MARL literature [Lyu et al., 2023]; in practice it holds approximately for sufficiently expressive critics trained to convergence.
Assumption 4.2 (Unbiased action-value function estimator). Let be any unbiased estimator of the controlled action-value function i.e., any random variable satisfying:
This is satisfied with a monte-carlo returns estimator, or a GAE estimator bootstrapping with a value function satisfying Assumption 4.1.
Definition 4.3 (Controlled and joint advantage estimators). Let and be any two (possibly distinct) estimators satisfying Assumption 4.2. Note that in practice, will likely be constructed with access to a controlled critic, and will likely be constructed with access to a joint critic.
4.1 Bias of Controlled and Joint Estimators
We first establish conditions under which both controlled and joint advantage estimators are unbiased for the controlled advantage that we wish to estimate as a term of the PPO loss.
Theorem 4.4 (Unbiasedness of Advantage Estimators).
The proof is provided in Appendix B.1. Since both joint and controlled estimators are unbiased, they appear to each be reasonable choices to use in practice.
4.2 Variance of Controlled and Joint Estimators
When we examine the variances of joint and controlled estimators, we find that the joint estimator is often preferable.
Definition 4.5. Let denote the conditional expectation of the joint-history action-value estimator given the full joint history and action.
Assumption 4.6 (Deterministic value function estimators). The value function estimators and are deterministic functions of their inputs. That is, conditioned on (resp. ), they take a single fixed value with no remaining randomness:
This holds for any critics which are deterministic neural networks, so their outputs vary only across their inputs or , not across the trajectory rollout randomness conditional on those inputs.
We decompose the variance difference between a joint and controlled estimator for . Note that the joint estimator has lower variance (and we achieve a “variance reduction”) when the difference is positive.
Theorem 4.7 (Advantage Variance Decomposition). For any fixed :
The variance difference decomposes into two contributions:
• captures the difference in raw variance between the two action-value estimators. For example, if both estimators are the monte-carlo estimator, then this term is 0. If both estimators are deep-Q networks, or GAE estimators, then it is more difficult to make rigorous claims about the sign of this term. Note that this term is “out of control” for the critic, which just exists to subtract a baseline from the action-value estimator. As a result, and because we have estimators for which the term is surely 0, we focus on the second term for our analysis.
• The last two terms, , measure how much of the -variation in is actually cancelled by subtracting the joint baseline. These terms capture the variance reduction benefit of having a baseline that co-varies with the return across uncontrolled histories. We define this to be the baseline-cancellation term.
The proof is provided in Appendix B.2.
Assumption 4.8. The special case where additionally is an unbiased estimator for the joint action-value function:
This occurs when is GAE bootstrapped through the joint history critic .
Corollary 4.9 (Variance Decomposition Simplification). Under Assumption 4.8 and the exact-critic idealization , Theorem 4.7 reduces to:
4.3 When Is the Baseline-Cancellation Term Large?
We now consider conditions under which the baseline-cancellation term, , is positive, creating a variance reduction when the same action-value estimator is used for each type of critic. For clarity, we restrict attention to the case where satisfies Assumption 4.8. In this case, the baseline-cancellation term reduces to:
Using the identity , the baseline-cancellation term is positive if and only if:
Writing , , and , this becomes:
Intuitively, the joint baseline reduces variance by canceling variation in that is driven by uncontrolled histories rather than by the action itself. For this cancellation to be effective, two conditions must hold:
-
V and Q must move together across uncontrolled histories. If uncontrolled histories that are generally good for the current policy (high V) are also good for the specific action taken (high Q), then subtracting V strips out shared variation. High correlation captures this: if Q and V move in lockstep across , then Q - V is nearly constant in and the cancellation is near-perfect. Note that if is chosen with probability close to 1 (the policy is nearly deterministic), then , and the correlation is certain. In contrast, if is chosen with low probability by the current policy, then a correlation (and variance reduction) is unlikely.
-
V must not swing more than Q. Even with perfect correlation, if the baseline varies more than the quantity it is trying to cancel ( ), subtracting it introduces more variance than it removes. Putting these together, the baseline-cancellation term is most positive when Q and V are highly correlated and have comparable magnitudes of variation across uncontrolled histories.
4.4 From Per-Pair Advantage Variance to Visitation Weighted Advantage Variance
Our variance analysis thus far fixes a specific state-action pair and compares the conditional variance of the two advantage estimators at that pair. For some , the joint baseline will reduce variance; for others, the condition will fail and the joint baseline will increase variance. PPO, however, is intuitively influenced by aggregate gradient variance, which is a visitation-weighted average:
The relevant question is therefore whether this expected variance is lower under than under .
Intuitive argument. We conjecture that the aggregate gradient variance is typically lower under the joint critic, i.e.,
The intuition is that the state-action pairs where the joint critic most effectively reduces variance are precisely the pairs the current policy visits most often (Section 4.3). We refer to this intuition to explain the empirical greater performance of joint history critics for multiple tasks showcased in Section 6.
5 Illustrative Example: A Coordination Game with Variance Reduction
To build intuition for when the joint baseline meaningfully reduces variance, we construct a simple coordination game where the joint history critic produces a substantial — though not complete — variance reduction over the controlled critic.
Setup. We consider a game with:
• Agents: 2 controlled agents, 4 uncontrolled agents.
• Action space:
• Uncontrolled policy: At the start of each episode, the uncontrolled team samples a shared policy uniformly from {Mostly 0, Mostly 1}. Under Mostly 0, each uncontrolled agent independently outputs 0 with probability 0.9 and 1 with probability 0.1. Under Mostly 1, each uncontrolled agent independently outputs 0 with probability 0.25 and 1 with probability 0.75.
• Observation space: Each agent observes only its own past actions. No additional observations are available, and the optimal policy does not condition on any observation.
• Reward: if all six agents output the same value (either all zeros or all ones), and otherwise.
• Horizon and discount: Episode length T, discount .
We analyze a controlled policy that plays with probability 0.8 and with probability 0.2 at every history, and we focus on the advantage of the action . We take to be a single-step TD estimator that bootstraps through the appropriate critic:
Value functions. Let and denote the controlled policy's probabilities of playing and , respectively. Under each uncontrolled policy, we compute the expected per-step reward:
Marginalizing over the uncontrolled policy, . The value functions at timestep (with steps remaining) are these per-step expectations scaled by :
where and denote uncontrolled histories consistent with Mostly 0 and Mostly 1, respectively. We also compute the controlled action-value for . At the current step, the expected reward given depends on the uncontrolled policy:
Marginalizing: . Adding the expected value of the remaining steps:
The true controlled advantage is therefore:
which is positive, reflecting that is a better-than-average action under the current policy.
Advantage estimators. Substituting the value functions:
For the joint history estimator, the form depends on the uncontrolled policy in effect:
Both estimators are unbiased for : for instance, the joint estimator gives , as required.
Variance computation. All variances are taken with respect to the joint distribution over the uncontrolled policy and the realized reward given . There are four possible outcomes. We first enumerate their probabilities:
Controlled advantage estimator. Recall , which takes value 0.7043 when and -0.2957 when . Its mean is . Computing the variance as expected squared deviation from the mean:
Joint history advantage estimator. Recall that under Mostly 0 and under Mostly 1. The four possible values of are therefore:
Its mean is 0.0343. Computing the variance as the expected squared deviation from the mean:
Result. The joint history baseline nearly halves the variance of the advantage estimator:
This matches our first insight about variance reduction. For this scenario, the action receives a high reward when paired with the same types of uncontrolled agents that the policy performs well for: Mostly 0. Action is also currently chosen with high probability, as we note can be beneficial for variance reduction in insight 1.
Negative Example Note that if we change the conditions of this example, we can end up with a scenario where the joint estimator has greater variance than the controlled estimator. Such an example is provided in Appendix A to help readers gain intuition about the differences between estimators.
6 Empirical Results
This section addresses the primary research question of if and when performance differs between joint and controlled critics in the NAHT problem. We compare performance across a variety of games and previously proposed algorithms for NAHT. Across every (game, algorithm) pair, a joint critic is as effective as a controlled critic, and for many scenarios, a joint critic exhibits significantly better performance.
6.1 Algorithms
As a first solution method for NAHT, Wang et al. [2024] proposed the Policy Optimization with Agent Modeling (POAM) algorithm. POAM deals with a potentially varying number of controlled agents by employing an independent policy gradient approach, where each agent learns an independent policy while performing teammate modeling of all other agents in the team. Each agent's policy conditions on the learned teammate representations, thus enabling the policy to approximate the optimal behavior for collaborating with each type of uncontrolled team. Since we study centralized critics in this paper, we adapt POAM to include centralized observations in the same fashion as Wang et al. [2025a], creating the method Cent Obs POAM. We simply refer to the method as "POAM" throughout the paper.
Wang et al. [2025a] proposed MAT-NAHT, a transformer-based method adapted from the Multi-Agent Transformer [Wen et al., 2022], in which an encoder-decoder transformer jointly serves as the centralized policy and value network for the controlled subteam. The architecture handles the variable number of controlled agents through attention masking, and the centralized critic is conditioned on the history of observations and actions of all controlled agents. We abbreviate the method to MAT for this paper.
6.2 Connection to Theory
All experiments were conducted in an environment that satisfies all assumptions from Section 4. Specifically, controlled critic training runs use GAE estimation and bootstrap through the controlled critic while joint critic training runs use GAE estimation bootstrapped through a joint critic. This satisfies Assumption 4.2, Assumption 4.6, and also the stronger condition Assumption 4.8. As noted previously Assumption 4.1 is satisfied when the value networks have converged, and is a standard assumption in previous literature.

(a) Entropy of MAT policies.

(b) Entropy of POAM policies.

(c) Return curves of MAT policies.

(d) Return curves of POAM policies.
Figure 1: Joint history critics have significantly higher sampling efficiency than controlled history critics for coordination game.
6.3 Coordination Game
We first present results for the coordination game described previously. Recall that the optimal policy is to always output for every history, so the optimal policy has 0 entropy. We can see that for the entropy curves of both MAT and POAM, the joint history critic achieves a near-optimal, 0 entropy policy significantly faster than the controlled history critic. The same story is reflected in the return curves, which demonstrate the greater sampling efficiency of a joint history critic for this task.
6.4 Stag Hunt
In Stag Hunt [Böhmer et al., 2020], N predator agents must capture stags and hares in a grid world. Agents and prey can move along the four cardinal directions or stay still, and agents additionally have a catch action. Stags yield a high reward but require coordinated capture: at least two adjacent agents must simultaneously execute the catch action to capture a stag, while a single adjacent agent suffices to capture a hare. If an agent attempts to capture a stag without sufficient teammates adjacent to the same prey, the team is penalized by the miscapture punishment. Upon a successful capture, the participating agents are frozen for the remainder of the episode and removed from the grid, and the captured prey is removed. Agents observe a patch centered on their position, while prey movement is governed by a fixed stochastic policy: prey move to a random unoccupied adjacent cell. An episode terminates when all prey are captured, all agents are frozen, or after T timesteps.
From the return curves we see that, like coordination game, joint critics offer improved sample efficiency for both MAT and POAM. From the bar charts, we can compare joint and controlled critic policies with individual uncontrolled agents. We see that joint critics perform better with every type of uncontrolled agent.
We use hypothesis tests across all (controlled, uncontrolled) seed pairs for each comparison to see if the difference in performance between joint and controlled critics is statistically significant. At , we find statistically significant differences for 3 of the 4 uncontrolled agent types. Note

(a) Return curves of MAT policies.
OOD: MAT variants

(b) Return curves of POAM policies.
OOD: POAM variants

(c) Returns with fixed uncontrolled agent policies (MAT).

(d) Returns with fixed uncontrolled agent policies (POAM).
Figure 2: Comparison of stag hunt return curves and out of distribution performance across MAT and POAM variants.
Table 1: Stag Hunt MAT Hypothesis Tests.
| Target algorithm | Mean difference (C-J) | Paired p-value |
|---|---|---|
| catch-req1_ippo* | -0.501652 | 0.010758 |
| catch-req2-risky_ippo*** | -0.376259 | 0.000388 |
| catch-req2_ippo* | -0.272097 | 0.017871 |
| catch-req3_ippo | -0.195542 | 0.426157 |
that for the 4th uncontrolled agent type, the mean returns are still greater for a joint critic, and we do not have data to suggest that controlled critics are better for this type of agent. In order to make a statistically significant claim for the superiority of one critic over another, more data would need to be collected.
6.5 SMAC 8v9
The SMAC 8v9 challenge [Samvelyan et al., 2019] is a hard-difficulty StarCraft II micromanagement scenario in which allied Marines must defeat a slightly larger enemy team of 9 Marines controlled by the built-in game AI. At each timestep, every allied agent selects from a discrete action set consisting of move (in the four cardinal directions), stop, no-op, or attack-target actions, where the attack actions are restricted to enemy units within the agent's fixed shooting range. Agents observe a partial view of the battlefield limited to a circular sight range, receiving features such as relative positions, health, shield, and unit type of allies and enemies within range; units outside this range are masked from observation. The team receives a shaped reward based on damage dealt to enemies, kills, and a large terminal bonus for winning the engagement, with success requiring coordinated focus-fire and positioning to overcome the numerical disadvantage. An episode terminates when all units on one side are eliminated or after timesteps, and the scenario is considered solved when the allied team achieves a high win rate against the scripted opponent.

(a) Return curves of MAT policies.

(b) Return curves of POAM policies.

(c) Entropy curves of MAT policies

(d) Entropy curves of POAM policies.
Figure 3: Comparison of SMAC return curves and out of entropy curves across MAT and POAM variants.
Table 2: 8v9 POAM Hypothesis Tests.
| Target algorithm | Mean difference (C–J) | Paired -value |
|---|---|---|
| -0.765862 | 0.000775 | |
| -0.589716 | 0.005665 | |
| -0.539812 | 0.008801 | |
| -1.003580 | 0.001541 | |
| -0.74291 | 0.000558 |
Results for the 8v9 SMAC challenge are similar to stag hunt. We see that joint critics perform better than or equal to controlled critics, and joint critics show improved sampling efficiency for the POAM policies. Hypothesis tests for out of distribution performance were not statistically significant for MAT policies, but showed a certain improvement for joint critic POAM policies.
7 Conclusion
We studied the design of centralized critics for -agent ad hoc teamwork, focusing on whether conditioning the critic on the histories of uncontrolled teammates is beneficial. We compared two natural advantage estimators: a controlled history estimator that conditions only on the learner's own observation-action histories, and a joint history estimator that additionally conditions on the uncontrolled teammates' histories.
On the theoretical side, we proved that both estimators are unbiased for the controlled advantage, and we derived a variance decomposition that isolates the primary force governing whether the joint history estimator reduces variance: the benefit of subtracting a critic correlated to the action-value function as a baseline. We characterized the conditions under which the baseline-cancellation effect dominates—namely, when the joint Q and V functions are highly correlated across uncontrolled histories and have comparable magnitudes of variation—and illustrated both regimes through a simple coordination game in which the joint baseline can either reduce or increase variance depending on the policy under analysis. We made an argument for the joint history estimator having lower variance on average, providing some intuition for our experimental results.
Empirically, joint history critics match or outperform controlled history critics across both the coordination game and the Stag Hunt environment, for both the POAM and MAT base algorithms. In the coordination game, joint critics reach near-optimal policies markedly faster. In Stag Hunt, joint critics yield improved sample efficiency during training and higher returns against uncontrolled agents at evaluation, with statistically significant gains across most uncontrolled agent types tested.
Taken together, our theoretical analysis and experimental results provide both a justification and a practical recommendation: when training a centralized critic in the NAHT setting, conditioning on uncontrolled teammate histories is generally beneficial, and the variance decomposition we derive offers a principled lens for understanding when and why this benefit arises.
Limitations and future work. Our variance analysis assumes access to unbiased value functions; extending these results to learned critics, where approximation error interacts with the variance tradeoff, is a natural next step. Furthermore, our Visitation Weighted Advantage Variance argument is also currently a conjecture, supported by experimental evidence but not formally established; proving conditions under which the visitation-weighted variance is provably lower under the joint critic would strengthen the theoretical picture. We also restrict our analysis to the variance of the advantage function, but do not connect the ideas that a lower variance results in greater sampling efficiency. One way to conduct this analysis might be by looking at the variance of the policy gradient.
References
Daniel S. Bernstein, Robert Givan, Neil Immerman, and Shlomo Zilberstein. The complexity of decentralized control of Markov decision processes. Mathematics of Operations Research, 27(4):819–840, November 2002. ISSN 0364-765X. doi: 10.1287/moor.27.4.819.297. URL https://pubsonline.informs.org/doi/10.1287/moor.27.4.819.297.
Wendelin Böhmer, Vitaly Kurin, and Shimon Whiteson. Deep coordination graphs. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.
Sven Gronauer and Klaus Diepold. Multi-agent deep reinforcement learning: a survey. Artificial Intelligence Review, 55(2):895–943, 2022.
Xueguang Lyu, Andrea Baisero, Yuchen Xiao, Brett Daley, and Christopher Amato. On centralized critics in multi-agent reinforcement learning. Journal of Artificial Intelligence Research, 77: 295–354, 2023. doi: 10.48550/arXiv.2408.14597.
Mikayel Samvelyan, Tabish Rashid, Christian Schroeder de Witt, Gregory Farquhar, Nantas Nardelli, Tim G. J. Rudner, Chia-Man Hung, Philip H. S. Torr, Jakob Foerster, and Shimon Whiteson. The starcraft multi-agent challenge. arXiv preprint arXiv:1902.04043, 2019.
John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2016. URL https://arxiv.org/abs/1506.02438.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. URL https://arxiv.org/abs/1707.06347.
Peter Stone, Gal A. Kaminka, Sarit Kraus, and Jeffrey S. Rosenschein. Ad hoc autonomous agent teams: Collaboration without pre-coordination. In Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, pages 1504–1509, 2010.
Caroline Wang, Arrasy Rahman, Ishan Durugkar, Elad Liebman, and Peter Stone. N-agent ad hoc teamwork. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
Caroline Wang, Di Yang Shi, Elad Liebman, Ishan Durugkar, Arrasy Rahman, and Peter Stone. Sequence modeling for n-agent ad hoc teamwork. In Multi-disciplinary Conference on Reinforcement Learning and Decision Making (RLDM), 2025a.
Jianhong Wang, Yang Li, Samuel Kaski, and Jonathan Lawry. Shapley machine: A game-theoretic framework for n-agent ad hoc teamwork, 2025b. URL https://arxiv.org/abs/2506.11285.
Muning Wen, Jakub Kuba, Runji Lin, Weinan Zhang, Ying Wen, Jun Wang, and Yaodong Yang. Multi-agent reinforcement learning is a sequence modeling problem. In Advances in Neural Information Processing Systems, volume 35, 2022.
A Counterexample: When the Joint Baseline Increases Variance
We now modify the example in Section 5 to illustrate a case where the joint history baseline increases variance over the controlled critic. We retain the setup from before, but flip the controlled policy: is now played with probability and with probability . We again analyze the advantage of the action .
Value functions. Recomputing the per-step expected rewards under each uncontrolled policy:
Marginalizing, . The controlled advantage of is unchanged from before in expected one-step reward, , so:
Advantage estimators. As before, , and
Both are unbiased for .
Variance computation. The outcome probabilities are unchanged from the previous example, since they depend only on the uncontrolled policy and the conditional reward distribution given . Computing variances as expected squared deviations from the mean:
Result. The joint history baseline now increases the variance of the advantage estimator:
The intuition mirrors the previous example. The action is now played with low probability and yields high reward precisely when paired with the uncontrolled policy (Mostly 0) under which the controlled policy performs poorly. Conditioning on the uncontrolled history therefore amplifies, rather than absorbs, the reward fluctuations driven by , and the joint baseline ends up tracking variation that the controlled baseline averaged out.
B Proofs of the Main Results
B.1 Unbiasedness of Advantage Estimators
Proof of Theorem 4.4. For the controlled estimator, since is constant under the conditioning on :
(54)
For the joint history estimator:
Since the policy does not depend on , we have , and therefore:
Substituting, and again using the unbiasedness of :
□
B.2 Advantage Variance Decomposition
Proof of Theorem 4.7. For the controlled estimator, expanding the variance gives:
By Assumption 4.6, , so , and we are left with
For the joint history estimator:
Taking the difference:
We now simplify the last two terms. By Assumption 4.6, is a deterministic function of , so all variability in comes from :
For the covariance, we apply the law of total covariance, conditioning on :
(64) where in the last step follows from Assumption 4.6. Substituting both simplifications:
To obtain the final form, we apply the identity , with and :