Temporal Factorization of 3D Convolutional Kernels

Gabriëlle Ras, Luca Ambrogioni, Umut Güçlü, Marcel A. J. van Gerven

TL;DR

3D convolutional neural networks (CNNs) are powerful for video analysis but are notoriously "data-hungry" and parameter-heavy. This paper introduces a novel factorization method that represents a 3D kernel as a single 2D slice that evolves over time through learned affine transformations, significantly reducing parameter counts and enabling effective training even with very limited data.

What Problem Does This Paper Address?

While 2D CNNs revolutionized image processing, extending them to video via 3D convolutions introduces a major hurdle: the "curse of dimensionality." A 3D kernel adds a temporal dimension, which causes the number of parameters to explode. This makes 3D CNNs difficult to train, prone to overfitting, and demanding of massive datasets and GPU memory.

Existing solutions often factorize 3D convolutions at the layer level (e.g., a 2D spatial convolution followed by a 1D temporal convolution). This paper tackles the problem at a more granular level: the individual kernel. The authors aim to create a more parameter-efficient architecture that can learn meaningful spatiotemporal features from just a handful of video examples.

Methods

The authors propose the 3D Temporal Transformer (3DTT) kernel. Instead of learning every weight in a $T \times W \times H$ (Time $\times$ Width $\times$ Height) volume, the model only learns:

  1. An initial 2D kernel slice ($K_0$).
  2. A set of transformation parameters ($\Theta$) that describe how that slice changes over time.

As shown in the architecture diagram below, subsequent temporal slices ($K_1, K_2, ... K_{T-1}$) are generated by applying spatial transformations (like rotation, scaling, and translation) to the previous slice.

Fig. 1. The architecture of the temporally factorized 3D kernel. Each temporal kernel slice is sampled using the previous temporal slice and a transformation matrix. The resulting kernel slices are concate- nated to form on the 3D kernel. Instead of learning the entire kernel we only learn K0 and the set of transformations Θ.

By using a bilinear interpolation sampler (similar to Spatial Transformer Networks), the model can learn these transformations via standard backpropagation. This approach imposes a sequential prior: it assumes that temporal features are often spatially transformed versions of one another, which drastically narrows the search space during training.

Datasets

To evaluate their method, the authors introduced Video-MNIST, a temporal variant of the classic handwritten digit dataset.

  • Video-MNIST: Contains 70,000 sequences of 30 frames each. Each digit class is assigned a specific dynamic behavior (e.g., digit '0' moves horizontally, digit '3' rotates clockwise).
  • This dataset forces the model to rely on both spatial (what digit is it?) and temporal (how is it moving?) cues for correct classification.
Fig. 2. One example from each Video-MNIST class. Instead of displaying the full 30 frames sequence we display 15 frames, skipping one frame each time, such that the figure fits within the margins of the page.

Key Insights and Ideas

  • Kernel-Level Factorization: Unlike previous work that separates spatial and temporal layers, this method keeps them integrated within a single kernel, potentially capturing more correlated spatiotemporal features.
  • Efficiency in Scarcity: The "sequential prior" is a powerful regularizer. By restricting how a kernel can change over time, the model doesn't "waste" capacity learning impossible temporal transitions, making it much more effective when training data is scarce.
  • Parameter vs. Performance Trade-off: The method allows for a significant reduction in parameters (up to 45%) while maintaining competitive accuracy, which is crucial for deploying models on edge devices or memory-constrained environments.

Key Results

The researchers compared a standard 3D CNN (LeNet-5-3D) against their factorized version (LeNet-5-3DTTN).

  • Low-Data Regime: The 3DTTN significantly outperformed the baseline when trained on very few videos. For instance, with only 10 to 50 training videos, the 3DTTN achieved an average accuracy of 0.65 compared to the baseline's 0.58.
  • High-Data Regime: When ample data was available (>100 videos), the 3DTTN remained competitive, achieving ~94% accuracy compared to the baseline's ~95%, but doing so with far fewer parameters.
Fig. 3. A comparison of the model using regular 3D convolutions with the model using our factorized 3D convolutions on the entire test split of Video-MNIST. An asterisk denotes if the difference between models is significant.

Detailed numerical results in the paper highlight that in several configurations, the 3DTTN achieved these results using roughly 222k parameters compared to the baseline's 496k.

Limitations and Future Work

The primary limitation acknowledged is that the method was tested on Video-MNIST, a synthetic dataset with well-defined affine transformations. Real-world video (like natural action recognition) involves much more complex, non-linear deformations and occlusions.

Future work will focus on:

  • Testing 3DTTNs on complex, real-world video benchmarks.
  • Exploring more sophisticated transformation functions beyond basic affine maps to capture more varied temporal dynamics.

Summary updated

BibTeX
@inproceedings{ras2019temporal,
  author = {Gabriëlle Ras and Luca Ambrogioni and Umut Güçlü and Marcel A. J. van Gerven},
  title = {{Temporal Factorization of 3D Convolutional Kernels}},
  booktitle = {BNAIC/BENELEARN},
  year = {2019},
}
Figure