Source-linked AI summary

Deep Rotation Equivariant Network

Junying Li, Zichen Yang, Haifeng Liu, Deng Cai

arXiv:1705.08623v2cs.CV

TL;DR

CNNs lack rotation equivariance, while prior deep rotation-equivariant methods incur time and memory overhead by rotating feature maps. DREN combines cycle, isotonic, and decycle layers to learn deep rotation-equivariant representations, and the paper reports improved results on Rotated MNIST and CIFAR-10 alongside faster execution than feature-map rotation methods.

  • Problem

    CNNs do not exploit rotation equivariance, and a prior deep approach incurs time and memory overhead by copying and rotating feature maps four times.

    Source: §1 · p. 1
  • Method

    DREN combines three convolutional layer types to learn deep rotation-equivariant representations with reduced running-time and memory requirements relative to.

    Source: §1 · p. 1, §4 · p. 2
  • Results

    DREN outperforms several state-of-the-art CNN architectures on Rotated MNIST and CIFAR-10, and its filter-rotation implementation takes half the feed-forward time of methods that rotate feature maps.

    Source: §6 · p. 8
  • Takeaways & Limitations

    DREN provides rotation-equivariant features mainly for rotations of kπ/2, with experiments also showing good performance for general degrees.

    Source: §6 · p. 8

    The framework mainly handles rotations of kπ/2; general-degree rotations are a future direction, and the approach trades off efficiency and performance.

    Source: §6 · p. 8

Abstract

from arXiv · show

Recently, learning equivariant representations has attracted considerable research attention. Dieleman et al. introduce four operations which can be inserted into convolutional neural network to learn deep representations equivariant to rotation. However, feature maps should be copied and rotated four times in each layer in their approach, which causes much running time and memory overhead. In order to address this problem, we propose Deep Rotation Equivariant Network consisting of cycle layers, isotonic layers and decycle layers. Our proposed layers apply rotation transformation on filters rather than feature maps, achieving a speed up of more than 2 times with even less memory overhead. We evaluate DRENs on Rotated MNIST and CIFAR-10 datasets and demonstrate that it can improve the performance of state-of-the-art architectures.

1. Introduction

CNNs provide translation equivariance but not rotation equivariance, limiting their fit to rotation-symmetric vision tasks. DREN targets deep rotation-equivariant representations while reducing the overhead of prior feature-map rotation methods, and the paper reports results on Rotated MNIST and CIFAR-10.

1. Introduction

  • CNN weight sharing makes learned representations translation equivariant, but CNNs do not exploit rotation equivariance for images that can appear at any angle.The introduction highlights microscopic and aerial images as examples.Source: §1 · p. 1
  • A prior deep approach uses four operations for rotation equivariance but copies and rotates every feature map four times, increasing time and memory costs.Source: §1 · p. 1
  • DREN is proposed to learn deep rotation-equivariant representations with the same output as but lower running-time and memory requirements.Source: §1 · p. 1
  • On Rotated MNIST, DREN outperforms existing methods with fewer parameters; on CIFAR-10, it improves state-of-the-art results at the same parameter count.Its implementation is reported to run more than twice as fast as, with less memory overhead.Source: §1 · p. 1

2. Related Works

Prior work addresses invariance and equivariance through several architectures, while the paper positions DREN as an efficient alternative to approaches that rotate feature maps. The cited methods also differ in whether they preserve directional features or handle general transformations.

2. Related Works

  • Earlier work explored invariant representations through RBMs, DBNs, convolutional RBMs, and probabilistic max-pooling, including approaches to local, shift, and translation invariance.Source: §2 · p. 1
  • CNN weight sharing provides translation equivariance, but CNNs do not handle input rotations, motivating rotation-focused variants [6, 15–18].Source: §2 · p. 1
  • Many rotation-equivariant methods stack rotated copies of images or features [9; 19; 20].Source: §2 · p. 2
  • Rotation convolution followed immediately by cross-channel pooling can prevent extraction of directional features [7], while other cited approaches include deep symmetry networks, group-action convolution, harmonic networks [22], and interpolation for general rotations.Source: §2 · p. 2
  • The approach rotates filters rather than feature maps, producing exactly the same results as [10] more efficiently, avoiding repeated feature-map rotations that cost time and memory.Source: §2 · p. 2

3. Equivariance and invariance

The section distinguishes equivariance, where representations transform predictably with inputs, from invariance, where they remain unchanged. It applies this framework to rotation and focuses on quarter-turn rotations, while noting performance on other angles.

3. Equivariance and invariance

  • A representation is equivariant when each input transformation has a corresponding feature-space transformation, so the representation changes in an expected way.Source: §3 · p. 2
  • Invariance is the stronger case in which the feature-space transformation is the identity and the representation remains unchanged under the considered input transformations.Source: §3 · p. 2
  • The paper targets rotation equivariance, and describes global pooling over the feature map as one way to lift it to rotation invariance [24].Source: §3 · p. 2
  • The framework mainly considers rotations by kπ/2 for k ∈ Z, the four rotations possible without interpolation, while experiments also show good performance for general degrees.Figure 1 contrasts the equivariant DREN features with the non-equivariant features of a typical CNN.Source: §3 · p. 2, Figure 1 · p. 2

