Analyzing Filters Toward Efficient ConvNet

Takumi KobayashiCVPR 2018

Analyzing Filters Toward Efficient ConvNet

Deep Convolutional Neural Networks (ConvNets) have revolutionized computer vision but at a significant cost: millions of parameters requiring immense memory and compute. While typical analysis focuses on what neurons "see" (activations), this research shifts the lens to the structural patterns of the filters themselves. By representing these weights using fixed mathematical bases—specifically steerable filters and the Discrete Cosine Transform (DCT)—the author demonstrates how to drastically reduce model size while maintaining or even improving accuracy.

Rethinking Convolutional Layers

The core hypothesis is that trained filters are not random; they exhibit consistent spatial structures resembling multi-scale edge and blob detectors. The paper proposes replacing learned pixel-wise weights with coefficients of orthonormal steerable filters based on Gaussian derivatives.

Comparison between learned VGG-vd-16 bases and the proposed orthonormal steerable filters.

Instead of learning every pixel in a filter (e.g., 25 parameters for a $5\times5$ filter), the network only learns the coefficients for these basis functions. Analysis shows that for a filter of size $(2r+1)$, a derivative order of $N=2r$ achieves near-perfect reconstruction while roughly halving the parameter count.

Reconstruction error decreases as the derivative order $N$ of the basis increases across various filter sizes.

Optimizing Fully-Connected Layers via BoW

The transition from convolutional to fully-connected (FC) layers is often the most parameter-heavy part of a network (e.g., fc6 in VGG). Drawing inspiration from image compression, the author reformulates these layers using Discrete Cosine Transform (DCT) bases.

This leads to a Bag-of-Words (BoW) representation. By swapping the order of ReLU and pooling, the FC layer acts as a visual word aggregator. The author further introduces "dense-BoW," which removes local max-pooling before the FC layer to maintain spatial resolution, allowing for more robust global aggregation.

Key Results and Performance

The impact of these reformulations is substantial:

  • Massive Compression: For VGG-vd-16, the parameter count was slashed from 131.9M to 31.3M (over a 4x reduction) while actually improving Top-5 error on ImageNet from 7.88% to 7.10%.
  • Performance Boost: On AlexNet, the proposed methods reduced the Top-5 error from 16.58% to 14.07%, showing that the reformulation acts as a helpful regularizer.
  • Superior Transferability: The reformulated VGG-vd-16 outperformed the original version across almost all transfer learning tasks (e.g., jumping from 75.88% to 79.56% on the Action40 dataset), proving that the learned "visual words" are more robust than standard FC weights.

Conclusion

This work demonstrates that ConvNet filters naturally align with physical principles of edge detection. By defining these bases a priori rather than relying on post-hoc pruning, we can design inherently efficient architectures. While the study focuses on VGG and ResNet, the principles of filter-structure analysis offer a promising path for optimizing even more modern architectures.

Summary updated

BibTeX
@inproceedings{kobayashi2018analyzing,
  author = {Takumi Kobayashi},
  title = {{Analyzing Filters Toward Efficient ConvNet}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00589},
}
Figure