Abstract
Understanding procedural activities in instructional videos is challenging due to visual ambiguity and the complex, non-linear nature of human tasks. We present a method to automatically mine probabilistic task graphs from unlabeled videos. These graphs capture the logical flow of keysteps, providing a structural prior that corrects noisy visual predictions. Our approach significantly improves zero-shot keystep localization and produces superior video representations for downstream tasks.
Introduction
Understanding procedural activities—like changing a tire or baking a cake—requires more than just identifying isolated actions; it requires understanding "keysteps" in the context of a larger goal. Current AI models face two major hurdles in this domain. First, visual ambiguity often leads to misclassification; for instance, a toaster might be mistaken for an iron, or a slice of bread for a piece of cloth. Second, existing methods often rely on rigid or independent modeling, either ignoring logical order entirely or forcing actions into a strict linear script that doesn't account for real-world variations.
To address these challenges, we propose discovering the underlying structure of a task—a "task graph"—automatically from the vast amount of unlabeled instructional video available online. By learning the typical flow of actions directly from data, our model can regularize noisy visual predictions and improve procedural understanding.
Methods
Our framework consists of a two-stage process: Task Graph Construction and Keystep Recognition via PathSearch.
1. Task Graph Construction
We begin with a vocabulary of keysteps sourced from expert-curated datasets or text-based knowledge bases like WikiHow. Using a pre-trained multimodal model (VideoCLIP), we match video clips to keystep names based on visual and narration similarity, creating a "noisy" sequence of labels. By aggregating these sequences across thousands of videos, we build a directed, weighted graph where nodes represent keysteps and edges represent the transition probabilities between them. This graph captures the overall task structure despite individual noisy labels.
2. Keystep Recognition via PathSearch
When evaluating a new video, the model uses the mined task graph as a prior. It identifies "anchor" segments where the visual/text signal is high-confidence. For the low-confidence segments between these anchors, the model employs a beam-search-inspired approach (applying Dijkstra’s algorithm to negative log probabilities) to find the most likely path through the task graph that connects the anchors.
Finally, these corrected labels are used as pseudo-labels to pre-train a video backbone (TimeSformer), creating enhanced general-purpose representations for instructional video.
Results and Key Insights
We evaluated our approach on three major public datasets: COIN (11,827 videos), CrossTask (2,750 videos), and HowTo100M (1.22 million videos).
- Zero-Shot Superiority: Our method achieved a significant boost in zero-shot keystep localization, outperforming strong baselines like VideoCLIP by up to 6.5% (a 66% relative improvement) in accuracy on the COIN dataset.
- Data-Driven Structure: We found that graphs mined directly from real-world videos outperformed rigid, manually written scripts. Real-world data captures the "messiness" and alternative paths of human activity that expert scripts often omit.
- State-of-the-Art Representation: Pre-training on improved pseudo-labels set new state-of-the-art benchmarks for downstream tasks, including task classification and keystep forecasting.
- Global Context: By using anchors and pathfinding, the model can "see through" temporary visual confusion. If the model identifies "put bread in" and "take bread out," it can correctly infer the intermediate step is "running the toaster," even if the visual signal is ambiguous.
Conclusion and Future Work
While our model currently requires a predefined vocabulary and high-confidence anchors, it demonstrates the power of using mined task structures to resolve visual ambiguity. Future work will explore discovering keystep names directly from narration and applying these graphs to procedure planning and mistake detection in complex human activities.
Summary updated