ActFusion: a Unified Diffusion Model for Action Segmentation and Anticipation

Temporal action segmentation and long-term action anticipation are two popular vision tasks for the temporal analysis of actions in videos. Despite apparent relevance and potential complementarity, these two problems have been investigated as separate and distinct tasks. In this work, we tackle these two problems, action segmentation and action anticipation, jointly using a unified diffusion model dubbed ActFusion. The key idea to unification is to train the model to effectively handle both visible and invisible parts of the sequence in an integrated manner; the visible part is for temporal segmentation, and the invisible part is for future anticipation. To this end, we introduce a new anticipative masking strategy during training in which a late part of the video frames is masked as invisible, and learnable tokens replace these frames to learn to predict the invisible future. Experimental results demonstrate the bi-directional benefits between action segmentation and anticipation. ActFusion achieves the state-of-the-art performance across the standard benchmarks of 50 Salads, Breakfast, and GTEA, outperforming task-specific models in both of the two tasks with a single unified model through joint learning.

Paper

Similar papers

Peer review

Reviewer zKDZ6/10 · confidence 1/52024-07-08

Summary

This paper extends DiffAct to perform both action segmentation and action anticipation. An anticipative masking with a learnable mask token is proposed. Experiments are conducted on the three common benchmark datasets.

Strengths

1. The motivation for unifying action segmentation and action anticipation is reasonable, given the task similarity. It is also intuitive and reasonable to extend a generative framework from segmentation to anticipation, given the generative nature of anticipation. 2. The learnable mask token is interesting. 3. The ablation studies are relatively comprehensive. 4. Codes are provided in the supplementary.

Weaknesses

1. The major technical problem is that the proposed method assumes the ground truth video length is known for action anticipation at the test time. Without the ground truth video length T, the anticipative mask M^A can not be constructed during the inference time for anticipation. This is also shown in the code provided, where 'full_len' is input into the ddim inference function. This is problematic, conflicting with the goal of anticipation, and leading to incomparable experimental results. 2. The technical novelty is limited. The main contribution is extending the DiffAct method with an anticipative mask, while other modules are from existing methods. But given the contribution of unifying the segmentation and anticipation tasks, this is not a deciding factor for me. 3. It will be better to conduct experiments on Assembly101. Given the small data size and the saturated performance on GTEA, I would recommend a transition from GTEA to Assembly101 for this task. Minor: - In Figure 1c, what do the triangle and the circle mean? - In Table 1, some recent methods are missing, such as MVGA ICCV23 and RTK ICCV23.

Questions

NA

Rating

6

Confidence

1

Soundness

1

Presentation

3

Contribution

3

Limitations

The limitations were briefly discussed.

Authorsrebuttal2024-08-12

### **[W1: Using the ground-truth video length during inference]** Thanks to your response, now we fully understand the point regarding the use of the ground truth video length during inference. To address this concern, we conducted additional experiments where no ground truth length is used in testing; following your suggestion, in testing, we fixed the length of future frames (i.e., mask tokens) to the maximum number of future frames in the training set. Experimental results in this setting on the 50 Salads dataset are reported in Table R6. In this table, the column ‘use of GT length’ indicates if each model exploits ground-truth length during testing. We found that, following the first paper introducing long-term dense action anticipation [2], all previous methods utilize the ground-truth length during testing, except for those whose codebases and/or inference setups are not available [25, 51, 65]; we marked these methods 'unknown' in the column. In the table, **ActFusion*** represents **our original model using a fixed number of mask tokens without retraining.** To ensure a fair comparison, we applied the same testing scheme to Farha et al [19] (denoted by Farha et al*) and FUTR [24] (denoted by FUTR*), *both of which originally utilize the ground-truth length during testing*. In this setting, ActFusion* still outperforms Farha et al* and FUTR*, and as the reviewer expected, all of these methods perform worse. This performance drop is due to the use of the ground-truth video length in training, which results in a discrepancy between the training and inference setups. To mitigate this issue, **we retrained our model while fixing the number of mask tokens to cover the maximum number of future frames in the training set.** The retrained results, presented in the last row of Table R6 and denoted as **ActFusion†**, achieve the state of the art in long-term action anticipation (LTA). We observed that fixing the number of mask tokens brings performance gain when the prediction ranges are relatively short, as the model benefits from more stable predictions. However, for longer predictions, particularly when the prediction ratio is set to 0.5, we observed performance degradation compared to ActFusion. This degradation is probably due to the fact that it becomes more difficult for the model to determine the end of an activity. Nonetheless, these results demonstrate that our method can be flexibly adapted to different numbers of mask tokens, ultimately achieving the state of the art in LTA. We sincerely hope this clarification addresses your concerns. We believe that the experimental setup you suggested will contribute significantly to the field by providing more realistic and reasonable evaluation protocols, and we will include all of the above results in the revision. **[Table R6. LTA results with and without using ground truth length]** | method | use of GT length | $\alpha=0.2,\beta=0.1$ | $\alpha=0.2,\beta=0.2$ | $\alpha=0.2,\beta=0.3$ | $\alpha=0.2,\beta=0.5$ | $\alpha=0.3,\beta=0.1$ | $\alpha=0.3,\beta=0.2$ | $\alpha=0.3,\beta=0.3$ | $\alpha=0.3,\beta=0.5$ | Avg. | |:-------------------|:-------------:|:------------------------:|:------------------------:|:------------------------:|:------------------------:|:------------------------:|:------------------------:|:------------------------:|:------------------------:|:---------:| | Temporal Agg. [51]| unknown| 25.50| 19.90| 18.20| 15.10| 30.60| 22.50| 19.10| 11.20| 20.26| | A-ACT [25]| unknown| 35.40| 29.60| 22.50| 16.10| 35.70| 25.30| 20.10| 16.30| 25.13| | Object Prompt [65]| unknown| 37.40| 28.90| 24.20| **18.10**| 28.00| 24.00| **24.30**| 19.30| 25.53| | Farha et al. [19] | ✓| 34.76| 28.41| 21.82| 15.25| 34.39| 23.70| 18.95| 15.89| 24.15| | Farha et al.* [19]| -| 29.07| 23.83| 20.49| 12.77| 26.51| 17.78| 14.35| 11.19| 19.50| | FUTR [24]| ✓| 39.55| 27.54| 23.31| 17.77| 35.15| 24.86| 24.22| 15.26| 25.96| | FUTR* [24]| -| 28.84| 20.01| 16.65| 11.37| 22.48| 16.49| 13.21| 9.21| 17.28| | ActFusion (ours) | ✓| 39.55| 28.60| 23.61| 19.90| 42.80| 27.11| 23.48| 22.07| 28.39| | ActFusion* (ours) | -| 34.50| 26.17 | 20.27 | 11.87 | 34.58 | 22.75 | 17.31 | 11.33 | 22.75| | ActFusion† (ours)| - | **41.30** | **30.83** | **24.40** | 16.10 | **41.70** | **28.08** | 22.48 | **19.56** | **28.06**| - In the table, the bolded values represent the highest accuracy among the models that do not use ground truth length, ensuring a fair comparison.

Reviewer zKDZ2024-08-12

Test Data Leakage and Difficult Case

Thanks very much. I really appreciate the additional experiments. It is helpful to see the new results without using ground-truth length, which are quite reasonable. It is surprising that all previous methods have utilised the ground-truth length during testing. I would flag this as a critical issue worth the community's attention. Revealing this issue using the above experiments might be a significant contribution to the community. Therefore, I have greatly increased my score, on the condition that the additional experiments will be included in the later version. And all the other experiments should also be 'totally' updated to this no ground-truth version. However, this might be too substantial and there is no mechanism to guarantee that. Overall, this is really a difficult case. Therefore, I have also changed my rating to the lowest confidence, and I would leave this to the chairs for the final judgement.

