Paper commentary
Learning Spatio-Temporal Representation with Pseudo-3D Residual Networks
Pseudo-3D residual networks learn video features from cheaper 2D building blocks
- Problem Full 3D convolutions capture motion across frames but are costly to train and store. Frame-based 2D models only link temporal information at high levels.
- Method P3D ResNet splits each 3×3×3 filter into a 1×3×3 spatial filter and a 3×1×1 temporal filter. It places three block variants at different depths of a ResNet, instead of using one fixed block throughout.
- Results P3D ResNet reached 66.4% Video hit@1 on Sports-1M with 16-frame clips, against 64.6% for ResNet-152. On UCF101 with frame input only, it reached 88.6% accuracy averaged over three splits.
Why full 3D convolutions are hard to scale
Extending 2D convolution kernels to 3D lets a network see appearance and motion across consecutive frames, but the training cost is high. The 11-layer C3D model is 321MB, larger than the 235MB of the 152-layer ResNet-152, which makes a very deep 3D network hard to train. The authors also note that the model size of 3D networks grows quadratically compared with 2D CNNs.
Frame-based alternatives pool or recurrently combine per-frame features, but their temporal links sit on top-level features only. Correlations at low levels, such as edges in the early layers, are left largely unexploited in that approach. The proposed design instead builds temporal connections into the blocks at every level, from bottom to top.
Splitting a 3×3×3 filter into spatial and temporal parts
A 3D filter of size d×k×k has temporal depth d and spatial size k, and the 3×3×3 case is the one the design starts from. Such a filter splits into a 1×3×3 filter, which acts on each frame like a 2D convolution, and a 3×1×1 filter that runs along time like a 1D convolution. The spatial 1×3×3 filters can be initialized from the 3×3 kernels of a 2D CNN trained on images, which is what lets the design reuse image knowledge.
The starting point is the ResNet residual unit, where the output is the input passed through an identity mapping plus a learned residual function. \[ x_{t+1} = h(x_t) + F(x_t), \qquad h(x_t) = x_t \] The residual function F is learned with respect to the unit input through the shortcut, rather than as an unreferenced mapping.
Three ways to wire the spatial and temporal filters
Two choices define a P3D block: whether the spatial filter S and the temporal filter T act on each other directly or on separate paths, and whether both of them feed the final output directly.
P3D-A cascades the two filters, so T takes the output of S, and only the temporal output is added to the shortcut. \[ x_{t+1} = x_t + T(S(x_t)) \]
P3D-B runs S and T in parallel on the same input, and both outputs are added to the shortcut. \[ x_{t+1} = x_t + S(x_t) + T(x_t) \]
P3D-C keeps the cascade of P3D-A and adds a direct shortcut from S to the output, so the spatial output reaches the final sum as well.
Each P3D block uses the bottleneck layout of a 2D residual unit, with 1×1×1 convolutions at both ends of the 1×3×3 and 3×1×1 filters. The first 1×1×1 convolution reduces the input dimension and the last one restores it, so the spatial and temporal filters work on smaller tensors.
Block variants on UCF101 split1
Each variant replaces all residual units of ResNet-50 with one P3D block type, and the variants are compared on UCF101 split1. ResNet-50 was fine-tuned on UCF101 frames with 224×224 crops from 240×320 frames and a dropout rate of 0.9. The P3D variants start from ResNet-50 weights except for the new temporal convolutions and train on 16×160×160 clips with SGD.
The initial learning rate was 0.001, divided by 10 every 3K iterations, and training stopped after 7.5K iterations.
ResNet-50 reached 80.8% accuracy at 92MB and 15.0 frame/s. P3D-A ResNet reached 83.7%, P3D-B ResNet 82.8% and P3D-C ResNet 83.0%, each at 98MB. Their speeds are 9.0, 8.8 and 8.6 clip/s on one NVidia K40 GPU, and clips are not frames, so these speeds are not directly comparable with the frame/s figure of ResNet-50.
The mixed P3D ResNet chains P3D-A, P3D-B and P3D-C in that order, a choice motivated by structural diversity. It reached 84.2% accuracy at 98MB and 8.8 clip/s, exceeding P3D-A, P3D-B and P3D-C ResNet by 0.5%, 1.4% and 1.2% in accuracy respectively. This comparison uses split1 only, so it does not show how the ordering behaves on the other two splits.
Sports-1M pre-training and clip-level versus video-level accuracy
Sports-1M has about 1.13 million videos annotated with 487 sports labels, and about 9.2% of its URLs were dead. The experiments used the remaining 1.02 million videos, split 70%, 10% and 20% for training, validation and test. Training drew five 5-second clips from each training video, used a dropout rate of 0.1, started at a learning rate of 0.001 divided by 10 every 60K iterations, and ran for 150K batches.
At test time, 20 clips were sampled per video with one center crop each, and the video score averages the clip scores. P3D ResNet reached 66.4% Video hit@1 with 16-frame clips and ImageNet1K pre-training. ResNet-152 reached 64.6% with one frame per clip, and C3D pre-trained on I380K reached 61.1% with 16-frame clips. Measured by top-1 video-level accuracy, P3D ResNet is 1.8% higher than ResNet-152 and 5.3% higher than C3D.
Convolutional Pooling, which max-pools across 120-frame clips, reached 72.3% video hit@1 and stays above P3D ResNet in this table. The authors read this as a difference in clip length, since P3D ResNet takes 16 consecutive frames, a span of less than 0.5s.
P3D ResNet has a model size of 261MB, between the 235MB of ResNet-152 and the 321MB of C3D.
Action recognition transfer on UCF101 over three splits
The comparison groups methods into end-to-end CNNs fine-tuned on UCF101, CNN representation extractors with a linear SVM, and methods fused with IDT. With frame input only, P3D ResNet reached 88.6% accuracy on UCF101 averaged over three splits. This is 2.9% above TSN's frame-only score of 85.7% and 5.1% above ResNet-152 at 83.5%, which sits in the linear-SVM group.
The authors also note that P3D ResNet, which uses 2D spatial plus 1D temporal convolutions, beats C3D's direct 3D convolutions.
Fused with IDT, P3D ResNet reached 93.7%, against 92.0% for ResNet-152 with IDT and 90.4% for C3D with IDT. Encoding the res5c activations with the method of [22] gives 90.5%, which is 1.9% above the pool5 representation.
ActivityNet results and the data-shift explanation
Test labels are not public, so the results are reported on the validation set, with a linear SVM trained on each feature.
P3D ResNet reached 75.12% Top-1 accuracy, compared with 71.43% for ResNet-152, 65.80% for C3D and 64.70% for IDT. Its Top-1 margins over IDT, C3D, VGG 19 and ResNet-152 are 10.4%, 9.3%, 8.5% and 3.7% respectively.
C3D trails ResNet-152 by a wide margin here, which the authors attribute to data shift: ActivityNet covers daily-life activities while Sports-1M covers sports. The authors argue that the P3D model benefits from both image pre-training for the spatial part and video training for the temporal part.
Action similarity and scene recognition
For ASLAN, the outputs of four P3D layers (prob, pool5, res5c and res4b35) are taken for each 16-frame clip and averaged into video vectors. Twelve similarities per representation type form a 48-dimensional pair vector, which is L2-normalized and fed to a linear SVM. ASLAN has 3,697 videos from 432 action categories, evaluated with 10-fold cross validation on the official splits.
P3D ResNet reached 80.8% accuracy and 87.9% AUC, against 78.3% and 86.5% for C3D and 70.4% and 77.4% for ResNet-152, all with linear classifiers. The hand-crafted STIP, MIP and IDT+FV entries reach at most 68.7% accuracy in the same table.
Here C3D is ahead of ResNet-152, which the authors attribute to ResNet-152 learning only from image data, and P3D ResNet improves again on both.
On Dynamic Scene, P3D ResNet reached 94.6%, against 93.6% for ResNet-152 and 87.7% for C3D. On YUPENN it reached 99.5%, against 99.2% for ResNet-152 and 98.1% for C3D. Relative to the hand-crafted method listed as [5], the gains are 16.9% on Dynamic Scene and 3.3% on YUPENN. Dynamic Scene has 13 classes with 10 videos each, and YUPENN has 14 categories of 30 videos, both evaluated with leave-one-video-out.
Behaviour at low feature dimensions and embedding view
Principal component analysis was applied to the IDT, ResNet-152, C3D and P3D ResNet features on UCF101, with dimensions from 500 down to 10. P3D ResNet is higher than the other three at every dimension in that range. ResNet-152 loses accuracy more steeply than C3D and P3D ResNet as the dimension falls.
The authors trace this to ResNet-152 being learned on image data alone, which they expect to weaken its video features when the dimension is very low. A t-SNE view of 10K UCF101 videos is offered as a qualitative picture, and the authors judge the P3D embeddings to be better semantically separated than the ResNet-152 ones.
Limitations
All reported P3D ResNet results use video frames only, and optical flow or audio inputs are left to future work. The block-variant comparison covers UCF101 split1 only, and its speeds are measured in clips per second on one NVidia K40 GPU for the variants and in frames per second for ResNet-50.
On Sports-1M, Convolutional Pooling with 120-frame clips still scores above P3D ResNet on video hit@1. Further work is planned on attention, on how performance changes with more frames per clip, and on other input types. Sports-1M training and testing used the 1.02 million videos that remained after about 9.2% of URLs were dead.
Paper info
- Authors
- Zhaofan Qiu, Ting Yao, Tao Mei
- Venue
- arXiv · Preprint
- First published
- 2017-11-28
- Added
- 2026-11-12
- Updated
- 2017-11-28
- Version
- v1
- arXiv
- 1711.10305
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Zhaofan Qiu, Ting Yao, Tao Mei (2017). Learning Spatio-Temporal Representation with Pseudo-3D Residual Networks. arXiv:1711.10305v1. https://arxiv.org/abs/1711.10305v1
BibTeX
@misc{qiu2017learning,
title = {{Learning Spatio-Temporal Representation with Pseudo-3D Residual Networks}},
author = {Zhaofan Qiu and Ting Yao and Tao Mei},
year = {2017},
eprint = {1711.10305},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1711.10305v1}
}