TL;DR
DiffAct rethinks temporal action segmentation by formulating it as a conditional generation task using denoising diffusion models. By iteratively refining action sequences from random noise—guided by video features and a novel "condition masking" strategy—it achieves state-of-the-art results on major benchmarks like 50Salads and Breakfast.
What Problem Does This Paper Address?
Temporal action segmentation involves assigning an action label (e.g., "peeling a cucumber," "cutting cheese") to every single frame in a long, untrimmed video. It is a foundational task for video understanding, but it’s notoriously difficult due to:
- Long-range dependencies: Actions can span minutes.
- Boundary ambiguity: Transitions between actions are often visually gradual and hard to pinpoint.
- Over-segmentation: Models often produce "jittery" predictions with too many short, incorrect action fragments.
Previous state-of-the-art methods typically used multi-stage models that produce an initial prediction and then refine it through successive layers. The authors of this paper noticed that this "iterative refinement" paradigm is exactly what denoising diffusion models are designed for.
Methods
The authors propose DiffAct, the first framework to apply diffusion models to action segmentation.
The Diffusion Framework
Instead of directly mapping video frames to labels, DiffAct treats the action sequence as a data distribution to be generated.
- Forward Process: During training, Gaussian noise is gradually added to the ground-truth action sequence until it becomes pure noise.
- Reverse Process (Denoising): A decoder is trained to take a noisy sequence and, conditioned on the input video features, predict the original clean sequence.
- Inference: At test time, the model starts with a sequence of pure random noise and iteratively removes noise over several steps (typically 25) to arrive at the final segmentation.
Condition Masking Strategy
The "secret sauce" of DiffAct is how it handles the conditioning video features. Human actions follow regular patterns—priors—that are often ignored by purely discriminative models. The authors introduce a Condition Masking Strategy during training to force the model to learn these priors:
- Position Prior ($M^P$): By occasionally masking all video features, the model learns which actions typically occur at the start, middle, or end of a video (e.g., "serving" usually happens at the end).
- Boundary Prior ($M^B$): Masking features near action transitions encourages the model to rely on temporal context and action durations rather than potentially unreliable visual cues at ambiguous boundaries.
- Relation Prior ($M^R$): Masking entire segments of a specific action class forces the model to infer the missing action based on what comes before and after (e.g., "cutting" usually follows "peeling").
Datasets
The model was evaluated on three standard benchmarks:
- GTEA: 28 egocentric videos of daily activities (11 classes).
- 50Salads: 50 top-view videos of salad preparation (17 classes). These are long videos with many action instances.
- Breakfast: 1,712 third-person videos of breakfast cooking (48 classes). This is the largest and most diverse dataset of the three.
Key Insights and Ideas
- Generative vs. Discriminative: By modeling the distribution of action sequences, the model implicitly learns the "grammar" of human activities, making it more robust to visual noise.
- Natural Refinement: The iterative nature of diffusion is a more mathematically grounded way to perform the refinement that multi-stage TCNs and Transformers were already trying to do heuristically.
- Masking as Guidance: The condition masking strategy is a clever adaptation of "classifier-free guidance" used in image generation. It allows a single model to act as both a conditional and unconditional generator, capturing different aspects of the data.
- Boundary Alignment Loss: The authors introduced a specific loss to align the boundaries of the denoised sequence with the ground truth, further reducing over-segmentation.
Key Results
DiffAct achieved superior or comparable results to all previous state-of-the-art methods. The gains were most significant on the larger and more complex datasets:
- 50Salads: Improved average performance (across five metrics) from 86.2 to 87.4.
- Breakfast: Improved average performance from 73.9 to 75.1.
- Efficiency: Despite being an iterative process, DiffAct is computationally efficient. Using a lightweight decoder, it can outperform heavy Transformers like ASFormer with fewer FLOPs at inference.
Qualitatively, the model shows a remarkable ability to "fix" its own mistakes. As shown in Figure 6, early denoising steps might have broken segments, but later steps use learned relational priors to merge them into continuous, correct actions.
Limitations and Future Work
- Small Data Challenges: The advantage of DiffAct is less pronounced on the small GTEA dataset. Generative models generally require more data to accurately learn the underlying distribution.
- Future Directions: The authors suggest that this generative framework is naturally suited for action anticipation (predicting future actions), which could be a promising area for future research. They also propose exploring "model reassembly" or non-Gaussian noise to improve performance on small-scale data.
Summary based on "Diffusion Action Segmentation" by Liu et al. (2023).
Summary updated