Authorsrebuttal2024-08-12

We sincerely appreciate the reviewer’s constructive feedback, which has been invaluable in raising an important issue within the community and guiding us to improve our submission. We will ensure that all experiments in our final manuscript are fully updated without the use of ground-truth length during inference. As the reviewer zKDZ mentioned, we also believe that revealing this critical issue and rectifying it would be a significant contribution to the community. We will thoroughly analyze and bring to light the issues shared by previous methods (at least, including [19, 24]), ensuring that all models are compared under adequate and fair conditions.

Reviewer uA7n6/10 · confidence 5/52024-07-11

Summary

This paper proposes a new unified diffusion model called ActFusion, which solves the tasks of Time Action Segmentation (TAS) and Long Term Action Prediction (LTA) in a joint learning framework. To unify the two tasks, the model effectively handles the visible and invisible parts of the sequence during the training phase; The visible part is used for observed video frames, while the invisible part is used for future expectations. The experiment showed that the model achieved state-of-the-art performance in standard benchmark tests of 50 Salad, Breakfast, and GTEA.

Strengths

1. The design of the ActFusion model is novel, with its anticipative masking strategy and random masking method unifying the tasks of TAS and LTA. 2. The model enhances its performance on both tasks through mutual promotion of TAS and LTA. 3. The reported results in the paper surpass existing techniques on multiple evaluation metrics, demonstrating significant performance improvements.

Weaknesses

1. What is the difference between the Diffusion model used in the paper and the DiffAct model? They appear to be similar overall, despite using different Masks to unify the tasks of TAS and LTA. 2. The paper employs so many loss functions for model training; the authors should analyze the impact of different losses rather than simply exploring the effects of the encoder and decoder. 3. Since the denoising process of the diffusion model is a time-consuming task, I am interested in the computational efficiency of the model proposed in the paper. The authors are advised to provide information on the model's GFLOPs, parameter scale, and inference time. 4. The authors need to further improve the interpretation of the figures, such as what the circles and triangles in Figure 1(c) represent.

Questions

1. What is the difference between the Diffusion model used in the paper and the DiffAct model? They appear to be similar overall, despite using different Masks to unify the tasks of TAS and LTA. 2. The paper employs so many loss functions for model training; the authors should analyze the impact of different losses rather than simply exploring the effects of the encoder and decoder. 3. Since the denoising process of the diffusion model is a time-consuming task, I am interested in the computational efficiency of the model proposed in the paper. The authors are advised to provide information on the model's GFLOPs, parameter scale, and inference time. 4. The authors need to further improve the interpretation of the figures, such as what the circles and triangles in Figure 1(c) represent.

Rating

6

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

In summary, the authors have creatively used different Masks to unify the tasks of TAS and LTA with a single model and achieved significant results. However, compared to existing models, there does not seem to be much modification, highlighting a disadvantage in innovation.

Authorsrebuttal2024-08-12

We thank reviewer uA7n for the motivating feedback. We are pleased to hear that most of the concerns have been addressed by our rebuttal. The results discussed in the rebuttal will be included in the final manuscript.

Reviewer FW3D6/10 · confidence 3/52024-07-24

Summary

The author introduce a unified diffusion model for temporal action segmentation (TAS) and long-term action anticipation (LTA), dubbed ActFusion, where a single model is jointly trained to address these two problems effectively. A new anticipative masking is presented for the effective unification of two tasks, along with random masking to learn intra-action relations. ActFusion achieves the state-of-the-art performance on both TAS and LTA, demonstrating the effectiveness of joint learning of two tasks across standard benchmark datasets, 50 Salads and Breakfast, and GTEA.

Strengths

* Originality * The paper presents a approach to integrating two popular vision tasks, temporal action segmentation and long-term action anticipation, within a unified model. This is the first time these two problems have been investigated together in a single framework, highlighting the originality of the research. * Clarity * The paper is clearly articulated and provides sufficient details. It offers an adequate background on diffusion model and how it is utilized. The inclusion of pseudo-code and actual code facilitates a better understanding for the reader. Additionally, the experimental settings are thoroughly described, which aids in the reproducibility of the results.

