TL;DR
HAMLET (History-Aware Memory with LEarned Tokens) is a plug-and-play framework that gives existing Vision-Language-Action (VLA) models a "memory" without requiring expensive retraining from scratch. By using compact "moment tokens" and a lightweight memory module, HAMLET allows robots to solve complex, multi-step tasks—like remembering where an object is after it’s been covered—with minimal computational overhead.
The Challenge: Object Permanence in Robotics
Most state-of-the-art robotic models (VLAs) operate on a "single-frame" assumption. They look at the current camera feed and decide on an action. While this works for simple tasks, it fails in the real world where history matters. For example, if a robot covers a red cube with a blue cup, it needs to remember the cube is still there to complete a "stack the cups on the cube" instruction.
The standard way to fix this is "multi-frame" input—simply feeding the last several images into the model. However, this is computationally disastrous: appending just four past frames can increase memory usage by 3.6x and slow down the robot's reaction time by 35%. The challenge is: How do we give robots "object permanence" and temporal reasoning without breaking the computational budget?
How HAMLET Works
HAMLET introduces a two-stage approach to add history-awareness to pre-trained VLAs:
- Moment Tokens: Instead of raw images, HAMLET appends a small set of learnable "moment tokens" to the Vision-Language Model (VLM) input. These tokens act as a compressed summary of the scene at that specific moment.
- Time-Contrastive Learning (TCL): To ensure these tokens actually capture useful temporal information, they are initialized using TCL. This forces the tokens to distinguish between different points in time within a video of a task, helping the model ignore static backgrounds and focus on the dynamics of the manipulation.
- Lightweight Memory Module: A shallow Transformer stores these moment tokens over time. It uses causal self-attention to integrate past "moments" into a single history-augmented feature.
- Action Integration: This history feature is concatenated with the current frame's features and fed into the VLA’s "action expert" (the part of the model that predicts robot movements).
Crucially, the large VLM backbone remains frozen during much of this process, making the adaptation highly efficient.
Key Insights
- Efficiency is King: HAMLET achieves history-awareness with only a 2% to 7% increase in latency, compared to the 35%+ slowdown seen in naïve multi-frame approaches. This makes it viable for real-time robotic control.
- The "Aha" of Compression: By compressing history into tokens rather than raw pixels, the model avoids "causal confusion"—a common failure mode where robots overfit to spurious correlations in consecutive video frames.
- Initialization Matters: The paper shows that simply adding a memory module isn't enough. The Time-Contrastive Learning step is vital; without it, the moment tokens don't "know" what parts of the history are worth remembering.
- Backbone Agnostic: HAMLET isn't tied to one specific model. The authors successfully "plugged it in" to several different VLA architectures (GR00T, CogACT, and OpenVLA), seeing improvements in all of them.
Performance Highlights
The authors evaluated HAMLET across a rigorous mix of real-world and simulated environments, including handcrafted tabletop tasks, RoboCasa Kitchen, LIBERO, and SimplerEnv-Bridge.
- Real-World Dominance: On history-dependent tasks (like Pick-and-Place Twice, Cover-and-Stack, and Swap Cubes), HAMLET improved the success rate of the GR00T N1.5 model from 29.2% to 76.4%—a massive 47.2% absolute gain.
- Simulation Gains:
- On RoboCasa, it pushed performance from 64.1% to 66.4%.
- On LIBERO, it reached a near-saturated success rate of 97.6%.
- On SimplerEnv, it boosted the CogACT model from 52.1% to 63.5%.
- Qualitative Success: In "Swap Cubes" tasks where objects are occluded or moved, HAMLET-equipped robots correctly identified which object to grasp next, while baseline models became "confused" and reached for empty spaces or the wrong objects.
Limitations and Future Work
While HAMLET avoids retraining from scratch, it still requires a fine-tuning phase for the TCL initialization and memory module. Additionally, the current implementation uses a fixed history length (e.g., the last 4 or 8 steps). While the Transformer's KV-cache helps retain some older info, a more explicit long-term memory architecture could be explored. The next step is scaling HAMLET to even larger, more diverse robotic datasets to see if the "history-aware" representations can generalize across entirely different robot types without any task-specific tuning.
Summary updated