Differentiable Task Graph Learning: Procedural Activity Representation and Online Mistake Detection from Egocentric Videos

Procedural activities are sequences of key-steps aimed at achieving specific goals. They are crucial to build intelligent agents able to assist users effectively. In this context, task graphs have emerged as a human-understandable representation of procedural activities, encoding a partial ordering over the key-steps. While previous works generally relied on hand-crafted procedures to extract task graphs from videos, in this paper, we propose an approach based on direct maximum likelihood optimization of edges' weights, which allows gradient-based learning of task graphs and can be naturally plugged into neural network architectures. Experiments on the CaptainCook4D dataset demonstrate the ability of our approach to predict accurate task graphs from the observation of action sequences, with an improvement of +16.7% over previous approaches. Owing to the differentiability of the proposed framework, we also introduce a feature-based approach, aiming to predict task graphs from key-step textual or video embeddings, for which we observe emerging video understanding abilities. Task graphs learned with our approach are also shown to significantly enhance online mistake detection in procedural egocentric videos, achieving notable gains of +19.8% and +7.5% on the Assembly101-O and EPIC-Tent-O datasets. Code for replicating experiments is available at https://github.com/fpv-iplab/Differentiable-Task-Graph-Learning.

Paper

Similar papers

Peer review

Reviewer tC416/10 · confidence 4/52024-07-08

Summary

The paper presents a novel approach to learning task graphs from procedural activities observed in egocentric videos. Task graphs represent the partial ordering of key-steps needed to complete a task and are crucial for developing intelligent agents that can assist users. The proposed method utilizes direct maximum likelihood optimization of edge weights, enabling gradient-based learning that can be integrated into neural network architectures. The study demonstrates significant improvements in task graph prediction accuracy and online mistake detection using datasets like CaptainCook4D, Assembly 101, and EPIC-Tent. The main motivation behind this work is twofold. Firstly, it aims to enhance the ability of intelligent systems to assist users in performing complex tasks by automatically learning flexible and accurate task graph representations from video observations, rather than relying on manually crafted procedures. Secondly, the authors seek to explicitly model task graphs to provide a more interpretable and human-understandable representation of procedural activities. The authors introduce two primary approaches for task graph learning: Direct Optimization (DO) and Task Graph Transformer (TGT). The DO method uses the Task Graph Maximum Likelihood (TGML) loss to directly optimize the adjacency matrix representing the task graph. This optimization is performed using gradient descent, making the process straightforward and effective. On the other hand, the TGT model employs a transformer encoder to process key-step text or video embeddings and predict the adjacency matrix from these embeddings. This model includes a regularization loss to maintain distinctiveness among embeddings, ensuring accurate and meaningful task graph generation.

Strengths

The main contributions of the paper are as follows: 1. **Approach:** This paper presents an new error detection approach via learning task graphs by directly optimizing a maximum likelihood objective. This approach enables gradient-based task graph learning, allowing task graph methods to be applied to the problem of mistake detection in programs. 2. **Performance:** The proposed methods achieve superior performance in task graph generation and mistake detection compared to existing methods. 3. **Code Availability**: The availability of code for replication enhances the study's transparency and usability.

Weaknesses

1. **Dependence on Labeled Key-Step Sequences:** The method proposed in this work relies on action recognition models or Ground-truth Key-Step Labels. On the one hand, this will bring additional performance overhead, and on the other hand, relying on other action recognition models may introduce noise when errors occur during recognition. It's uncertain whether it will also affect the results of mistake detection. More discussions on these issues are needed. 2. **Limitation in Versatility and Scalability:** In this approach, a new model (task graph) needs to be trained for each new sequence of actions in order to achieve mistake detection. This method to some extent limits the versatility and scalability of the model, as retraining is required for each new task. Additionally, it seems that the proposed method has no versatility on order-unrelated mistakes, such as technique/measurement errors, which are highlighted in latest datasets (e.g., HoloAssist-ICCV23[1], CaptainCook4D-ICML23[2], EgoPER-CVPR24[3]) 3. **Insufficient Qualitative Analysis**: The paper only provides one qualitative result on generated task graph in Figure 5. However, there is no qualitative analysis of the generated task graphs for detecting the mistakes. Also, it is suggested to provide discussions on the corner cases that may be challenging for the proposed method, which would bring insightful observations for the error detection community. [1] Wang, Xin, et al. "Holoassist: an egocentric human interaction dataset for interactive ai assistants in the real world." Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023. [2] Peddi, Rohith, et al. "CaptainCook4D: A dataset for understanding errors in procedural activities." arXiv preprint arXiv:2312.14556 (2023). [3] Lee, Shih-Po, et al. "Error detection in egocentric procedural task videos." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024. Suggestions for authors: My main concerns are about: - The versatility of the proposed method for various types of mistakes. - The detailed qualitative analysis on generated graphs when used to detect mistakes. Please do read the weakness carefully, I would consider to raise my rating if my concerns are well addressed.

Questions

Please see Weaknesses.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

Yes.

Reviewer PJ9t7/10 · confidence 4/52024-07-11

Summary

This paper introduced a learning-based task graph generation for procedural actions and mistake detection. Compared to previous approaches which usually consider natural language based descriptions, the proposed approach aims to use backward propagation to adaptively optimize procedural action sequences. To the reviewer, the introduced approach is much more flexible compared to other "hard-coded" language-based descriptions. In summary, this papers introduced a simple yet inspiring approach for graph generation.

