Context-Aware Planning and Environment-Aware Memory for Instruction Following Embodied Agents

Byeonghwi Kim, Jinyeon Kim, Yuyeong Kim, Cheolhong Min, Jonghyun Choi

Abstract

Embodied AI agents often struggle with long-horizon tasks due to "context blindness"—losing track of task-relevant objects—and "environment amnesia"—failing to account for changes in object states or locations. We present CAPEAM (Context-Aware Planning and Environment-Aware Memory), a framework designed to address these challenges. By explicitly predicting task context and maintaining a dynamic memory of object interactions, CAPEAM achieves state-of-the-art performance on the ALFRED benchmark, notably improving success rates in unseen environments by over 10%.

Introduction

Imagine asking a robot to "put a sliced apple on the table." Current embodied agents—AI systems that perceive and act within 3D simulations—frequently fail such tasks. These failures typically stem from two primary issues:

  1. Context Blindness: After performing an intermediate step (like slicing), an agent may lose focus on the original goal and interact with irrelevant nearby objects.
  2. Environment Amnesia: If an object is moved or becomes partially occluded during an interaction, the agent often "forgets" its location or fails to recognize it in its new state.

Most existing models rely on implicit representations or static spatial maps that do not adequately account for how actions modify the environment. CAPEAM introduces a structured approach to maintain object permanence and goal-directed focus.

Methodology: The CAPEAM Architecture

The CAPEAM framework consists of two core components designed to work in tandem: Context-Aware Planning (CAP) and Environment-Aware Memory (EAM).

The CAPEAM architecture, featuring the Context-Aware Planning (CAP) and Environment-Aware Memory (EAM) modules.

Context-Aware Planning (CAP)

Rather than generating low-level actions directly from instructions, CAP decomposes the planning process into two distinct phases:

  • Context Prediction: The agent identifies the "meta-classes" essential to the task: the target object (e.g., apple), the carrier (e.g., plate), and the destination (e.g., cabinet).
  • Sub-goal Generation: The system creates a sequence of high-level sub-goals using placeholders (e.g., Pickup <meta-class: apple>). These placeholders are then populated with the predicted context, ensuring the agent remains focused on the correct objects throughout the execution chain.

Environment-Aware Memory (EAM)

EAM is a dynamic memory system that tracks the state of the world beyond simple 3D mapping. Key features include:

  • Retrospective Object Recognition: When an object becomes occluded (e.g., a plate covered by a bowl), the agent utilizes the "last known good" segmentation mask from its memory to maintain interaction.
  • Object Relocation Tracking: The system monitors which objects have been moved to prevent redundant or conflicting actions.
  • Object Location Caching: EAM stores 2D coordinates and masks for objects that undergo state changes (like slicing), allowing the agent to navigate back to them efficiently even if they are no longer in the immediate field of view.

Experimental Evaluation

The researchers evaluated CAPEAM using the ALFRED (Action Learning From Realistic Environments and Directives) benchmark. ALFRED requires agents to execute long-horizon household tasks—such as cleaning, heating, or relocating objects—by mapping natural language instructions to egocentric visual observations and physical actions.

Key Results

CAPEAM established a new state-of-the-art (SOTA) on the ALFRED benchmark. The most significant gains were observed in unseen environments, where the model achieved a +10.70% increase in Success Rate (SR) compared to previous top-performing models.

Performance comparison of CAPEAM against state-of-the-art models on the ALFRED benchmark.

Ablation studies confirmed that these improvements were driven by the structured planning of CAP and the state-tracking capabilities of EAM, rather than simple increases in model scale. An earlier iteration of this system, ECLAIR, also secured 1st place in the generalist language grounding agents challenge at the CVPR 2023 Embodied AI Workshop.

Discussion and Future Work

CAPEAM demonstrates that explicit context prediction and interaction-aware memory are superior to implicit neural embeddings for complex task execution. By tracking relocations and state changes, the agent avoids the "infinite loops" common in earlier models.

However, the current system uses a fixed context predicted at the start of a task. Future research will focus on adaptive context modification, allowing agents to update their plans and task-relevant object sets in real-time based on unexpected environmental feedback or execution failures.

Conclusion

CAPEAM represents a significant step forward in embodied AI by providing agents with the tools to maintain "object permanence" and goal consistency. Its success on the ALFRED benchmark highlights the importance of structured memory and planning in bridging the gap between natural language instructions and physical world interactions.

Summary updated

BibTeX
@inproceedings{kim2023context,
  author = {Byeonghwi Kim and Jinyeon Kim and Yuyeong Kim and Cheolhong Min and Jonghyun Choi},
  title = {{Context-Aware Planning and Environment-Aware Memory for Instruction Following Embodied Agents}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure