Explainable 3D Convolutional Neural Networks by Learning Temporal Transformations

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

Abstract

Standard 3D Convolutional Neural Networks (CNNs) are often viewed as "black boxes" when processing temporal data, making it difficult to interpret how they perceive motion. This paper proposes 3TConv, a novel 3D convolutional layer that factorizes temporal filters into explicit geometric transformations—scaling, rotation, and translation. This approach not only reduces the model's parameter footprint by up to 53% but also enables direct visualization of motion logic through simple temporal graphs.

Introduction: The Interpretability Gap in 3D CNNs

While 2D CNNs have benefited from mature visualization techniques like saliency maps, interpreting 3D CNNs for video data remains a significant challenge. In standard architectures, the temporal dimension is treated as an arbitrary axis in a high-dimensional tensor. Consequently, while we can identify which spatial regions a model attends to, understanding the specific motion dynamics it recognizes is difficult. Current visualization methods often yield noisy results, failing to distinguish between meaningful gestures and environmental artifacts like lighting changes. 3TConv addresses this by constraining the network to learn motion through human-understandable transformations.

Methods: Temporally Factorized 3D Convolution (3TConv)

The core innovation is the Temporally Factorized 3D Convolution (3TConv). Instead of learning an independent 3D weight volume, the model learns a single 2D spatial filter ($K_1$) and a set of temporal transformation parameters ($\Theta$). These parameters define how the 2D filter evolves across frames using affine transformations:

  • Scale ($s$): Captures zooming effects.
  • Rotation ($r$): Captures spinning motion.
  • Translation ($t_x, t_y$): Captures lateral movement across the frame.
Affine transformations (scaling, rotation, and translation) used to construct 3D filters in 3TConv.

By applying these transformations sequentially, the model constructs a 3D filter where each temporal slice is a geometrically transformed version of the previous one. This imposes a "smoothness" constraint that aligns with physical object motion in the real world.

Key Insights: Motion as an Interpretable Graph

A primary advantage of 3TConv is that motion logic becomes explicitly plottable. Because temporal changes are governed by four parameters ($s, r, t_x, t_y$), researchers can generate graphs showing exactly how a specific channel responds to motion over time.

Visualization of learned temporal parameters for a "Zooming Out" gesture, showing cumulative scale, rotation, and translation over time.

This transparency allows for the identification of "dataset personalities." For instance, analysis shows that the Jester dataset (hand gestures) requires a diverse range of temporal transformations, whereas UCF101 (action recognition) relies more heavily on static context. Furthermore, 3TConv facilitates transfer learning by allowing the integration of optimized 2D weights from image classification models (e.g., GoogLeNet, ResNet) while learning only the temporal logic from scratch.

Results and Performance

The 3TConv architecture was evaluated on the UCF101 and Jester benchmarks:

  • Efficiency: 3TConv uses 33% to 53% fewer parameters than standard 3D CNNs.
  • UCF101: A pretrained 3T-GoogLeNet achieved 63.7% accuracy, significantly outperforming the standard 3D-GoogLeNet (58.7%).
  • Jester: While standard 3D CNNs maintained a slight accuracy lead (89.9% vs. 84.9%), 3TConv provided a massive leap in explainability. Traditional activation maximization often produces abstract blobs, whereas 3TConv visualizations show structured transitions directly corresponding to the learned affine parameters.

Limitations and Future Work

The current implementation is restricted to affine transformations, which may not fully capture non-rigid deformations, such as a hand closing. This likely accounts for the performance gap on complex gesture datasets like Jester. Future research will explore more complex transformation functions that maintain interpretability while expanding the range of representable motions.

Summary updated

BibTeX
@misc{ras2020explainable,
  author = {Gabriëlle Ras and Luca Ambrogioni and Pim Haselager and Marcel A. J. van Gerven and Umut Güçlü},
  title = {{Explainable 3D Convolutional Neural Networks by Learning Temporal Transformations}},
  year = {2020},
  eprint = {2006.15983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.15983},
}
Figure