Joint Adaptive Neighborhood Constraint for Offline Multi-Agent Reinforcement Learning

Xiancheng Gao, Mingxiao Feng, Lin Liu, Yuanrui Duan, Yufeng Shi, Wengang Zhou, Houqiang LiNeurIPS 2026

TL;DR

When training teams of AI agents solely from historical logs—known as offline multi-agent reinforcement learning—even individually sensible actions can combine into catastrophic, unseen team blunders. This paper introduces JANC (Joint Adaptive Neighborhood Constraint), a method that draws carefully sized "trust bubbles" around known team behaviors, dynamically expanding them when past data is mediocre to discover better strategies, and shrinking them when past data is already great to prevent errors. The result is a system that learns how to safely improvise and coordinate beyond its training data, setting new performance records in complex robotics and strategy game benchmarks.

What Problem Does This Paper Address?

Imagine two agents trying to open a heavy vault door with two keys. To succeed, they must turn their keys in the exact same direction simultaneously: either both Left $(L, L)$ or both Right $(R, R)$. Now suppose we want to train AI agents to do this offline—meaning they cannot practice on the real door, and must learn strictly from a pre-recorded dataset containing only successful $(L, L)$ and $(R, R)$ examples.

In offline reinforcement learning, the cardinal sin is out-of-distribution (OOD) extrapolation: guessing the value of actions never seen in the dataset, which usually leads to wildly optimistic hallucinations and failure. If we constrain each agent independently to stick to actions seen in the logs, Agent 1 sees that $L$ and $R$ are both valid, and Agent 2 sees the same. When deployed, Agent 1 might pick $L$ while Agent 2 picks $R$. Each agent obeyed its local data, yet together they produced $(L, R)$—an unseen, uncoordinated failure!

Existing multi-agent methods try to prevent this by forcing agents to strictly replay exact team actions from the dataset ("in-sample" learning). While safe, this is overly conservative; it handcuffs the neural networks and prevents them from generalizing to slightly different, potentially much better team strategies nearby. How do we let a team safely explore outside the dataset without losing coordination?

Methods

The authors build upon the standard Centralized Training with Decentralized Execution (CTDE) paradigm, where agents train together using global team information, but ultimately execute actions using only their local observations.

What is novel here is JANC, which constructs explicit, controlled neighborhoods around joint (team-wide) actions observed in the dataset:

  1. Adaptive "Trust Bubbles": Instead of using a fixed search radius around recorded team actions, JANC scales the neighborhood radius dynamically based on the joint advantage (how much better a recorded team action was compared to average). If a recorded team action was suboptimal (low advantage), JANC expands the bubble to encourage broader exploration for better solutions. If the action was already stellar (high advantage), it tightens the bubble to lock in precision and prevent OOD hallucinations.
  2. Auxiliary Action Refinement: Exhaustively searching high-dimensional team action spaces is computationally brutal. Instead, during training, JANC trains a lightweight auxiliary network $\delta$ that takes a dataset action and predicts a tiny, value-improving nudge ($a + \delta$) kept inside the adaptive trust bubble via a Lagrangian penalty.
  3. Value and Policy Learning: Using standard value decomposition (breaking global team value into individual agent utilities), the value networks learn from these newly refined, higher-value neighbor actions. Finally, each agent's individual policy is trained via weighted behavior cloning to mimic its slice of the upgraded team behavior. At deployment, the auxiliary network $\delta$ is discarded, leaving fast, decentralized agents.

For discrete action spaces, JANC adapts this idea by constraining the sum of KL divergences between each agent's perturbed action probabilities and a learned behavior policy, ensuring the exploration budget is shared jointly across the team.

Datasets

The authors do not introduce new benchmarks, instead evaluating JANC on two established offline multi-agent suites spanning continuous and discrete control:

  • Multi-Agent MuJoCo (MaMuJoCo): Continuous robotic control tasks (HalfCheetah, Hopper, and Ant) where individual agents control different subsets of a robot's joints. Datasets (collected via HAPPO) span four quality tiers: expert, medium-expert, medium, and medium-replay.
  • StarCraft Multi-Agent Challenge v2 (SMACv2): Discrete tactical combat scenarios (Protoss_5_vs_5, Terran_5_vs_5, and Zerg_5_vs_5) featuring procedurally generated unit compositions and positions. Datasets (collected via MAPPO) cover expert, medium-expert, medium, and random tiers.

