TL;DR
Composition of Memory Experts (CoME) solves the fundamental trade-off between local detail and long-term consistency in world models by decoupling memory into specialized modules. By fusing short-term, long-term (weight-based), and spatial experts through a novel contrastive "Product of Experts" formulation, the framework achieves high-fidelity video generation and navigation planning across hundreds of frames without the quadratic cost of standard transformers.
What Problem Does This Paper Address?
World models (WMs) are the "mental simulators" that allow AI agents to imagine the future. To be useful for planning, these models must be consistent: if an agent leaves a room and returns later, the room shouldn't have spontaneously changed its layout.
Currently, researchers face a "memory wall." Transformers provide incredible detail but suffer from quadratic computational costs, limiting their "look-back" window. Conversely, Recurrent Neural Networks (RNNs) and State-Space Models (SSMs) scale efficiently to long sequences but compress history into a "hidden state," inevitably losing the fine-grained details needed for high-fidelity reconstruction.
The authors argue that we shouldn't force a single architecture to do everything. Instead, they look to human cognition, which separates fast, capacity-limited short-term memory from durable, high-capacity long-term memory.
Methods
The core innovation is a framework that integrates heterogeneous memory models using a Product of Contrastive Experts (PoCE).
1. The Expert Trio
- Short-Term Memory (STM): A transformer-based expert that focuses on local dynamics and fine details within a recent window (10–100 frames).
- Long-Term Memory (LTM): Instead of keeping thousands of frames in a "context window," this expert "memorizes" the past by performing lightweight, test-time finetuning (using LoRA adapters) on its own weights. This allows for constant-time retrieval of episodic history.
- Spatial Long-Term Memory (SLTM): This expert anchors observations to spatial priors (like camera poses or 3D maps), ensuring that the model understands where things were seen, not just when.
2. Product of Contrastive Experts (PoCE)
Standard "Product of Experts" (PoE) combines models by multiplying their probability distributions. However, this often leads to "mode collapse," where the models become over-confident in regions where they merely echo each other's biases. The authors introduce a contrastive mechanism that factors out an "unconditional baseline" for each expert. This suppresses spurious noise and ensures that the experts only contribute information that is actually relevant to the specific past context.
Datasets
The authors evaluated CoME across a diverse range of synthetic and real-world benchmarks:
- Memory Maze: A 3D navigation task designed to test long-term memory.
- RE10K & RECON: Real-world indoor and outdoor datasets with camera pose annotations, used for navigation and spatial consistency.
- DeepMind Lab & Minecraft-200K: Large-scale agent-based environments.
- Memory Cards (New): A diagnostic benchmark introduced in this paper to specifically measure "discrete recall"—the ability to remember and reconstruct objects that have been hidden or occluded for long periods.
Key Insights and Ideas
- Memory as Weights, Not Just Context: One of the most powerful ideas here is using test-time finetuning (LTM) to store memory. By updating a small set of LoRA weights, the model "absorbs" the environment's history, bypassing the need for massive, computationally expensive context windows.
- The "Echo Chamber" Problem: The paper provides a formal proof showing that standard PoE can sharpen the wrong parts of a distribution. Their contrastive approach (PoCE) acts as a "de-biasing" filter, preserving diversity while enforcing consistency.
- Spatial Grounding is the "Glue": For navigation, time is a proxy for space. By explicitly conditioning an expert on spatial signals (SLTM), the model avoids "drifting" in repetitive environments (like long hallways) where temporal cues alone are ambiguous.
Key Results
- Superior Reconstruction: As shown above, CoME outperformed "Full Attention" baselines and SSM-style models in reconstruction metrics (SSIM, PSNR, LPIPS), achieving these results at a fraction of the training cost (e.g., 1/60th the compute of full-attention training).
- Scaling Without Saturation: On the Memory Maze dataset, CoME's performance (measured by LPIPS) continued to improve as the context length increased up to 480 frames, whereas standard models typically plateau or become prohibitively slow much earlier.
- Better Planning: In navigation tasks (RECON), CoME reduced the Absolute Trajectory Error (ATE) to 0.96, significantly beating specialized navigation models like GNM (1.87) and NOMAD (1.93).
- Discrete Recall: On the new Memory Cards task, CoME achieved 79.2% recall accuracy, while standard diffusion baselines performed at near-chance levels (13%).
Limitations and Future Work
- Computational Overhead: While CoME avoids the quadratic scaling of transformers, it requires multiple forward passes (one for each expert plus contrastive baselines). In the "online" setting, this can introduce a 2x–4x compute overhead compared to a single base model.
- Expert Dependency: The system's performance is capped by the quality of its individual experts. If one expert provides a highly implausible prediction, it can occasionally degrade the fused output.
- Future Directions: The authors suggest exploring more sophisticated spatial conditioning (like 3D Gaussians) and extending the framework to handle even more complex, multi-modal "experts" (e.g., audio or tactile memory).
Summary updated