Research
Partial Action Replacement: Tackling Distribution Shift in Offline MARL
Overview Research area: Offline multi-agent reinforcement learning (MARL), specifically the problem of out-of-distribution (OOD) joint-action evaluation and distribution shift. Technical level: Advanc
- arXiv
- 2511.07629
- Published
- 2025-11-10
- Authors
- Yue Jin, Giovanni Montana
AI summary
Overview
- Research area: Offline multi-agent reinforcement learning (MARL), specifically the problem of out-of-distribution (OOD) joint-action evaluation and distribution shift.
- Technical level: Advanced. The paper combines a practical algorithm with Wasserstein/total-variation analysis, Lipschitz bounds, contraction arguments, and Bellman-operator theory.
- Scope: The paper proposes a "partial action replacement" principle for offline MARL, builds the SPaCQL algorithm on it, proves linear rather than exponential scaling of distribution shift under factorized behavior policies, and evaluates on MPE and Multi-Agent MuJoCo benchmarks.
What This Paper Is About
In offline MARL, agents must learn from a fixed dataset without interacting with the environment, but the joint-action space grows exponentially with the number of agents, so the dataset covers only a tiny fraction of possible action combinations. Standard Q-learning updates evaluate fully new joint actions where every agent follows its latest policy, forcing the Q-function to extrapolate far into unseen territory and producing wildly wrong value estimates. The paper's goal is to reduce this extrapolation by evaluating joint actions that differ from the logged data in only one or a few agents' actions, and to build an algorithm that automatically decides how many agents may safely deviate.
Key Contributions
- Formalizing partial action replacement (PAR): The authors introduce and formalize the principle of changing only a single or a subset of agents' actions while holding the rest to actions from the dataset, and show that under factorized behavior policies this reduces distribution shift in multi-agent settings.
- The SPaCQL algorithm: Soft-Partial Conservative Q-Learning dynamically weights different PAR strategies based on uncertainty of value estimates, interpolating between conservative single-agent updates and coordinated multi-agent updates according to the data. An earlier, simpler algorithm, Individual CQL with Q-sharing (ICQL-QS), is also presented as a stable but myopic baseline.
- A tighter theoretical value-error bound: The paper proves that under factorized behavior policies the induced distribution shift scales linearly with the number of deviating agents rather than exponentially with the joint-action space, yielding a provably tighter value-error bound (Theorem 1), and extends this to correlated behavior policies with an additive penalty κ that is independent of the number of agents (Theorem 2). Theorem 3 shows SPaCQL's error scales with the effective number of deviating agents.
- Empirical validation: SPaCQL outperforms all baselines on 10 of the 16 task/dataset combinations, with what the authors describe as consistent and remarkable superiority on all Random and Medium-Replay datasets where agent behaviors are less coordinated.
Main Findings
- Partial replacement scales linearly, not exponentially: Lemma 1 shows that the Wasserstein-1 (equivalently, total variation) distance between occupancy measures induced by a mixed policy and the behavior policy is bounded by γ/(1−γ) times the sum of per-agent TV distances over deviating agents — additive, not multiplicative, despite the exponentially large joint-action space.
- A tighter value-error bound: Theorem 1 bounds the value estimation error by ε_Subopt + ε_FQI + [4γ/(1−γ)²] Σᵢ TV(πᵢ, μᵢ). If only a single agent k deviates, the last term reduces to [4γ/(1−γ)²] TV(π_k, μ_k), which the authors state strictly improves on the usual joint-TV bound.
- Robustness to correlated behavior: Definition 1 introduces the maximal excess correlation κ, the largest TV distance between the true joint behavior policy and its factorized approximation over all states (κ = 0 when perfectly factorized, κ ∈ [0,1]). Lemma 2 and Theorem 2 show κ enters the bound only as an additive term that does not depend on the number of agents n.
- Adaptivity is formally characterized: Theorem 3 bounds SPaCQL's error using the effective number of deviating agents k_eff = Σₖ wₖ · k. When weights concentrate on k = 1 the tight ICQL-QS bound is recovered; when they shift toward k = n, the looser full-joint bound is approached.
- ICQL-QS implicitly coordinates: Proposition 1 shows that, under the semi-gradient assumption, the ICQL-QS parameter update is equivalent to stochastic gradient descent on a centralized TD loss using the averaged-individual operator, so a shared Q-function provides an implicit coordination mechanism despite single-agent updates.
- Uncertainty separates the strategies: Figure 2 reports that standard joint-action updates (CFCQL) exhibit higher Q-estimation uncertainty (standard deviation across a Q-function ensemble) than ICQL-QS's partial action replacement on Cooperative Navigation; ICQL-QS yields significantly lower uncertainty on the Random dataset consistently, and on the Expert dataset the two methods show similar uncertainty, with ICQL-QS ending lower.
- A performance trade-off depending on data quality: In Table 1, ICQL-QS beats CFCQL on Cooperative Navigation Med-R (58.2 vs 52.2) and Rand (77.7 vs 62.2) and on World Med-R (82.5 vs 73.4) and Rand (89.9 vs 68), while CFCQL wins on Expert (112 vs 97.2 for CN; 119.7 vs 106.5 for World) and on the Medium datasets.
- Action-coverage intuition: Figure 1 illustrates three regimes — Random datasets where agents act independently so fixing one agent still covers the other's action space; Expert datasets with tight correlation where fixing one agent may still cause severe OOD issues; and Expert datasets with loose correlation where coverage remains reasonable.
- Benchmark results: SPaCQL's reported scores include Cooperative Navigation Rand 78.2 ± 14 and Med-R 71.9 ± 13.2 (CFCQL: 62.2 ± 8.1 and 52.2 ± 9.6), Predator-Prey Rand 89.4 ± 13.7 (CFCQL: 78.5 ± 15.6), World Rand 94.3 ± 7.4 and Med-R 105.2 ± 11.1 (CFCQL: 68 ± 20.8 and 73.4 ± 23.2), and Half-Cheetah Rand 43.8 ± 4.9 (CFCQL: 39.7 ± 4.0). DoF results are marked "-" for the MaMujoco Half-Cheetah tasks.
- Performance on Expert data is not uniformly better: On CN Exp, PP Exp, World Exp and Half-C Exp, CFCQL reports higher means than SPaCQL (112 vs 111.9; 118.2 vs 111.2; 119.7 vs 112.3; 118.5 vs 110.5), matching the paper's claim that SPaCQL's advantage is concentrated in less coordinated data.
Methodology in Plain English
The researchers start from a geometric intuition. The offline dataset is a sparse scatter of known joint actions inside a huge action space. A conventional Q-update asks the Q-function about a joint action where every agent has switched to its new policy — a point far from any data, requiring risky extrapolation. The alternative is to build the target value from a joint action that changes only one or a few agents' actions, keeping everyone else on actions taken from the dataset. That is a small local step instead of a leap into the unknown.
They implement this in two stages. First, ICQL-QS constructs a Bellman target per agent: agent i's next action is sampled from its learned policy, while all other agents' next actions come from the dataset. A shared Q-function is trained on the average of these per-agent losses, plus a conservative penalty for agent i's OOD actions. Second, SPaCQL generalizes this by defining n base Bellman operators T^(k), where exactly k uniformly chosen agents deviate. SPaCQL's target is a convex combination of these operators, and since each base operator is a γ-contraction, so is the mixture. The mixture weights are set by uncertainty: they compute u_k, the standard deviation of the Q-values assigned to the k-deviation target across a 10-network ensemble, then set w_k proportional to 1/u_k, normalized. High disagreement means poor data coverage, so weight shifts toward smaller, safer k. The remaining loss term ξ_c is the same conservative penalty used in CFCQL.
For the theory, the authors work in a finite Dec-MDP with bounded rewards (|R| ≤ 1), the 0–1 metric, and i.i.d. dataset transitions. Under the 0–1 metric, Wasserstein-1 distance equals total variation, which simplifies the analysis. They define mixed policies π^(S) in which agents in a set S follow learned policies and the rest follow behavior policies, then chain from the fully behavioral policy to the fully learned policy and bound how the occupancy shift accumulates as S grows. The optimal Q-function is bounded by 1/(1−γ) and is 2/(1−γ)-Lipschitz under this metric, which converts distribution shift into a value-error statement.
Experiments use MPE tasks (Cooperative Navigation, Predator-Prey, World) and Multi-Agent MuJoCo Half-Cheetah, each with Expert, Medium, Medium-Replay and Random datasets. Baselines are OMAR, MACQL, IQL, MA-TD3+BC, DoF and CFCQL. SPaCQL uses an ensemble of 10 Q-networks, 5 random seeds, PyTorch, and NVIDIA Tesla V100 GPUs, with hyperparameters matching the original CFCQL paper.
Why This Matters
Research impact. The paper reframes offline MARL's OOD problem as a matter of how far a Bellman target reaches into the joint-action space, rather than a binary choice between full joint updates and fully factorized ones. The linear-scaling result gives the offline MARL community a bound that does not degrade exponentially with agent count, and the κ relaxation shows the theory survives partially correlated data — important because truly independent behavior policies are an idealization. The uncertainty-weighted mixture also connects ensemble-disagreement methods from single-agent offline RL to the multi-agent coordination problem.
Real-world applications (drawn from the scenarios the paper cites as motivating factorized behavior policies):
- Independent human demonstrations — fleets or teams where each operator was trained or acts without explicit synchronized coordination, such as fleets of delivery robots or warehouse automation.
- Decentralized systems — autonomy stacks assembled from separately trained modules or vendors, where the logged data reflects loosely coupled decision-making.
- Separately trained agents reused offline — independently trained agents in traffic simulation, drone swarms, or game AI whose joint data was never collected under one coordinated controller.
- Safety-critical imitation from historical logs — settings like industrial control or network management where new exploration is expensive or risky and learning must come from existing records.
Industry relevance. Offline MARL is attractive wherever online exploration is costly, slow, or unsafe, and where multi-agent coordination is required. The practical pitch here is that no simulator rollouts are needed — only a fixed dataset — and that the method degrades gracefully: it behaves conservatively when the data is random or uncoordinated, and permits more joint deviation when the data supports it. The explicit measurement of lower estimation uncertainty on uncoordinated data is a useful signal for practitioners deciding whether an offline MARL setup is trustworthy.
Future Directions
- Explicitly stated future work: The paper content provided does not report a dedicated future-work section; the text is truncated at the discussion of experimental results.
- Stronger guarantees for neural approximators: Theorem 1 assumes the learned Q-function is 2/(1−γ)-Lipschitz, which the authors acknowledge is not automatic for neural networks and can only be encouraged via spectral normalization or gradient clipping. Formalizing this, or removing the assumption, is a natural next step.
- Relaxing the i.i.d. and finite-MDP assumptions: The analysis uses finite state-action spaces and i.i.d. transitions, while the practical algorithm runs on standard trajectory data and continuous control. Bridging this gap is left open.
- Better correlation handling: Theorem 2 adds κ as a constant penalty independent of n, but does not adapt to state-specific correlation structure; learning or estimating κ from data and using it to shape the weights is a plausible extension.
- Scaling and broader evaluation: The evaluation covers four tasks and 16 task/dataset combinations with 5 seeds; testing on more agents, larger joint-action spaces, and coordinated-behavior domains would probe where the conservative weighting becomes too pessimistic.
- Alternative uncertainty estimation: The method relies on the standard deviation of a 10-network ensemble; comparing against other uncertainty estimators would test how much of SPaCQL's adaptivity depends on this specific choice.
Target Audience
This paper is best suited to researchers and graduate students working on offline reinforcement learning, multi-agent reinforcement learning, or reinforcement learning theory, particularly those interested in distribution shift, conservative value estimation, and ensemble-based uncertainty. It also appeals to theoretically inclined practitioners who want provable error bounds before adopting a value-based offline MARL method. Readers without a background in Bellman operators, total variation and Wasserstein distances, and Lipschitz continuity will find the theoretical analysis demanding, though the introductory motivation and the algorithmic description are accessible.
Authors’ abstract
Offline multi-agent reinforcement learning (MARL) is severely hampered by the challenge of evaluating out-of-distribution (OOD) joint actions. Our core finding is that when the behavior policy is factorized - a common scenario where agents act fully or partially independently during data collection - a strategy of partial action replacement (PAR) can significantly mitigate this challenge. PAR updates a single or part of agents' actions while the others remain fixed to the behavioral data, reducing distribution shift compared to full joint-action updates. Based on this insight, we develop Soft-Partial Conservative Q-Learning (SPaCQL), using PAR to mitigate OOD issue and dynamically weighting different PAR strategies based on the uncertainty of value estimation. We provide a rigorous theoretical foundation for this approach, proving that under factorized behavior policies, the induced distribution shift scales linearly with the number of deviating agents rather than exponentially with the joint-action space. This yields a provably tighter value error bound for this important class of offline MARL problems. Our theoretical results also indicate that SPaCQL adaptively addresses distribution shift using uncertainty-informed weights. Our empirical results demonstrate SPaCQL enables more effective policy learning, and manifest its remarkable superiority over baseline algorithms when the offline dataset exhibits the independence structure.