Weaknesses

* The methodology lacks novelty. The model architecture, loss function (Cross-Entropy Loss, Temporal Smoothness Loss, Boundary Alignment Loss) and mask strategy (no mask, relation mask, boundary mask) closely resemble those used in the Diffusion Action Segmentation (https://arxiv.org/pdf/2303.17959v2). The primary distinction in this work is only its extension to include the long-term action anticipation task, and the introduction of anticipative masking. * The performance improvement relative to other state-of-the-art works is marginal. On TAS task, when compared to DiffAct, this model shows an approximate 1-point improvement across various metrics (F1, edit score, frame-wise accuracy) on different benchmarks (50 Salads, Breakfast, GTEA). * The model consistently achieves sub-optimal results when assessed using frame-wise accuracy as the metric on TAS task. As the authors point out, this could potentially be addressed by employing reconstruction methods for masked features. I am eager to see how these adjustments could enhance the model's performance. * More ablation study for LTA task could be included, e.g., How important is past context for the models (\alpha) ? How far into the future can models predict (\beta)? Table 2 reports only a limited range of settings. A more thorough analysis on these aspects would be highly valuable.

Questions

* The approach is currently limited to predicting action labels within a closed set. To extend this work to predict open-set action labels, what can be done? * While "segmentation helps anticipation" is evident from table 3, "anticipation helps segmentation" is considerably less significant in table 4. What's the reason behind this? * If further training the model to reconstruct the original features from the masked features, would it also improve the LTA task? * Paper writing * What does circle and triangle means in figure 1(c)? * In table2, why there are multiple underlined values (suppose to be second-highest value) in each column?

Rating

6

Confidence

3

Soundness

2

Presentation

3

Contribution

2

Limitations

* Limitation * The author notes the sub-optimal performance when using frame-wise accuracy to evaluate the TAS task and suggests a potential solution, though its effectiveness remains unproven. I am eager to see how these proposed adjustments might improve the model's performance. * Potential negative societal impact * There is no potential negative societal impact of this work.

Authorsrebuttal2024-08-12

A gentle reminder

Dear reviewer FW3D, We'd like to thank again for your effort and time dedicated to our submission. We've addressed your concerns in our rebuttal, and it would be very helpful if you could give us any further thoughts and update your scores before the author-reviewer discussion phase ends. Your opinion would be invaluable to us in improving our work, and we would be glad to respond further to your questions. Thank you for your consideration. Best regards, Authors

Reviewer FW3D2024-08-12

Thank you to the authors for providing detailed explanations and conducting additional experiments. These have addressed all of my questions and concerns. Please ensure to include these in the final version of the manuscript. I will be adjusting my rating accordingly.

Authorsrebuttal2024-08-13

Thank you for the response. We are glad to hear that most of the concerns have been addressed by our rebuttal. We would like to thank reviewer FW3D once again for the insightful comments for extensive experiments and directions for our work. We make sure to include all experimental results in the final manuscript.

Reviewer zKDZ2024-08-08

Response

Thanks very much for the response. W1: I am not convinced. This is not an evaluation choice as argued by the authors. This is a test data leakage issue. For any machine learning model, you should not use any ground truth when obtaining predictions on test data. One possible solution might be using the mean length of training videos as the 'full_len' during testing. But I guess this will lower the results. As for previous methods mentioned by the authors, I did not check their code. Did other previous methods except for those mentioned also use this ground truth? Even if ground truth was used in some of previous codes, I would consider this as an issue to be fixed in the following works rather than a convention to be inherited. W2: I appreciate the novelty of the unification, but not the methodology. This is subjective though. W3 and minor have been addressed.

Reviewer uA7n2024-08-12

Thank you for your detailed rebuttal. The author has clarified most of my concerns. I keep my score as weak accept.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC