← Latest papers
🤖 AI

HaM-World: Soft-Hamiltonian World Models with Selective Memory for Planning

HaM-World introduces a structured world model that integrates Mamba-based selective memory with a decomposed Soft-Hamiltonian latent space to stabilize long-horizon planning and significantly improve robustness against out-of-distribution dynamics shifts.

Original authors: Haoyun Tang, Haodong Cui, Keyao Xu, Kun Wang, Zhandong Mei

Published 2026-05-08
📖 5 min read🧠 Deep dive

Original authors: Haoyun Tang, Haodong Cui, Keyao Xu, Kun Wang, Zhandong Mei

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a robot to play a complex game, like juggling or balancing a pole. To do this well, the robot needs a "world model"—an internal simulation that lets it imagine what will happen if it takes a certain action before actually doing it.

The paper introduces HaM-World, a new type of world model designed to make these mental simulations more stable and accurate, especially over long periods or when the rules of the game change slightly.

Here is how it works, broken down into simple concepts and analogies:

1. The Problem: The "Daydream" Gets Foggy

Current world models are like a student trying to memorize a story by reading it one sentence at a time. If the story is short, they remember it perfectly. But if they try to imagine the story 100 steps into the future, the details get blurry, and the story falls apart.

  • The Issue: As the robot plans further ahead, its predictions become unstable. It also struggles if the environment changes (e.g., the floor becomes slippery or the robot's arm gets heavier).
  • The Cause: The paper argues that existing models mix up too many things in their "brain." They confuse the robot's position (where it is), its momentum (how fast it's moving), and the context (what the goal is or if the floor is wet). This mix-up causes errors to pile up quickly.

2. The Solution: A Specialized "Brain" with Three Rooms

HaM-World solves this by organizing the robot's internal state into three distinct "rooms" or compartments, rather than one big messy room:

  • Room A: The Physics Engine (q and p)
    This room handles the pure physics: position (qq) and momentum (pp). The authors use a mathematical concept called Hamiltonian dynamics here.

    • The Analogy: Think of this as a billiard table. On a billiard table, energy is conserved; balls bounce off each other in predictable ways. HaM-World tries to make the robot's position and momentum behave like billiard balls. This creates a stable "backbone" for the simulation, preventing the robot from imagining impossible physics (like a ball suddenly speeding up for no reason).
    • The "Soft" Twist: Real life isn't a perfect billiard table; there is friction, and the robot has motors. So, HaM-World uses a "Soft-Hamiltonian" approach. It keeps the stable billiard-table structure but allows for a "residual" layer that learns the messy, real-world stuff like friction and motor control.
  • Room B: The Context Room (c)
    This room holds information that doesn't follow the billiard-table rules.

    • The Analogy: This is the robot's notebook. It writes down things like "the goal is to spin the finger," "the floor is slippery," or "I need to be careful." These are semantic details that don't fit into the pure physics of position and speed, but are crucial for knowing what to do.
  • Room C: The Memory Room (Mamba)
    This is the robot's short-term memory.

    • The Analogy: Sometimes the robot can't see everything (partial observability), or there is a delay between when it decides to move and when it actually moves. A standard model might forget what happened 5 seconds ago. HaM-World uses a special memory system called Mamba that acts like a selective filter. It remembers the important parts of the past needed to make a decision right now, ensuring the robot doesn't get "lost" in its own daydream.

3. How It Works Together

When the robot plans a move, it doesn't just guess. It runs a simulation (a "rollout") inside its head:

  1. It looks at the current state.
  2. It uses the Memory Room to fill in any missing details from the past.
  3. It updates the Physics Room using the stable billiard-table rules, tweaked by the motor controls.
  4. It updates the Context Room with new information about the goal or environment.
  5. It repeats this for many steps into the future to see which action leads to the best result.

Because the physics part is so stable (like the billiard table) and the memory part is so good at filling in gaps, the robot's "daydream" stays clear and accurate even for long planning horizons.

4. The Results: Better at Everything

The authors tested HaM-World on four standard robot tasks (like a cheetah running or a finger spinning an object).

  • Accuracy: It made far fewer mistakes when imagining the future compared to other top models. In fact, its long-term prediction errors were less than half of the next-best model.
  • Robustness: When the researchers changed the rules of the game (e.g., made the robot heavier, slowed down its actions, or hid parts of its vision), HaM-World kept performing well. It was the only model that maintained the highest score in every single difficult test condition.
  • Efficiency: It learned to control the robots faster and with fewer training attempts than other methods.

Summary

HaM-World is like giving a robot a better internal map. Instead of a blurry, mixed-up sketch, it gives the robot a structured map with a stable physical foundation (the billiard table), a place for important notes (the context), and a reliable memory (the filter). This allows the robot to plan complex, long-term actions without getting confused or losing its way, even when the world around it changes.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →