Channel Max Pooling Layer for Fine-Grained Vehicle Classification

Zhanyu Ma, Dongliang Chang, Xiaoxu LiarXiv 2019

Abstract

Deep convolutional networks have recently shown excellent performance on Fine-Grained Vehicle Classification. Based on these existing works, we consider that the back-probation algorithm does not focus on extracting less discriminative feature as much as possible, but focus on that the loss function equals zero. Intuitively, if we can learn less discriminative features, and these features still could fit the training data well, the generalization ability of neural network could be improved. Therefore, we propose a new layer which is placed between fully connected layers and convolutional layers, called as Chanel Max Pooling. The proposed layer groups the features map first and then compress each group into a new feature map by computing maximum of pixels with same positions in the group of feature maps. Meanwhile, the proposed layer has an advantage that it could help neural network reduce massive parameters. Experimental results on two fine-grained vehicle datasets, the Stanford Cars-196 dataset and the Comp Cars dataset, demonstrate that the proposed layer could improve classification accuracies of deep neural networks on fine-grained vehicle classification in the situation that a massive of parameters are reduced. Moreover, it has a competitive performance with the-state-of-art performance on the two datasets.

Introduction

Fine-Grained Visual Classification (FGVC) is the task of distinguishing between very similar sub-categories, such as different models of cars. The challenge lies in high intra-class similarity; for example, a Honda Civic and a Toyota Corolla look much more alike than a dog and a toaster. Standard Deep Convolutional Neural Networks (DCNNs) often suffer from redundancy and parameter bloat, particularly at the transition from the final convolutional layer to the first fully connected (FC) layer. If the last convolutional layer has 2,048 channels, the resulting FC layer requires an enormous weight matrix, creating a parameter bottleneck.

Methodology: Channel Max Pooling

The authors propose the Channel Max Pooling (CMP) Layer to address these issues. Unlike standard max pooling, which operates spatially to reduce the width and height of a feature map, CMP operates across the channel dimension.

How it Works

The layer groups contiguous feature maps and computes the maximum value for each pixel position across that group. It is inserted specifically between the last convolutional/pooling layer and the first fully connected layer. By using a compression factor ($r$), the layer takes $r$ input channels and compresses them into a single output channel. This operation is fully differentiable, allowing it to be integrated into standard deep learning frameworks using the same back-propagation logic as spatial max pooling.

Unlike Global Average Pooling (GAP), which collapses an entire feature map into a single scalar and loses spatial context, CMP retains the spatial dimensions ($M \times N$). This preservation is crucial for identifying small, localized parts of a vehicle that are essential for fine-grained classification.

Experimental Results

The researchers evaluated their method on two primary benchmarks: the Stanford Cars-196 dataset (16,185 images, 196 models) and the CompCars dataset (52,083 images, 431 models).

Performance and Parameter Efficiency

The CMP layer consistently outperformed baseline models while using significantly fewer parameters. By compressing the feature space, the network is forced to prioritize the most discriminative signals, preventing it from relying on redundant features that might lead to overfitting.

Performance and parameter reduction on Cars-196 across different compression rates (r).

As shown in the results for Cars-196, DenseNet161 with a CMP layer ($r=16$) improved accuracy to 93.71% (from a 92.92% baseline) while reducing parameters from 82.2M to 30.0M—a reduction of approximately 64%.

Comparison with State-of-the-Art

On the CompCars dataset, the DenseNet161-CMP ($r=4$) reached 97.89% accuracy, outperforming the baseline and several complex state-of-the-art architectures.

Comparison of CMP-enhanced models against state-of-the-art methods on the CompCars dataset.

Discussion and Conclusion

The CMP layer offers a simple yet effective architectural tweak to improve generalization and efficiency in fine-grained classification. While DenseNet and ResNet architectures were robust to varying compression rates, VGG16 showed higher sensitivity, with accuracy dropping under aggressive compression ($r=32$).

Future work may involve testing CMP in other fine-grained domains, such as ornithology or botany, and experimenting with placing multiple CMP layers throughout the network to further aid feature learning.

Summary updated

Abstract

Deep convolutional networks have recently shown excellent performance on Fine-Grained Vehicle Classification. Based on these existing works, we consider that the back-probation algorithm does not focus on extracting less discriminative feature as much as possible, but focus on that the loss function equals zero. Intuitively, if we can learn less discriminative features, and these features still could fit the training data well, the generalization ability of neural network could be improved. Therefore, we propose a new layer which is placed between fully connected layers and convolutional layers, called as Chanel Max Pooling. The proposed layer groups the features map first and then compress each group into a new feature map by computing maximum of pixels with same positions in the group of feature maps. Meanwhile, the proposed layer has an advantage that it could help neural network reduce massive parameters. Experimental results on two fine-grained vehicle datasets, the Stanford Cars-196 dataset and the Comp Cars dataset, demonstrate that the proposed layer could improve classification accuracies of deep neural networks on fine-grained vehicle classification in the situation that a massive of parameters are reduced. Moreover, it has a competitive performance with the-state-of-art performance on the two datasets.
BibTeX
@misc{ma2019channel,
  author = {Zhanyu Ma and Dongliang Chang and Xiaoxu Li},
  title = {{Channel Max Pooling Layer for Fine-Grained Vehicle Classification}},
  year = {2019},
  eprint = {1902.11107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.11107},
}
Figure