Manuscript Offprint
arXiv:2611.02660HeLM: Hierarchical Explicit Language Memory for Non-Markovian Manipulation
Gyeonghun Kim Donghoon Kim Minsoo Choi Suyun Lee
Seoul National University
https://kimspacehuni.github.io/HeLM/
Abstract: Recent advances in Vision-Language-Action (VLA) models have enabled fine manipulation capabilities, yet performing tasks that require working memory remains a key challenge. Most existing VLA architectures operate under a Markovian assumption, mapping only the current observation to an action, which leads to failure in non-Markovian environments. Inspired by the human 'inner monologue', we propose Hierarchical Explicit Language Memory (HeLM), a hierarchical VLA framework that maintains task-relevant history in explicit language through factorized event detection and event-triggered memory updates. We evaluate HeLM across 10 non-Markovian real-world tasks with 56 variants, including five newly formulated inter-episode tasks that require persistent context across task boundaries. HeLM improves intra-episode success by 12.8 percentage points over the strongest baseline and achieves 78% subtask success on compositional generalization tasks, while using up to 4.5× less memory and running 2.5× faster than the keyframe baseline at long horizons.
1 Introduction
The rise of Vision-Language-Action (VLA) models has revolutionized robotic control by enabling generalization across diverse language instructions and embodiments [1, 2]. Built on large-scale pretrained vision-language models, VLA models generate robot actions based on visual observations and natural language instructions. This approach has led to widespread deployment, with variants focusing on visual grounding [3, 4], complex reasoning capabilities [5, 6, 7], or subtask planning [8].
While recent advancements in robot policies have enhanced fine manipulation capabilities, tasks requiring working memory remain a key challenge for real-world deployment. When wiping the window, the robot cannot determine whether the surface has already been wiped and ends up wiping the same area repeatedly. Such tasks are fundamentally non-Markovian, meaning that the current observation alone is insufficient to determine the optimal action. Yet most existing VLA architectures operate under a Markovian assumption, treating manipulation as a sequence of independent decisions. These structural limitations cause failure in memory-intensive tasks (see Fig. 1).
Recently, various approaches have been proposed to address such limitations [9]. One line of work extracts latent embeddings from historical observations [10, 11] or compresses tokens into a memory module [12]. While these approaches are effective to some extent, relying on latent representations makes it difficult to identify causes of failure due to limited interpretability. Another line of work directly leverages visual history by stacking past frames [13] or using keyframe annotations [14]. A drawback of these approaches is computational overhead caused by accumulating image tokens, which limits long-horizon scalability.
Correspondence to: kgh011016@snu.ac.kr.
Other authors: {dhkim, mschoi, sylee}@islab.snu.ac.kr.

Figure 1: Example of non-Markovian task. Due to architectural limitation, a vanilla VLA loses track after pressing the red button and presses it again. HeLM successfully executes the task by storing progress in language memory, allowing the HLP to guide the LLP correctly.
To overcome these limitations, we draw inspiration from how humans utilize an 'inner monologue'. Just as humans manage complex tasks by internally keeping track of their progress (e.g., "I pressed the button twice; one more to go") or spatial data (e.g., "The cup was originally on the left"), we suggest that natural language can serve as an efficient and interpretable representation for robotic memory. By nature, this compact form preserves critical information (e.g., counts, locations) across long-horizon tasks. More fundamentally, language is a natural memory representation for VLM-based policies: it is the native modality of vision-language reasoning, scales compactly across long horizons, and exposes inspectable memory states for analysis.
Building on this insight, we propose Hierarchical Explicit Language Memory (HeLM), which incorporates language memory into robotic manipulation. HeLM separates high-level memory management from low-level action generation. Specifically, a VLM-based high-level policy (HLP) maintains the task relevant history in language form and generates action commands, while a VLA-based low-level policy (LLP) executes actions. Memory updates are event-triggered and occur only after task-relevant events or instruction changes. The language memory is organized into working and episodic fields according to whether information is needed within or across instructions. Together, these design choices support non-Markovian reasoning both within and across episodes.
We evaluate HeLM on diverse non-Markovian tasks, including newly formulated inter-episode tasks. HeLM improves intra-episode subtask success by 12.8 percentage points over the strongest baseline and achieves 78% on compositional HLP generalization tasks. As task length grows, HeLM uses up to 4.5× less memory and runs 2.5× faster than the visual-memory baseline at long horizons.
Contributions. Our main contributions are summarized as follows:
- We propose HeLM, a hierarchical framework that maintains task-relevant history in explicit language through factorized event detection and event-triggered memory updates.
- Across 10 real-world tasks, HeLM outperforms memory-augmented and visual memory baselines, supported by component-level failure analysis.
- We formulate inter-episode persistence as an underexplored axis of robotic memory and introduce a task suite of 10 non-Markovian tasks (56 variants).
2.1 Memory-Augmented and Hierarchical VLA Models
VLA models such as RT-2, OpenVLA, and map current visual-language observations to robot actions [15, 1, 2, 16]. Recent works extend these models with richer reasoning capabilities [17, 18, 19, 20], while hierarchical VLA frameworks decompose complex tasks into high-level instructions executed by low-level policies [8]. However, these approaches do not necessarily maintain explicit task-relevant history over long horizons.
Prior memory-augmented policies retrieve latent features or historical tokens [12, 21, 22, 23, 10], while others preserve visual history through feature traces or multi-frame observations [3, 24, 25, 26, 14]. These representations can retain historical information, but provide limited access to the explicit task state required for counting, sequencing, or cross-episode recall.
Language has also been used to support temporal reasoning. Inner Monologue [7] provides language feedback such as success signals and scene descriptions to support closed-loop replanning, whereas HeLM explicitly keeps task-relevant history in language over the sequence. MEM [27] combines short-horizon visual context with long-horizon textual memory, whereas HeLM separates event detection from memory updates, updating language memory only when task-relevant events are detected or instructions change. HeLM further evaluates inter-episode tasks, where completing a later instruction requires information acquired during an earlier episode. RoboMemory [28] stores and retrieves past experience to support future interactions, whereas HeLM focuses on maintaining task-relevant history for the current non-Markovian task. Chameleon [29] also uses a two-part memory but operates over latent multimodal tokens rather than explicit language. Overall, HeLM studies explicit language memory as a compact and interpretable way to carry task-relevant information over time and across instructions.
2.2 Non-Markovian Manipulation Tasks in Robotics
Manipulation benchmarks such as LIBERO and RLBench evaluate episodes independently, with environment resets and no requirement to retain information across task boundaries [30, 31, 32, 33, 34]. Recent memory-focused benchmarks such as MemoryBench, LIBERO-Mem, RMBench, and RoboMME [11, 10, 35, 36] introduce historical dependencies such as object occlusion, action history, and sequential progress. However, these benchmarks primarily evaluate memory within individual task episodes. In contrast, our task suite includes inter-episode tasks, where completing a later instruction requires information acquired during an earlier episode that cannot be recovered from the current observation alone.
3 HeLM: Hierarchical Explicit Language Memory
HeLM's design follows a single principle: language can serve as a memory representation for VLA-based manipulation. This section formalizes the non-Markovian problem (Sec. 3.1), hierarchical decomposition (Sec. 3.2), structured memory (Sec. 3.3), and event-triggered inference (Sec. 3.4).
3.1 Problem Formulation
In non-Markovian manipulation tasks, the current observation is insufficient to fully infer the true state . Standard VLA policies model the action distribution as , implicitly assuming that provides sufficient state information. However, identical observations can correspond to different underlying states depending on past events:
A memoryless policy conditioned only on cannot distinguish histories that yield the same current observation but require different actions (see Fig. 1).

Figure 2: Overall Architecture of HeLM. The High Level Policy (HLP) integrates language memory with a pretrained VLM, which switches between a 'detect mode' that monitors events and an 'update mode' that updates these events into language memory. The Low Level Policy (LLP), a pretrained VLA, executes action commands generated by the HLP.
To address this gap, we introduce an explicit, structured textual memory that captures task-relevant history, reformulating the policy as .
3.2 Framework Overview
HeLM decouples semantic memory management from action generation through a two-level hierarchy. As shown in Fig. 2, the HLP (), built on a fine-tuned VLM, generates action commands while maintaining the memory based on and . On the other hand, the LLP (), implemented with a VLA model, maps HLP-generated commands and to robot actions . By design, language memory captures abstract task state, while the current observation provides immediate spatial grounding at execution time.
3.3 Structured Memory
Inspired by the distinction between working and episodic memory in human cognition, we organize textual memory into two fields based on how long information remains relevant (Fig 2):
Here, working memory tracks active progress within a single episode and is updated whenever a visual event is detected. Episodic context preserves summarized information across task boundaries, which is promoted from at the end of each episode (see Fig. 3 for examples).
3.4 Two Stage HLP Inference
HeLM employs a two-stage inference mechanism that updates memory only when semantic events are detected or the instruction changes. The LLP executes an action chunk of horizon , and the HLP is synchronously invoked at each chunk boundary for event detection and updates memory when needed. This decoupling avoids unnecessary memory updates between detected events. As shown in Fig. 2, , share the same VLM parameters and are functionally distinguished through different system prompts.
Visual Event Detection Stage. (): In Detect Mode, the VLM determines whether a task-relevant event has occurred from the current observation , memory , and action command . The detector outputs either a task-relevant event or none at each HLP invocation.

Figure 3: Update / Detect mode of HLP in evaluation loop. An example of transitions between Detect and Update modes and corresponding memory updates across intra- and inter-episode scenarios. Each action is generated based on and the current instruction.
These events are defined via a predefined set of task-relevant events, specified via TaskSpec (Sec. 3.5) such as "pressed red button" or "wiped the top window".
Memory Update Stage. (): In Update Mode, the HLP updates the language memory based on the detected event and current memory state. This phase is event-triggered and is activated only when the detector identifies an event (i.e., ) or when the global instruction changes ().
3.5 Data Generation
HeLM's explicit text memory formulates training as standard visual instruction tuning, where each sample pairs a visual observation with a text prompt encoding the current memory state. Training data is synthesized from short subtask episodes via TaskSpec, a logical schema that can be handwritten or LLM-generated. TaskSpec is used to synthesize DETECT and UPDATE supervision from short subtask trajectories. TaskSpec specifies the valid action commands, task-relevant events, and corresponding memory updates for each task, without prescribing a fixed action sequence. During inference, the HLP receives task-specific event and action vocabularies, but not the full TaskSpec or ground-truth memory transitions. Instead, it autonomously detects events and updates its language memory based on visual observations. Appendix A details the data-generation pipeline, TaskSpec schema, system prompts, and training hyperparameters.
4 Non-Markovian Task Suite
To evaluate non-Markovian reasoning, we formalize inter-episode setting and introduce a task suite covering both intra- and inter-episode challenges.
4.1 Extension to Inter-Episode Setting
Extending the formulation in Section 3.1 (fixed instruction ), we now consider settings where the agent receives a sequence of instructions with episode boundaries marked by instruction changes. Each episode follows a single task instruction. At an episode boundary, the robot returns to its initial pose and the within-episode history is cleared, while the episodic context is retained. We define inter-episode tasks as those where completing a later instruction requires information acquired during an earlier episode that cannot be recovered from the current observation alone.
Intra Episode Task

