NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling

Jia-Hua Lee, Bor-Jiun Lin, Wei-Fang Sun, Chun-Yi Lee

TL;DR

EDELINE is a novel world model architecture that combines the high-fidelity visual generation of Diffusion Models with the efficient, long-range memory of Mamba State Space Models (SSMs). By breaking the "fixed-context window" limitation of previous models, it allows reinforcement learning agents to maintain temporal consistency and solve memory-intensive tasks that were previously out of reach for generative world models.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), World Models act as internal simulators, allowing agents to "dream" or imagine future trajectories to learn more efficiently. Traditionally, these models fell into two camps:

  1. Latent-space models: Fast and efficient but often lose critical visual details due to heavy compression.
  2. Generative (Diffusion) models: Capable of incredible visual fidelity but limited by a "short-term memory."

State-of-the-art diffusion world models (like DIAMOND) typically only look at the last four frames to predict the next one. This fixed context length is a dealbreaker in "partially observable" environments—situations where an agent needs to remember something it saw 50 or 100 steps ago (like the location of a key or a map layout) to make a decision now. Furthermore, these models often use separate, disconnected networks to predict rewards and terminal states, leading to inefficient learning.

Methods

The authors introduce EDELINE (Enhancing Diffusion-basEd World Models via LINEar-Time Sequence Modeling), which unifies three major components into one architecture:

EDELINE Architecture
  • Recurrent Embedding Module (REM): Instead of a fixed window, EDELINE uses a Mamba SSM. Mamba provides linear-time complexity (making it fast) and the ability to process theoretically unbounded sequences. It compresses the entire history of observations and actions into a hidden state ($h_t$).
  • Next-Frame Predictor: This is a U-Net-based diffusion model. Crucially, it doesn't just look at the last few frames; it is conditioned on the REM's hidden state through Cross-Attention and Adaptive Group Normalization (AGN). This allows the model to fuse abstract "memory" with spatial visual features.
  • Unified Reward/Termination Predictor: Unlike previous works that split these tasks, EDELINE predicts rewards and episode endings directly from the REM hidden state. This "shared brain" approach ensures that the memory module learns features relevant to both what the world looks like and what the goals are.
  • Dynamic Loss Harmonization: To prevent the massive visual data from "drowning out" the smaller reward signals during training, the authors use an adaptive weighting mechanism to balance different loss functions.

Datasets

The model was put through a gauntlet of diverse environments:

  • Atari 100k: A standard benchmark of 26 games where agents are limited to only 100,000 interactions (roughly 2 hours of gameplay).
  • Crafter: A procedurally generated survival environment (inspired by Minecraft) that specifically tests long-term reasoning and resource management.
  • ViZDoom: A 3D first-person environment that requires sophisticated spatial reasoning and 3D scene understanding.
  • MiniGrid-Memory: A simplified grid world designed specifically to test if an agent can remember a single object over long idle periods.

Key Insights and Ideas

Memory Comparison in Grid World
  • Recurrence > Fixed Windows: The "aha moment" is that diffusion models don't need to see a long string of raw pixels if they have access to a high-quality recurrent hidden state. The Mamba module acts as a "summary" that is much more efficient than stacking dozens of previous frames.
  • Cross-Attention is the Bridge: Simply giving a diffusion model a hidden vector isn't enough. By using cross-attention (similar to how Stable Diffusion uses text prompts), the U-Net can "query" the memory to decide which parts of the image need to be updated or maintained.
  • Structural Accuracy: Qualitative results show that while older models like DIAMOND get "blurry" or lose track of objects (like the player character) over time, EDELINE maintains sharp, consistent objects because its memory "knows" where they should be, even if they aren't in the immediate 4-frame window.

Key Results

  • Superhuman Performance: On the Atari 100k benchmark, EDELINE achieved a 1.87x human-normalized score, outperforming all existing model-based methods that don't use look-ahead search. It achieved superhuman performance in 13 out of 26 games.
  • Memory Dominance: In the Crafter environment, EDELINE delivered a 4.1x improvement over DIAMOND. It was able to remember crafted items and explored territories that other models simply forgot.
  • 3D Fidelity: In ViZDoom, EDELINE successfully modeled complex 3D trajectories and particle effects (like hits and armor acquisition) where baselines produced inconsistent or blurry hallucinations.
  • Efficiency: Despite the added memory, the unified architecture is actually 26.8% faster in world model updates than DIAMOND because it eliminates the need for redundant, separate networks.

Limitations and Future Work

The authors acknowledge that while EDELINE is efficient for a diffusion model, diffusion is still slow. Generating a single frame requires multiple "denoising" steps (forward passes through the U-Net), which is computationally heavier than simple latent-space models.

Future work will likely focus on:

  1. Sampling Speed: Integrating techniques like Consistency Models or one-step generation to make the "imagination" phase faster.
  2. Scaling: Testing if this architecture holds up as the environments become even more complex (e.g., high-resolution 3D simulations or real-world robotics).

Summary updated

BibTeX
@inproceedings{lee2025edeline,
  author = {Jia-Hua Lee and Bor-Jiun Lin and Wei-Fang Sun and Chun-Yi Lee},
  title = {{EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ph1V6n7BSv},
}
Figure