NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

What to Do Next? Memorizing skills from Egocentric Instructional Video

Jing Bi, Chenliang XuarXiv 2025 · DOI

Introduction

In the field of artificial intelligence, a significant gap exists between action recognition—identifying that a person is picking up a cup—and autonomous action planning—determining the sequence of steps required to achieve a high-level goal like "setting the table." Traditional robotics often relies on symbolic logic (e.g., PDDL), which assumes a "god-eye" view of the environment. However, real-world agents operate under egocentric vision, facing two primary hurdles: partial observability and a lack of robustness to environmental changes or execution errors.

To bridge this gap, researchers from the University of Rochester have introduced TAMFormer, a framework that leverages egocentric visual memory to plan tasks and recover from deviations in dynamic environments.

The Interactive Action Planning task requires an agent to transition between states to achieve high-level goals like setting a table or writing an email.

The TAMFormer Framework

The core of the proposed system is the Interactive Action Planning task, where an agent must generate a sequence of actions based on its current visual observation and a high-level goal. The architecture consists of two primary components: the Topological Affordance Memory (TAM) and the TAMFormer generator.

1. Topological Affordance Memory (TAM)

TAM is not a simple video buffer; it is a structured representation of possible actions (affordances) at specific locations. It employs three sub-modules:

  • Localization ($L$): Maps the current visual input to the most relevant "node" in the agent's past experience.
  • Affordance Learning ($P_\mu$): Uses supervised contrastive learning to group visually distinct scenes that share the same functional affordances (e.g., different tables that both allow "placing an object").
  • Goal Association ($P_\omega$): A discriminator that evaluates whether a state transition aligns with the specific high-level goal.

2. Action Generation (TAMFormer)

TAMFormer utilizes a Transformer decoder to predict the next action. Rather than relying solely on the current frame, the model "queries" the TAM to retrieve the $K$-nearest neighbor experiences. This retrieved memory provides a rich context of past successes, allowing the agent to generate coherent, multi-step plans.

The TAMFormer architecture combines a memory retrieval module with a Transformer decoder to generate actions based on retrieved past experiences and the current goal.

3. Robust Re-planning

A key innovation is the model's ability to recover from "action deviations." If an agent's path is interrupted or an action fails, the system treats the deviation as an optimization problem. It searches its memory for the closest valid state that still satisfies the goal association, effectively "nudging" the agent back onto a successful trajectory.

Experimental Evaluation

The framework was evaluated using the VirtualHome simulator, which provides photorealistic 3D indoor environments. The researchers recorded expert demonstrations for tasks such as "set up table" and "write an email" across various simulated apartments. Testing occurred across four scenarios, ranging from pure-text planning to visual interactive simulations where actions were intentionally permuted (the "Attack" scenario) to test robustness.

Results and Analysis

TAMFormer demonstrated superior performance compared to existing baselines like DDN and Ext-Mgail:

  • Sequence Accuracy: In interactive settings, TAMFormer achieved a 72% Longest Common Sub-sequence (LCS) score, significantly higher than the 31% achieved by the next best baseline.
  • Resilience to Interference: Under the "Attack" scenario, where actions were intentionally manipulated, TAMFormer maintained a 64% LCS. In contrast, other models' performance dropped to as low as 5%, highlighting TAMFormer's unique ability to re-plan.
  • Executability: The model achieved near-perfect executability, ensuring that the planned actions were physically possible within the simulation constraints.

Conclusion

TAMFormer represents a significant step toward autonomous agents that can learn from egocentric experience. By treating memory as a topological map of possibilities rather than a static record, the framework achieves high-level planning capabilities and a level of robustness essential for real-world deployment. Future work will focus on learning from "noisy" or non-expert demonstrations and adapting the system to the complexities of real-world video data.

Summary updated

Abstract

Learning to perform activities through demonstration requires extracting meaningful information about the environment from observations. In this research, we investigate the challenge of planning high-level goal-oriented actions in a simulation setting from an egocentric perspective. We present a novel task, interactive action planning, and propose an approach that combines topological affordance memory with transformer architecture. The process of memorizing the environment's structure through extracting affordances facilitates selecting appropriate actions based on the context. Moreover, the memory model allows us to detect action deviations while accomplishing specific objectives. To assess the method's versatility, we evaluate it in a realistic interactive simulation environment. Our experimental results demonstrate that the proposed approach learns meaningful representations, resulting in improved performance and robust when action deviations occur.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Vis-InterTAMFormerLCS72%Interactive Task Execution · split: test · apartments=10 unseen · environment=VirtualHome · spawn-locations=randomized feasible
Source quote
L246: ~ │ TAMFormer │ 72% │ 1 │ 0.44 │ 0.48 │ 0.42 \\\multirow{3}{*}{ Vis-Inter-Att} │ DDN │ 5% │ 1 │ 0.09 │ 0.08 │ 0.10
Vis-InterTAMFormerF10.44Interactive Task Execution · split: test · apartments=10 unseen · environment=VirtualHome · spawn-locations=randomized feasible
Source quote
L246: ~ │ TAMFormer │ 72% │ 1 │ 0.44 │ 0.48 │ 0.42 \\\multirow{3}{*}{ Vis-Inter-Att} │ DDN │ 5% │ 1 │ 0.09 │ 0.08 │ 0.10
BibTeX
@misc{bi2025what,
  author = {Jing Bi and Chenliang Xu},
  title = {{What to Do Next? Memorizing skills from Egocentric Instructional Video}},
  year = {2025},
  eprint = {2507.02997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02997},
}
Figure