Second-order Convolutional Neural Networks

Kaicheng Yu, Mathieu SalzmannarXiv 2017

Abstract

Standard Convolutional Neural Networks (CNNs) primarily extract "first-order" information—linear combinations of pixels. This paper introduces Second-Order CNNs (SO-CNNs), which explicitly model the relationships between features using covariance matrices. By replacing traditional fully-connected layers with a novel Covariance Descriptor Unit (CDU), SO-CNNs achieve higher accuracy and up to a 90% reduction in parameters compared to traditional architectures, particularly on texture-intensive datasets like MINC-2500.

Introduction

Traditional CNN architectures rely on layers that perform linear operations followed by non-linearities. While effective, these networks are essentially "first-order" machines: they detect the presence of features but do not explicitly capture the complex correlations between those features—such as how a specific color correlates with a particular spatial pattern.

In the pre-deep learning era, "Region Covariance Descriptors" (RCDs) were highly effective for recognizing textures and materials by capturing these second-order statistics. However, RCDs were typically handcrafted and difficult to integrate into modern end-to-end learning pipelines. SO-CNNs bridge this gap by introducing differentiable layers that learn these second-order relationships directly from data.

Comparison between First-Order (FO-CNN) and Second-Order (SO-CNN) architectures.

The Covariance Descriptor Unit (CDU)

The primary contribution of this work is the Covariance Descriptor Unit (CDU), designed to replace parameter-heavy fully-connected (FC) layers. The CDU consists of three specialized layers:

  1. Cov Layer: This layer receives the final convolutional feature maps and computes a covariance matrix. A "mean-padding" technique is employed to ensure the network retains first-order information (average feature intensity) while incorporating second-order insights.
  2. O2T (Second-order Transformation) Layer: Acting as the second-order equivalent of an FC layer, it performs a parametric transformation ($Y = WMW^T$) on the covariance matrix. This allows the network to learn which feature correlations are most discriminative for the target task.
  3. PV (Parametric Vectorization) Layer: To produce a final class prediction, the matrix must be converted into a vector. Rather than simple flattening, which would explode the parameter count, the PV layer uses a learned mapping to generate a compact, discriminative vector.
Detailed architecture of the Covariance Descriptor Unit (CDU) including Cov, O2T, and PV layers.

To maintain computational stability in high-dimensional networks like ResNet, the authors also introduced Multiple CDUs, which partition feature maps into groups to keep covariance matrices manageable.

Experimental Results

The SO-CNN approach was evaluated on CIFAR-10 and the MINC-2500 (Materials in Context) dataset. The latter is particularly relevant as material recognition relies heavily on texture, where second-order statistics are most beneficial.

Performance and Efficiency

  • VGG16 on MINC-2500: The SO-VGG16 reached 77.88% accuracy, significantly outperforming the standard VGG16's 72.14%. Remarkably, the second-order version required only 15.21M parameters, a 93% reduction from the original 237M.
  • ResNet50 on MINC-2500: SO-ResNet50 outperformed the standard version (80.45% vs 80.10%) while maintaining a similar parameter footprint, demonstrating scalability to modern architectures.
  • CIFAR-10: The SO-CNN outperformed the baseline FitNet (85.10% vs 83.15%) with approximately 40% fewer parameters.

Discussion and Conclusion

The results confirm that modeling feature relationships is often more efficient than simply increasing the depth or width of standard linear layers. The significant boost on the MINC dataset validates the hypothesis that texture recognition is inherently a second-order problem.

However, the architecture exhibits some sensitivity to initialization; the transition from convolutional layers to the CDU often requires a $1 \times 1$ "transition" layer to ensure training stability. Future research may explore "residual" second-order strategies to further enhance performance in ultra-deep networks without the computational overhead of full eigenvalue decompositions.

Summary updated

BibTeX
@misc{yu2017second,
  author = {Kaicheng Yu and Mathieu Salzmann},
  title = {{Second-order Convolutional Neural Networks}},
  year = {2017},
  eprint = {1703.06817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.06817},
}
Figure