ActFusion: a Unified Diffusion Model for Action Segmentation and Anticipation

Dayoung Gong, Suha Kwak, Minsu Cho

TL;DR

ActFusion is a unified diffusion-based framework that jointly tackles temporal action segmentation (TAS) and long-term action anticipation (LTA). By employing a novel "anticipative masking" strategy, the model learns to recognize current actions while simultaneously predicting future ones, achieving state-of-the-art results on major benchmarks through a single, integrated training process.

What Problem Does This Paper Address?

In computer vision, understanding human activity in video usually falls into two distinct buckets:

  • Temporal Action Segmentation (TAS): Identifying and classifying what is happening in every frame of a recorded video.
  • Long-Term Action Anticipation (LTA): Predicting a sequence of future actions based on only a partial observation of the present.

Despite their obvious connection—understanding what someone is doing now is crucial to guessing what they will do next—these tasks have historically been treated as separate silos. Models designed for segmentation often struggle to generalize to anticipation, and vice versa. Furthermore, many existing anticipation models inadvertently "cheat" during testing by relying on the ground-truth length of the future video, a metric unavailable in real-world scenarios.

ActFusion aims to break these silos with a single architecture that treats "the future" simply as an "invisible" part of the sequence.

Comparison of task-specific models versus the unified ActFusion framework, alongside performance evaluations on TAS and LTA.

Methods

ActFusion is built on the foundation of Diffusion Models, which have recently revolutionized image generation. Instead of generating pixels, ActFusion generates sequences of action labels. It starts with pure Gaussian noise and iteratively "denoises" it into a coherent timeline of actions.

The core innovation enabling this unification is the Anticipative Masking strategy:

  1. Encoder-Decoder Architecture: The model uses a masked encoder (based on ASFormer) to process video features and a denoising decoder to produce action labels.
  2. Masking as Unification: During training, the model randomly masks different parts of the video. For TAS, the model sees the whole video. For LTA, a late portion of the video is masked as "invisible."
  3. Learnable Tokens: These masked "invisible" frames are replaced by learnable mask tokens. The model is forced to learn the relationship between the visible past and the invisible future to fill in the blanks.
  4. Multi-strategy Training: Beyond anticipation, the authors use random masking (for robustness), relation masking (to learn how actions depend on each other), and boundary masking (to sharpen the transitions between actions).

Datasets

The authors evaluated ActFusion on three standard "kitchen-centric" benchmarks:

  • 50 Salads: 50 videos of people preparing salads with 17 fine-grained action classes.
  • Breakfast: A large-scale dataset of 1,712 videos across 10 different breakfast-making activities.
  • GTEA: 28 egocentric (first-person) videos of meal preparation.

Key Insights and Ideas

  • Bidirectional Benefits: The most significant finding is that joint learning is a win-win. Training the model to anticipate the future actually makes it better at segmenting the present, and vice versa. This suggests that the underlying "grammar" of human actions is shared across both tasks.
  • The Future is Just a Mask: By treating anticipation as a masking problem, the authors simplify the architecture. There is no need for separate "future-prediction" modules; the model simply learns to infer missing information, whether that information is a missing frame in the middle (segmentation) or the entire end of the video (anticipation).
  • Exposing "Information Leakage": The authors highlight a critical flaw in prior LTA research where models relied on knowing the exact duration of future actions during testing. ActFusion introduces a more realistic evaluation protocol that predicts the future length based only on the observed portion.

Key Results

ActFusion achieved state-of-the-art (SOTA) performance across all three datasets, often outperforming models specifically designed for only one of the two tasks.

  • On TAS: It achieved an average F1 score of 88.5% on 50 Salads, surpassing the previous best (DiffAct).
  • On LTA: It consistently outperformed specialized models like FUTR and TempAgg across various anticipation horizons.
  • Generalization: Unlike previous models that show a massive performance drop when switched from one task to the other, ActFusion maintains high performance across both, proving the strength of its unified representation.

Limitations and Future Work

The authors acknowledge a slight trade-off: while ActFusion is a superior "all-rounder," its frame-wise accuracy in segmentation is occasionally a fraction lower than the most specialized TAS-only models. They hypothesize this is because their masking is applied before the encoder, whereas some TAS models apply it later in the pipeline.

Future directions include: * Integrating more explicit segment-wise action relations to better capture the "logic" of sequences. * Exploring weakly-supervised learning, where the model learns from videos that aren't labeled frame-by-frame. * Applying this unified approach to real-world robotics, where a robot must simultaneously recognize what a human is doing and prepare for what they will do next.

Summary updated

BibTeX
@inproceedings{gong2024actfusion,
  author = {Dayoung Gong and Suha Kwak and Minsu Cho},
  title = {{ActFusion: a Unified Diffusion Model for Action Segmentation and Anticipation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=NN9U0lEcAn},
}
Figure