Abstract
Video data is characterized by complex temporal dynamics due to factors like camera motion and varying activity speeds. To capture these diverse patterns, we present the Temporal Adaptive Module (TAM), which generates video-specific temporal kernels based on the input feature map. TAM employs a two-level adaptive modeling scheme, decoupling the dynamic kernel into a location-sensitive importance map (local branch) and a location-invariant aggregation weight (global branch). TAM is a modular block that can be integrated into 2D CNNs to create TANet, a powerful video architecture with minimal extra computational cost. Experiments on Kinetics-400 and Something-Something datasets show that TAM consistently outperforms other temporal modeling methods, achieving state-of-the-art performance with similar complexity. Code is available at: https://github.com/liu-zhy/temporal-adaptive-module.
Introduction
Video recognition presents a unique challenge compared to image recognition due to the temporal dimension. Traditional 3D Convolutional Neural Networks (3D CNNs) are computationally expensive and utilize "video-invariant" kernels—fixed weights applied regardless of whether a video depicts high-speed action or slow-paced movement. While efficient alternatives like the Temporal Shift Module (TSM) exist, they often rely on rigid, hand-crafted operations.
The Temporal Adaptive Module (TAM) addresses these limitations by generating adaptive temporal kernels that change behavior based on the specific content of a video clip, accommodating diverse dynamics like camera motion and speed variations. Unlike previous methods that are location-adaptive (attention) or video-invariant (convolution), TAM combines both video-adaptive and location-adaptive properties to capture both short-term and long-term structures.
Methods: The Temporal Adaptive Module
TAM generates a unique temporal kernel for each video using a "squeeze-and-adapt" strategy. It first compresses spatial dimensions ($H \times W$) via global average pooling to produce a 1D temporal signal. This signal is then processed through two specialized branches:
- Local Branch ($\mathcal{L}$): Captures short-term information using 1D convolutions to produce a location-sensitive importance map, highlighting discriminative actions within a local window.
- Global Branch ($\mathcal{G}$): Analyzes the entire sequence using fully connected layers to generate a location-invariant aggregation weight, serving as a custom temporal kernel for long-term structure.
These branches are combined via multiplication and convolution and integrated into standard 2D CNN architectures (e.g., ResNet) to form "TANets," enabling 3D-like temporal modeling with the efficiency of 2D convolutions.
Evaluation and Results
TAM was evaluated on Kinetics-400 (appearance and motion) and Something-Something (Sth-Sth) V1 & V2 (motion-dominated).
- State-of-the-Art Accuracy: On the motion-heavy Sth-Sth V2 dataset, TANet achieved 66.0% Top-1 accuracy, surpassing models like TSM and TEINet. On Kinetics-400, TANet-50 (8 frames) reached 76.3% Top-1 accuracy.
- Efficiency: TANet-50 outperformed the popular "SlowFast" network while requiring significantly fewer GFLOPs (43G vs 66G). The module adds almost zero computational overhead compared to a standard 2D CNN.
- Versatility: TAM is a "plug-and-play" module, providing consistent performance gains across various backbones, including lightweight models like MobileNet V2 and ShuffleNet V2, making it suitable for edge deployment.
Discussion and Limitations
The success of TAM stems from its ability to disentangle local importance from global aggregation. By adapting to the content, the module learns distinct temporal distributions for different activities, such as "skydiving" versus "driving a car."
However, current limitations include channel-wise independence, where the kernel does not explicitly model correlations between feature channels. Additionally, while TAM focuses on temporal adaptation, future work could explore unified spatial-temporal adaptive approaches. Finally, while FLOPs are low, the branching structure may introduce minor latency overhead on specific hardware compared to static convolutions.
Summary updated