Abstract
Traditional procedural knowledge models often rely on linear text instructions from sources like wikiHow, failing to capture the inherent flexibility and non-sequential nature of real-world tasks. This paper introduces a multimodal framework that induces non-sequential graph scripts by grounding text instructions in procedural videos. By leveraging a BART-based model with a novel Path-Level Constraint (PLC) loss, the system learns to identify optional, interchangeable, and mandatory steps. Experimental results demonstrate significant improvements in next-step prediction and sequence completion, with human evaluations confirming the model's superior ability to capture complex task logic compared to text-only baselines.
Introduction
Most AI models learn procedural knowledge from sources like wikiHow, which present tasks as a simple linear list of steps. However, real-world execution is rarely strictly linear. For instance, when preparing a meal, certain ingredients might be added in varying orders (interchangeable steps), or specific garnishes might be omitted entirely (optional steps).
Current "linear" scripts fail to capture this branching logic, presenting a major hurdle for robots and virtual assistants that need to plan tasks dynamically or improvise when conditions change. The challenge lies in automatically inducing these complex, non-linear graphs without the need for expensive, manual human labeling. This research addresses this by using videos as a descriptive medium to "un-linearize" prescriptive text scripts.
Methodology
The proposed framework transforms rigid instructions into flexible graph scripts through a three-stage multimodal process:
1. Multimedia Grounding
The first stage involves aligning wikiHow text steps with procedural videos (utilizing the CrossTask dataset). This process transforms a video into a "path" through a latent graph of possible actions. For unlabeled videos, the authors employ Automatic Speech Recognition (ASR) and a fault-tolerant grounding strategy to map narration directly to wikiHow steps, providing a rich source of empirical data on how tasks are actually performed.
2. Path Generation with Path-Level Constraint (PLC) Loss
Rather than training a graph model directly, the researchers utilize a BART-based seq2seq model to predict valid sequences of steps. To ensure the model distinguishes between logical and illogical sequences, they introduce a Path-Level Constraint (PLC) Loss. This contrastive learning technique compares "positive" paths (derived from real videos) against "negative" paths created by shuffling steps, swapping segments, or randomly re-sampling steps. The model follows a curriculum learning approach, starting with "obviously wrong" paths and progressing to more subtle logical errors.
3. Graph Reconstruction
To convert the model's sequence predictions back into a structured graph, the framework uses Step-constrained Beam Search. By generating multiple high-probability paths for a given task, the system records transitions in a step-adjacency matrix. Low-frequency edges are subsequently pruned to create a clean, probabilistic graph script that reflects the most common and logical ways to complete a task.
Datasets and Evaluation
The study utilizes a diverse set of data sources:
- wikiHow: The source for the initial step library and linear scripts.
- CrossTask: 18 primary tasks with manual step segmentations used for training and evaluation.
- Howto100M: A massive dataset of unlabeled YouTube instructional videos used for large-scale pre-training.
The authors established new benchmarks by adapting CrossTask into two evaluation sub-tasks: Next Step Prediction and Partial Sequence Completion.
Key Results
The proposed model demonstrated substantial improvements over both pure text and pure vision baselines:
- Next Step Prediction: The model achieved a 17.52% absolute gain in $F_1@3$ over the strongest existing baselines.
- Partial Sequence Completion: The framework saw a 13.8% absolute gain in $Acc@1$.
- Human Evaluation: In a "True/False" style test conducted via Mechanical Turk, human annotators found the generated graphs to be 48.76% more accurate than the wikiHow linear baseline at capturing real-world relationships. Specifically, the model was significantly more effective at identifying optional steps (74% improvement) and interchangeable pairs (227% improvement).
Discussion and Limitations
The core insight of this work is that while text scripts are prescriptive (how one should perform a task), videos are descriptive (how people actually perform it). By grounding text in video, the model captures the empirical truth of task flexibility.
However, some limitations remain:
- Repeatable Steps: The current model struggles with steps that occur multiple times (e.g., "stirring" at different stages). Currently, these are removed to simplify the graph, which may lose procedural nuance.
- Reporting Bias: The model is still anchored to the wikiHow backbone. If a crucial action is performed in a video but never mentioned in the text, the grounding mechanism may fail to capture it.
Future work will focus on incorporating more direct video supervision to enrich the step library with actions not found in text and improving the handling of repeatable actions within the graph structure.
Summary updated