arXiv:2609.08444cs.ROSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.08444

Safe Task Planning with Long-Term Graph Memory for Embodied Agents

Siyuan Li, Taiyan Lang, Aoqi Yan, Jia Yu, Feifan Liu, Yihan Du, Yu Zheng, Xun Wang, Peng Liu

Siyuan Li

Faculty of Computing

Harbin Institute of Technology

siyuanli@hit.edu.cn

Taiyan Lang

Faculty of Computing

Harbin Institute of Technology

Aoqi Yan

Faculty of Computing

Harbin Institute of Technology

Jia Yu

Faculty of Computing

Harbin Institute of Technology

Feifan Liu

Faculty of Computing

Harbin Institute of Technology

Yihan Du

Engineering Systems and Design

Singapore University of Technology and Design

Yu Zheng

Intelligent Science and Technology

Academy of CASIC

Xun Wang

Intelligent Science and Technology

Academy of CASIC

Peng Liu

Faculty of Computing

Harbin Institute of Technology

Abstract: Large language models (LLMs) and vision-language models (VLMs) have significantly advanced zero-shot task planning for embodied agents. However, most LLM- and VLM-driven methods struggle to generate safe high-level actions due to a lack of physical risk awareness, particularly under partial observability, where hazards lie outside the immediate field of view. To address this challenge, we propose a novel safe task-planning framework, SafeMem, which constructs and maintains a long-term semantic graph memory of the open and dynamic environment. Based on egocentric observations, the proposed framework incrementally accumulates knowledge about surrounding objects and their relationships with a graph. Then, an LLM-based risk predictor evaluates candidate actions using the graph memory, triggering a conservatism-modulated replanning loop with explanations for detected hazards. Extensive experiments on the IS-Bench benchmark and a real-world robot platform demonstrate that the SafeMem framework substantially improves safe success rates compared to state-of-the-art VLM-driven task planners. Video results are available on our webpage: https://sites.google.com/view/safemem.

Keywords: Safe Task Planning, Graph Memory, Embodied Agents

1 Introduction

Task planning has long been a fundamental yet challenging problem in robotics [1, 2], requiring an embodied agent to generate a sequence of high-level actions to accomplish a given task in an unknown dynamic environment. While previous approaches primarily rely on symbolic search [3, 4] and policy learning [5, 6], recent advances in large pre-trained models have enabled large-

10th Conference on Robot Learning (CoRL 2026), Austin TX, USA.

language-model (LLM) and vision-language-model (VLM) based planners that achieve zero-shot task planning through strong reasoning capabilities and rich semantic priors [7, 8, 9, 10]. Despite their impressive performance, as the pretraining of large models lacks real-world interaction data, VLM- and LLM-based planners may generate unsafe actions, thereby causing severe damage to both robots and environments. Safe and effective task planning has become a central focus of research in embodied intelligence [11, 12, 13].

Figure

Figure 1: An example of VLM planning risks under partial observability. The instruction is “Water the plant with the watering can. Water is in a container inside the cabinet.”.

Recently, a growing body of research seeks to address safety issues in task planning [14, 15, 16]. Early works attempt to avoid collision-related risks [14], while more recent approaches aim to enhance safety against general hazards by designing risk reminders [13], chain-of-thought prompts [17], and cognition learning [18]. Although existing methods have exhibited strong abilities in mitigating risks induced by visible hazards, as embodied agents with egocentric views inherently operate in a partially observable environment, the hazards beyond the current observation have hardly been handled well. For example, the VLM planner, even with a safety-reminder prompt, directly pours water into the plant beside a previously seen power strip, as shown in Figure 1. Due to the current visual observation showing no power strip, the VLM planner makes this dangerous decision, which may pose electrical risks.

To address this issue, we propose SafeMem, a framework that constructs and maintains a long-term graph memory of the environment. Specifically, we represent the environment as a semantic graph whose nodes are previously seen object instances and whose edges are relationships among them. To accurately capture the relationships, the edges are built with both RGB observations and depth images. This graph is updated across timesteps as new observations become available, thereby accumulating knowledge about safety-critical objects even when they are occluded or outside the current field of view. In the proposed framework, we introduce a risk predictor that takes the graph memory, task instruction, and candidate actions as input and predicts potential hazards. If risks are detected, a REPLAN signal, accompanied by an explanation, is sent from the risk predictor to the VLM planner, which regenerates the action sequence. To prevent deadlock, we introduce a conservative factor that controls the re-planning execution probability. The full framework thus integrates perception, memory, risk assessment, and planning in a closed loop.

We conduct extensive experiments on the IS-Bench benchmark [13] and a real-world robot. Our approach achieves substantially higher safe success rates than state-of-the-art baselines. Ablation studies confirm the crucial role of the proposed graph memory. The real-world experiments demonstrate the practicality and robustness of the proposed approach in physical settings. The main contributions of this work are: (i) a safe task-planning framework that explicitly handles partial observability via a long-term graph memory; (ii) an iterative risk-prediction-and-replanning mechanism that leverages the memory to foresee and avoid hazards; and (iii) empirical evidence of state-of-the-art safe planning performance in both simulation and real robots.

References (45)