STH: Spatio-Temporal Hybrid Convolution for Efficient Action Recognition

Xu Li, Jingwen Wang, Lin Ma, Kaihao Zhang, Fengzong Lian, Zhanhui Kang, Jinjun WangarXiv 2020

Introduction

Action recognition in video is a complex task that requires modeling both spatial appearance (what is in the frame) and temporal motion (how it moves). Historically, researchers have faced a trade-off between efficient but "temporally blind" 2D CNNs and effective but computationally expensive 3D CNNs. While factorized approaches like (2+1)D convolutions attempt to bridge this gap by stacking spatial and temporal layers sequentially, they often fail to achieve deep integration of these features.

The Spatio-Temporal Hybrid (STH) convolution is a novel building block designed to bake temporal reasoning directly into the standard 2D convolutional pipeline. By interleaving spatial and temporal kernels across different channel groups within a single layer, STH achieves the performance of heavy 3D models with the efficiency of lightweight 2D architectures.

The STH-Conv Block

The core innovation of this work is the STH-Conv block. Unlike standard convolutions that apply a uniform operation to all input channels, STH divides channels into groups and applies heterogeneous kernels.

Comparison of standard convolutional blocks (2D, 3D, and (2+1)D) against the proposed interleaved STH Block.

Hybrid Kernels and Interleaving

Within a single STH layer, the network utilizes two primary kernel types:

  • Spatial Kernels ($1 \times 3 \times 3$): Focused on capturing static appearance and texture.
  • Temporal Kernels ($3 \times 1 \times 1$): Focused on capturing motion across consecutive frames.
The different kernel types used in spatio-temporal modeling, including the spatial and temporal kernels combined in STH.

These kernels are interleaved across the channel dimension. This "braiding" ensures that the network learns to correlate motion and appearance features early and often. To further refine this, an attention mechanism adaptively weights the spatial and temporal outputs ($\alpha_S$ and $\alpha_T$) at each layer, allowing the model to prioritize motion or appearance based on the specific task or layer depth.

Experimental Evaluation

The authors evaluated STH on diverse benchmarks, including motion-heavy datasets like Something-Something and appearance-heavy datasets like Kinetics-400.

Key Results

  • Efficiency: STH is 10.7x faster than the popular I3D (3D CNN) model while achieving higher accuracy on temporal tasks.
  • Accuracy: On Something-Something V1, STH achieved a top-1 accuracy of 46.8%, vastly outperforming 2D baselines like TSN (19.7%).
  • Parameter Efficiency: A $3 \times 1 \times 1$ temporal kernel has only 3 parameters compared to the 9 parameters of a $3 \times 3$ spatial kernel. By replacing some spatial kernels with temporal ones, STH actually reduces the total parameter count compared to standard 2D convolutions.

Insights and Limitations

Analysis of the learned attention weights revealed a "hierarchy of time": temporal information becomes increasingly critical in the deeper layers of the network, where larger receptive fields can make sense of global motion.

A current limitation is hardware optimization. Because STH-Conv uses heterogeneous kernels in a single layer, it lacks the highly optimized CUDA support enjoyed by uniform operations. While theoretical FLOPs are low, further engineering is required to reach maximum inference speeds on current GPUs. Future work may explore automated ways to search for the optimal ratio of spatial to temporal channels at each layer.

Summary updated

BibTeX
@misc{li2020sth,
  author = {Xu Li and Jingwen Wang and Lin Ma and Kaihao Zhang and Fengzong Lian and Zhanhui Kang and Jinjun Wang},
  title = {{STH: Spatio-Temporal Hybrid Convolution for Efficient Action Recognition}},
  year = {2020},
  eprint = {2003.08042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.08042},
}
Figure