Abstract
Understanding the steps required to perform a task is a critical skill for artificial intelligence systems. Learning these steps from instructional videos involves two primary subproblems: identifying the temporal boundaries of sequentially occurring segments and summarizing these steps in natural language. This combined task is known as Procedure Segmentation and Summarization (PSS). In this paper, we identify a significant flaw in current PSS methodologies: they are often "time-blind," using evaluation metrics and training losses that ignore the sequential nature of human tasks. We propose three fundamental improvements: a new order-aware segmentation metric (SODA-D), a differentiable matching algorithm (SoftSODA) that constrains temporal order, and the introduction of multi-modal feature training. Our approach achieves a state-of-the-art improvement of approximately 7% in procedure segmentation and 2.5% in summarization across the YouCook2 and Tasty datasets.
Introduction
When watching an instructional video, such as a cooking tutorial, the order of operations is paramount. One cannot dip onions in batter before the batter has been prepared. However, current AI models for Procedure Segmentation and Summarization (PSS) often fail to respect this logical flow. Most existing methods borrow techniques from "Dense Video Captioning," a field where events (e.g., "a person running" and "a dog barking") can overlap or occur in any order.
Consequently, standard metrics like mean-IoU and training algorithms like Hungarian matching treat video segments as an unordered set. This "temporal blindness" means a model could be rewarded for correctly identifying a "frying" step even if it predicts that the step occurred before the "chopping" step. This leads to an overestimation of model quality and produces training signals that do not respect the logical structure of a procedure.
Methodology
To address these limitations, we propose three primary enhancements to the PSS pipeline:
1. The SODA-D Metric
Taking inspiration from captioning metrics, we developed SODA-D (a version of SODA-C tailored for detection). Unlike set-based metrics, SODA-D utilizes dynamic programming to find the optimal one-to-one mapping between ground-truth steps and predicted segments while strictly enforcing their temporal order. This metric more effectively penalizes over-segmentation (predicting too many redundant steps) and under-segmentation, providing a more reliable measure of accuracy.
2. Differentiable Matching (SoftSODA)
To integrate temporal ordering into the training phase, we replaced the standard Hungarian matching algorithm with SoftSODA, a differentiable version of our SODA-D metric. By employing a smoothMin operator, we created a loss function that forces the model to learn the sequential structure of videos during training, rather than treating them as a collection of independent events.
3. Multi-modal Feature Encoding
Traditional PSS models often rely on features trained solely on visual action recognition (such as I3D). We instead utilize S3D features pre-trained with a multi-modal objective (video and text). This allows the model to leverage semantic and conceptual information from the outset. In procedural videos, the boundaries of a step are often defined as much by the intent (language) as they are by the motion (pixels).
Experimental Evaluation
We evaluated our approach on two prominent instructional video benchmarks:
- YouCook2: 2,000 untrimmed cooking videos across 89 recipes, featuring complex, third-person viewpoints.
- Tasty: Over 2,500 recipes captured with a fixed overhead camera, focusing on dish preparation with an average of nine instructions per recipe.
Key Insights
Our analysis revealed that under the more rigorous SODA-D metric, many current state-of-the-art models actually perform worse than a "trivial uniform baseline"—a simple model that divides a video into equal-length segments. This suggests that previous progress in the field may have been partially illusory due to the use of weak, order-agnostic metrics.
Results
The proposed model, combining S3D features and SoftSODA matching, significantly outperformed existing methods:
- Segmentation Accuracy: On YouCook2, the SODA-D (F1) score increased from 28.35 (previous SOTA, PDVC) to 36.80. On the Tasty dataset, it improved from 42.44 to 50.37.
- Summarization Quality: Improved segmentation led to better text summaries. On YouCook2, the CIDEr score for learned proposals increased from 19.14 to 27.20.
- Robustness: The model demonstrated a superior ability to predict the correct number of segments, avoiding the common pitfall of generating dozens of tiny, overlapping fragments.
Conclusion and Future Work
By enforcing temporal ordering in both evaluation and training, we have established a more robust framework for Procedure Segmentation and Summarization. Our results demonstrate that multi-modal features and order-constrained matching are essential for capturing the logic of human tasks. Future work may involve integrating these temporal constraints directly into the attention mechanisms of Transformer architectures, further refining the model's ability to handle background noise and non-procedural segments.
Summary updated