Theta-RBM: Unfactored Gated Restricted Boltzmann Machine for Rotation-Invariant Representations

Mario Valerio Giuffrida, Sotirios A. TsaftarisarXiv 2016

Abstract

The $\theta$-RBM is a novel variant of the Restricted Boltzmann Machine designed to learn rotation-invariant features without the need for massive dataset augmentation. By rotating gradient filters during the learning process rather than the input images themselves, the model achieves a state-of-the-art invariance score of ~90% on the mnist-rot dataset while maintaining high discriminative power. This approach avoids common issues like aliasing and incomplete transformation coverage inherent in traditional data augmentation methods.

Introduction

In computer vision, a robust representation of an image should ideally be invariant to nuisance factors like rotation. Standard neural networks, including the classic Restricted Boltzmann Machine (RBM), struggle with this. The traditional solution is dataset augmentation—manually rotating every training image. However, this introduces aliasing (blurring from pixel interpolation) and rarely covers the entire continuous space of possible transformations. The $\theta$-RBM addresses this by building rotation invariance directly into the model's architecture and learning rule.

Methods and Architecture

The $\theta$-RBM is an "unfactored gated" Boltzmann machine. Unlike a standard RBM with two layers (visible and hidden), the $\theta$-RBM adds a third "gate" layer ($r$) that indicates the dominant orientation of the input image.

The θ-RBM architecture featuring a gated orientation layer (r) and a 3D weight tensor (W).

The relationship between the image ($x$), the rotation ($r$), and the hidden features ($h$) is captured by a 3D weight tensor ($W$). This tensor acts as a stack of "slices," where each slice corresponds to a specific rotation angle.

Rotating the Gradient, Not the Data

During training via the Contrastive Divergence algorithm, the model identifies the dominant orientation of an input patch and calculates the gradient for that specific orientation's weight slice. Crucially, it then mathematically rotates that gradient to update all other slices in the tensor. This ensures that weight slices are rotated versions of one another, mathematically guaranteeing consistent feature learning across different angles without the fuzzy artifacts caused by pixel interpolation.

Key Results

The model was primarily evaluated on mnist-rot (MNIST digits randomly rotated 0-360°) and standard MNIST.

  • Superior Invariance: The $\theta$-RBM achieved an invariance score (measured by the $\gamma$-score) of ~90%, significantly higher than the standard RBM and the previous state-of-the-art Transformation-Invariant RBM (TI-RBM).
  • Classification Accuracy: When learned features were used for classification, the $\theta$-RBM significantly outperformed competitors. As shown in the performance data, the model achieved a testing error of approximately 10% on mnist-rot, compared to ~15-16% for a standard RBM.
Classification error rates on the mnist-rot dataset comparing θ-RBM against standard and transformation-invariant RBMs.
  • Generalization: Even when trained on standard, unrotated MNIST, the $\theta$-RBM learned features that generalized to rotated test data far better than its competitors, demonstrating the power of its architectural invariance.

Conclusion

The $\theta$-RBM provides a mathematically grounded method for achieving rotation invariance by shifting the transformation logic from the data to the filter gradients. While currently focused on rotation and dependent on dominant orientation estimation, the success of this "unfactored gated" approach suggests a promising path for incorporating other affine transformations like scaling or shearing into generative models.

Summary updated

BibTeX
@misc{giuffrida2016theta,
  author = {Mario Valerio Giuffrida and Sotirios A. Tsaftaris},
  title = {{Theta-RBM: Unfactored Gated Restricted Boltzmann Machine for Rotation-Invariant Representations}},
  year = {2016},
  eprint = {1606.08805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.08805},
}
Figure