4. Rotation equivariant convolution

The section introduces three convolutional layer types that work together to produce rotation-equivariant features. Its preliminaries formalize multi-channel convolution and rotation operations that support the layer design.

4. Rotation equivariant convolution

  • The framework combines three novel convolutional layer types to learn rotation-equivariant features.Source: §4 · p. 2

4.1. Preliminaries

  • The preliminaries express multi-channel convolution with hyper-matrices whose entries are filters or feature maps, equivalent to ordinary multi-channel convolution.For simplicity, the derivation omits bias and activation terms, assumes stride 1, and initially takes one group per layer.Source: §4.1 · pp. 2–3
  • The rotation operator rotates filters or feature maps by π/2 counterclockwise and obeys convolutional and additive distributive laws, with R^4 equal to the identity.Source: §4.1 · pp. 2–3
  • Cycle layers convert image rotations into cyclic permutations within groups, isotonic layers preserve their order, and decycle layers decode them into rotation-equivariant feature maps.Figure 2 distinguishes DREN from [10] by rotating filters, changing isotonic-layer ordering, and using decycle convolution rather than cyclic pooling.Source: §4.1 · p. 3, Figure 2 · p. 3

4.2. Cycle layers

Cycle layers encode rotations in filter channels, turning input rotation into a cyclic permutation; isotonic layers preserve that order through deeper convolutions.

4.2. Cycle layers

  • A cycle layer stacks four rotated copies of a filter and produces four corresponding feature maps for an input image.The rotated input produces the same output up to a permutation and rotation, so image rotation is represented as a cyclic change in channel order.Source: §4.2 · p. 3
  • Cross-channel pooling after a cycle layer can yield rotation equivariance, but its highly symmetric filters produce nearly trivial features.Isotonic layers are proposed as a replacement for this pooling step.Source: §4.2 · p. 3

4.3. Isotonic layers

  • A stack of any non-negative number of isotonic layers retains the permuted-rotated feature-map relationship.The layers preserve the cyclic permutation order produced by the cycle layer.Source: §4.3 · p. 4
  • Isotonic-layer filters restricted to the theorem's special form preserve cyclic permutation order through convolution.The form uses square filters A, B, C, and D of the same size.Source: §4.3 · p. 4

4.4. Decycle layers

Decycle layers convert the cyclic permutation information accumulated in preceding layers into rotation-equivariant representations.

4.4. Decycle layers

  • The decycle layer transforms cyclic permutation information from preceding isotonic layers into rotation-equivariant representations.Its required property removes the cyclic permutation while retaining the corresponding output rotation.Source: §4.4 · p. 4
  • A decycle layer uses a filter hyper-vector of the form [w, Rw, R2w, R3w], which differs from the cycle-layer form by a transpose.This filter structure decodes permutation information into rotation equivariance.Source: §4.4 · p. 4

4.5. Architecture of DREN

DREN places a cycle layer before zero or more isotonic layers and a decycle layer, yielding rotation-equivariant output with compatible operations and a route to invariance.

4.5.1. Framework

  • DREN begins with a cycle layer, applies k ≥ 0 isotonic layers, and ends with a decycle layer to produce rotation-equivariant output.The section states the equivariance property follows from the framework's earlier equations and extends to the general channel case.Source: §4.5.1 · pp. 4–5

4.5.2. Compatibility

  • Shared bias, batch-normalization scale and bias parameters, ReLU, dropout, and fully connected layers are compatible with the architecture.Bias values and batch-normalization parameters are shared across channels in a group.Source: §4.5.2 · p. 5
  • With stride greater than one, rotation equivariance is preserved only when image size n equals k · stride + kernel size for some k ∈ N.Otherwise, the filter may fail to convolve marginal image pixels.Source: §4.5.2 · p. 5

4.5.3. Invariance

  • Adding global pooling at the end of DREN can lift rotation equivariance to rotation invariance.The passage identifies global pooling as the operation that makes the output rotation invariant.Source: §4.5.3 · p. 5

4.6. Memory consumption analysis

The memory analysis favors rotating filters over feature maps, which are larger in typical settings and incur added rotation and copying costs.

4.6. Memory consumption analysis

  • Rotating and buffering filters is more efficient than rotating feature maps because filters are usually smaller.The passage compares the sizes of filters and feature maps in most cases.Source: §4.6 · p. 5
  • Rotating feature maps costs about 4 times more memory than rotating filters.The analysis attributes this to feature-map copying and merging for GEMM-based convolution, with feature maps usually much larger than filters.Source: §4.6 · p. 5
  • Feature-map rotation also adds time for rotation and copying operations; Section 5 compares this approach with the strategy in.The passage describes the comparison as a detailed one.Source: §4.6 · p. 5

