Systems that learn how experts perform multi-step tasks, such as assembling a toy, cooking a recipe, or pitching a tent, increasingly do so by watching first-person video and inferring which steps must come before which. That inferred structure, a "task graph" of prerequisites, is one of the few working ways to turn unspoken procedural know-how into something a machine can check. Such graphs fail in practice for a mundane reason. The vision model that recognizes which step is happening is poor, and it is poor because frame-level step labels are expensive. Two separate groups report that mistake detection improves sharply when perfect "oracle" step labels replace the recognizer's guesses (PREGO, Differentiable Task Graph Learning). On Assembly101, recognition from head-mounted cameras sits at 23.0% (Assembly101).
We propose to close this loop. The extracted procedural knowledge becomes the supervisory signal that trains the recognizer on unlabeled video. From a small set of labeled demonstrations we learn a task graph. We use it to decode the recognizer's noisy per-frame guesses on unlabeled recordings into step sequences that are procedurally feasible, train the recognizer on those decoded sequences, and re-estimate the graph from the enlarged pool. The externalized procedure therefore does two jobs: it is the output we want, and it is the filter that makes cheap unlabeled data usable.
Core Claim
Generic semi-supervised methods filter pseudo-labels, which are the model's own predictions reused as training targets, by per-frame confidence or temporal smoothness. Procedural video carries a much stronger constraint. A step cannot occur before its prerequisites, and a correct execution must eventually cover the required steps. Our claim is that this constraint, applied as a decoding step that produces structured pseudo-labels, recovers more recognition accuracy per labeled video than confidence-based teacher-student training. The gain should carry through to better task graphs and better online mistake detection at 5–25% labeled videos.
The novelty is specifically the use of a learned prerequisite graph as the pseudo-label filter, with the graph re-estimated jointly. Neither direction in the file does this. The procedural methods train on fully segmented videos. The semi-supervised methods use only generic invariances: equivariance in Honari et al., temporal continuity in Wang et al. 2019, and confidence-weighted teachers in Semi-ViT.
The closest work is GTG2Vid. It already aligns video frames to a generalized task graph by dynamic programming, but only to detect errors in test videos, and it requires frame-wise step annotations on every normal training video. We reuse its insight that graph-to-video alignment is tractable. We change its role: alignment runs on unlabeled training video to manufacture labels.
Research Program
The recognizer is a causal online action model of the kind PREGO uses, producing step probabilities $p_\theta(a \mid x_t)$ for each frame $x_t$. The task graph is the adjacency matrix $A$ learned with the Task Graph Maximum Likelihood objective from Differentiable Task Graph Learning. That objective scores how well a step sequence respects learned prerequisites; we write its score for a step sequence $s$ under graph $A$ as $\log P_A(s)$. We build on the released implementation (code).
For an unlabeled video $x_{1:T}$ we decode a segmentation $\hat{s}$ that balances visual evidence against procedural plausibility:
$$ \hat{s} = \arg\max_{s} \sum_{t=1}^{T} \log p_\theta(s_t \mid x_t) + \lambda \log P_A(\mathrm{steps}(s)), $$
Here $s_t$ is the step assigned to frame $t$, $\mathrm{steps}(s)$ is the ordered list of distinct steps in the segmentation, and $\lambda$ weighs the graph against the recognizer. Exact search over completed-step sets is exponential, so we use beam search over segment boundaries. This is feasible for the tens of coarse steps in these benchmarks.
Each decoded video gets a confidence equal to the margin between the best and second-best feasible decodes, plus the fraction of frames where the decode agrees with the unconstrained argmax. Only high-confidence videos enter training. An exponential-moving-average teacher, a slowly updated copy of the recognizer, produces the frame probabilities, following Semi-ViT. The student is trained on the decoded labels. Every few epochs the graph $A$ is re-fit on labeled sequences plus confident decoded sequences, with the labeled ones up-weighted.
There is a real risk at the center of this design. Forcing decodes to be feasible could teach the recognizer to "see" correct procedures even when a mistake happens, which would hide exactly the errors we want to detect. Two features of the setup limit this, and we will measure it directly rather than assume it away. First, the one-class splits of Assembly101-O and EPIC-Tent-O contain only correct executions in training, so the unlabeled pool is mistake-free by construction. Second, $\lambda$ is finite, so strong visual evidence can override the graph.
For CaptainCook4D, whose training recordings include errors, we add a variant that excludes videos whose best feasible decode disagrees strongly with the unconstrained decode. Those videos are likely mistakes, and setting them aside is itself a cheap mistake-mining signal. We inherit TGML's inability to model repeated actions. We handle repeats by collapsing them to first occurrence, as the original does, and report this as a limitation rather than solving it here.
Baselines
The naive reference trains the recognizer and the TGML graph on the labeled subset alone, discarding unlabeled video. Its upper reference is the same pipeline with all training videos labeled, which the cited papers report. On Assembly101-O, PREGO with Llama-2 reports an online mistake detection F1 of 41.8 (PREGO). TGML Direct Optimization reports +19.8% over PREGO on Assembly101-O and +7.5% on EPIC-Tent-O (Differentiable Task Graph Learning). The file gives these as relative gains, not absolute F1, so we will re-run the released code to obtain absolute numbers under our splits.
The strongest generic competitor is unstructured teacher-student self-training: the same recognizer, the same EMA teacher, the same unlabeled pool and epochs, with pseudo-labels filtered by per-frame confidence. This is the Semi-ViT recipe, with a temporal-continuity penalty added in the style of Wang et al. 2019. It is the right foil because it uses exactly the same data and compute and differs only in whether procedural structure shapes the labels. All methods get the same hyperparameter search budget over threshold and loss weight. Semi-supervised methods are known to be sensitive to these settings, so we report results across the grid, not just the best point.
Two ablations isolate the key ingredient. One applies the graph-constrained decoder only at test time, with no retraining. The other freezes the graph learned from labeled data instead of re-estimating it. We count the proposal as beating the field if, at 10% labeled videos, it beats the unstructured teacher on step recognition and on mistake-detection F1 on both Assembly101-O and EPIC-Tent-O. It must also beat test-time decoding alone, showing that the benefit comes from training on structured labels and not from decoding.
Why not just…?
Why not just run standard confidence-thresholded self-training and then fit TGML? This is the most serious threat, and it is our main baseline. Semi-ViT reports that plain FixMatch collapses on transformers, but its EMA-teacher variant reaches 80.0% top-1 on ImageNet with 1% labels (Semi-ViT), so a well-built generic teacher may be strong. Our argument rests on a specific fact about egocentric video: confidence is least reliable exactly where recognition fails. Assembly101 reports 9.3% accuracy on rare classes against 51.1% on frequent ones, and failures concentrate under occlusion. A confidence filter will mostly keep easy head classes, whereas a feasibility filter can label a rare step because its position in the procedure is forced. If the unstructured teacher matches us on tail-class accuracy, the structural idea fails, and we will report that.
Why not just apply the graph at inference time, as GTG2Vid's alignment does? Test-time constrained decoding fixes ordering mistakes but cannot improve the visual features. The oracle results in PREGO and in Seminara et al. show that the features themselves are the bottleneck. The test-time-only ablation measures this gap directly. If it captures most of the gain, the training loop is unnecessary, and we would say so.
Why not just prompt a video-language model? On CaptainCook4D, zero-shot Video-LLaVa reaches 41.8% F1 on error recognition (CaptainCook4D). General models are reported to "often fail to exceed 60%" error accuracy against roughly 72% for a specialized model, and to show a bias toward judging steps correct (Building Egocentric Procedural AI Assistant). The strong 95.6 F1@10 segmentation result on EgoInstruct relies on spoken instruction: text alone gives 94.0. Silent assembly lacks that signal. We include a prompted video-language model as a pseudo-labeler variant on EgoInstruct, where it should be strongest, to test whether its labels outperform graph-decoded ones.
Proposed Experiments
The main experiment uses Assembly101-O and EPIC-Tent-O with their one-class splits. We subsample 5%, 10%, and 25% of training videos as labeled and leave the rest unlabeled. We report three metrics: frame-level step accuracy (split into head and tail classes), online mistake detection F1 using the PREGO and TGML evaluation protocols, and graph F1 against the full-label graph.
On CaptainCook4D we report task-graph F1, where TGML reports +16.7% over MSG², and the mistake-filtered variant. Here the decisive test is whether recall on held-out errors stays at or above the label-only baseline. Recall dropping while recognition rises would confirm the masking risk.
A diagnostic study then plots, per unlabeled video, how often graph-decoded labels agree with held-out ground truth compared with confidence-filtered labels, broken down by step frequency. This tests the mechanism directly: structure should help most on rare and occluded steps.
The proposal succeeds if structured pseudo-labeling at 10% labels recovers a clearly larger share of the gap between label-only and full-label performance than the unstructured teacher on both one-class benchmarks, without reducing error recall on CaptainCook4D. It fails if the unstructured teacher or test-time decoding alone matches it.
References
- PREGO: online mistake detection in PRocedural EGOcentric videos
- Differentiable Task Graph Learning: Procedural Activity Representation and Online Mistake Detection from Egocentric Videos
- Assembly101: A Large-Scale Multi-View Video Dataset for Understanding Procedural Activities
- Improving Landmark Localization With Semi-Supervised Learning
- Improved Generalization of Heading Direction Estimation for Aerial Filming Using Semi-Supervised Regression
- Semi-supervised Vision Transformers at Scale
- Error Recognition in Procedural Videos using Generalized Task Graph
- CaptainCook4D: A Dataset for Understanding Errors in Procedural Activities
- Building Egocentric Procedural AI Assistant: Methods, Benchmarks, and Challenges
- EgoInstruct: An Egocentric Video Dataset of Face-to-face Instructional Interactions with Multi-modal LLM Benchmarking