Press N Times
Press in Order
Wipe the Window
Find the Object
Pick Place and Press
Inter Episode Task

Press N Times
→ Press M Times Total
Press the Button in Human Order
Wipe the Remaining Window
Open the Drawer with Object
Pick Place to Original Position
Figure 4: The Real-World Evaluation Suite of HeLM. Our tasks are categorized into two types based on their temporal memory requirements. (Top) Intra-episode tasks (A1–A5) evaluate working memory within a single instruction. (Bottom) Inter-episode tasks (E1–E5) assess episodic context across task boundaries.
For an episode starting at , within-episode history alone may be insufficient:
Eq. (1) is the single-episode case of this. HeLM handles this through , which persists across episode boundaries while resets. At each boundary, (triggered by ) promotes summarized history from into .
4.2 Task Suite Design
Our task suite consists of 10 tasks with 56 variants and covers three cognitive challenges (Fig. 4): count-dependent reasoning, order-sensitive progress tracking, and object-centric recall after occlusion or displacement.
We further categorize tasks by temporal dependency. Intra-episode tasks (A1–A5) require tracking information within a single instruction, while inter-episode tasks (E1–E5) require information from an earlier instruction to complete a later one. The intra-episode tasks involve remembering how many times an action has been repeated (A1), which actions have already been completed in a sequence (A2), which regions of the window have been wiped (A3), which drawers have already been searched (A4), and the current stage of a multi-step manipulation (A5). The inter-episode tasks require recalling a previous count (E1), a human-demonstrated action sequence (E2), previously wiped regions (E3), an observed object location (E4), or an object's original position (E5). Instruction templates, task variants, and subtask decompositions are provided in Appendix B.1.
5 Experiments
Our experiments assess (1) real-world performance on intra- and inter-episode tasks (Sec. 5.2), (2) the failure modes of HeLM and the baselines (Sec. 5.3), (3) the contributions of language memory, HLP fine-tuning, and two-stage inference through controlled ablations (Sec. 5.4), (4) generalization to held-out task configurations (Sec. 5.5), and (5) long-horizon robustness and computational efficiency as task history grows (Sec. 5.6).

