Abstract
Offline-to-Online Reinforcement Learning has emerged as a powerful paradigm, leveraging offline data for initialization and online fine-tuning to enhance both sample efficiency and performance. However, most existing research has focused on single-agent settings, with limited exploration of the multi-agent extension, i.e., Offline-to-Online Multi-Agent Reinforcement Learning (O2O MARL). In O2O MARL, two critical challenges become more prominent as the number of agents increases: (i) the risk of unlearning pre-trained Q-values due to distributional shifts during the transition from offline-to-online phases, and (ii) the difficulty of efficient exploration in the large joint state-action space. To tackle these challenges, we propose a novel O2O MARL framework called Offline Value Function Memory with Sequential Exploration (OVMSE). First, we introduce the Offline Value Function Memory (OVM) mechanism to compute target Q-values, preserving knowledge gained during offline training, ensuring smoother transitions, and enabling efficient fine-tuning. Second, we propose a decentralized Sequential Exploration (SE) strategy tailored for O2O MARL, which effectively utilizes the pre-trained offline policy for exploration, thereby significantly reducing the joint state-action space to be explored. Extensive experiments on the StarCraft Multi-Agent Challenge (SMAC) demonstrate that OVMSE significantly outperforms existing baselines, achieving superior sample efficiency and overall performance.
The Challenge of O2O MARL
Transitioning from offline training to online fine-tuning in Multi-Agent Reinforcement Learning (MARL) is theoretically promising but practically difficult. While offline RL allows agents to learn from fixed datasets without environmental interaction, the subsequent online phase often introduces two major hurdles:
- The Unlearning Phenomenon: When agents begin interacting with the environment, they encounter states and actions not present in the offline dataset. This distributional shift often causes a "catastrophic dip" where the agent's Q-values—its estimates of future rewards—plummet. Instead of building upon offline knowledge, agents effectively forget what they learned and must relearn optimal behaviors from scratch.
- The Exploration Curse: In multi-agent systems, the joint action space grows exponentially with the number of agents. Standard exploration strategies, where all agents explore simultaneously, often result in a high-dimensional search through "noise," making it nearly impossible to find coordinated optimal strategies during the online fine-tuning phase.
The OVMSE Framework
To address these issues, we introduce Offline Value Function Memory with Sequential Exploration (OVMSE). Built upon the QMIX architecture, OVMSE incorporates two primary innovations:
Offline Value Function Memory (OVM)
To mitigate the unlearning dip, OVM maintains a static copy of the pre-trained offline value function. During online training, the target Q-value is calculated as the maximum of the current online estimate and the stored offline memory. This serves as a "safety net," ensuring that the agent remembers high-value actions discovered offline even if the online model's initial estimates are unstable. An annealing coefficient, $\lambda_{memory}$, gradually reduces the memory's influence as the online model gains confidence and potentially discovers better-than-offline strategies.
Sequential Exploration (SE)
Rather than allowing all agents to explore at once, SE coordinates exploration to reduce the search space. In our decentralized implementation, each agent independently decides to explore with a probability of $\epsilon/N$ (where $N$ is the number of agents). Statistically, this ensures that, on average, only one agent explores at any given time while the others follow the current greedy policy. This stability allows the system to clearly evaluate the impact of a single agent's behavioral change against a consistent background of coordinated actions.
Experimental Evaluation
We evaluated OVMSE using the StarCraft Multi-Agent Challenge (SMAC) benchmark across various maps, including "Easy" (2s3z), "Hard" (5m_vs_6m), and "Super Hard" (6h_vs_8z) scenarios. We utilized "medium" and "medium-replay" datasets to simulate realistic offline starting points.
Key Results
OVMSE consistently outperformed state-of-the-art baselines such as MACQL and Switch CQL in both sample efficiency and final win rates.
- Superior Sample Efficiency: In the "Super Hard"
6h_vs_8ztask, OVMSE achieved a 40% win rate approximately 1.5 million environment steps earlier than competing methods. - Enhanced Stability: Unlike baseline methods that showed sharp performance declines at the start of the online phase, OVMSE maintained stable or upward-trending performance curves from the outset.
- High Final Performance: In complex tasks like
3s5zmedium-replay, OVMSE reached a median win rate of ~80%, significantly higher than the next best baseline (Switch CQL at ~74%) and vastly superior to other methods that failed to exceed 15%.
Conclusion
OVMSE demonstrates that successful O2O MARL requires a balance between preserving offline knowledge and coordinating online exploration. By treating the offline value function as a persistent memory and restricting exploration to a sequential, agent-by-agent process, OVMSE overcomes the primary bottlenecks of multi-agent fine-tuning. Future work will explore the integration of OVMSE with actor-critic architectures and further refine the sensitivity of the memory annealing process.
Summary updated