Abstract
Learning new skills by observing humans' behaviors is an essential capability of AI. In this work, we leverage instructional videos to study humans' decision-making processes, focusing on learning a model to plan goal-directed actions in real-life videos. In contrast to conventional action recognition, goal-directed actions are based on expectations of their outcomes requiring causal knowledge of potential consequences of actions. Thus, integrating the environment structure with goals is critical for solving this task. Previous works learn a single world model will fail to distinguish various tasks, resulting in an ambiguous latent space; planning through it will gradually neglect the desired outcomes since the global information of the future goal degrades quickly as the procedure evolves. We address these limitations with a new formulation of procedure planning and propose novel algorithms to model human behaviors through Bayesian Inference and model-based Imitation Learning. Experiments conducted on real-world instructional videos show that our method can achieve state-of-the-art performance in reaching the indicated goals. Furthermore, the learned contextual information presents interesting features for planning in a latent space.
Introduction: The Challenge of Goal-Directed Planning
While AI has achieved significant milestones in action recognition, the ability to plan goal-directed actions remains a formidable challenge. Learning to perform a task—such as baking a cake or changing a tire—by watching human demonstrations requires more than simple sequence memorization; it requires an understanding of the causal consequences of actions.
Standard sequence-to-sequence models often fail in this domain for two reasons. First, real-world tasks frequently involve interchangeable steps (e.g., mixing ingredients in different orders), which creates ambiguity for models trained on rigid ground-truth sequences. Second, planning in an unconstrained latent space often leads to "goal forgetting," where the model loses track of the final objective as the procedure progresses over long horizons.
Methodology: Decoupling Context and Dynamics
The proposed approach decouples the planning problem into two distinct components: inferring time-invariant context (identifying the task) and learning time-varying dynamics (determining the steps to completion).
Contextual Inference Model
The authors utilize a two-headed Variational Auto-Encoder (predictive VAE) to encode the start and goal images into a latent context variable ($z_c$). This variable captures the overarching task and conditions all subsequent planning steps, ensuring the global goal remains influential throughout the trajectory.
Generation Model and Policy Learning
The step-by-step planning is framed as a Markov Decision Process (MDP) and solved using model-based Imitation Learning (IL). The architecture integrates the context variable into the state-action transitions to maintain goal-consistency.
Two variants of the transition model were explored:
- Int-MGAIL: A deterministic model integrated into an LSTM cell.
- Ext-MGAIL: A stochastic model acting as an external module to explicitly handle environment uncertainty.
To handle the limitations of static offline datasets, the researchers employed Hindsight Experience Replay (HER). By relabeling intermediate frames as "fake" goals, the policy learns from a wider variety of trajectories, allowing for the exploration of alternative action sequences not explicitly shown in the primary demonstration.
Experimental Results
The model was evaluated on the CrossTask dataset (2,750 videos across 18 tasks) and the Alayrac et al. (2016) dataset.
- Action Sequencing: For a 3-step horizon (T=3), the Ext-MGAIL model achieved a 21.27% Success Rate (exact sequence match) and 49.46% Accuracy (individual step match), significantly outperforming the previous state-of-the-art Dual Dynamics Networks (DDN), which scored 12.18% and 31.29%, respectively.
- Walk-through Planning: In retrieving intermediate video clips between start and goal states, Ext-MGAIL achieved 93.66% Pair Accuracy (T=3), compared to DDN's 86.81%.
Key Insights
- Context/Dynamics Separation: Forcing the action planner to condition on a separate, time-invariant context variable prevents the model from taking "shortcuts" and helps maintain the global goal over long horizons.
- Handling Stochasticity: The stochastic Ext-MGAIL variant outperformed the deterministic one, suggesting that modeling environment uncertainty is crucial when multiple valid paths exist for a single task.
- Unsupervised Clustering: t-SNE visualizations of the learned context variables showed that the model naturally clusters observations by task (e.g., grouping all "Grill Steak" videos) without explicit task labels during training.
Conclusion and Future Work
This work demonstrates that combining contextual VAEs with model-based imitation learning provides a robust framework for procedure planning in complex, real-world environments. While currently limited by the static nature of offline datasets, future work could involve using these learned policies as safety constraints for real-world robots, enabling safer and more efficient live learning.
Summary updated