Class Feature Pyramids for Video Explanation

Alexandros Stergiou, Georgios Kapidis, Grigorios Kalliatakis, Christos Chrysoulas, Ronald Poppe, Remco C. VeltkampWorkshops @ ICCV 2019 · DOI

Abstract

Deep learning has significantly advanced video recognition, yet the 3D Convolutional Neural Networks (CNNs) employed remain largely opaque. Understanding the specific spatio-temporal features that drive model decisions is crucial for transparency and trust. This paper presents Class Feature Pyramids, a "plug-and-play" visualization tool that maps the hierarchical internal representations of 3D CNNs. By utilizing a novel "back-stepping" algorithm, the method identifies class-informative features across different network depths, regardless of architectural complexity. Evaluated across multiple architectures and datasets, Class Feature Pyramids provide a human-interpretable view of how high-level action concepts are constructed from low-level features.

Introduction

While 3D CNNs have transformed video recognition, their internal logic is notoriously difficult to decipher. Unlike 2D image models, video models must account for a complex temporal dimension. Existing interpretability methods, such as Grad-CAM, often provide only a shallow understanding by focusing on the final output or the last layer. Furthermore, modern architectures utilize diverse components like residual connections and grouped convolutions, complicating the creation of a unified visualization tool. Class Feature Pyramids address this by providing an architecture-agnostic method to traverse these complex structures and reveal the hierarchical build-up of action concepts.

Methodology: The Class Feature Pyramid

The core innovation of this approach is the back-stepping process, which treats the neural network as a tree-like hierarchy of features. The algorithm proceeds through several key stages to generate the visualization pyramid.

Back-Stepping and Sigmoid Gating

The process begins at the final prediction layer, identifying the winning class. It then uses the class weights to highlight relevant features in the preceding activation map. To ensure clarity and filter out noise from visually similar but irrelevant activations, the authors introduce a Sigmoid Gating mechanism. This monotonic shifted logistic sigmoid function acts as a bottleneck, passing only the most dominant class-specific features back to the previous layer.

The back-stepping process identifies class-informative features by traversing from the final prediction layer back through the network's hierarchy, utilizing sigmoid gating to filter noise.

Architecture Invariance

A significant challenge in video explanation is the variety of modern network blocks. The authors developed specific rules to handle these:

  • Residual Connections: Handled by creating "tensors of ones" to act as direct links for feature propagation.
  • Grouped Convolutions: Kernels are "inflated" to match the activation space, ensuring accurate mapping.
  • Branched Convolutions: The deepest branch is selected as a base, with others padded by identity tensors to maintain structural integrity during traversal.

Experimental Evaluation

The method was rigorously tested across six distinct 3D CNN architectures, including I3D, ResNet-3D, and Multi-FiberNet. The evaluation spanned five major datasets covering standard action recognition (Kinetics-400, UCF-101, HMDB-51) and egocentric actions (EPIC-Kitchens, EGTEA Gaze+).

Results and Insights

The Class Feature Pyramids successfully revealed how models prioritize different cues. For instance, in action recognition, the visualizations clearly distinguish between "strong temporal cues" (e.g., the motion of hands) and "strong appearance cues" (e.g., the objects being manipulated).

Qualitative comparison of Class Feature Pyramid visualizations across various 3D CNN architectures and standard action recognition datasets, demonstrating consistent focus on class-relevant regions.

In egocentric datasets like EPIC-Kitchens, the tool demonstrated high precision. For a "cut" action, the Multi-FiberNet was shown to track the knife's contact point with the object in early layers, before specializing on broader contextual features like the cutting board in deeper layers. Computationally, the method is highly efficient; back-stepping through three layers of a ResNet-50-3D takes approximately 21ms, making it suitable for integration into standard research workflows.

Conclusion and Future Work

Class Feature Pyramids offer a robust, efficient, and architecture-agnostic way to peek inside the 3D CNN black box. While the method currently relies on a user-defined threshold for sigmoid gating, future work could explore automated thresholding. Beyond visualization, these pyramids hold potential for model pruning—identifying and removing uninformative kernels—and guiding teacher-student network training to improve model performance and interpretability simultaneously.

Summary updated

BibTeX
@inproceedings{stergiou2019class,
  author = {Alexandros Stergiou and Georgios Kapidis and Grigorios Kalliatakis and Christos Chrysoulas and Ronald Poppe and Remco C. Veltkamp},
  title = {{Class Feature Pyramids for Video Explanation}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00524},
}
Figure