Feature Visualization in 3D Convolutional Neural Networks
Chunpeng Li, Ya-tang Li
TL;DR
This work tackles the interpretability of 3D convolutional kernels in video models by introducing a data-driven decomposition that separates texture and motion in the kernel's optimal activation input. It first optimizes a video input $V=\{V_t\}_{t=1}^T$ to maximally activate a target kernel, then decomposes $V$ into a static texture component $I$ and per-frame deformation fields $D_t$ through a warping operator $\mathcal{W}(I,D_t)$. A two-stage optimization is proposed: Stage 1 pixel-domain activation maximization and Stage 2 decomposition with a composite loss $\mathcal{L}_{s2}=\mathcal{L}_{recon}+\mathcal{L}_{smooth_D}+\mathcal{L}_{smooth_I}+\mathcal{L}_{static}$. Across models such as I3D, C3D, and 3D VQ-VAE, the method yields interpretable visualizations that reveal texture preferences and motion patterns, showing increasing spatiotemporal complexity with depth and providing actionable insights into 3D kernel representations.
Abstract
Understanding the computations of convolutional neural networks requires effective visualization of their kernels. While maximal activation methods have proven successful in highlighting the preferred features of 2D convolutional kernels, directly applying these techniques to 3D convolutions often leads to uninterpretable results due to the higher dimensionality and complexity of 3D features. To address this challenge, we propose a novel visualization approach for 3D convolutional kernels that disentangles their texture and motion preferences. Our method begins with a data-driven decomposition of the optimal input that maximally activates a given kernel. We then introduce a two-stage optimization strategy to extract distinct texture and motion components from this input. Applying our approach to visualize kernels at various depths of several pre-trained models, we find that the resulting visualizations--particularly those capturing motion--clearly reveal the preferred dynamic patterns encoded by 3D kernels. These results demonstrate the effectiveness of our method in providing interpretable insights into 3D convolutional operations. Code is available at https://github.com/YatangLiLab/3DKernelVisualizer.