4.7. Relations to other methods

DREN is presented as a general framework in which several existing networks arise as special cases. Specific layer settings connect it to cross-channel pooling and rotation-equivariant methods.

4.7. Relations to other methods

  • Setting every decycle hyper-matrix element to a normalized identity makes the layer cross-channel mean pooling, as used in [6–8].The cited condition is the identity matrix multiplied by a normalizing factor.Source: §4.7 · p. 5
  • A diagonal isotonic weight hyper-matrix makes feature maps convolve with rotated copies of one filter, as in [25].Source: §4.7 · p. 5
  • Cross-channel max pooling and RMS pooling can replace the final decycle layer while satisfying Equation (7) and preserving rotation equivariance.Max pooling is not itself a decycle layer; the passage identifies both alternatives by their satisfaction of Equation (7).Source: §4.7 · p. 5
  • With careful layer choices, DREN matches: cyclic slice maps to cycle, roll and stack to isotonic, and pooling to decycle.The cyclic-stack equivalent uses an isotonic layer with a diagonal weight hyper-matrix; DREN rotates filters rather than feature maps, reducing running time and memory overhead relative to.Source: §4.7 · p. 5

5. Experiments

Experiments on Rotated MNIST and CIFAR-10 compare DREN variants with existing models, study isotonic-layer depth, measure runtime, and visualize learned representations. Results include benchmark improvements, faster filter rotation, and rotation-consistent DREN predictions in the visualization.

5.1. Rotated MNIST

  • Rotated MNIST contains 62,000 digits with rotations uniformly sampled from [0, 2π]; DREN replaces Z2CNN’s first and last layers with cycle and decycle layers and intermediate layers with isotonic layers.Channels are doubled to keep parameter counts approximately fixed; the Z2CNN baseline has seven convolutional layers.Source: §5.1 · pp. 5–6

5.1. Rotated MNIST; 5.2. CIFAR-10

  • On Rotated MNIST, DRENMaxPooling outperforms prior models without more parameters; on CIFAR-10, r-NIN(conv1-4)×4 and r-Resnet-20(conv1-13)×4 outperform baselines with roughly the same parameter counts.The Rotated MNIST model has 25k parameters, 24% fewer than H-Net and equal to P4CNN and Dieleman et al.Source: §5.1 · p. 6, §5.2 · p. 6, Table 2 · p. 6

5.2. CIFAR-10

  • CIFAR-10 experiments replace initial convolutional layers in NIN and ResNet-20 with proposed layers, using ×4 variants that double their channels to keep parameter counts roughly unchanged.CIFAR-10 has 50,000 training and 10,000 test images; the experiment does not replace every convolutional layer because doing so did not achieve the best performance.Source: §5.2 · p. 6

5.3. How many isotonic layers should be applied?

  • The layer-count plots show opposite dataset trends: deeper isotonic stacks help Rotated MNIST, while CIFAR-10 peaks at partial replacement and can underfit as model complexity falls.Fewer than two isotonic layers also underperformed baselines.Source: §5.3 · pp. 6, 8, Figure 3 · p. 6

5.4. Running time of rotating filters and feature maps

  • Filter rotation ran twice as fast as feature-map rotation; pre-rotating and storing filters can bring runtime to that of an ordinary CNN.Memory consumption was not measured, so the comparison reports running time only.Source: §5.4 · p. 8, Table 4 · p. 8

5.5. Visualization of DREN

  • Across rotated inputs, DREN’s representations are exactly rotation-equivariant and its predictions consistent, while NIN changes representations and H-Net and P4-ALL-CNN-C are only partly equivariant.DREN’s automobile and truck representations are also similar, unlike those of the other models.Source: §5.5 · p. 8

6. Conclusion & Discussion

DREN learns deep rotation-equivariant representations, outperforming several state-of-the-art CNN architectures on Rotated MNIST and CIFAR-10. Its theoretical guarantee covers rotations of kπ/2, while general-degree rotations remain a future direction.

6. Conclusion & Discussion

  • DREN outperforms several state-of-the-art CNN architectures on Rotated MNIST and CIFAR-10.The framework is also reported to handle other rotation degrees experimentally.Source: §6 · p. 8
  • Half the forward-pass time is required by rotating filters compared with methods that rotate feature maps.The stated theoretical guarantee covers rotations of degree kπ/2 for k ∈ Z.Source: §6 · p. 8
  • General-degree rotations are identified as future work; extension to finite rotation groups depends on efficient filter rotation.The authors characterize the approach as a tradeoff between efficiency and performance.Source: §6 · p. 8
  • The authors propose designing convolutional layers for scale and, more generally, affine transformations as another direction that may improve CNN performance.Source: §6 · pp. 8–9
Loading 1705.08623v2…