Strengths

1. The proposed optimization based graph generation seems inspiring and novel. Unlike other existing hand-crafted methods, learning-based graph generation can be end-to-end trained with task model parameters. This has the potentials in significantly boosting model performances, since the graph is no longer hard-coded, which makes models able to automatically search for the optimal correlations. 2. The methodology is mostly clear and easy to follow. The authors well demonstrate how to establish and end-to-end optimize trainable graphs. 3. The experimental results are quite promising in the experiment sections, and the improvements are non-trivial and encouraging.

Weaknesses

1. The explanations of contrastive loss are somehow hard to follow. For typical contrastive learning, to push away or to pull close the distances always require positive/negative and anchor samples. The authors are expected to provide more detailed discussions to help readers understand. 2. In line 140, the authors make an assumption that no repetitive actions exists in sequences, without any further discussions. It is suggested that authors could provide more explanations on why they have this assumption and what impact this assumption causes to the proposed approach. 3. It is suggested that how the video and text embeddings are sent to the overall framework should be clearly demonstrated in the Figure 3. In the current submitted version, it is somehow confusing to the readers how the video features are considered into the training process.

Questions

Please refer to weakness for details.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

The limitations that the authors introduced are reasonable considering current submission, and they do not have any potential negative societal impact.

Reviewer pcHQ8/10 · confidence 4/52024-07-12

Summary

The paper proposes a differentiable loss function based on the maximum likelihood of generating task graphs from video features. The two proposed methods (DO and TGT) show strong performance, verifying their effectiveness in generating task graphs. Moreover, the predicted graphs are evaluated on downstream tasks to demonstrate the influence of explicit graph representations for general video understanding.

Strengths

In general, I like the paper from every perspective. It advances the progress of using task graphs for video understanding. - The paper is well-written and easy to understand. - The literature survey is comprehensive enough, which helps readers easily understand the motivation and the problem setting. - The experimental comparison is extensive enough, including a rich set of recent baselines that vary from different types of task graph generation. - The two proposed methods show strong performance on the evaluated datasets, verifying the effectiveness of the proposed differentiable task graph generation. - The generated explicit task graph representation is also evaluated on the downstream tasks. - The discussed limitations, e.g., the assumption of availability of key-step sequences, are insightful and are critical to the future development of task graphs for video understanding.

Weaknesses

- L140 describes that the authors separate sequences if the key-step repetition is available. I am wondering if this will limit the applications for some daily scenarios where a key step needs to be conducted many times, e.g., spreading peanut butter multiple times. - In L329, it would be nice to have a reference of those action recognition works that assume key-step sequences are available.

Questions

See weaknesses. My concern is the potential limitation for applications to long-form daily-life procedure activities where repetition is crucial.

Rating

8

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

Yes, the authors have discussed the limitations of this work, which is insightful and can facilitate future works of task graphs for video understanding.

Reviewer tC412024-08-11

## Differentiable Task Graph Learning: Procedural Activity Representation and Online Mistake Detection from Egocentric Videos Many thanks to the authors for answering the questions. I'm glad that the authors dispelled my doubts in "Q2: Limitation in Versatility and Scalability" and added Qualitative Analysis, but I still feel that there are shortcomings in "Q1: Dependence on Labeled Key-Step Sequences/Action Recognition Models". Even though there are some shortcomings, the method proposed by the authors has made some improvements over previous methods and achieved good performance. **I will change my rating to weakly accept.** ### Q1: Dependence on Labeled Key-Step Sequences/Action Recognition Models Just as mentioned in the author's response in Q3, in extreme cases, when the Action Recognition Model predicts missing or additional actions, it will modify the action sequence required for Mistake Detection, thereby affecting the judgment results. The fundamental reason lies in the noise issue brought by the Action Recognition Model. As shown in Table 3 of the original paper, there is a performance drop when using the Action Recognition Model compared to using GT labels. ### Q2: Limitation in Versatility and Scalability I am very pleased to see that the authors have provided experimental results in this regard, and the results are quite good. I think the authors can also add some explanations of the experimental results in the final article, for example: why the performance of the Unified method is better than training on individual tasks in Table 1 of the attached PDF. ### Q3: Insufficient Qualitative Analysis Thanks to the authors for filling in the Qualitative Analysis, which will help readers understand the article better.

Authorsrebuttal2024-08-12

We are glad that our reply helped clarifying the reviewer's doubts. As suggested by the reviewer, we will extend the discussion on why the unified method achieves better results than training on individual tasks, in the final version of the paper. We believe this is mainly due to an improved generalization ability which is possible thanks to the increased training data volume obtained by merging examples from all procedures. We sincerely thank the reviewer for the valuable suggestions.

Reviewer pcHQ2024-08-13

I thank the authors for their comprehensive response and all my concerns have been well-addressed. I am glad that the authors plan to include the repetition issue in the limitation discussion (also mentioned by reviewer tC41 in the items on scalability and versatility) as this may be a more crucial direction for real-world application and can inspire the follow-up works. After reading all the comments, I will keep my score as strong accept.

Reviewer PJ9t2024-08-13

The authors addressed most of my concerns. I would like to change my rating to acceptance.

Program Chairsdecision2024-09-25

Decision

Accept (spotlight)

© 2026 NYSGPT2525 LLC