Towards Visually Explaining Video Understanding Networks with Perturbation

Zhenqiang Li, Weimin Wang, Zuoyue Li, Yifei Huang, Yoichi Sato

Abstract

Deep neural networks for video recognition often operate as "black boxes," making it difficult to understand the features driving their decisions. We present STEP (Spatio-Temporal Extremal Perturbation), a model-agnostic method that identifies critical pixels and frames by intelligently masking video inputs. By enforcing a novel spatiotemporal smoothness constraint, STEP generates human-interpretable explanations that align with physical reality, outperforming existing gradient-based and naive perturbation methods in both spatial and temporal localization tasks.

The Challenge of Video Explainability

While methods for explaining image classification (e.g., highlighting a cat's ears) are well-established, extending these to video is complex. Existing techniques often suffer from two primary drawbacks:

  1. Architecture Dependence: "White-box" methods require access to internal gradients or activations, preventing direct comparisons between disparate architectures like Transformers and RNNs.
  2. Temporal Incoherence: Frame-by-frame application of image methods often results in "flickering" heatmaps. Furthermore, naive perturbations can fall into "adversarial traps," where a model maintains high confidence based on noisy, nonsensical masks that do not represent the actual action.

Methodology: Spatio-Temporal Extremal Perturbation (STEP)

STEP builds upon the concept of Extremal Perturbation to find a "preservation mask"—a set of weights (0 to 1) applied to the input video. If the model retains its correct prediction when only the high-weight regions are visible, those regions are deemed "important."

Comparison between backpropagation-based and perturbation-based attribution methods.

The framework introduces several key innovations:

  • EP-3D: Extends 2D optimization to the 3D video volume ($H \times W \times T$), optimizing the mask across all frames simultaneously.
  • Spatio-Temporal Smoothness Loss ($L_K$): To prevent noisy or "pathological" masks, a 3D ellipsoid kernel is used in a convolution operation. This forces the mask to be "clumpy" and continuous across space and time, ensuring explanations focus on coherent objects and motions.
  • Model-Agnosticism: By treating the network as a black box and observing only input-output changes, STEP can evaluate any video model regardless of its internal structure.

Experimental Setup and Insights

The authors evaluated STEP on UCF101-24 (human actions with bounding boxes) and EPIC-Kitchens (complex egocentric interactions).

A key insight is that smoothness acts as a regularizer for truth. Without temporal constraints, perturbation methods often find "adversarial" pixels that trigger high scores but lack semantic meaning. Forcing temporal smoothness aligns the explanation with the physical continuity of the real world. Additionally, the model-agnostic nature of STEP allowed for architectural comparisons: researchers found that CNN-RNN models (like VGG16-LSTM) typically require more visual information to reach the same confidence levels as 3D-CNNs (like R(2+1)D).

Key Results and Visual Quality

Performance was measured using the "Pointing Game" metric, which verifies if the explanation's most critical point falls within the ground-truth action bounding box.

  • Superior Accuracy: On UCF101-24, STEP achieved a spatial pointing accuracy of 56.7% for R(2+1)D models, significantly higher than Grad-CAM (47.5%) and the EP-3D baseline (47.6%).
  • Temporal Localization: STEP excelled at pinpointing key frames in the EPIC-Kitchens dataset, outperforming competitors in temporal localization.
  • Qualitative Clarity: As shown in the figure below, STEP produces significantly cleaner heatmaps that track actors or objects of interest without the irrelevant background noise or disjointed blobs common in other methods.
Qualitative comparison of STEP against Grad-CAM, Saliency Tubes, and the EP-3D baseline.

Limitations and Future Directions

Despite its accuracy, STEP is computationally intensive due to its iterative optimization process, requiring many forward passes per video. Future work may explore adaptive kernels to handle varying scales of action and extending the method to explain the internal workings of Video Transformers.

Summary updated

BibTeX
@inproceedings{li2021towards,
  author = {Zhenqiang Li and Weimin Wang and Zuoyue Li and Yifei Huang and Yoichi Sato},
  title = {{Towards Visually Explaining Video Understanding Networks with Perturbation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00116},
}
Figure