Know Your Task, Learn It Right: Task-Aware Optimistic Value Learning for Multi-Task Multi-Agent Reinforcement Learning
Abstract
Cooperative multi-agent reinforcement learning over heterogeneous episodes requires both identifying which latent class an episode belongs to and adapting the learning algorithm to that identity. Recent trajectory-class-aware methods address the first half of this problem by clustering trajectories into latent classes and feeding the class label to the agent policy. Class-dependent learning dynamics also motivate adapting the Bellman update and the credit assignment performed by the value mixer. We show empirically that, even when classes are recovered accurately, the Bellman dynamics across classes diverge sharply, with simple classes saturating early and harder classes sustaining large temporal-difference residuals and large cross-agent value disagreement. Building on this observation, we propose Know Your Task, Learn It Right (KYT), a class-aware extension of value factorization that injects per-class learning signal into the Bellman update itself. KYT maintains a lightweight tracker that summarizes the per-class TD-error and cross-agent value spread without any extra network, and uses it to add a bounded, class-relative exploration bonus to the Bellman target. A class-conditioned mixer further modulates credit assignment through a softplus-gated affine layer that preserves the Individual-Global-Max (IGM) property, so that decentralized greedy execution stays consistent with the centrally trained value for any predicted class label. Across StarCraft II micromanagement benchmarks including SMACv2 and the unit-combination suite SurComb, KYT outperforms strong class-aware and exploration-aware baselines, with the largest gains concentrated on the hardest classes.