Offline-to-Online Multi-Agent Reinforcement Learning with Offline Value Function Memory and Sequential Exploration

Hai Zhong, Xun Wang, Zhuoran Li, Longbo Huang

TL;DR

Transitioning from offline training to online fine-tuning in Multi-Agent Reinforcement Learning (MARL) often causes agents to "unlearn" their hard-won offline knowledge due to sudden distributional shifts. This paper introduces OVMSE, a framework that uses a value function memory to prevent knowledge loss and a sequential exploration strategy to efficiently navigate the massive joint action spaces of multiple agents.

What Problem Does This Paper Address?

Offline-to-Online (O2O) Reinforcement Learning is a powerful paradigm: you train an agent on a fixed dataset (offline) to give it a head start, then let it interact with the world (online) to perfect its skills. However, moving this to Multi-Agent settings (O2O MARL) introduces two massive headaches:

  1. The Unlearning Phenomenon: When agents start interacting online, the data they see is slightly different from the offline dataset. Standard algorithms often experience a "catastrophic dip" where Q-values (the agent's estimate of future rewards) plummet. The agents essentially forget the optimal actions they learned offline and have to relearn them from scratch.
  2. The Exploration Curse: In multi-agent systems, the number of possible action combinations grows exponentially with the number of agents. If every agent explores randomly at the same time, the system ends up searching a nearly infinite space of "noise," making online fine-tuning painfully slow.

Methods

The authors propose a framework called Offline Value Function Memory with Sequential Exploration (OVMSE), built on top of the popular QMIX architecture. It consists of two novel components:

  • Offline Value Function Memory (OVM): To stop the "unlearning" dip, OVM maintains a 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 ensures that even if the online estimate temporarily fails due to new data, the agent "remembers" the high-value actions it found during the offline phase. An annealing coefficient ($\lambda_{memory}$) gradually reduces the influence of this memory as the online model becomes more confident.
  • Sequential Exploration (SE): Instead of the standard approach where every agent might take a random action simultaneously, SE coordinates exploration. In the centralized version, only one randomly selected agent explores while the others act greedily based on their current best policy. To make this work in decentralized settings without constant communication, they use a clever trick: 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 is exploring at any given time, significantly narrowing the search space.

Datasets

The researchers evaluated OVMSE using the StarCraft Multi-Agent Challenge (SMAC), a standard high-complexity benchmark.

  • Tasks: They tested on "Easy" (2s3z, 3s5z), "Hard" (5m_vs_6m), and "Super Hard" (6h_vs_8z) maps.
  • Data Quality: They used "medium" and "medium-replay" datasets (generated by partially trained agents).
  • New Contribution: Since a public offline dataset for the 3s5z task didn't exist, the authors generated and released their own dataset consisting of 5,000 episodes.

Key Insights and Ideas

  • Pessimism vs. Memory: While offline RL usually relies on "pessimism" (being conservative about unknown actions), the authors found that during the transition to online, "memory" is more important. By lower-bounding the online Q-values with offline knowledge, they create a "safety net" that prevents performance collapse.
  • Less is More in Exploration: The "Aha!" moment for Sequential Exploration is that multi-agent coordination is fragile. If five agents are trying to learn a combo and all five change their behavior at once, they learn nothing. By changing only one agent's behavior at a time, the system can more clearly see the impact of that specific change against a stable background.
  • Minimal Data Replay: Unlike many O2O methods that require replaying large amounts of offline data during the online phase (which is computationally expensive), OVMSE performs best with a "mixing ratio" of 0.0 or 0.1. It relies on the knowledge (the value function) rather than the raw data.

Key Results

OVMSE consistently outperformed state-of-the-art baselines like MACQL and Switch CQL across all SMAC tasks:

  • Sample Efficiency: On the "Super Hard" 6h_vs_8z task, OVMSE reached a 40% win rate roughly 1.5 million environment steps earlier than competing methods.
  • Stability: While other methods showed a sharp decline in mean return at the start of the online phase, OVMSE's performance curve remained stable or trended upward immediately.
  • Final Performance: In the 3s5z medium-replay task, OVMSE achieved a median win rate of ~80%, while the next best baseline (Switch CQL) trailed at ~74%, and others were below 15%.

Limitations and Future Work

  • Offline Overfitting: The authors noted that if the offline training results in a policy that is heavily overfitted to a poor dataset, the "memory" might actually hinder the agent from discovering better online strategies. They addressed this with an annealing schedule, but it remains a delicate balance.
  • Backbone Dependency: The current work is tightly integrated with QMIX. While QMIX is a standard, exploring how OVMSE performs with other multi-agent architectures (like actor-critic methods) is a suggested next step.
  • Hyperparameter Sensitivity: The memory annealing schedule and the mixing ratio require careful tuning depending on the quality of the initial offline dataset.

Summary updated

BibTeX
@inproceedings{zhong2025offline,
  author = {Hai Zhong and Xun Wang and Zhuoran Li and Longbo Huang},
  title = {{Offline-to-Online Multi-Agent Reinforcement Learning with Offline Value Function Memory and Sequential Exploration}},
  booktitle = {AAMAS},
  year = {2025},
  url = {https://openreview.net/forum?id=tV5p7Iy1Ci},
}

Loading related content...

Figure