Faster Diffusion Action Segmentation

Shuaibing Wang, Shunli Wang, Mingcheng Li, Dingkang Yang, Haopeng Kuang, Ziyun Qian, Lihua ZhangarXiv 2024 · DOI

Abstract

Temporal Action Segmentation (TAS) is critical for fine-grained video understanding, requiring the precise identification of action boundaries in long sequences. While diffusion models have recently set new benchmarks in this field, they are often hindered by high computational costs and "rank collapse" in Transformer-based encoders. We present EffiDiffAct, a streamlined framework that replaces heavy Transformers with a lightweight Temporal Dilation Perception (TDP) module and introduces an adaptive skip strategy for inference. EffiDiffAct achieves state-of-the-art results on major benchmarks like 50Salads and Breakfast, significantly reducing parameter count and inference latency without sacrificing accuracy.

Introduction

Temporal Action Segmentation involves taking a continuous video and precisely marking the start and end of specific actions. Recent advancements have leveraged diffusion models for this task, utilizing their iterative refinement capabilities to sharpen action boundaries. However, these models face two primary hurdles: the "diffusion bottleneck" of slow iterative sampling and the tendency of standard Transformer encoders to over-smooth features (rank collapse) due to the high similarity between consecutive video frames.

Overview of the diffusion-based action segmentation process, where video features condition the denoising of action labels.

Methodology: EffiDiffAct

EffiDiffAct addresses these challenges through two major architectural innovations: the Temporal Dilation Perception (TDP) encoder and an adaptive skip inference strategy.

Temporal Dilation Perception (TDP) Encoder

To mitigate rank collapse and maintain feature distinctiveness, the TDP encoder replaces standard self-attention with three parallel processing strategies:

  • Boundary Level: Employs max pooling to highlight prominent features, preserving the "spikes" in data that signal action transitions.
  • Global Level: Uses global average pooling and depthwise convolutions to provide a macroscopic view of the entire sequence.
  • Dilation Level: Utilizes dilated convolutions to capture long-range temporal dependencies without the quadratic computational cost associated with Transformers.

Adaptive Skip Strategy

Standard accelerated diffusion methods use a fixed number of steps during inference. EffiDiffAct introduces an adaptive skip strategy that calculates the cosine similarity between the current state and the predicted next state. If the similarity is high, the model takes a larger jump to save time; if the similarity is low (indicating significant adjustments), it takes a smaller step to ensure precision.

The EffiDiffAct architecture, detailing the TDP module components and the training/inference pipelines.

Experimental Results

The model was evaluated on three gold-standard TAS benchmarks: 50Salads, Breakfast, and GTEA. EffiDiffAct demonstrated superior performance and efficiency across several metrics:

  • Accuracy & Precision: On the 50Salads dataset, it achieved an F1@50 score of 87.1, outperforming the original DiffAct (83.7).
  • Inference Speedup: The adaptive skip strategy reduced inference time by 14.5% compared to fixed-step methods. Compared to the original DiffAct, inference time dropped from 2.10s to as low as 0.76s (at 8 steps).
  • Model Efficiency: The approach reduced the parameter count by 12.4% (from 1.21M to 1.06M) and storage requirements by approximately 12%.

Conclusion

EffiDiffAct demonstrates that efficiency and accuracy can coexist in diffusion-based video analysis. By rethinking the inductive biases of video encoders and introducing dynamic inference steps, the model overcomes the limitations of traditional Transformer-based diffusion pipelines. Future work will explore more sophisticated similarity metrics for the adaptive skip strategy and improve robustness on smaller-scale datasets where current gains are less pronounced.

Summary updated

BibTeX
@misc{wang2024faster,
  author = {Shuaibing Wang and Shunli Wang and Mingcheng Li and Dingkang Yang and Haopeng Kuang and Ziyun Qian and Lihua Zhang},
  title = {{Faster Diffusion Action Segmentation}},
  year = {2024},
  eprint = {2408.02024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.02024},
}
Figure