Learning rotation invariant convolutional filters for texture classification

Diego Marcos, Michele Volpi, Devis Tuia

Abstract

Standard Convolutional Neural Networks (CNNs) are inherently translation-invariant but struggle to handle rotations without extensive data augmentation. This paper introduces a method to embed rotation invariance directly into the CNN architecture by "tying" filter weights to rotated versions of a single canonical filter. By employing orientation max-pooling, the proposed model achieves state-of-the-art performance on texture classification benchmarks while utilizing 10x fewer parameters than traditional approaches. Notably, the architecture demonstrates significant robustness in scenarios where training data is scarce, outperforming standard CNNs by a wide margin.

Introduction

In computer vision, the ability to recognize a pattern regardless of its orientation—rotation invariance—is a critical requirement. While CNNs are naturally adept at handling translations, they typically rely on "brute force" data augmentation to learn rotations. This process involves training the network on rotated versions of images so it eventually recognizes patterns at various angles.

However, this approach is fundamentally inefficient. It forces the network to learn redundant filters (e.g., separate filters for vertical and horizontal edges), inflating the parameter count and requiring massive datasets to achieve generalization. This paper addresses these limitations by encoding rotation invariance directly into the model architecture, a strategy particularly suited for texture classification where orientation is often arbitrary, such as in satellite imagery or microscopy.

Methodology

The researchers propose a shallow CNN architecture featuring rotatable filters. Rather than learning every filter independently, the network organizes filters into groups based on a shared canonical form.

Weight Tying and Rotation

For each filter group, the network learns only one "canonical" filter. The remaining filters in that group are generated by rotating this canonical filter using bicubic interpolation. To maintain consistency and avoid edge artifacts during rotation, a circular mask is applied within the square filter frame.

Orientation Max-Pooling

When an image is processed, it is convolved with all rotated versions of the filter within a group. An orientation max-pooling layer then selects the maximum response across these rotations. This mechanism ensures that if a texture rotates, the high-response signal simply shifts to a different filter within the group rather than being lost, providing a mathematically grounded form of invariance.

The Full Pipeline

The architecture consists of a single convolutional layer followed by orientation pooling, spatial pooling (combining max and average pooling), and a final classification layer. The authors also explored a hybrid approach that incorporates "global descriptors" based on the cross-power spectral density of the filters to capture broader frequency-domain information.

Experimental Results

The method was evaluated using the Outex texture classification benchmarks (TC_00010 and TC_00012). These datasets are specifically designed to test rotation invariance by providing training data at a single orientation and testing across eight different orientations under varying illumination conditions (inca, tl84, and horizon).

Performance and Efficiency

  • State-of-the-Art Accuracy: The proposed method achieved a peak accuracy of 99.84% on the Outex horizon dataset, surpassing previous specialized texture descriptors.
  • Parameter Efficiency: By tying weights, the model reduces the number of learned parameters by an order of magnitude compared to a standard CNN with an equivalent number of total filters. The results were achieved using only 16 canonical filters expanded to 32 rotations each.
  • The "Small Data" Advantage: The architecture excels when training data is extremely limited. When trained with only one image per class, the rotatable filter CNN maintained an accuracy of approximately 75-80% on the inca dataset, while standard CNNs dropped to 40-50%.

Qualitative Insights

Unlike standard CNNs trained with data augmentation—which often produce "blurry" or non-directional filters—this method learns highly directional, crisp filters. These filters resemble classic Gabor filters or edge detectors, suggesting that the model captures more meaningful physical structures inherent in the textures.

Discussion and Future Work

While the proposed method is highly effective for texture classification, its current implementation focuses on a shallow architecture. Future research is needed to determine how effectively this weight-tying logic scales to deep architectures like ResNets used for general object recognition. Additionally, while the number of learned parameters is lower, the computational cost remains high because the image must still be convolved against every rotated version of the filter. Future iterations may look toward more efficient computation methods or the use of steerable filters to further optimize the forward pass.

Summary updated

BibTeX
@inproceedings{marcos2016learning,
  author = {Diego Marcos and Michele Volpi and Devis Tuia},
  title = {{Learning rotation invariant convolutional filters for texture classification}},
  booktitle = {ICPR},
  year = {2016},
  doi = {10.1109/icpr.2016.7899932},
}
Figure