Abstract
Deep Adaptive Temporal Pooling (DATP) is a learnable, plug-and-play module that automatically identifies and weights the most relevant segments of a video for activity recognition. By using a self-attention mechanism based on a Mixture of Gaussians (MoG), it moves beyond simple average pooling to achieve state-of-the-art results on major benchmarks while requiring only video-level labels for training.
Introduction
In human activity recognition, a video is typically treated as a sequence of frames or segments. However, not all frames are created equal. In a video of a "high dive," the actual action happens in a few seconds, while the rest of the clip might show the athlete preparing or swimming to the edge of the pool.
Most standard architectures, like the Temporal Segment Network (TSN), use average pooling to combine information across the video. This treats every segment as equally important, which "dilutes" the signal of the actual activity with noise from irrelevant frames. This leads to inference errors where background frames overwhelm action frames and suboptimal training where the model tries to learn features from irrelevant frames.
The DATP Framework
The authors propose DATP, a differentiable module that can be inserted into existing Convolutional Neural Networks (ConvNets).
The pipeline works as follows:
- Segmenting: A video is divided into $N$ segments, and a representative frame (or optical flow stack) is picked from each.
- Feature Extraction: A standard backbone (like ResNet) extracts features and computes initial softmax scores for each segment.
- The DATP Module:
- An Auxiliary ConvNet takes intermediate features as input and regresses the parameters (weight, mean, and variance) of a Mixture of Gaussians (MoG).
- A Weight Generator uses these parameters to assign a specific importance weight to each temporal segment.
- A Weighting Module performs a weighted sum of the segment scores to produce the final video-level prediction.
The use of the MoG model is key. Unlike learning discrete weights for each frame, the MoG model is smooth, parameter-efficient, and naturally handles actions that might shift in time or vary in duration. Crucially, the whole system is trained end-to-end using only the video-level class label.
Experimental Results
The researchers evaluated DATP on three widely used benchmarks: UCF101, HMDB51, and Kinetics. DATP achieved state-of-the-art performance across all tested datasets when integrated with a TSN-style backbone:
- UCF101: 95.9% accuracy.
- HMDB51: 72.3% accuracy.
- Kinetics: 77.1% Top-1 accuracy, outperforming the baseline TSN (76.6%) and I3D (74.2%) models.
Visualizations show that for an activity like "eating," the model successfully ignores the initial frames of people talking and places nearly all the weight on the frames where the actual eating occurs.
Key Insights
- Backpropagation as a Teacher: DATP improves the backbone feature extractor. Because the weights act as coefficients during back-propagation, the gradients are much stronger for action-relevant segments. The model "learns how to learn" from the right frames.
- MoG vs. Discrete Weights: Modeling temporal importance as a Mixture of Gaussians outperformed learning a weight for every single frame. The MoG provides a structural prior that matches how human actions actually occur.
- Efficiency: The computational overhead is minimal (less than 10% increase in running time), making it a practical addition to real-world pipelines.
Conclusion
DATP provides significant gains for "atomic" or "burst" actions. While its advantages are less pronounced for continuous activities with complex backgrounds, it represents a powerful, efficient step forward in temporal modeling for video understanding. Future work may explore more complex weight models or apply this strategy to tasks like video captioning.
Summary updated