NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Know Your Task, Learn It Right: Task-Aware Optimistic Value Learning for Multi-Task Multi-Agent Reinforcement Learning

Chang Liu, Mengyang LiNeurIPS 2026

TL;DR

When a team of AI agents trains across a mix of easy and hard scenarios, standard algorithms treat the value-learning math identically for every scenario—leaving hard tasks under-explored while easy ones plateau early. Know Your Task, Learn It Right (KYT) fixes this by measuring how much teammates disagree on the value of a situation and using that disagreement to dynamically boost exploration and adjust credit assignment for harder tasks. Adding only ~200 parameters and no extra neural networks for uncertainty, KYT acts like an automatic curriculum that significantly boosts performance on tough multi-agent benchmarks.

What Problem Does This Paper Address?

Imagine coaching a sports team that plays against wildly different opponents without seeing the scouting report beforehand. First, the players have to recognize who they are playing against within the first few minutes; second, they have to adjust their strategy.

In cooperative Multi-Agent Reinforcement Learning (MARL), agents face this exact challenge when episodes come from different hidden categories—or "latent classes" (e.g., varied enemy unit compositions or spawn layouts). Recent methods have gotten quite good at the first half of the problem: clustering observation histories to infer the task class and feeding that label into the agents' policies.

However, the underlying learning machinery—specifically, the Bellman update (how agents update expected future rewards) and the "mixer" (a network that combines individual agent utilities into a team-wide value)—remains shared and blind to task identity. The authors show that even when agents accurately recognize the task class, learning speeds diverge by an order of magnitude: easy classes converge in 0.5M steps, while hard ones take over 4.5M steps. Treating them identically starves the harder tasks of the exploration and tailored credit assignment they need.

Figure 1: Per-class learning dynamics on SurComb4: (a) team return, (b) TD-error, (c) cross-agent disagreement, and (d) steps to the TD-error threshold of 0.2.

Methods

KYT builds on an existing trajectory-clustering backbone (TRAMA) that outputs a predicted class label for each transition. Instead of just handing this label to the policy, KYT routes it into the value-learning engine via three lightweight mechanisms:

  • Parameter-Free Dynamics Tracker: For each class, KYT keeps a running exponential moving average of three numbers: temporal-difference (TD) prediction error, policy entropy, and cross-agent value disagreement—simply the variance among individual agents' utility estimates on the same state.
  • Task-Aware Optimistic Bellman Target: KYT adds an exploration bonus directly to the target reward value. Crucially, this bonus is scaled by each class's relative share of total team disagreement. As agents reach consensus on easy classes, the bonus naturally shifts toward the harder classes where teammates still disagree.
  • Class-Conditioned Mixer: Standard MARL relies on the Individual-Global-Max (IGM) property, which ensures that if every agent greedily picks its own best action during decentralized execution, the team automatically achieves the best joint action. KYT modulates the base mixer's output using a tiny one-layer network (~200 parameters) that applies a per-class scale and shift. By passing the scale through a softplus function (which is strictly positive), KYT adjusts value scales per task while mathematically guaranteeing IGM is preserved.

Datasets

No new datasets are introduced, as agents learn online in simulated StarCraft II micromanagement environments across ten existing benchmarks:

  • SMACv2 (protoss5_vs_5, terran5_vs_5): Stochastic micromanagement maps with randomized team compositions and spawns.
  • SurComb (SurComb3, SurComb4, reSurComb3, reSurComb4): Sparse-reward unit-combination suites explicitly structured around multiple distinct trajectory classes.
  • Original SMAC (MMM2, 6h_vs_8z, 5m_vs_6m, 1c3s5z): Classic single-task maps used as diagnostics when latent class structure is weak.

Key Insights and Ideas

  • Teammate disagreement is free uncertainty: Single-agent RL often requires expensive neural ensembles or auxiliary networks to measure uncertainty for exploration. In cooperative MARL, you already have $n$ separate agent utility heads—their variance gives you a useful signal of remaining learning progress at zero extra network cost.
  • Emergent curriculum without a scheduler: Because the exploration bonus is normalized across classes, KYT creates an automatic difficulty curriculum. Easy tasks lose their bonus early, concentrating exploration pressure on complex tasks until late in training.
  • Mid-episode reactivity: Because class labels are recomputed at every step, KYT's exploration bonus dynamically spikes mid-episode whenever the team wanders into a tricky sub-region of a task, and decays once they return to familiar territory.

Key Results

Evaluated over 5 million steps across 8 seeds, KYT achieves the highest mean score on all ten benchmarks against seven strong baselines (including QMIX, QPLEX, RODE, EMC, and TRAMA):

  • Biggest gains on sparse, multi-class suites: On reSurComb4, KYT boosts team return from TRAMA's 10.70 to 12.30 (a 15% relative jump).
  • Lifting the hardest classes: Decomposing SurComb4 by class difficulty reveals that KYT improves the easiest class by +0.1 (19.4 to 19.5), while boosting the hardest class by +2.7 (10.5 to 13.2). Roughly 89% of the overall gain comes from the two hardest classes.
  • Target shaping beats loss reweighting: Ablations confirm that modifying the Bellman target directly outperforms simply reweighting per-class losses or scaling learning rates.

Limitations and Future Work

  • Class-level, not state-level exploration: If teammates confidently agree on a suboptimal, passive strategy (like retreating together), disagreement drops to zero and KYT applies no extra exploration push. Pairing KYT with state-level novelty bonuses or incorporating the tracked policy entropy (to spot low-return, low-entropy ruts) is a natural next step.
  • Role heterogeneity creates a "disagreement floor": When agents play fundamentally different roles (e.g., medics vs. marines), their utilities naturally differ even after convergence, leaving a small, persistent bonus offset.
  • Fixed hyperparameters and cooperative scope: KYT requires pre-specifying the number of classes ($n_{cl}$) and assumes classes are visited frequently enough to keep moving averages fresh. Extending this framework to mixed cooperative-competitive games or embodied robotic planning remains open for future work.

Summary updated

BibTeX
@inproceedings{liu2026know,
  author = {Chang Liu and Mengyang Li},
  title = {{Know Your Task, Learn It Right: Task-Aware Optimistic Value Learning for Multi-Task Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TxcDmV5gHx},
}
Figure