Key Insights and Ideas

  • Individual safety $\neq$ Team safety: Formally, the support of valid team actions is a strict subset of the Cartesian product of valid individual actions. Constraining agents one-by-one leaves dangerous coordination gaps; constraints must be coupled at the joint-action level. (Indeed, JANC beats an independent per-agent neighborhood baseline across all 12 MaMuJoCo settings).
  • Controlled generalization beats strict conservatism: The authors prove mathematically that because neural networks are locally consistent over tiny steps, maximizing values inside a small joint neighborhood is guaranteed to converge and achieve an optimal value at least as good as—and practically much better than—strict in-sample learning.
  • Data quality should dictate curiosity: Treating all historical data with the same level of skepticism is inefficient. Using joint advantage as a thermostat for exploration lets the algorithm salvage great policies from mediocre (medium) datasets without destabilizing on expert ones.

Key Results

JANC outperforms state-of-the-art offline MARL baselines—including ICQ, OMIGA, and ComaDICE—on the vast majority of tasks.

  • MaMuJoCo (Continuous): JANC takes the top spot in 10 out of 12 task-dataset combinations. Gains are especially dramatic on intermediate-quality data where safe exploration pays off: on HalfCheetah-medium, JANC achieves an average return of 4833.3 (vs. 3608.1 for OMIGA and 2664.7 for ComaDICE). On Hopper-medium, JANC scores 2243.8, nearly doubling OMIGA (1189.3) and nearly tripling ComaDICE (822.6).
Average returns on MaMuJoCo benchmarks, showing JANC outperforming baselines on 10 of 12 tasks.
  • SMACv2 (Discrete): JANC achieves the highest win rate in 10 out of 12 scenarios. For instance, on Protoss_5_vs_5 (medium), JANC reaches a 36.9% win rate compared to 26.2% for OMIGA and 19.4% for ComaDICE. On Terran_5_vs_5 (expert), it hits 41.9% vs. ComaDICE's 33.1%.
Table 2: Average win rate (%) of JANC and baselines with the mean and standard deviation on SMACv2 tasks.

Limitations and Future Work

  • Noisy, scattered datasets: JANC shines brightest when datasets come from relatively unified behavior policies (expert, medium, medium-expert). On medium-replay and random datasets—where ComaDICE occasionally edges it out—performance gains shrink. When data is noisy and stitched together from many chaotic policies, there isn't enough clean local structure around data points to form reliable, Bellman-consistent neighborhoods.
  • Manual hyperparameter tuning: The framework relies on manually chosen hyperparameters—specifically the Lagrange multiplier $\lambda$ (controlling constraint tightness) and inverse temperature $\alpha$ (controlling advantage sensitivity)—which can diverge if set too loosely. Automating the selection of these parameters is highlighted as a key avenue for future work.

Summary updated

Abstract

Offline reinforcement learning suffers from distributional shift and extrapolation errors. These issues are particularly severe in multi-agent settings. As the number of agents increases, the joint action space grows exponentially while agent behaviors become highly coupled. Consequently, even if individual actions remain within the data distribution, their combination may still result in out-of-distribution (OOD) joint actions. Directly extending single-agent constraints to multi-agent settings is difficult, as they fail to effectively constrain joint actions. This often results in poor coordination or excessive conservatism. To bridge this gap, we propose the joint adaptive neighborhood constraint (JANC), which explicitly constructs controlled neighborhoods in the joint action space to suppress extrapolation while preserving reliable generalization. Moreover, JANC adaptively scales neighborhood radii based on joint advantages to align generalization with value structures. In practice, our method first performs adaptive neighborhood Q learning to explore high-value behaviors and then conducts value and policy learning based on the refined actions. Experiments on offline benchmarks, including multi-agent Mujoco and StarCraft II, show that JANC outperforms state-of-the-art methods on the majority of tasks in complex cooperative scenarios.
BibTeX
@inproceedings{gao2026joint,
  author = {Xiancheng Gao and Mingxiao Feng and Lin Liu and Yuanrui Duan and Yufeng Shi and Wengang Zhou and Houqiang Li},
  title = {{Joint Adaptive Neighborhood Constraint for Offline Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nHitPSOoEp},
}
Figure