Abstract
Extracting structured knowledge from instructional videos is a critical challenge for AI systems aiming to assist in real-world tasks. This paper presents a novel, unsupervised pipeline developed by researchers from LG AI Research and the University of Michigan. The system transforms noisy, unstructured Automatic Speech Recognition (ASR) transcripts into formal task graphs—directed graphs that capture key steps and their causal dependencies. By leveraging the zero-shot reasoning capabilities of Large Language Models (LLMs) alongside clustering and ranking techniques, the proposed method significantly outperforms existing supervised baselines on benchmark datasets like ProceL and CrossTask.
Introduction
Understanding complex procedural activities, such as changing a tire or performing CPR, requires more than just identifying individual actions; it requires understanding the underlying logic and dependencies between those actions. While the internet provides a vast repository of "how-to" videos, the raw transcripts generated from these videos are often riddled with filler speech, irrelevant anecdotes, and ASR errors.
Traditional approaches to "script understanding" have relied heavily on human-annotated data or fine-tuning models on specific, narrow datasets. However, these methods struggle to scale across the diverse range of human activities. This research addresses the challenge of unsupervised task graph generation, aiming to extract structured preconditions directly from raw, noisy transcripts without the need for labeled training sets.
Methodology
The researchers proposed a multi-stage pipeline designed to treat LLMs as sophisticated information extraction engines, combined with traditional algorithmic logic to ensure consistency.
1. Summary Generation
The process begins by passing raw ASR transcripts through an instruction-tuned model (InstructGPT/Davinci). Using zero-shot prompting, the model is tasked with extracting a clean list of essential steps. This stage effectively filters out the "noise" of natural speech—such as filler words and off-topic remarks—that typically hinders traditional Natural Language Processing (NLP) tools.
2. Key Step Identification and Re-labeling
Because different instructors use different terminology for the same action, the system must canonicalize the steps. The pipeline uses sentence embeddings (MiniLMv2) to represent the extracted steps and applies a "max clique" clustering approach. This groups semantically similar phrases into a single "key step." The original summaries are then re-mapped to these canonical labels to create standardized sequences.
3. Sequence Ranking
To account for the varying quality of instructional videos, the authors introduced a ranking mechanism. Using GPT2-XL, the system scores and ranks the standardized sequences. By keeping only the most "likely" sequences, the pipeline filters out outliers and errors that might have survived the initial summarization phase.
4. Graph Construction
The final stage employs an Inductive Logic Programming (ILP) algorithm. This component analyzes the ranked sequences to infer the underlying causal logic, identifying which steps are absolute preconditions for others and determining where "AND/OR" relationships exist between tasks.
Experimental Setup and Results
The pipeline was evaluated on two major procedural benchmarks:
- ProceL: 13 diverse tasks including tying a tie and setting up a Chromecast.
- CrossTask: 7 tasks focused on cooking and maintenance, such as making a latte or grilling a steak.
Quantitative Performance
The unsupervised method demonstrated remarkable efficacy, achieving an average graph prediction accuracy of 72.1% on the ProceL dataset. This represents a substantial improvement over the supervised Proscript baseline, which achieved only 53.9%. This suggests that the broad "common sense" knowledge embedded in pre-trained LLMs is a more powerful asset for script understanding than small-scale, specialized fine-tuning.
Component Analysis
Ablation studies highlighted the importance of the ranking step. Incorporating the GPT2-XL ranking improved accuracy by nearly 6% on ProceL compared to using all extracted sequences. Qualitatively, the model successfully captured complex logic, such as the necessity of checking for safety hazards and victim response before initiating a 911 call during a CPR task.
Discussion and Limitations
One of the primary insights of this work is that the quality of pre-training data in LLMs often outweighs the raw number of parameters when it comes to procedural knowledge. However, the researchers noted several areas for future development:
- Cost and Accessibility: The reliance on proprietary models like InstructGPT can be cost-prohibitive at scale. Future work will explore the use of large open-source models to bridge this gap.
- Pipeline Integration: The current sequential "cold" pipeline prevents components from sharing information. A more integrated approach where clustering and generation interact could further reduce errors.
- Granularity: The model occasionally over-simplifies tasks, merging distinct steps (e.g., "spreading peanut butter" and "spreading jelly") into a single node, missing some of the finer nuances found in human-curated ground truths.
Conclusion
This research demonstrates that unsupervised task graph generation is not only feasible but can exceed the performance of supervised methods. By combining the linguistic power of LLMs with robust clustering and logic programming, the system provides a scalable way to turn the chaos of the internet's instructional content into structured, actionable knowledge.
Summary updated