As multi-agent reinforcement learning (MARL) progresses toward solving larger and more complex problems, algorithms must exhibit strong performance, memory efficiency, and scalability. Sable is a new sequence modeling architecture for MARL that replaces traditional Transformer attention with a "retention" mechanism. It achieves state-of-the-art performance across 34 of 45 benchmark tasks while being significantly more memory-efficient and capable of scaling to over 1,000 agents.
The Challenge: Attention Bottlenecks in MARL
In MARL, agents must learn to coordinate in complex environments over long time horizons. Current approaches generally fall into two camps:
- Independent Learning (IL): Highly memory-efficient but struggles with complex agent coordination.
- Centralized Learning (CL): Uses powerful sequence models like Transformers (e.g., the Multi-Agent Transformer, or MAT) to coordinate agents. However, these suffer from massive memory overhead and poor scalability.
The core issue lies in the Attention Mechanism. Transformers have a quadratic computational and memory complexity relative to sequence length and agent count. As you add more agents or require longer episode histories for temporal reasoning, GPU memory requirements explode, and processing speeds (throughput) plummet. The authors sought a "best of both worlds" solution: a model with the representational power of a Transformer but the efficiency of a recurrent neural network (RNN).
Introducing Sable: Retentive Networks for MARL
To solve the quadratic scaling problem, the authors introduce Sable, which adapts Retentive Networks (RetNets) to the MARL domain. RetNets are a recent alternative to Transformers that replace softmax-based attention with a highly efficient retention mechanism.
Key technical innovations in Sable include:
- Encoder-Decoder RetNet: Unlike the original decoder-only RetNet used for language modeling, Sable uses a novel encoder-decoder structure with "cross-retention" to process multi-agent observations and decode actions auto-regressively.
- Modified Decay Matrix: In standard RetNets, information decays over time. Sable modifies this decay matrix to ensure that all agents acting within the same timestep share the exact same context, and that memory is correctly reset at episode boundaries.
- Chunkwise Representation: Sable uses a hybrid "chunkwise" computation. This allows for parallel training (like a Transformer) to fully utilize modern hardware, while maintaining constant memory usage during inference (like an RNN).
- Modern LLM Components: Sable incorporates architectural improvements from the Large Language Model ecosystem, such as RMSNorm and SwiGLU layers, which contribute significantly to its training stability and overall performance.
Extensive Evaluation
The authors conducted a massive evaluation across 45 tasks in six diverse environments, including Robotic Warehouse (RWARE), Level-Based Foraging (LBF), Connector, SMAX (a high-efficiency JAX version of StarCraft Multi-Agent Challenge), Multi-Agent Particle Environments (MPE), and MaBrax (continuous control).
To test extreme scalability, they also introduced a new environment called Neom, which requires agents to match periodic 1D patterns and scales up to 1,024 agents.
Key Results and Insights
Through extensive ablation studies and benchmark comparisons, Sable demonstrated overwhelming advantages over existing baselines.
- Dominant Performance: Sable outperformed existing state-of-the-art methods in 34 out of 45 tested tasks. As shown above, it was ranked "best" 11 times more often than the previous leading centralized model, MAT.
- The Throughput Advantage: Because the retention mechanism avoids the expensive softmax operation and quadratic scaling, Sable achieves up to 6.5x higher throughput (steps per second) than MAT when scaling to 512 agents.
- Massive Scalability & Efficiency: Sable’s memory usage increases linearly with the number of agents, whereas MAT’s increases quadratically. In the Neom environment, Sable maintained stable performance with 1,024 agents using less than 32GB of GPU memory (a 7x reduction compared to MAT). In contrast, MAT triggered "Out of Memory" (OOM) errors at this scale.
- Temporal Memory is King: Ablation studies revealed that Sable’s performance gains over MAT aren't just from the retention math itself, but from Sable's ability to efficiently condition on the entire episode history. MAT often struggles to look back very far due to its strict memory constraints.
Limitations and Future Work
While Sable is highly effective in discrete and many continuous tasks, it did not consistently beat specialized off-policy algorithms (like HASAC) in the MaBrax continuous control suite. The authors note that Sable currently uses a PPO-based (on-policy) objective; adapting the architecture for off-policy learning could close this gap in continuous domains.
Future work may also explore using Sable as a "world model" to predict environment transitions, further leveraging its unique ability to handle long-context temporal dependencies efficiently.
Summary updated