Rotation-Invariant Restricted Boltzmann Machine Using Shared Gradient Filters

Mario Valerio Giuffrida, Sotirios A. Tsaftaris

Abstract

Standard Restricted Boltzmann Machines (RBMs) lack inherent rotation invariance, often requiring extensive data augmentation or deep architectures to handle orientation variations. This paper presents the Explicit Rotation-Invariant Restricted Boltzmann Machine (ERI-RBM), which incorporates geometric priors directly into the architecture. By estimating dominant image orientations and sharing rotated gradient filters across multiple weight matrices, the ERI-RBM achieves superior performance on rotated digit recognition with significantly fewer parameters.

Introduction

In computer vision, "nuisance factors" such as translation, scaling, and rotation present significant challenges for generative models like the Restricted Boltzmann Machine (RBM). A standard RBM treats a digit rotated by 45 degrees as a fundamentally different pattern from its vertical counterpart. Traditional solutions—massive data augmentation or increasing network depth—are computationally expensive and often inefficient. The ERI-RBM addresses this by baking rotation invariance directly into the learning process, allowing a shallow model to match or exceed the performance of much deeper networks.

The ERI-RBM Architecture

The core innovation of the ERI-RBM is the Shared Gradient Filter mechanism. Unlike standard models that use a single global weight matrix, the ERI-RBM maintains a set of weight matrices, each corresponding to a specific angular bin.

Overview of the ERI-RBM shared gradient filter mechanism.

The learning process follows four key steps as illustrated above:

  1. Dominant Orientation Detection: For each input image $\mathbf{v}$, the model calculates a dominant orientation $\phi^t$ using a histogram of oriented gradients.
  2. Gradient Computation: The model computes the gradient $\nabla W^t$ associated with the weight matrix corresponding to the detected orientation.
  3. Filter Rotation: The learning gradient is rotated by the difference between the target orientation and the current orientation ($\phi^s - \phi^t$).
  4. Shared Learning: This rotated gradient $\nabla \hat{W}^t$ is added to the corresponding weight matrix $\nabla W^s$. This ensures that learning a feature at one angle automatically updates the model's knowledge of that feature at all other angles.

Experimental Results

The model was evaluated on the MNIST-rot dataset, which consists of 62,000 handwritten digits rotated by random angles between 0 and $2\pi$.

Performance Comparison

The ERI-RBM demonstrated significant improvements over both standard RBMs and previous invariance techniques:

  • ERI-RBM Accuracy: 92.08%
  • Standard RBM: 87.37%
  • TI-RBM (Transformation-Invariant RBM): 80.63%

Notably, the ERI-RBM achieved these results using only 100 hidden units, whereas competing deep architectures often require 500 or more units to reach comparable accuracy. This highlights the efficiency of incorporating geometric priors over simply increasing model depth.

Conclusion and Future Work

The ERI-RBM provides a mathematically grounded approach to rotation invariance by rotating filters during learning rather than augmenting input data. While highly effective on clean datasets like MNIST-rot, the model's performance is currently dependent on accurate initial orientation estimation. Future research will focus on improving robustness in the presence of cluttered backgrounds and mitigating interpolation artifacts introduced during filter rotation.

Summary updated

BibTeX
@inproceedings{giuffrida2016rotation,
  author = {Mario Valerio Giuffrida and Sotirios A. Tsaftaris},
  title = {{Rotation-Invariant Restricted Boltzmann Machine Using Shared Gradient Filters}},
  booktitle = {ICANN},
  year = {2016},
  doi = {10.1007/978-3-319-44781-0\_57},
}
Figure