Figure 5: Intra-episode real-world evaluation results. HeLM achieves the highest average subtask success rate on five intra-episode tasks. In contrast, Keyframe-HLP fails to detect termination in A1, A4 (denoted by *), while the baselines PCMB- and Naïve- (denoted by ***) fail both sequencing and termination across all trials. Under strict task success, HeLM retains 81.3%, while Keyframe-HLP drops to 29.3% and both PCMB- and Naïve- drop to 0%. Bars report mean subtask success rate over 15–30 trials per task (3–6 variants, 5 trials each). Error bars denote one standard deviation across variants.
Table 1: Inter-episode real-world evaluation. We report subtask success rates (%) on tasks E1–E5, which require retaining task-relevant information across episode boundaries. Avg. denotes the mean across the five tasks. * indicates failure to terminate.
| Method | E1 | E2 | E3 | E4 | E5 | Avg. |
|---|---|---|---|---|---|---|
| Keyframe-HLP | 27.6* | 0.0 | 33.3 | 0.0 | 22.2 | 16.6 |
| HeLM (Ours) | 90.5 | 87.7 | 90.0 | 80.0 | 97.7 | 89.2 |
5.1 Experimental Setup
Baselines. We compare HeLM against three baselines. First, Keyframe-HLP is a variant of our HLP that stores visual keyframes of detected events instead of textual memory, isolating the effect of memory modality. Second, PCMB- augments with the Perceptual-Cognitive Memory Bank (PCMB) [12], which compresses and retrieves historical tokens via a memory module. Finally, Naïve- [2] is the base model trained end-to-end, without an explicit memory mechanism. All baselines use the same action backbone fine-tuned on 150-200 demonstrations per task, controlling for low-level action capacity. HeLM and Keyframe-HLP additionally share the same HLP backbone and event supervision, enabling a controlled comparison of memory modality. Appendix D.1 provides implementation details of the baselines, including the PCMB adaptation.
Implementation of HeLM. We use Qwen2.5-VL-7B [37] as the backbone of HLP, fine-tuned via QLoRA [38] (rank ) on 130k frames generated via TaskSpec. HLP runs every 10 LLP steps. All real-world experiments use a 7-DoF AgileX PiPER arm with table/wrist-view RGB cameras.
Evaluation Protocol. We report mean success rate per task over 15–45 trials (3–9 variants, 5 trials each). Subtask success rate measures the fraction of required subtasks completed, while order and termination errors are tracked separately to preserve failure-mode information. Strict task success rate requires all subtasks to be completed in the correct order with proper termination and is additionally reported for the intra-episode evaluation. Appendix E defines the subtask scoring rules and reports strict task success rates.
Table 2: Memory and HLP fine-tuning ablations on LIBERO-Mem. We report mean task success rates (%) for three task groups and the average across all ten tasks. All configurations use [18] as the low-level policy. The memory ablation removes explicit language memory, while the fine-tuning ablation retains memory but uses an HLP without task-specific fine-tuning. T3–T8 require persistent temporal state tracking.
| Method | T1–T2 | T3–T8 | T9–T10 | Avg. |
|---|---|---|---|---|
| 65.0 | 10.0 | 87.5 | 36.5 | |
| 27.5 | 0.0 | 32.5 | 12.0 | |
| 5.0 | 0.0 | 37.5 | 8.5 | |
| HeLM (Ours) | 67.5 | 45.8 | 87.5 | 58.5 |
5.2 Real-World Evaluation
Intra-Episode. On intra-episode tasks (Fig. 5), HeLM substantially outperforms all baselines. HeLM achieves 85.7% average subtask success rate, compared to Keyframe-HLP (72.9%), PCMB- (39.5%) and Naïve- (16.7%). Under strict task success, HeLM retains 81.3%, while Keyframe-HLP drops to 29.3% and both PCMB- and Naïve- to 0%. The small gap between subtask and strict success for HeLM indicates reliable sequencing and termination, whereas the larger drops in the baselines reflect frequent order and termination failures (Sec. 5.3).
Inter-Episode. On inter-episode tasks (Tab. 1), HeLM achieves 89.2% average subtask success rate. PCMB- and Naïve- are excluded as they reset internal states at episode boundaries, lacking support for cross-episode context; developing dedicated inter-episode baselines remains an open direction. Keyframe-HLP degrades to 16.6% average subtask success rate as visual keyframes accumulate across instruction boundaries. In contrast, HeLM's episode context summarizes inter-episode information, enabling reliable progress tracking across instruction boundaries.
5.3 Failure Analysis
Failure Categories. We categorize observed failures into four types: Low-Level Execution (LLP fails physical execution), Detection (HLP's visual event detection fails), Order (subtask order violations), and Termination (fail to stop after task completion or premature stopping).
HeLM Failures. HeLM's failures are dominated by Detection (64.1%) and Low-Level (31.2%), while Order failures are rare (4.7%) and Termination is not observed. Detection failures are primarily false positives, especially for drawer-opening (A4, E4) and completion events (A3, A5); despite conservative prompting to suppress uncertain detections, these errors lead to incorrect memory updates that the framework cannot self-correct. Low-Level failures arise in contact-sensitive manipulation (e.g., A1, A5, E1), where the LLP reaches the target region but fails to physically press or complete the interaction.
Baseline Failures. Keyframe-HLP shows substantial Termination (33.3%) and Detection (20.2%) failures, reflecting confusion when visual keyframes accumulate. PCMB- and Naïve- are dominated by Order and Termination failures across all tasks. Overall, HeLM's failures are dominated by perception and low-level execution errors, highlighting these components as key targets for improvement. A detailed breakdown of failure rates across individual tasks, along with representative failure cases, is provided in Appendix C.
5.4 Memory and Inference Ablations
We isolate key components of HeLM through complementary simulation and real-world ablations.
Memory and HLP Finetuning on LIBERO-Mem. We evaluate HeLM on LIBERO-Mem [10], using as the LLP and Qwen2.5-VL-7B as the HLP which is shared across all ten tasks. T1–T2
Table 3: Two-stage inference ablation on real-world tasks. We report subtask success rates (%) on intra-episode tasks A1–A5. The one-stage variant jointly predicts events, memory updates, and action commands, whereas HeLM separates event detection from event-triggered memory updates and command generation.
| Method | A1 | A2 | A3 | A4 | A5 | Avg. |
|---|---|---|---|---|---|---|
| HeLM w/ one-stage inference | 100.0 | 81.5 | 22.2 | 86.8 | 48.1 | 67.7 |
| HeLM (Ours) | 100.0 | 92.2 | 96.6 | 66.6 | 73.3 | 85.7 |
Table 4: Compositional generalization on real-world tasks. We report subtask success rates (%) on held-out variants A1'–A5' of the intra-episode tasks. These variants evaluate unseen configurations of learned subtasks without additional HLP fine-tuning. * indicates failure to terminate.
| Method | A1' | A2' | A3' | A4' | A5' | Avg. |
|---|---|---|---|---|---|---|
| Keyframe-HLP | 100.0* | 63.9 | 77.8 | 38.9* | 48.1* | 65.7 |
| HeLM (Ours) | 100.0 | 95.0 | 67.0 | 67.0 | 61.0 | 78.0 |
require short-horizon state tracking, T3–T8 require longer-term count, sequence, or relation tracking, and T9–T10 evaluate object occlusion. We train a single HLP shared across all ten tasks using 100 demonstrations per task and evaluate 20 held-out rollouts per task. We compare HeLM with , a Memoryless HLP with the same hierarchy but no language memory, and an HLP without finetuning using the same memory interface.
As shown in Tab. 2, HeLM achieves 58.5% average success rate compared with 36.5% for . On the memory-intensive T3–T8 tasks, HeLM achieves 45.8%, while achieves 10.0% and both ablations achieve 0%. The Memoryless HLP repeatedly loses completed steps or counts, while the HLP without finetuning often fails to detect task completion or construct the appropriate memory state. These results show that HeLM's gains cannot be explained by added hierarchical capacity alone and that HLP finetuning is important for task-specific grounding. See more details in Appendix F.3.
Two-Stage Inference on Real-World Tasks. We compare HeLM with a one-stage variant that jointly predicts event completion, action command, and updated memory at every HLP call. The one-stage variant achieves 67.7% average subtask success, compared with 85.7% for HeLM (Tab. 3). Its failures are mainly premature completion predictions and incorrect memory updates, with the largest degradation on A3. These results support the benefit of the two-stage inference design.
5.5 Compositional Generalization
Compositional Generalization Experiment Setup. We evaluate compositional generalization on novel task compositions of seen subtasks. While the LLP is fine-tuned to execute specific action commands, the HLP receives no additional finetuning on the held-out variants. The evaluation varies unseen counts, longer action orders, unseen objects, and unseen compositions of previously learned subtasks. Appendix B.2 describes the design of the held-out variants used in this evaluation.
Quantitative Analysis. As shown in Tab. 4, HeLM achieves 78% average subtask success rate. Keyframe-HLP achieves 65.7% but fails to detect termination in A1', A4', and A5'. These results support HeLM's ability to compose learned subtasks beyond the training configurations.
5.6 Memory Scaling and Overhead: Text vs. Visual Memory
We compare textual memory against a visual keyframe baseline (Keyframe-HLP) on long-horizon performance and computational efficiency. For this comparison, both HeLM and Keyframe-HLP use the same Qwen2.5-VL-7B HLP backbone.



Figure 6: Task-length robustness and memory scaling. (a) HeLM success rates on extended variants of A1 (Press N Times) and A2 (Press in Order) as the number of required subtasks increases. (b-1, b-2) Inference latency and GPU memory usage versus the number of stored events for HeLM and Keyframe-HLP.
Long-Horizon Robustness. As shown in Fig. 6, HeLM maintains 100% success on A1 long as the repetition count increases to seven and remains at least 77% on A2 long as the required action sequence grows to seven subtasks. Performance remains robust as the required task history grows within the evaluated range.
Computational Efficiency. HeLM is initially slower due to autoregressive text generation, but becomes faster at long horizons as visual tokens accumulate in Keyframe-HLP (see Fig. 6). Keyframe-HLP's peak VRAM usage reaches 28 GB for an 8-event episode, while HeLM remains under 6 GB. This scaling advantage comes with additional HLP inference over a plain VLA. Appendix F.2 further evaluates smaller HLP and LLP backbones and their trade-off between subtask success and inference cost.
6 Limitations, Future Work, and Conclusion
Limitations and Future Work. Several limitations remain. First, HeLM relies on predefined task-relevant events through TaskSpec, which requires task-specific event definitions and does not address open-ended discovery of what should be remembered. Second, our evaluation focuses on discrete events and does not cover continuous state tracking such as liquid levels or precise geometric history. Third, the current synchronous chunk-level HLP invocation introduces inference overhead and may miss transient events that occur entirely within an LLP action chunk. Fourth, the benefit of separating working and episodic memory, relative to using a single persistent language memory, remains to be evaluated. These limitations motivate more adaptive event discovery, alternative memory organizations, and higher-frequency or asynchronous high-level inference.
Conclusion. We introduced HeLM (Hierarchical Explicit Language Memory) for non-Markovian manipulation, where current observations alone are insufficient for action selection. HeLM maintains task-relevant history in explicit language and decouples high-level memory management from low-level action generation. Across intra- and inter-episode tasks, HeLM improves long-horizon progress tracking and enables information from earlier interactions to guide later decisions. These results highlight memory representation as an important design dimension for robot policies and show that language provides a compact and interpretable interface for maintaining task-relevant history over time.
References
[1] M. J. Kim, K. Pertsch, S. Karamcheti, T. Xiao, A. Balakrishna, S. Nair, R. Rafailov, E. Foster, G. Lam, P. Sanketi, Q. Vuong, T. Kollar, B. Burchfiel, R. Tedrake, D. Sadigh, S. Levine, P. Liang, and C. Finn. Openvla: An open-source vision-language-action model, 2024. URL https://arxiv.org/abs/2406.09246.
[2] K. Black, N. Brown, D. Driess, A. Esmail, M. Equi, C. Finn, N. Fusai, L. Groom, K. Hausman, B. Ichter, S. Jakubczak, T. Jones, L. Ke, S. Levine, A. Li-Bell, M. Mothukuri, S. Nair, K. Pertsch, L. X. Shi, J. Tanner, Q. Vuong, A. Walling, H. Wang, and U. Zhilinsky. : A vision-language-action flow model for general robot control, 2026. URL https://arxiv.org/abs/2410.24164.
[3] R. Zheng, Y. Liang, S. Huang, J. Gao, H. D. III, A. Kolobov, F. Huang, and J. Yang. Tracevla: Visual trace prompting enhances spatial-temporal awareness for generalist robotic policies, 2025. URL https://arxiv.org/abs/2412.10345.
[4] H. Li, S. Yan, Y. Li, and X. Wang. Towards fast, memory-based and data-efficient vision-language policy, 2025. URL https://arxiv.org/abs/2503.10322.
[5] M. Zawalski, W. Chen, K. Pertsch, O. Mees, C. Finn, and S. Levine. Robotic control via embodied chain-of-thought reasoning, 2025. URL https://arxiv.org/abs/2407.08693.
[6] C.-P. Huang, Y.-H. Wu, M.-H. Chen, Y.-C. F. Wang, and F.-E. Yang. Thinkact: Vision-language-action reasoning via reinforced visual latent planning, 2025. URL https://arxiv.org/abs/2507.16815.
[7] W. Huang, F. Xia, T. Xiao, H. Chan, J. Liang, P. Florence, A. Zeng, J. Tompson, I. Mordatch, Y. Chebotar, P. Sermanet, N. Brown, T. Jackson, L. Luu, S. Levine, K. Hausman, and B. Ichter. Inner monologue: Embodied reasoning through planning with language models, 2022. URL https://arxiv.org/abs/2207.05608.
[8] L. X. Shi, B. Ichter, M. Equi, L. Ke, K. Pertsch, Q. Vuong, J. Tanner, A. Walling, H. Wang, N. Fusai, A. Li-Bell, D. Driess, L. Groom, S. Levine, and C. Finn. Hi robot: Open-ended instruction following with hierarchical vision-language-action models, 2025. URL https://arxiv.org/abs/2502.19417.
[9] L. P. Kaelbling, M. L. Littman, and A. R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial intelligence, 101(1-2):99–134, 1998.
[10] N. Chung, T. Hanyu, T. Nguyen, H. Le, F. Bumgarner, D. M. H. Nguyen, K. Vo, K. Yamazaki, C. Rainwater, T. Kieu, A. Nguyen, and N. Le. Rethinking progression of memory state in robotic manipulation: An object-centric perspective, 2025. URL https://arxiv.org/abs/2511.11478.
[11] H. Fang, M. Grotz, W. Pumacay, Y. R. Wang, D. Fox, R. Krishna, and J. Duan. Sam2act: Integrating visual foundation model with a memory architecture for robotic manipulation, 2025. URL https://arxiv.org/abs/2501.18564.
[12] H. Shi, B. Xie, Y. Liu, L. Sun, F. Liu, T. Wang, E. Zhou, H. Fan, X. Zhang, and G. Huang. Memoryvla: Perceptual-cognitive memory in vision-language-action models for robotic manipulation, 2025. URL https://arxiv.org/abs/2508.19236.
[13] M. Torne, A. Tang, Y. Liu, and C. Finn. Learning long-context diffusion policies via past-token prediction, 2025. URL https://arxiv.org/abs/2505.09561.
[14] A. Sridhar, J. Pan, S. Sharma, and C. Finn. Memer: Scaling up memory for robot control via experience retrieval, 2025. URL https://arxiv.org/abs/2510.20328.
[15] A. Brohan, N. Brown, J. Carbajal, Y. Chebotar, X. Chen, K. Choromanski, T. Ding, D. Driess, A. Dubey, C. Finn, P. Florence, C. Fu, M. G. Arenas, K. Gopalakrishnan, K. Han, K. Hausman, A. Herzog, J. Hsu, B. Ichter, A. Irpan, N. Joshi, R. Julian, D. Kalashnikov, Y. Kuang, I. Leal, L. Lee, T.-W. E. Lee, S. Levine, Y. Lu, H. Michalewski, I. Mordatch, K. Pertsch, K. Rao, K. Reymann, M. Ryoo, G. Salazar, P. Sanketi, P. Sermanet, J. Singh, A. Singh, R. Soricut, H. Tran, V. Vanhoucke, Q. Vuong, A. Wahid, S. Welker, P. Wohlhart, J. Wu, F. Xia, T. Xiao, P. Xu, S. Xu, T. Yu, and B. Zitkovich. Rt-2: Vision-language-action models transfer web knowledge to robotic control, 2023. URL https://arxiv.org/abs/2307.15818.
[16] D. Kim, H. Jang, M. Koo, S. Jang, T. Kim, B. Kim, B. Yoon, C. Jang, D. Choi, D. Han, D. Lee, H. Kwon, H. Jeon, J. Kang, J. Bae, J. Lee, J. Lee, J. Won, J. Ahn, J. Park, J. Sung, K. Lee, M. Han, M. Yoon, S. Joo, S. Son, S. Park, S. Cho, S. Moon, S. Kim, Y. Dong, Y. Cho, Y. Kim, C. H. Kim, D. Kim, H. Kim, H. Lee, H. Ahn, H. Ryu, H. Choi, H. Shin, J. Jung, J. Kim, J. Kim, J. Chang, J. Kim, J. Park, J. Park, J. Cho, J. Park, J. Lee, K. Lee, K. Kim, K. Choe, M. Bhadu, N. Oh, S. Kim, S. Kim, S. Shim, S. Kim, S. Lee, S. Ka, S. Yang, W. Jung, Y. Shukla, Y. Lee, Y. Bae, and J. Shin. Rldx-1 technical report, 2026. URL https://arxiv.org/abs/2605.03269.
[17] G. R. Team, S. Abeyruwan, J. Ainslie, J.-B. Alayrac, M. G. Arenas, T. Armstrong, A. Balakrishna, R. Baruch, M. Bauza, M. Blokzijl, S. Bohez, K. Bousmalis, A. Brohan, T. Buschmann, A. Byravan, S. Cabi, K. Caluwaerts, F. Casarini, O. Chang, J. E. Chen, X. Chen, H.-T. L. Chiang, K. Choromanski, D. D'Ambrosio, S. Dasari, T. Davchev, C. Devin, N. D. Palo, T. Ding, A. Dostmohamed, D. Driess, Y. Du, D. Dwibedi, M. Elabd, C. Fantacci, C. Fong, E. Frey, C. Fu, M. Giustina, K. Gopalakrishnan, L. Graesser, L. Hasenclever, N. Heess, B. Hernaez, A. Herzog, R. A. Hofer, J. Humplik, A. Iscen, M. G. Jacob, D. Jain, R. Julian, D. Kalashnikov, M. E. Karagozler, S. Karp, C. Kew, J. Kirkland, S. Kirmani, Y. Kuang, T. Lampe, A. Laurens, I. Leal, A. X. Lee, T.-W. E. Lee, J. Liang, Y. Lin, S. Maddineni, A. Majumdar, A. H. Michaely, R. Moreno, M. Neunert, F. Nori, C. Parada, E. Parisotto, P. Pastor, A. Pooley, K. Rao, K. Reymann, D. Sadigh, S. Saliceti, P. Sanketi, P. Sermanet, D. Shah, M. Sharma, K. Shea, C. Shu, V. Sindhwani, S. Singh, R. Soricut, J. T. Springenberg, R. Sterneck, R. Surdulescu, J. Tan, J. Tompson, V. Vanhoucke, J. Varley, G. Vesom, G. Vezzani, O. Vinyals, A. Wahid, S. Welker, P. Wohlhart, F. Xia, T. Xiao, A. Xie, J. Xie, P. Xu, S. Xu, Y. Xu, Z. Xu, Y. Yang, R. Yao, S. Yaroshenko, W. Yu, W. Yuan, J. Zhang, T. Zhang, A. Zhou, and Y. Zhou. Gemini robotics: Bringing ai into the physical world, 2025. URL https://arxiv.org/abs/2503.20020.
[18] P. Intelligence, K. Black, N. Brown, J. Darpinian, K. Dhabalia, D. Driess, A. Esmail, M. Equi, C. Finn, N. Fusai, M. Y. Galliker, D. Ghosh, L. Groom, K. Hausman, B. Ichter, S. Jakubczak, T. Jones, L. Ke, D. LeBlanc, S. Levine, A. Li-Bell, M. Mothukuri, S. Nair, K. Pertsch, A. Z. Ren, L. X. Shi, L. Smith, J. T. Springenberg, K. Stachowicz, J. Tanner, Q. Vuong, H. Walke, A. Walling, H. Wang, L. Yu, and U. Zhilinsky. : a vision-language-action model with open-world generalization, 2025. URL https://arxiv.org/abs/2504.16054.
[19] F. Lin, R. Nai, Y. Hu, J. You, J. Zhao, and Y. Gao. Onetwovla: A unified vision-language-action model with adaptive reasoning, 2026. URL https://arxiv.org/abs/2505.11917.
[20] Z. Zhang, S. Yang, Q. Hu, L. J. Huang, J. Hou, Y. Sun, Y. Lu, and S. Han. Foreact: Steering your vla with efficient visual foresight planning, 2026. URL https://arxiv.org/abs/2602.12322.
[21] R. Li, W. Guo, Z. Wu, C. Wang, H. Deng, Z. Weng, Y.-P. Tan, and Z. Wang. Map-vla: Memory-augmented prompting for vision-language-action model in robotic manipulation, 2025. URL https://arxiv.org/abs/2511.09516.
[22] M. Lin, X. Liang, B. Lin, L. Jingzhi, Z. Jiao, K. Li, Y. Ma, Y. Liu, S. Zhao, Y. Zhuang, and X. Liang. Echovla: Robotic vision-language-action model with synergistic declarative memory for mobile manipulation, 2025. URL https://arxiv.org/abs/2511.18112.
[23] K. Qu, G. Lan, R. Zurbrügg, C. Chen, C. E. Mower, H. Bou-Ammar, and M. Hutter. A pragmatist robot: Learning to plan tasks by experiencing the real world, 2026. URL https://arxiv.org/abs/2507.16713.
[24] J. Chen, H. Fang, C. Wang, S. Wang, and C. Lu. History-aware visuomotor policy learning via point tracking, 2025. URL https://arxiv.org/abs/2509.17141.
[25] Q. Hu, Z. Qiu, Z. Xu, K. Zhang, X. Bu, Z. Sun, B. Zhang, J. Zhao, Z. Gan, and W. Ding. Resolving state ambiguity in robot manipulation via adaptive working memory recoding, 2025. URL https://arxiv.org/abs/2512.24638.
[26] H. Jang, S. Yu, H. Kwon, H. Jeon, Y. Seo, and J. Shin. Contextvla: Vision-language-action model with amortized multi-frame context, 2025. URL https://arxiv.org/abs/2510.04246.
[27] M. Torne, K. Pertsch, H. Walke, K. Vedder, S. Nair, B. Ichter, A. Z. Ren, H. Wang, J. Tang, K. Stachowicz, K. Dhabalia, M. Equi, Q. Vuong, J. T. Springerberg, S. Levine, C. Finn, and D. Driess. Mem: Multi-scale embodied memory for vision language action models, 2026. URL https://arxiv.org/abs/2603.03596.
[28] M. Lei, H. Cai, Y. Yang, Y. Wu, J. Ren, Z. Cui, L. Tan, J. Hong, G. Hu, S. Zhu, S. Jiang, G. Wang, J. Tan, Z. Wan, Z. Li, Z. Li, S. Cui, Y. Zhao, and Y. Han. Robomemory: A brain-inspired multi-memory agentic framework for interactive environmental learning in physical embodied systems, 2026. URL https://arxiv.org/abs/2508.01415.
[29] X. Guo, C. Jiang, H. B. Kim, Y. Sun, Y. Xiao, Y. Han, and J. Yang. Chameleon: Episodic memory for long-horizon robotic manipulation, 2026. URL https://arxiv.org/abs/2603.24576.
[30] S. James, Z. Ma, D. R. Arrojo, and A. J. Davison. Rlbench: The robot learning benchmark & learning environment, 2019. URL https://arxiv.org/abs/1909.12271.
[31] B. Liu, Y. Zhu, C. Gao, Y. Feng, Q. Liu, Y. Zhu, and P. Stone. Libero: Benchmarking knowledge transfer for lifelong robot learning, 2023. URL https://arxiv.org/abs/2306.03310.
[32] S. Nasiriany, A. Maddukuri, L. Zhang, A. Parikh, A. Lo, A. Joshi, A. Mandlekar, and Y. Zhu. Robocasa: Large-scale simulation of everyday tasks for generalist robots, 2024. URL https://arxiv.org/abs/2406.02523.
[33] E. Cherepanov, N. Kachaev, A. K. Kovalev, and A. I. Panov. Memory, benchmark & robots: A benchmark for solving complex tasks with reinforcement learning, 2025. URL https://arxiv.org/abs/2502.10550.
[34] X. Li, K. Hsu, J. Gu, K. Pertsch, O. Mees, H. R. Walke, C. Fu, I. Lunawat, I. Sieh, S. Kirmani, S. Levine, J. Wu, C. Finn, H. Su, Q. Vuong, and T. Xiao. Evaluating real-world robot manipulation policies in simulation, 2024. URL https://arxiv.org/abs/2405.05941.
[35] T. Chen, Y. Wang, M. Li, Y. Qin, H. Shi, Z. Li, Y. Hu, Y. Zhang, K. Wang, Y. Chen, H. Wang, R. Xu, R. Wu, Y. Mu, Y. Yang, H. Dong, and P. Luo. Rmbench: Memory-dependent robotic manipulation benchmark with insights into policy design, 2026. URL https://arxiv.org/abs/2603.01229.
[36] Y. Dai, H. Fu, J. Lee, Y. Liu, H. Zhang, J. Yang, C. Finn, N. Fazeli, and J. Chai. Robomme: Benchmarking and understanding memory for robotic generalist policies, 2026. URL https://arxiv.org/abs/2603.04639.
[37] S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, H. Zhong, Y. Zhu, M. Yang, Z. Li, J. Wan, P. Wang, W. Ding, Z. Fu, Y. Xu, J. Ye, X. Zhang, T. Xie, Z. Cheng, H. Zhang, Z. Yang, H. Xu, and J. Lin. Qwen2.5-vl technical report, 2025. URL https://arxiv.org/abs/2502.13923.
[38] T. Dettmers, A. Pagnoni, A. Holtzman, and L. Zettlemoyer. Qlora: Efficient finetuning of quantized llms, 2023. URL https://arxiv.org/abs/2305.14314.
[39] A. Marafioti, O. Zohar, M. Farré, M. Noyan, E. Bakouch, P. Cuenca, C. Zakka, L. B. Allal, A. Lozhkov, N. Tazi, V. Srivastav, J. Lochner, H. Larcher, M. Morlon, L. Tunstall, L. von Werra, and T. Wolf. Smolvlm: Redefining small and efficient multimodal models, 2025. URL https://arxiv.org/abs/2504.05299.
[40] M. Shukor, D. Aubakirova, F. Capuano, P. Kooijmans, S. Palma, A. Zouitine, M. Aractingi, C. Pascal, M. Russi, A. Marafioti, S. Alibert, M. Cord, T. Wolf, and R. Cadene. Smolvla: A vision-language-action model for affordable and efficient robotics, 2025. URL https://arxiv.org/abs/2506.01844.
This supplementary material presents additional implementation details and experimental results for our paper, HeLM: Hierarchical Explicit Language Memory for Non-Markovian Manipulation. The appendix provides extended implementation details, detailed task descriptions, failure analyses, and supplementary experiments that further support the conclusions of the main paper. Additionally, we include a demo video illustrating the overall framework and real-world inference examples of HeLM.
A HeLM Implementation
This section provides implementation details of HeLM including: dataset generation method using taskspec, system prompt for two modes of HeLM HLP, and train hyperparameters.
Train Dataset Generation. To train the HLP model with robust event-driven reasoning, we developed a TaskSpec-driven data generation pipeline. This approach leverages a key architectural advantage of HeLM: unlike latent memory models [12, 10] that require full video histories for training, HeLM's explicit text memory decouples the current decision from the raw visual past. This allows us to treat each training sample as an independent tuple of observation and memory state .
We define TaskSpec as a schema that maps specific stages of non-Markovian tasks (e.g., “count: 2”) to corresponding event frames and valid memory states. As in Fig 12, a TaskSpec explicitly specifies the valid action commands, detected events, and corresponding memory updates at each stage, ensuring consistent alignment between visual observations and language memory

Figure 7: Generation of HeLM data. Instead of recording multiple episodes of long-horizon non-Markovian tasks, we use a task configuration list to logically stitch together short subtask episodes.
states. Using this schema, we synthetically generate a dataset without manually collecting data for every task variant.
By sampling image frames from raw episodes and pairing them with language memories defined in TaskSpec, we create massive variations of logic-intensive scenarios. This effectively teaches the model to handle language memory; intra-episode sequential logic (updating ) and inter-episode context transitions (promoting to ) by exposing it to diverse language memory-visual observation combinations. Crucially, events act as discrete anchors that trigger memory updates, allowing the model to learn when and how memory should change based on visual evidence rather than continuous observation streams.
TaskSpec Generation. TaskSpec authoring involves defining the logical schema (event vocabulary, action commands, memory transition rules) per task. Task variants are generated by GPT using the hand-written TaskSpec as a template, with manual verification for schema consistency (Fig. 13). The main manual cost is event frame annotation, approximately 5 minutes per subtask (covering 30 episodes).
Table 5: Training hyperparameters used for HeLM. We fine-tune Qwen2.5-VL (7B) as the HLP for our model.
| Hyperparameter | Value |
|---|---|
| Base model | Qwen2.5-VL-7B-Instruct |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | 0.0 |
| Scheduler | Trainer default |
| LR warmup | warmup_ratio = 0.03 |
| Quantization | QLoRA: 4-bit NF4 |
| Batch size | total=8detect_pos : 2detect_neg : 2update_intra : 2update_transition : 2 |
| Training steps | 3000 steps |
| Gradient accumulation | 1 |
| LoRA rank r | 16 |
| LoRA | 32 |
| LoRA dropout | 0.05 |
| LoRA target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Attention implementation | SDPA |
| Image resolution (raw) | |
| # images per sample | 1 |
| Train data composition | Total = 166,590 (Train: 130k / Validation: 36k)detect_neg: 104,425 (62.7%)detect_pos: 30,416 (18.3%)update_intra: 30,416 (18.3%)update_transition: 1,333 (0.8%) |
| Hardware | Single NVIDIA RTX A6000 GPU |
| Training time | ~15 hours for 3000 steps |
System Prompt. HeLM ensures memory stability through a two-stage update mechanism that triggers only upon detecting a semantic event. The two modes of the HLP share the same VLM parameters but are functionally distinguished through task specific system prompts. Fig 9 and Fig 10 show the full system prompts used to train the HLP in DETECT and UPDATE modes.
Train Hyperparameters. We train HeLM using QLoRA, where the base model weights are quantized to 4-bit NF4 with double quantization, while all computations, LoRA adapters, and activations are performed in BF16. The following Tab 5 shows details of training hyperparameters used for HeLM.
B Task Details
B.1 Details of Intra- and Inter-episode Task
This section details the intra-episode tasks (A1–A5) and inter-episode tasks (E1–E5), including the exact episode variants used for each task, as illustrated in Tab 6 and Fig 11.
Table 6: Detailed description of the Real-World Evaluation Suite. The suite consists of five intra-episode tasks (A1–A5) for working memory and five inter-episode tasks (E1–E5) for episodic context, covering a diverse range of non-Markovian reasoning challenges. Each inter-episode task contains two language instructions.
| ID | Task Name | Language Instruction Template | Vars. | Variation Type |
|---|---|---|---|---|
| Intra-episode Tasks (Working Memory) | ||||
| A1 | Press N Times | Press the blue button N times. | 3 | |
| A2 | Press in Order | Press the [Order] buttons in order. | 6 | Order (B, G, R) |
| A3 | Wipe the Window | Wipe the [Order] part of the window in order. Each part of the window is wiped from left to right. | 6 | Order (bottom, middle, top) |
| A4 | Find the Object | Open the drawers in the following order to find the toy hamburger, and stop when you find it in the drawer: top_left, top_right, bottom_right, bottom_left. | 4 | Target Location |
| A5 | Pick, Place, Press | Pick and place the banana from the [A] plate to the [B] plate, press the orange button, and then pick and place the banana from the [B] plate to the [C] plate. | 6 | Transfer Path (Red, Blue, White) |
| Inter-episode Tasks (Episodic Context) | ||||
| E1 | Cumulative Press | Press the blue button N times. → Press the blue button M times in total. | 9 | |
| E2 | Human-Order Press | Observe the sequence of buttons pressed by the person. → Press the buttons in the same order as observed before. | 6 | Demonstrated Order (B, G, R) |
| E3 | Remaining Wipe | Wipe the [Order] parts of the window in order. Each part of the window is wiped from left to right. → Wipe the remaining part of the window. Each part of the window is wiped from left to right. | 6 | Order (bottom, middle, top) |
| E4 | Direct Retrieval | Observe in which drawer the toy hamburger is located. → Based on memory, find the drawer with the toy hamburger. | 4 | Target Location |
| E5 | Original Restore | Pick and place the banana from the [A] plate to the [B] plate, then from the [B] plate to the [C] plate. → Pick and place the banana from current plate to its original plate. | 6 | Transfer Path (Red, Blue, White) |
A1: Press N Times.
The scene contains a single blue button. The agent is instructed to press the blue button exactly N times and then stop. We evaluate three scenarios with .
A2: Press in Order.
The scene contains three colored buttons, blue (B), green (G), and red (R). The agent is instructed to press the buttons in a specified order and then stop. We evaluate six scenarios corresponding to all variations: BGR, BRG, GBR, GRB, RGB, RBG.
A3: Wipe the Window.
The scene contains a window divided into three regions: bottom, middle, and top. The agent is instructed to wipe the window in all variations: bottom, middle, top and then stop.
A4: Find the Object.
The scene contains four drawers located at top-left, top-right, bottom-right, and bottom-left. A toy hamburger is hidden in exactly one drawer. The agent is instructed to find the toy hamburger by opening drawers in a fixed search order: starting from top-left and continuing clockwise (top-left → top-right → bottom-right → bottom-left) until the hamburger is found. We evaluate four scenarios, each differentiated by the hamburger's hidden location (one per drawer).
A5: Pick, Place, and Press.
The scene contains three dishes—blue, red, and white—and a center orange button. A banana must be moved between dishes according to the instruction, with a button press occurring between two transfers. We evaluate six scenarios corresponding to all permutations of the transfer path across the three plates (Red, Blue, White): BRW, BWR, RBW, RWB, WBR, and WRB.
E1: Press N Times → Press M Times Total.
In the first episode, the robot presses the blue button N times same as task A1. Then, the agent is given a new instruction to press the button a total of M. To succeed, the agent must recall the specific count N to infer that exactly additional presses are required. We evaluate across nine scenarios with and , ranging from simple increments like (Total 2) to more complex sequences such as (Total 6).
E2: Press the Button in Human Order.
In the first episode, the human demonstrates a button-press sequence using the three colored buttons B, G, and R, and the agent is required to reproduce the demonstrated order. We evaluate six scenarios corresponding to: BGR, BRG, GBR, GRB, RGB, RBG.
E3: Wipe the Remaining Window.
This task evaluates the ability to complete the remaining region(s) given partial progress. The window is divided into bottom (B), middle (M), and top (T). In each task, one or two regions are wiped in the first episode, and the agent is instructed to wipe the remaining region in the next episode. We evaluate six scenarios covering all variants (e.g., BM + T).
E4: Open the Drawer with Object.
In the first episode, the human opens the drawer with the toy hamburger, and the human then closes the drawer after the agent detects the toy. The agent is then instructed to directly open the same drawer (as in A4) that contains the hamburger (without sequential search). We evaluate four scenarios, one for each drawer location.
E5: Pick, Place to Original Positions.
This task extends task A5 by requiring the banana to be returned to its original positions after the initial two transfers. In the first episode, the agent executes one of the A5 procedures (BRW, RBW, WBR), and then performs an additional return sequence to restore original placements, using: WB, WR, RW, RB, BR, and BW, respectively. We evaluate six scenarios corresponding to the three initial A5 variants.
B.2 Details of Compositional Generalization Tasks
Our compositional HLP generalization evaluation consists of variants (A1′–A5′) corresponding to five intra-episode tasks (A1–A5), each containing 3 variants.
A1': Press N Times. The agent is evaluated on values of N beyond those seen during training (e.g., training includes up to three presses, while testing requires more, such as five presses), measuring whether it can extend counting-based sequential logic to longer horizons.
A2': Press in Order. The agent is required to execute longer plans by repeating or concatenating specified sequences (e.g., RGBGBR), testing whether the HLP can extend ordered plans without task-specific fine-tuning.
A3': Wipe the Window. The agent wipes window regions according to an instructed spatial order. While training uses a canonical order (Bottom → Middle → Top), A3' permutes the regions into novel orderings, evaluating generalization to unseen subtask sequences.
A4': Find the Object. The agent must locate a target object specified by a semantic description among candidate containers. In A4', the target is replaced with an object not seen during training, testing whether the HLP can ground novel object concepts from language alone.
A5': Pick, Place, and Press. The agent executes a multi-step procedure of picking an object, placing it on a receptacle, and pressing a button. A5' alters the procedure order (e.g., changing the order of object transfers), evaluating whether the agent can recombine familiar skills into unseen composite sequences.
C Failure Analysis
We analyze failure cases of HeLM and baselines on both intra-episode and inter-episode tasks. We categorize failures into four types as shown in Fig. 8:
(i) Low-Level Failure: The agent produces actions aligned with the action command but fails to physically achieve the intended outcome.
(ii) Detection Failure: Incorrect event detection, including false positives and false negatives. This category applies only to event-detection-based methods (HeLM and Keyframe-HLP).
(iii) Order Failure: The agent fails to follow the required subtask order in order-sensitive tasks.
(iv) Termination Failure: The agent fails to stop after task completion and continues executing actions.

Figure 8: Four Types of Failure Cases. Examples of low-level, detection, order, and termination failures.
Failure Analysis. Tab. 7 shows that HeLM's failures across intra-episode tasks (A1–A5) are dominated by detection failures (9.1% of trials) and low-level failures (4.4%), while order violations are rare (0.7%) and termination failures are not observed. Among HeLM's failure cases, detection and low-level errors together account for the majority of failure types.
Qualitatively, HeLM rarely fails in short-horizon intra-episode tasks such as A1 and A3, indicating that its reasoning and memory are generally stable within an episode. When failures occur, they concentrate in two cases. Low-level failures mainly arise in contact-sensitive manipulation, where the high-level reasoning is correct but the low-level policy does not produce the precise action. For instance, in A1, A5, and E1, the LLP reaches the target region but often fails to physically press
| Failure Type | HeLM (Ours) | Keyframe-HLP | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A1 | A2 | A3 | A4 | A5 | Avg | A1 | A2 | A3 | A4 | A5 | Avg | |
| 1. Low-Level | 0.0 | 4.4 | 0.0 | 0.0 | 17.8 | 4.4 | 6.7 | 4.4 | 0.0 | 0.0 | 0.0 | 2.2 |
| 2. Detection | 0.0 | 0.0 | 3.3 | 33.3 | 8.9 | 9.1 | 3.3 | 4.4 | 40.0 | 0.0 | 53.3 | 20.2 |
| 3. Order | 0.0 | 3.3 | 0.0 | 0.0 | 0.0 | 0.67 | 0.0 | 0.0 | 0 | 20.8 | 2.2 | 4.6 |
| 4. Termination | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 66.7 | 0.0 | 0.0 | 100 | 0.0 | 33.3 |
Table 7: Failure Analysis of HeLM and Keyframe-HLP. Detailed breakdown of failure types across intra-episode tasks (A1–A5). HeLM exhibits no termination failures and only rare order violations.
or complete the interaction, despite correct detection and memory states. Detection failures are primarily false positives, especially for drawer-opening (A4) and completion (A3, A5) events. In A4 and E4, the dominant failure case is detecting the drawer as opened even when it has not been opened. This distinction is important for recovery: while repeated execution attempts can eventually resolve low-level failures when no progress event is detected, false-positive detections lead to incorrect next action commands. Overall, these results suggest that HeLM's remaining bottlenecks are (i) contact-accurate low-level execution and (ii) robust event detection under occlusion.
As summarized in Tab. 7, Keyframe-HLP exhibits a substantially higher overall failure rate, with termination failures (33.3%) and detection failures (20.2%) as the dominant categories, along with order failures (4.6%) and low-level failures (2.2%). We also observe incorrect event detection (before task completion) in tasks such as A3, where completion is detected from an early keyframe. These issues become more severe in inter-episode settings, where the method frequently fails to terminate or to maintain progress memory consistently across episodes.
For -based baselines (PCMB- and Naïve-), failures are dominated by termination and order failures, while detection failures are not applicable as these methods do not explicitly detect events. Qualitatively, they frequently generate action streams with weak global structure: order-sensitive tasks (e.g., Press in Order) are often violated, and stopping conditions are unreliable. PCMB- occasionally exhibits weak local ordering (recurring short action-to-action patterns), which can yield sporadic partial progress, but this remains insufficient for robust long-horizon sequencing and termination.
Conclusion of Failure Analysis. Taken together, these analyses indicate that HeLM not only achieves the highest overall success rate, but also exhibits a fundamentally different failure profile from the baselines. In particular, failures in HeLM rarely originate from language memory management at the high level. Instead, the dominant failure sources can be attributed to limitations of the underlying models: detection failures from the VLM and contact-sensitive execution failures from the VLA. This suggests that performance gains are likely to come from improving visual event detection and low-level control models rather than the memory mechanism itself.
In contrast, Keyframe-HLP suffers from frequent failures in interpreting multiple visual observations as coherent memory states, leading not only to detection errors but also to progress-tracking and termination failures. Similarly, -based baselines (PCMB- and Naïve-) exhibit pervasive order and termination errors across nearly all tasks, reflecting the lack of explicit memory structure for long-horizon reasoning. These comparisons highlight that HeLM's explicit language memory is a critical factor for stable sequencing and termination, and that its remaining limitations stem primarily from perception and execution rather than memory reasoning itself.
D Experiment Details
In this section, we introduce the baselines and provide a detailed description of the evaluation metric.
D.1 Baselines
We compare HeLM against three representative baselines to evaluate the impact of explicit language memory on non-Markovian task performance. First, Keyframe-HLP serves as a direct comparative variant that maintains visual keyframes of detected events instead of converting them into textual memory. Second, Naïve- is included as a fundamental memoryless baseline that maps observations directly to actions without any historical reasoning mechanism. Finally, PCMB- adapts the latent-memory bottleneck mechanism of the 7B-parameter MemoryVLA [12] to the more computationally efficient backbone, as the original model's scale poses significant challenges for fine-tuning under limited GPU resources.
Keyframe-HLP: We implement the visual keyframe memory baseline by adapting the hierarchical architecture of HeLM. The original HeLM framework operates in two stages: the detect mode HLP identifies the event frame, and the update mode HLP updates the memory based on the event. For our baseline, we modify the memory modality: instead of language memory, we store the raw RGB frame as a keyframe memory and stack them sequentially. We retain the same event detection logic to isolate the effect of memory modality. Consequently, the policy receives a sequence of historical keyframes () as input, enabling direct comparison between visual and language memory representations.
Naïve-. As a strong VLA baseline, we employ [2], a flow-matching-based policy that maps visual observations and language instructions directly to continuous action trajectories. The model is trained end-to-end without any explicit memory mechanism, conditioning each action prediction only on the current observation and task instruction.
To ensure fair comparison with HeLM's LLP, we fine-tune on the same per-task demonstration set (150-200 demonstrations per task) using identical training hyperparameters. The model takes the current RGB observation and language instruction as input and outputs an action chunk of horizon .
PCMB-. We adapt the Perceptual-Cognitive Memory Bank (PCMB) mechanism of MemoryVLA [12] to the backbone, since the original 7B-parameter model poses significant challenges for fine-tuning under our compute budget. The PCMB module compresses high-dimensional visual observations into a compact latent memory bank (), retaining only semantically relevant features for downstream action prediction.
Our implementation preserves the core PCMB mechanism: (i) a persistent memory bank that aggregates historical visual tokens, (ii) a time-aware learnable cross-attention mechanism with sinusoidal time embeddings to resolve perceptual aliasing between similar observations at different timesteps, and (iii) a soft update rule with rate to enable gradual memory consolidation rather than abrupt overwrites.
We adapt three aspects to the backbone. First, we set the memory slot capacity to , determined empirically to balance memory capacity and computational overhead. Second, to synchronize memory updates with 's chunked action generation (), we implement action-horizon aligned training, where memory states are updated in tandem with action chunks rather than at every timestep. Third, we fine-tune the resulting model on the same per-task demonstration set as HeLM's LLP (150-200 demonstrations per task) under identical training hyperparameters.
We note that scale differences between the original 7B MemoryVLA and our -based adaptation may affect performance characteristics. Our adaptation isolates the PCMB mechanism for fair comparison under the same backbone and training budget as other -based baselines.
Limitations of Naïve- and PCMB-. We identify two architectural limitations of these baselines that affect their performance on our task suite.
Termination behavior. Neither model exhibits explicit termination behavior. The flow-matching objective is designed to model continuous action distributions rather than discrete stopping events, leading to two common failure modes: (i) the model continues executing actions after task completion, and (ii) the model produces ambiguous low-velocity actions that neither stop nor advance the task. While termination tokens could in principle be added through additional supervision, this would require modifying the underlying training pipeline beyond the scope of fair baseline comparison.
Inter-episode capability. Inter-episode tasks pose a fundamental challenge for these architectures. Since the policy distribution is strictly conditioned on the current task's language instruction, latent features or memory bank states formed under a previous task's instruction become contextually irrelevant once that task concludes. These models lack a mechanism to leverage historical observations from a completed task when transitioning to a new task where no explicit command exists to retrieve past context.
We explored simple workarounds to extend these baselines to inter-episode settings, including (i) concatenating previous and current task instructions as a single extended prompt, and (ii) providing the final observation of the previous episode as additional input context. In preliminary experiments, neither approach produced meaningful inter-episode behavior—the models generated noisy, unstructured action sequences with no evidence of cross-episode reasoning. This empirical finding supports our methodological choice: principled inter-episode baselines require architectural modifications beyond simple context injection. For these reasons, PCMB- and Naïve- are excluded from the inter-episode comparison in the main paper.
E Success Rate Evaluation Metric
We evaluate both intra-episode and inter-episode tasks using a subtask-level success rate. For each task, we first decompose the overall instruction into an ordered sequence of subtasks. We then compute a partial success score as the percentage of successfully completed subtasks:
where denotes the number of successfully completed subtasks and denotes the total number of subtasks. Each task variant is evaluated over 5 trials, yielding 15-45 total trials per task depending on the number of variants.
In our non-Markovian task suite, two additional behavioral properties are important: whether the agent follows the required subtask order, and whether it terminates appropriately after completing the task. Although these properties are crucial for long-horizon manipulation, we do not incorporate them into the numeric success rate. Instead, we record them as separate diagnostic indicators reported alongside the success rate, enabling fine-grained failure mode analysis across methods. We additionally report strict task success rate in Sec. E.1, where a trial is counted as successful only if all subtasks are completed in the correct order with proper termination.
For example, in task A2 (Press in Order), the instruction is to press the R, G, and B buttons sequentially, which corresponds to three subtasks: {press R, press G, press B}. If the executed sequence is R, R, B, then two of the three required subtasks are achieved, yielding a partial score of 2/3. In this case, we additionally mark that the required order was not followed (since G was skipped), and separately check whether the agent terminated correctly.
For inter-episode tasks, each instruction's subtasks are counted independently. For example, E1 (Press the blue button 3 times → Press the blue button 6 times total) consists of 3 subtasks in the first episode (3 presses) and 3 subtasks in the second episode (3 additional presses), yielding 6 total subtasks. The agent must correctly identify how many additional presses are needed based on memory of the first episode.
By reporting subtask success rates together with these diagnostic indicators, our evaluation provides a quantitative measure of task progress while enabling fine-grained diagnosis of failure modes in non-Markovian tasks.
Table 8: Strict task success rate on intra-episode tasks. A trial is counted as successful only if all subtasks are completed in the correct order with proper termination. Compared to partial subtask success, baselines collapse to near-zero on most tasks, revealing systematic order and termination failures masked by the diagnostic metric.
| Method | A1 | A2 | A3 | A4 | A5 | Avg. |
|---|---|---|---|---|---|---|
| HeLM (Ours) | 100.0 | 87.8 | 96.6 | 66.7 | 55.6 | 81.3 |
| Keyframe-HLP | 0.0 | 86.7 | 20.0 | 0.0 | 40.0 | 29.3 |
| PCMB- | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| Naïve- | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
E.1 Strict Task Success Rate
We additionally report strict task success rate as a complementary view to the subtask-level partial success rate used in the main paper. Under this metric, a trial counts as successful only if (i) all required subtasks are completed, (ii) in the correct order, and (iii) with proper termination after task completion. Table 8 reports strict success rate on intra-episode tasks.
The gap between subtask-level and strict success rate reveals the severity of order and termination failures that the subtask-level metric does not penalize. HeLM maintains 81.3% strict success on average—close to its 85.7% subtask-level score—indicating that its sequencing and termination behavior is largely correct. In contrast, Keyframe-HLP drops from 72.9% (subtask-level) to 29.3% (strict), reflecting frequent termination failures (e.g., A1, A4: 0%). PCMB- and Naïve- collapse to zero.
These results support our methodological choice: while strict success rate is more aligned with complete task completion, it obscures where baselines fail because most collapse to floor performance. Subtask-level success enables fine-grained failure mode analysis across methods, while strict success confirms HeLM's advantage extends beyond partial progress.
F Additional Experiments
This section presents additional experimental analyses examining (i) HeLM's scalability to longer task sequences, and (ii) the framework's compatibility with smaller, more efficient backbone models. These analyses highlight trade-offs between reliability, latency, and resource efficiency.
F.1 Long-Horizon Robustness.
We evaluate HeLM's scalability to longer task sequences using extended variants of A1 (Press N Times) and A2 (Press in Order). As shown in Table 9, HeLM maintains success rates above 80% even at task length 7 on both tasks (A1: 100%, A2: 88%), demonstrating that explicit language memory remains stable as task complexity increases.
This robustness stems from HeLM's compression of historical context into discrete textual tokens rather than accumulating high-dimensional visual features. By filtering out background variation and capturing only semantically meaningful events, the memory representation avoids the overhead and noise associated with raw observation history in long-horizon settings.
Table 9: Success rates across task lengths. We evaluate HeLM on extended variants of A1 (Press N Times) and A2 (Press in Order). Task length denotes the number of required subtasks. Entries report success rates (%).
| Task | Task length (number of subtasks) | ||||||
|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| Press N Times (A1) | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| Press in Order (A2) | 100 | 100 | 93 | 80 | 80 | 77 | 88 |
Table 10: Evaluation results on different model combinations. The baseline configuration consists of Qwen2.5-VL (7B) as the HLP and (3.5B) as the LLP, while the efficient variant utilizes SmolVLM (500M) and SmolVLA (450M).
| Method | A1 | A2 | A3 | A4 | A5 | Avg. |
|---|---|---|---|---|---|---|
| HeLM (base) | 100 | 92.2 | 96.6 | 66.6 | 73.3 | 85.7 |
| HeLM (Smol) | 88.8 | 70.4 | 66.6 | 41.6 | 25.9 | 58.7 |
F.2 Model Generalizability and Scalability.
We evaluate HeLM's compatibility with smaller backbone models by replacing the high-capacity models with significantly more efficient alternatives. The base HeLM uses Qwen2.5-VL (7B) as the High-Level Policy (HLP) and (3.5B) as the Low-Level Policy (LLP). In the efficient variant, these are replaced with SmolVLM (500M) [39] and SmolVLA (450M) [40], respectively.
As shown in Table 10, this transition results in a reduction in the average success rate from 85.7% to 58.7%, but yields a substantial improvement in computational efficiency. Specifically, the peak VRAM consumption is reduced from 13.18 GB to 2.3 GB, and the average end-to-end latency is shortened from 1.9s to 0.7s. These results indicate that HeLM can be deployed on resource-constrained edge devices, at the cost of a predictable performance trade-off.
Detailed error analysis reveals that the performance degradation is primarily concentrated in the logical updates of the HLP. The reduced parameter scale of the 500M model leads to frequent failures during the UPDATE mode, including generating invalid YAML formats or updating multiple state variables simultaneously, which causes the agent to skip critical subtasks. This tendency is particularly evident in complex scenarios such as A4 and A5, where the increased length of global instructions and subtasks (see Tab. 6) hinders the construction of accurate language memory. Nevertheless, the framework's core memory mechanism—maintaining and updating language memory across subtasks—remains functional even at this reduced scale, suggesting that optimizing the memory representation into more concise and structured formats could recover success rates while preserving resource efficiency.
F.3 Simulation Evaluation on LIBERO-Mem
As a complement to our main real-robot experiments, we ran HeLM on the LIBERO-Mem benchmark [10] to compare with published memory-augmented baselines under simulation.
Benchmark Overview. LIBERO-Mem consists of 10 simulation tasks designed to evaluate four dimensions of object-centric memory: Object Motion (OM), Object Sequence (OS), Object Relations (OR), and Object Occlusion (OO). T1 and T2 (OM) test recall of the last action—since visually identical states correspond to different required actions (e.g., lifting vs placing), the agent must remember its most recent action. T3–T6 (OM + OS) extend this with repeated pick-and-place actions (3, 3, 5, and 7 times respectively); the agent must track how many times each object has been manipulated since visual cues alone are insufficient. T7 and T8 (OM + OR) test relational tracking
Table 11: Results on LIBERO-Mem benchmark. Top: baseline results from [10]. Bottom: our additional evaluation with baseline and HeLM. The metric follows the official codebase implementation.
| Method | T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Baselines from LIBERO-Mem paper | |||||||||||
| (h=1) | 50.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 |
| SlotVLA (h=1) | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| SlotVLA (h=8) | 50.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 |
| Naive E-SlotSSM | 50.0 | 0.0 | 33.3 | 0.0 | 14.3 | 0.0 | 0.0 | 0.0 | 30.0 | 20.0 | 14.8 |
| Our additional evaluation | |||||||||||
| 50.0 | 80.0 | 15.0 | 20.0 | 15.0 | 5.0 | 0.0 | 5.0 | 85.0 | 90.0 | 36.5 | |
| HeLM (Ours) | 75.0 | 60.0 | 75.0 | 55.0 | 65.0 | 25.0 | 45.0 | 10.0 | 85.0 | 90.0 | 58.5 |
through bowl-swapping tasks using an empty buffer plate. Bowls are placed at randomized initial positions, so each variation presents different geometric configurations; the agent must maintain the temporal order of object relations across multi-step rearrangements. T9 and T10 (OM + OO) test object occlusion by requiring the agent to place a target object into one of two visually identical baskets and then manipulate the correct basket; the intended occlusion forces the agent to remember which basket contains the target.
Benchmark Limitations. We observed two issues during evaluation that may affect interpretation of the results: (i) For T9 and T10, the wrist-mounted camera observes the basket's interior even after the target object is placed inside, so the intended occlusion does not effectively take place. This allows memoryless policies to verify object location visually rather than relying on memory, which likely explains why alone achieves high performance on these tasks (85–90%). (ii) Certain initial state configurations exhibit object spawn errors—for instance, demos 108 and 115 spawn a bottle pre-placed on its target plate, conflicting with the BDDL goal state and causing systematic failure across multiple tasks regardless of method. These environment-side issues affect all evaluated methods (memoryless baselines and HeLM) equally and are independent of method design. We therefore interpret these results as complementary simulation evidence, taking the observed benchmark limitations into account.
Setup. We use as the LLP and Qwen2.5-VL-7B as the HLP. Both the vanilla baseline and the HeLM LLP are trained on 100 demonstrations per task under a multitask training regime, following the train/validation split provided by the LIBERO-Mem benchmark (100 training + 20 validation trajectories per task). The LLP is fully fine-tuned starting from a LIBERO-pretrained checkpoint (40k–55k training steps, effective batch size 24, cosine LR schedule with peak ), and the HLP is fine-tuned with QLoRA (rank 16, effective batch size 32). HeLM's LLP training data is generated by a rule-based pipeline that performs subtask splitting, event annotation, and TaskSpec generation on the demonstrations, following the same procedure used for our real-robot experiments. All training is performed on 2×NVIDIA A100 GPUs. Evaluation is performed on the held-out validation set: each task is evaluated over 20 rollouts using the initial states of the validation trajectories, consistent with the original benchmark protocol.
We chose over as the LLP because failed to learn even individual subtasks under our training regime—likely due to weaker language grounding for fine-grained subtask instructions. Using as the LLP would have caused HeLM's evaluation to be dominated by LLP execution failures rather than memory-related failures, preventing meaningful assessment of the memory mechanism. For the same reason, we additionally report alone as a memoryless baseline, since the original benchmark only reports results with .
Results. As shown in Tab. 11, HeLM achieves 58.5% average success rate across the 10 LIBERO-Mem tasks, substantially outperforming the memoryless baseline (36.5%) and published memory-augmented baselines (Naive E-SlotSSM: 14.8%). The improvement is most pronounced on memory-intensive tasks (T3–T8), where memoryless baselines fail to reason over temporal dependencies.
Discussion. The per-task pattern reveals how language memory contributes across different memory dimensions.
Object Motion (T1–T2). These short-horizon tasks involve minimal memory requirements (recall of the last action). HeLM outperforms on T1 (75% vs 50%), while performs better on T2 (80% vs 60%), reflecting that the gap between methods varies on tasks where memory plays a limited role.
Object Sequence (T3–T6). HeLM preserves past actions in language memory and uses them to drive correct sequential execution, yielding substantial gains over the memoryless (e.g., T3: 75% vs 15%, T5: 65% vs 15%). As the required repetition count grows (3 to 7 times), success rate decreases overall (T3: 75%, T6: 25%) due to accumulated LLP execution failures over longer horizons, even when the HLP's memory reasoning remains correct. This pattern is consistent with our main paper's observation that perception and execution—rather than memory reasoning—become the dominant bottleneck as horizons extend.
Object Relations (T7–T8). These tasks place bowls at randomized positions and require rule-based swaps using an empty buffer plate. Each variation produces different geometric configurations, making them particularly challenging. Whether discrete language memory can preserve geometric relations is an open question for language-as-memory frameworks and a question this work investigates. HeLM's success on these complex multi-step tasks (T7: 45%, T8: 10%) suggests that language memory, combined with the current visual observation, can partially preserve sufficient geometric information for relational reasoning—even without storing explicit positional encodings.
Object Occlusion (T9–T10). As noted in the benchmark limitations, the wrist camera circumvents the intended occlusion in these tasks, effectively reducing them to memoryless settings. Both and HeLM achieve high performance (85–90%), with the agreement between the two methods reflecting the LLP's underlying execution capability when memory is not the bottleneck.
Overall, the per-task results are consistent with our main paper's claim that explicit language memory provides stable performance on memory-sensitive non-Markovian tasks, while remaining transparent about tasks where the benchmark's intended challenges may not be fully realized.
DETECT Mode System Prompt
Role: Robot arm Visual Event Detector (DETECT mode). Goal: Decide whether a stage-completion EVENT is visible in the current image, and output the event name.
Inputs:
- Task (Global_Instruction): the current stage instruction.
- Event_List: newline-separated list of allowed event strings.
- Memory: {Action_Command, Working_Memory, Episodic_Context} (use only to interpret the current stage).
- Images.
Decision rules (be conservative):
- Use Task (Global_Instruction) as the PRIMARY criterion.
- You MAY use Memory only to clarify what counts as completion for the current stage.
- Set Event_Detected=true ONLY when the completion state (or clearly post-completion state) is visible in image.
- If partial progress / occlusion / uncertainty -> Event_Detected=false.
Event selection rules:
- If Event_Detected=false: Event MUST be exactly 'none'.
- If Event_Detected=true: Event MUST be EXACTLY one item from Event_List.
- Do NOT invent new events. Use EXACT string match.
Constraints:
- Do not propose next actions.
- Do not update or rewrite memory.
- Output YAML only.
Output YAML with EXACTLY these keys:
- Event_Detected: boolean
- Event: string
Figure 9: VLM System prompt used for HLP Detect mode.
UPDATE Mode System Prompt
Role: Robot arm Logic State Manager (UPDATE mode). When: Event happened (from DETECT) OR Task changed (new stage).
Inputs:
- Task: current instruction.
- Event: detected event string (or 'none').
- Previous_Memory: {Action_Command, Working_Memory, Episodic_Context}.
- Allowed_Action_Commands: you MUST output EXACTLY one of them.
Goal: Produce the NEXT memory state (copy-first) and choose the next Action_Command.
Three cases:
- INIT MEMORY (episode start or new task start):
- If Previous_Memory is empty/None, initialize memory from Task.
- Set Working_Memory using a simple structured format inferred from Task (e.g., 'Count: X (Goal: Y)' or 'Progress: P (Goal: G)').
- WORKING MEMORY UPDATE (task not finished):
- Update Working_Memory ONLY as needed for this Event.
- Keep Episodic_Context EXACTLY unchanged.
- Choose the next Action_Command (not 'done').
- DONE (task finished after this update):
- Action_Command MUST be 'done'.
- Working_Memory MUST be 'task done (None)'.
- Update Episodic_Context with a short structured summary consistent with the memory style (e.g., 'Previous_Count: K' or 'Previous_Progress: ...').
Constraints:
- Do not invent new actions, keys, or free-form formats; follow the dataset style.
- Output YAML only with keys: Action_Command, Working_Memory, Episodic_Context.
Figure 10: VLM system prompt used for HLP Update mode.

Figure 11: Breakdown of non-Markovian task. Intra-tasks (A1–A5) and Inter-tasks (E1–E5).
Example of Taskspec (task E2)
"task_id": "human_press_BGR", "inter": 1, "intra": [3,3], "task_text": [ "observe the sequence of buttons pressed by the person", "press the buttons in the same order as observed before" ], "episode_filters": [ { "tasks": "human press the blue button", { "tasks": "human press the green button", { "tasks": "human press the red button" } ] }, { "tasks": "press the blue button", { "tasks": "press the green button", { "tasks": "press the red button" } ] }, "llp_commands": "wait\npress the blue button\npress the green button\npress the red button\ndone", "event_list": "blue button pressed\ngreen button pressed\nred button pressed\ndone", "event_grid": [ { "blue button pressed", "green button pressed", "red button pressed" ], { "blue button pressed", "green button pressed", "red button pressed" ], "memory_grid": [ { "Action_Command": "wait", "Working_Memory": "Progress: none (Goal: observe)", "Episodic_Context": "None" }, { "Action_Command": "wait", "Working_Memory": "Progress: blue (Goal: observe)", "Episodic_Context": "None" }, { "Action_Command": "wait", "Working_Memory": "Progress: blue, green (Goal: observe)", "Episodic_Context": "None" }, { "Action_Command": "done", "Working_Memory": "task done (None)", "Episodic_Context": "Previous_Progress: blue, green, red" } ], { "Action_Command": "press the blue button", "Working_Memory": "Progress: none (Goal: blue, green, red)", "Episodic_Context": "Previous_Progress: blue, green, red" }, { "Action_Command": "press the green button", "Working_Memory": "Progress: blue (Goal: blue, green, red)", "Episodic_Context": "Previous_Progress: blue, green, red" }, { "Action_Command": "press the red button", "Working_Memory": "Progress: blue, green (Goal: blue, green, red)", "Episodic_Context": "Previous_Progress: blue, green, red" }, { "Action_Command": "done", "Working_Memory": "task done (None)", "Episodic_Context": "Previous_Progress: blue, green, red" ] } ]
Figure 12: Example of Taskspec. This figure shows an example of TaskSpec for task press button in human order (E2).
TaskSpec Generation Prompt
Taskspec LLM Generation | System Prompt
Use the prompt below to make an LLM (Claude, GPT-4, etc.) generate a HeLM taskspec JSON. Provide (1) task description, (2) LLP vocab, (3) event names, (4) episode-filter label format, and (5) any branch info | the LLM outputs the JSON only.
System Prompt
You are a HeLM taskspec generator. A taskspec is a JSON file defining how a long-horizon task decomposes into LLP sub-tasks, what events the HLP must detect, and what memory state should hold at each step. Output ONLY a single JSON object | no prose, no markdown fences.
Schema
{ "task_id": " <filename without .json>, "inter": 0, "intra": [<int per branch], "task_text": ["<full natural-language instruction>"], "episode_filters": [ [{"label":}), ...], ...], "llp_commands": "<n-sep vocab + 'done'>", "event_list": "<n-sep events + 'none' + 'done'>", "event_grid": [ [<event per step>, ...], ...], "memory_grid": [ [ {Action_Command, Working_Memory, Episodic_Context}, ...], ... ] }
Field meanings
- task_id | matches filename (without '.json').
- inter | inter-episode transitions. '0' for single-episode tasks (default).
- intra | list of step counts, one per branch. Most tasks: '[N]' (single branch). Or-tasks (left/right etc.): '[N1, N2]'.
- task_text | list of natural-language phrasings. Usually one item.
- episode_filters | one outer entry per branch; each inner list has one {'tasks': "<label>"} filter per step in execution order. '<label>' must match the source 'sub' dataset's 'tasks' column verbatim.
- llp_commands | 'n'-separated LLP vocab, ending with 'done'. Every command the LLP can output.
- event_list | 'n'-separated events the HLP can output. Must include 'done'; also include 'none' if the HLP needs to signal "no event yet".
- event_grid | per branch, ordered list of events that fire as sub-tasks complete. Length matches 'intra[b]'.
- memory_grid | per branch, list of memory snapshots, length intra[b] + 1 (extra final entry is the "done" state). Each snapshot: 'Action_Command' (LLP command for this step), 'Working_Memory' (short one-liner tracking progress + goal), 'Episodic_Context' (cross-episode memory; "'None'" mid-task, summary at done).
Hard rules
- 'len(episode_filters[b])' == 'len(event_grid[b])' == 'intra[b]'.
- 'len(memory_grid[b])' == 'intra[b] + i' (the +1 is the final "done" entry).
- Last 'memory_grid' entry: 'Action_Command="done"', 'Working_Memory="task done (None)", 'Episodic_Context' is a short past-tense summary (e.g. "'Previous_Prosess: green, blue, red'').
- Every 'Action_Command' value must appear in 'llp_commands'.
- Every event in 'event_grid' must appear in 'event_list'.
- Do NOT put 'none' in 'event_grid' | it only lives in 'event_list' as a valid mid-execution HLP output.
- 'episode_filters[b][i]{"tasks"}' uses the EXACT format of the source dataset: LIBERO-Mem 'sub' uses Python list repr ('['left_bowl']'), free-form tasks use raw text ('press the green button').
- 'Working_Memory' at step 'i' reflects state after step 'i-1's event fires (or initial state for step 0). Be consistent across steps.
Working_Memory templates
| Task family | Template |
|---|---|
| --- | --- |
| sequential (press N in order) | 'Progress: <done items> (Goal: <full sequence>)' |
| cyclic (repeat N times) | 'Count: <i> (Goal: <N>)' (add ',holding X' mid-cycle) |
| pick-and-place with branching | '<item>: <location>; Target: <next step>' |
| final step | 'task done (None)' |
Multi-branch (Or) tasks
When the trajectory depends on a runtime cue (cheese-on-left vs cheese-on-right, etc.), provide one entry per branch in 'intra', 'episode_filters', 'event_grid', 'memory_grid'. Vocab ('llp_commands', 'event_list') is shared across branches.
Worked example: 'press_GBR.json'
Input | Task: "press the green, blue, red buttons in order". LLP vocab: 'press the green button', 'press the blue button', 'press the red button'. Events: 'green button pressed', 'blue button pressed', 'red button pressed'.
{ "task_id": "press_GBR", "inter": 0, "intra": [3], "task_text": ["press the green, blue, red buttons in order"], "episode_filters": [ [ {"tasks": "press the green button"}, {"tasks": "press the blue button"}, {"tasks": "press the red button"} ] ], "llp_commands": "press the blue button\npress the green button\npress the red button\ndone", "event_list": "blue button pressed\ngreen button pressed\nred button pressed\ndone", "event_grid": [ ['green button pressed', "blue button pressed", "red button pressed"] ], "memory_grid": [ [ {"Action_Command": "press the green button", "Working_Memory": "Progress: none (Goal: green, blue, red)", "Episodic_Context": "None"}, {"Action_Command": "press the blue button", "Working_Memory": "Progress: green (Goal: green, blue, red)", "Episodic_Context": "None"}, {"Action_Command": "press the red button", "Working_Memory": "Progress: green, blue (Goal: green, blue, red)", "Episodic_Context": "None"}, {"Action_Command": "done", "Working_Memory": "task done (None)", "Episodic_Context": "Previous_Progress: green, blue, red"} ] ] }
Why this is correct
- 1 branch, 3 sub-tasks → 'intra=[3]'. 'episode_filters[0]' and 'event_grid[0]' both length 3; 'memory_grid[0]' length 4 (3 + final done).
- 'llp_commands' lists all 3 commands + 'done' (4 lines total).
- 'event_grid[0][i]' is the event that fires when step 'i' s sub-task completes (e.g. step 0 = green button press → "green button pressed").
- 'Working_Memory' updates as progress accumulates: 'none → green → green, blue → task done'. Each line restates the goal so context is fresh.
- Final entry: 'Episodic_Context' records the full sequence, available as memory for any downstream task.
Common pitfalls
- Memory_grid length off-by-one | it's 'intra+i', not 'intra'.
- Vocab drift | 'Action_Command' text not exactly in 'llp_commands'.
- Copy-paste, don't paraphrase.
- Branch-count mismatch | 'len(intra) == len(episode_filters) == len(event_grid) == len(memory_grid)'.
- Filter format wrong | for LIBERO 'sub', must be '[''lift_bowl']' not 'lift_bowl'.
- none' event in 'event_grid' | never; it's only an HLP output option.
- Inconsistent 'Working_Memory' template | don't switch styles mid-task (e.g., 'Count:' then 'Progress:').
Figure 13: LLM System Prompt for TaskSpec Generation. Full system prompt used to instruct an LLM (e.g., GPT, Claude) to generate HeLM TaskSpec JSON files. The prompt defines the schema, field semantics, consistency rules, and includes a worked example (press_GBR.json) for the press buttons in order task.
Generated dataset examples
Type 1 : Detect (False)
Input :
DETECT Mode System Prompt in Fig 9
Action_Command : Press the blue button
Working_Memory : Count: 0 (Goal: 3)
Episodic_Context : None

Output :
Event_Detected : false
Event : none
Type 2 : Detect (True)
Input :
DETECT Mode System Prompt in Fig 9
Action_Command : Press the blue button
Working_Memory : Count: 0 (Goal: 3)
Episodic_Context : None

Output :
Event_Detected : true
Event : blue button pressed
Type 3 : Update (Intra)
Input :
UPDATE Mode System Prompt in Fig 10
Action_Command : press the blue button
Working_Memory : Count: 0 (Goal: 3)
Episodic_Context : None

Output :
Action_Command : press the blue button,
Working_Memory : Count: 1 (Goal: 3),
Episodic_Context : None
Type 4 : Update (Inter)
Input :
UPDATE Mode System Prompt in Fig 10
Action_Command : press the blue button
Working_Memory : Count: 2 (Goal: 3)
Episodic_Context : None

Output :
Action_Command : done,
Working_Memory : task done (None),
Episodic_Context : Previous_Count: 3
Figure 14: Example of HeLM HLP train data. It contains example of HLP training data of HeLM (Press the button N times). There are four types of train data: detect(false), detect(true), update(intra), and update(inter).