Elamur Research

Exploiting Cyclic Symmetry in Convolutional Neural Networks

Paper · 2016 · Sander Dieleman, Jeffrey De Fauw and Koray Kavukcuoglu

Summary

A plankton image can turn sideways without changing the species it shows. A building in an aerial image can turn sideways too, but the outline marking its pixels must turn with it. An ordinary convolutional neural network can practice on rotated examples and learn both kinds of behavior. It may still spend some of its parameters learning several versions of the same feature. The authors ask whether the network can share a detector across orientations by design, much as a convolution already shares a detector across locations in an image.

Their method starts by sending an image and its quarter-turn copies through the same layers. It then offers different ways to bring those streams together. Cyclic rolling lines up the feature maps from different orientations and gives each stream access to the others, so a later filter can use their information jointly. Cyclic pooling combines corresponding outputs. For a classification task, it can make the prediction invariant, which means that turning the input leaves the answer unchanged. For a task that labels individual pixels, the network first aligns the output maps so that the final prediction turns with the image. This predictable change is called equivariance. A further operation, cyclic stacking, can pass the separate orientation responses to an ordinary downstream network when orientation sharing is useful and the final task calls for more flexibility.

The paper tests these choices on plankton classification, galaxy morphology prediction and building segmentation in aerial imagery. All baselines were trained with random rotations too, so the comparison asks what the architecture adds when augmentation is already available. On Plankton, averaging the orientation responses before applying a rectifying nonlinearity gave the best cross-entropy among the pooling choices tried. Adding rolling throughout the network while reducing filter counts substantially lowered the number of learned parameters on all three datasets, with limited changes in predictive performance. For Massachusetts buildings, a rolling configuration with roughly the baseline’s parameter count improved performance. The paper also reports modest gains from cyclic pooling on Galaxies and Massachusetts buildings.

The distinction between the tasks and the architecture matters. The labels can behave consistently under arbitrary image rotations, while the architectural guarantee covers quarter turns. These rotations fit the square sampling grid and can be performed by rearranging existing values. The tradeoff is that the network carries more activations between slicing and pooling. Fewer learned weights and less computation are therefore separate goals, and the experiments mainly establish the value of sharing the weights.

Deep dive: Exploiting Cyclic Symmetry in Convolutional Neural Networks

Exploiting Cyclic Symmetry in Convolutional Neural Networks shows how sharing filters across quarter turns can improve image predictions with fewer parameters. · about 34 minutes to read

The problem and its context

Why sharing weights across locations leaves another problem

A convolution applies the same learned filter at many locations in an image. If the filter detects an edge in one area, it can also respond when a similarly oriented edge appears elsewhere. The resulting feature map records where each response occurred. Moving a pattern moves its response, which is the intuition behind translation equivariance. The paper presents this reuse as a central reason that convolutional networks can work with large images without assigning a separate bank of weights to every position.

Spatial pooling serves a different purpose. A layer can summarize responses within a small region, leaving some details of their precise positions out of the result. The paper describes this as local translation invariance. Stacks of convolution and pooling can build larger patterns from smaller ones, with deeper features drawing on a wider region of the image. The architecture already makes decisions about which changes should leave a feature recognizable and which details the network should retain.

Turning an image poses a separate problem. A detector for an edge may respond strongly at many positions while still preferring a particular orientation everywhere. If the same kind of edge appears at other angles, training may lead the network to learn additional filters that resemble rotated copies of the original. Each filter then has its own learned weights even though the relationship among the shapes could have been specified in advance. The authors regard this as a possible source of redundancy, especially when objects appear at many angles and the task treats those angles alike.

The intended behavior depends on what the output represents. In species recognition, the position of a feature in the photograph can be evidence for the species, while the angle at which the whole organism was photographed has no bearing on the label. When the output records the locations of buildings, relationships among positions matter all the way to the prediction. Turning an aerial image changes which pixels belong to a building. The appropriate output preserves that spatial information by turning in the same way. Both tasks benefit from a predictable response to rotation, but they require different ways of expressing it at the output.

This is why the paper treats invariance and equivariance separately. Equivariance specifies how a representation changes under a transformation. Invariance is the case in which it stays the same. A feature map can retain where and at what orientation a pattern was detected, and the classifier can use that information before producing an invariant answer. Deciding where to remove orientation is therefore part of the design. Pooling early affects the information available to later layers as well as the transformation behavior of the eventual prediction.

What augmentation and averaging can provide

The paper describes data augmentation as the straightforward way to encourage invariance. During training, the procedure applies a randomly chosen transformation to an example and supplies the appropriate target. For a species label, the same answer remains appropriate. A spatial target has to stay aligned with the transformed input. Training on such examples gives the network an opportunity to develop the desired behavior across orientations. The weight-sharing pattern in the underlying network, however, still comes from its architecture. Correct predictions for the transformed training examples alone do not guarantee the same behavior on a fresh example.

Another established option is to run the same trained network on several transformed copies at prediction time and combine the answers. This can reduce sensitivity to the particular view chosen as input. Each additional view calls for another forward evaluation, and the network used within each evaluation can still contain separately learned detectors for similar patterns. The paper presents this general strategy as a way to encourage invariance and discusses its lack of a general guarantee. The narrower cyclic construction makes a stronger statement because every allowed turn reorders a complete, fixed set of views. For an invariant readout, averaging that exact set is a special case with an architectural explanation for its behavior.

The authors keep augmentation in their own experiments because it addresses a broader range of changes than their weight-sharing rule. A random rotation can expose a network to an angle that is not a quarter turn. The sharing rule covers the orientations at which a grid can be rearranged exactly. A training run can use both approaches. The architectural constraint defines a relationship the network can use on any input, and augmentation provides examples of variation beyond that relationship.

Earlier ways to handle orientation

Several earlier approaches imposed transformation relationships on learned weights. The authors describe rotation-aware image priors using Markov random fields and work using tied weights in restricted Boltzmann machines. For convolutional networks, they discuss a particularly close precedent in which rotated versions of an image are evaluated with shared filters and gradually pooled across layers. In that design, successive pooling stages remove orientation information on the way to an invariant output. The cyclic framework in this paper can leave those responses separate until the point where the task calls for their combination.

The authors’ earlier galaxy work also processed rotated and reflected pictures through a shared convolutional stack. It joined the resulting feature maps and sent them into dense layers, whose units can combine the incoming features without preserving their spatial arrangement. The network could share detectors across orientations, and the dense part could still use the positions of those responses in the joined representation. In the new framework, slicing followed by stacking gives a direct description of this kind of architecture. Rolling extends the idea by allowing intermediate layers to exchange aligned responses while keeping the orientation pathways available.

Other work applied transformed copies of filters within individual convolutional layers and then max-pooled their activations. According to the paper, that approach was useful in higher layers and for selected filters, where the inclusion of other features helped preserve orientation information. An approach devised for Go constrained the filters themselves to obey reflection and rotation symmetries. The authors point out that this restricts the patterns such filters can detect accurately. Applying an unconstrained filter in several coordinate frames allows it to respond to an asymmetric structure while establishing a known relationship among the responses. Earlier work on deep symmetry networks had already set out a more general approach to features over transformation groups.

The paper also describes work that helps a network learn how its features should behave under transformations. Examples include grouping filters whose responses can be pooled and learning representations from templates that accommodate transformations such as out-of-plane rotation. A different approach estimates the transformation for each input. A network can use that estimate to change the coordinates in which it processes the example, as in Spatial Transformer Networks.

A related line of research measures the transformation behavior of representations after training. The authors cite evidence that rotations and reflections lead to roughly linear changes in some lower-layer convolutional features. Such a measurement asks how closely a learned representation matches a predictable transformation. The cyclic framework instead fixes the relevant change in advance by specifying how feature tensors are rearranged. The earlier measurement work is described in Understanding image representations by measuring their equivariance and equivalence.

The method, step by step

Choose the rotations that fit the grid

Think of a square image as a matrix. A quarter turn rearranges its entries. Transposing the matrix and reversing rows or columns suffices to implement the relevant turns. No new pixel value needs to be estimated. A turn at a general angle moves the sampling positions off the old grid, so producing an image on the new grid requires interpolation, an estimate of values between available samples. The authors choose transformations that avoid that extra work and retain an exact correspondence among sampled positions.

k · 90°, k ∈ {0, 1, 2, 3}

Here k counts clockwise quarter turns, · denotes multiplication, and ° denotes degrees. The symbol ∈ says that k is selected from the set inside braces. The value 0 gives the original orientation. The other values select the remaining grid-aligned orientations.

Together these rotations constitute the cyclic group C₄. A group here is a set of transformations that can be composed while remaining in the set and that includes the identity and the inverse of each transformation. The subscript ₄ denotes the order of the group, or the number of transformations. The word cyclic describes how the same quarter turn steps through the set and returns to the starting orientation. Turning an image by an allowed angle consequently changes the order in which the full set of views is encountered. That reordering is the basis for the rest of the framework.

A rotation can have different visible effects at different points in a network. An image or a pixelwise score map has physical positions that can turn. An ordered collection of internal pathways can respond to the same input turn by permuting the pathways. A category prediction can stay fixed. The paper’s general definition accommodates each case.

f(Tx) = T′f(x)

Here x is an input, f is the function applied to it, and T is a transformation from the chosen class 𝒯 of input transformations. The expression Tx is the transformed input. The output transformation T′ acts on f(x), the result of applying f to the original input. The equality must hold for every x for each T in the class, with the corresponding T′ fixed for that input transformation. Invariance uses the identity as T′. The paper calls the case where T′ is the same transformation as T same-equivariance. Turning a spatial output by the same angle as its input is one example. Applying the same cyclic permutation to pathway slots before and after a rolling operation is another.

Slice the input into orientation pathways

The first operation, cyclic slicing, constructs all the orientations and puts them in the minibatch. A minibatch is the collection of examples processed together by a layer. The batch axis ordinarily distinguishes examples. After slicing, it also holds groups of copies distinguished by orientation. Each group contains corresponding views of the original batch. The network applies the same weights to each view, because ordinary layers process the entries of a minibatch with shared weights.

How a cyclic network shares orientation information

The steps in order.

How a cyclic network shares orientation informationStep 1: Make the quarter-turn views1. Make the quarter-turn viewsStep 2: Process views with shared filters2. Process views with shared filtersStep 3: Align and exchange features by rolling3. Align and exchange features by rollingStep 4: Compute task scores in each pathway4. Compute task scores in each pathwayStep 5: Pool scores, aligning spatial outputs when needed5. Pool scores, aligning spatial outputs when needed

The rotation acts on the input while the filter stays in its frame. As a result, the relative orientation of the image pattern and the filter changes. Imagine a filter that responds to a vertical edge. When a horizontal edge in the original image is turned into a vertical one in another view, the same weights can detect it there. Turning that response map back puts the response at the corresponding location in the original frame, with its orientation of detection still identifiable through the pathway that produced it.

This explains why the resulting feature maps cannot generally be recovered by taking the response from a single view and turning it. A feature may be visible to a particular filter in one pathway and weak in another. The collection represents multiple evaluations at distinct relative orientations. For convolution, these evaluations can also be understood as turning the filter while holding the image fixed, with a corresponding adjustment to the coordinates of the result. The authors use turned activations for convenience in implementation.

S(x) = [x, rx, r²x, r³x]ᵀ

The symbol S denotes slicing, x is a minibatch tensor representing images or feature maps, and r is a clockwise 90° rotation applied to the spatial dimensions. The superscripts ² and ³ denote repeated application of r. The brackets collect the orientation groups in the indicated order, and the superscript ᵀ marks the displayed list as a column. This column represents concatenation along the batch axis. The result is a 4× larger effective batch.

Slicing gives the original input rotation a simpler representation. Suppose the input has already been turned by r. Its first entry after slicing is the view that previously came next. Continuing through the other rotations gives the same contents in a shifted order, with the old first view wrapping to the end.

S(rx) = [rx, r²x, r³x, x]ᵀ = σS(x)

Here S, x and r have the meanings just given. The column marked by ᵀ again groups the views on the batch axis. The symbol σ denotes the cyclic permutation that moves each following entry into the preceding slot and wraps the first entry around to the last. The equalities say that a clockwise input turn has become a shift of the orientation groups. Any layer that applies the same transformation independently to every group commutes with this shift. Its own filters can remain orientation-sensitive because the shift carries complete inputs from slot to slot.

Pool when the task can give up the pathway axis

Once the network has a prediction or a representation from each view, cyclic pooling brings the results together. A classifier can produce a vector with the same set of answer coordinates in every pathway. In that case the vectors already agree about which coordinate refers to which answer. Averaging the vectors works directly. A rotation only permutes the collection of vectors, and their average is independent of the order in which they are passed to the pooling function.

A pixelwise network faces an additional alignment problem. The location recorded at a given row and column in one pathway typically refers to a different point in another. Before pooling, the network applies the inverse rotation appropriate to each pathway, bringing their maps into the same frame. Pooling can then combine scores that refer to the same physical position. If the input turns, slicing changes which pathway supplies each map and the inverse rotations shift accordingly. The reconciling step leaves the pooled map turned in the same way as the input.

𝐱 = [x₀, x₁, x₂, x₃]ᵀ

Here 𝐱 is the collection of pathway tensors for the current batch. The symbols x₀, x₁, x₂ and x₃ identify tensors in orientation order, with the subscripts indexing their slots. The brackets and ᵀ display that organization as a column, corresponding to concatenation on the batch axis. The tensors can contain intermediate features or task scores. Each has undergone the processing applied up to the point where the collection is read.

P(𝐱) = p(x₀, r⁻¹x₁, r⁻²x₂, r⁻³x₃)

The symbol P denotes cyclic pooling, and p denotes a pooling function independent of the order of its arguments, such as a mean or a maximum. The indexed arguments are the tensors from 𝐱. The powers ⁻¹, ⁻² and ⁻³ denote the corresponding numbers of inverse quarter turns under r, which bring the tensors into the frame of x₀. For spatial maps the pooling applies across aligned values at each position. For vectors with no spatial layout, the inverse rotations are omitted. The batch axis then returns to the size it had before slicing.

Pooling has two distinct effects. It concludes the parallel orientation computation by replacing the separate views with a single representation. It also sets the transformation behavior available to subsequent layers. If the pooled representation is invariant, a downstream layer that receives it sees the same representation after an allowed turn. If the pooled representation is spatial and turns with the input, the next operation has to respect that transformation for the guarantee to continue. An ordinary orientation-sensitive convolution on that map can end same-equivariance because the map rotates relative to the filter. This is the reason to do spatial cyclic pooling near the output when a network still has more ordinary convolutions to perform.

Roll to share evidence before the output

A sliced network with pooling at the end can keep its pathways independent until the final readout. That is sufficient to establish the output symmetry. It leaves each pathway’s intermediate layers with features computed in just its own view. Cyclic rolling addresses this issue. It gives the next layer in each pathway access to the features detected from all the views, aligned in the coordinate frame of that pathway.

The building block is cyclic stacking. Given the pathway collection, it uses the same inverse rotations as pooling. It then concatenates the aligned feature maps on the feature axis. This axis, also called the channel axis, lists the maps associated with different detectors or intermediate features. Concatenation preserves the individual responses and their ordering. The next layer can learn how to use evidence from different relative orientations because the contribution of each view occupies known channels.

T(𝐱) = [x₀, r⁻¹x₁, r⁻²x₂, r⁻³x₃]

Here T denotes cyclic stacking, distinct from the generic input transformation in the definition of equivariance. Its input 𝐱 contains the indexed pathway tensors x₀ through x₃. The inverse powers of r again align the maps to the first pathway. The row inside brackets means that the aligned tensors are concatenated along the feature axis. The result has the batch size of a single pathway and the joined channels of all pathways.

To make this useful without losing the cyclic shift rule, the authors apply the same procedure with each possible first pathway. In the original ordering, x₀ supplies the reference. After a cyclic shift, x₁ supplies the reference and the other tensors are aligned relative to it. Repeating the process gives the other pathways their own versions of the joined representation. Each receives the same kinds of relative-orientation channels in the same order. Their physical frames and the source of each channel group vary together.

R(𝐱) = [T(𝐱), T(σ𝐱), T(σ²𝐱), T(σ³𝐱)]ᵀ

The symbol R is the cyclic rolling operation. Here T is stacking, 𝐱 is the ordered collection of pathway tensors, and σ is the cyclic shift on their batch groups. Its powers ² and ³ denote repeated shifts. Every entry inside brackets is a joined feature tensor viewed in its own reference frame. The final ᵀ indicates that these entries are batched as separate pathways again.

The paper also writes the operation in a form that shows the feature groups directly.

R(𝐱) = [𝐱, σr⁻¹𝐱, σ²r⁻²𝐱, σ³r⁻³𝐱]

Here R, 𝐱, σ and r have the same meanings. A rotation acts on the spatial maps in the whole collection, while the permutation reorders the pathway groups. Reading the brackets horizontally, the first block supplies each pathway with its own unrotated features. Each subsequent block supplies features from a different shift of the pathway collection and counter-rotates those features by the corresponding amount. The brackets in this expression denote placement along the feature axis, with the pathway batch axis present in every block.

Because the same stacking procedure is applied from every possible starting slot, changing which orientation enters the first slot changes which joined representation appears first. The same relation holds for all the remaining slots. That is the formal property that allows repeated rolling inside the network.

R(σ𝐱) = σR(𝐱)

The symbol R is rolling, σ is the batch-axis permutation of the orientation pathways, and 𝐱 is the pathway tensor collection. The left side rolls features whose input pathways have already been shifted. The right side performs the shift after rolling the original features. Their equality means that rolling is same-equivariant with respect to the pathway permutation. It can therefore pass the rotation behavior established by slicing to later layers that process each pathway with shared parameters.

Rolling builds more channels out of the responses that already exist. As the authors note, this lets a convolution use fewer learned filters while maintaining a rich input to the layer that follows. The previous convolution spends its parameters on fewer distinct filters, and rolling furnishes multiple relative-orientation responses for each. The total parameter count depends on both sides of the rearrangement. A convolution pays for its input channels as well as its output filters. Joining channels reduces the need to keep a large filter bank in one layer, while it can raise the number of incoming weights needed by the next.

With rolling throughout a convolutional stack, halving the number of learned filters can approximately preserve the original parameter budget. Each layer emits fewer learned maps directly, and the rolled representation gives the next layer twice the baseline input width in the comparison described by the authors. The two effects can balance within the interior convolutions. Boundaries such as the input and readout need separate accounting. A stronger reduction in filter count can lower the parameter budget while keeping the post-roll channel count near the original width. These alternatives motivate the width comparisons in the experiments.

Stack when a later layer needs an ordinary feature vector

Stacking can be used on its own when a network needs shared detectors across orientations but has no requirement that its final answer transform predictably. Slicing and processing with shared weights can be useful in the first part of the network. A later stacking layer collects those responses into a single feature tensor that an ordinary downstream layer can consume. Because the orientation responses remain in separate channels, the downstream layer can assign them different significance.

This is an architectural decision about where to keep the symmetry constraint. Rolling uses stacking in every reference frame, preserving the pathway permutation for later layers. Standalone stacking adopts a particular reference frame and ends that pathway structure. A dense layer receiving the joined representation can learn to respond differently when an input turn changes which orientation channels hold particular evidence. For an invariant classifier in the experiments, pooling the pathway readouts is the operation that imposes the final invariance.

Decide which tensors to rotate

In the implementation described in the experiments, the orientation groups are arranged along the batch axis. Ordinary layer implementations can then process them with the same parallel mechanisms they already use for larger batches. The cyclic operations can be expressed as layers between ordinary convolutions or dense layers. This separation is why the authors view the framework as compatible in principle with architectural changes such as Inception and residual learning. Their discussion of the latter refers to Deep Residual Learning for Image Recognition.

Rotating feature maps has a shape constraint. A quarter turn of a nonsquare map exchanges its height and width. Putting all its orientations in one batch requires compatible shapes, so this version uses square feature maps. The filters themselves need not be square. Memory is another consideration. Rolling materializes copies of feature maps across its orientation pathways, and the feature maps can be large even when the network has a small parameter count.

The alternative is to rotate the filters within each convolution. This gives the same relative orientations with square filters and allows nonsquare feature maps. The tensors to copy are typically smaller, which reduces the memory requirement. The operation has to interact with the convolution’s parameters, so the authors expect it to take more effort to implement in frameworks where the existing convolution is a self-contained layer. They also describe collecting the transformed filters after training to prepare a version for inference with slicing and pooling and without the specialized rolling operation. The paper makes available a GPU implementation of rolling for Theano using CUDA kernels.

Reflections offer a further extension. Adding horizontally flipped views to the rotations produces a set of 8 orientations that can still be obtained without interpolation. The resulting symmetry is called dihedral symmetry, associated with D₄. A reflection and a rotation can yield different results when their order is reversed. The bookkeeping for the eight views therefore cannot be handled by the single cyclic shift used above. Slicing, stacking, rolling and pooling all have to follow the transformation rules of the enlarged set.

Train the shared network

The authors use the same basic training procedure for the original networks and their cyclic variants. They augment the data with rotations between 0° and 360°. This gives the baseline exposure to the desired behavior and gives the cyclic network experience with angles outside its architectural guarantee. They reduce the input minibatch size by a factor of 4 in the Plankton slicing and pooling comparison to compensate for the expansion between those layers. The number of original images sent into a step and the number of orientation entries processed inside the network are different measures of batch size.

For optimization, the authors choose Adam so that they can insert the cyclic layers without having to retune learning rates for every variant. Adam is the procedure that updates the learned weights during training. The authors use it together with a discrete schedule in which the learning rate drops tenfold near the end. Plankton training also uses weight decay, which discourages large weights as a form of regularization. The authors trace the learning-rate scheduling approach to ImageNet Classification with Deep Convolutional Neural Networks and use Adam for the weight updates.

Experiments and results

Three datasets with different outputs

Plankton is the species-classification experiment. The dataset has 30,336 grayscale images of varying sizes and 121 classes with uneven frequencies. The authors rescale the images to 95×95 based on the longest side and reserve 3,037 images for validation, leaving 27,299 in their training split. The National Data Science Bowl test set contains 130,400 images. Its labels were held back, and the authors obtained test scores by sending predictions to Kaggle after the competition. They regard the species as invariant to image rotation because the organisms can be photographed in arbitrary orientations, apart from the minor influence of gravity noted in the paper.

The Plankton metric is cross-entropy. It evaluates the probabilities assigned to the class labels and penalizes low probability on the correct class. A lower value is better. The unequal class frequencies describe the composition of the dataset. The reported metric is cross-entropy, so the experimental claim concerns the probabilities assigned to examples under that measure. The output of cyclic pooling in this task has no pixel coordinates to realign. Each pathway contributes evidence about the same species.

Galaxies is a different kind of prediction problem even though it also calls for an invariant final output. The initial collection consists of 61,578 color images at 424×424. The authors downscale by a factor of 4 and crop to 64×64. Their split uses 55,421 images for training and 6,157 for validation. A held-out Kaggle test set contains 79,975 images, again with scores obtained through submission because test labels were unavailable to the authors.

The galaxy targets describe morphology using 11 questions with 37 possible answers across them. Example questions ask about smoothness, the presence of spiral structure and the number of spiral arms. Each image comes with 37 estimated answer probabilities based on votes from Galaxy Zoo participants. The network predicts these values. The authors use prediction root-mean-square error, or RMSE. It summarizes the squared errors in the predicted values on the original scale of those values, and lower is better. The lack of a fixed viewing orientation gives the authors their reason for treating the target probabilities as invariant to image rotation. An arm may occupy a different region of the displayed image after a turn, while its contribution to the morphology answers stays the same.

Massachusetts buildings uses aerial images of the Boston area. The dataset contains 151 images at 1500×1500, each representing an area of 2.25 square kilometers. The authors follow the established split of 137 training images, 4 validation images and 10 test images. During training they sample 80×80 tiles and predict the labels for the central 40×40 square. A pixel’s target distinguishes building from background. With the larger tile as input, the network can use surrounding image context to decide the label of a central pixel.

The buildings task uses area under the receiver operating characteristic curve, or AUC, with higher values preferred. The curve relates detection of positives to false positives as the score threshold changes. AUC assesses the ability of the predicted scores to distinguish building pixels from background pixels across thresholds. It is an aggregate measure of segmentation scores. The particular threshold used to turn scores into a binary building mask is a separate choice. In the cyclic architecture, the output maps from the individual views must first be rotated back into the same coordinate system.

What the modified networks were compared against

The Plankton and Galaxies baselines follow the design of VGG-style networks. They use 3×3 convolutions with zero padding to retain the spatial dimensions of the input maps, along with spatial pooling, including overlapping pooling. Here a same convolution refers to keeping the map size. It is a convention for padding, distinct from the paper’s term same-equivariance. These classifiers use dense layers near the end, where spatial feature maps are flattened so that the next layer can use the whole collection. Their architectural inspiration is Very Deep Convolutional Networks for Large-Scale Image Recognition.

The Massachusetts baseline uses a stack of 5×5 valid convolutions without spatial pooling, followed by 1×1 convolutions. A valid convolution uses no zero padding and shrinks the spatial output, since the filter is applied where its whole window fits within the incoming map. In the buildings network, the stack gives the prediction at each location access to surrounding context while producing a spatial score array. A 1×1 convolution combines channels at each location and preserves the relationship between the resulting scores and the output grid.

The authors use rectified linear units, or ReLUs, in the baseline architectures. A ReLU replaces negative activations with zero while retaining positive ones. The baseline figure specifies dropout with probability 0.5 before all dense layers. Dropout randomly drops activations during training as a form of regularization. For Plankton, the authors later vary the presence of the ReLU at the point where cyclic pooling combines the pathway features. That comparison concerns the inputs to cyclic pooling, separate from the spatial pooling in the baseline convolutional stack.

The authors use the Kaggle rankings to put the two competition baselines in context. Their Galaxies baseline would have placed 12/327 and their Plankton baseline 57/1050 on the respective competition test evaluations. These are hypothetical leaderboard positions for the baselines. They are distinct from RMSE and cross-entropy and describe different competitions. The authors also note that leading competition entries made extensive use of prediction averaging across networks, so these ranks chiefly establish the context for the baselines used in the paper’s own comparisons.

The experimental protocol reports means and standard deviations across 10 training runs for the training and test metrics. The mean describes typical performance over these runs and the standard deviation shows how much the result varied from run to run. Reporting both splits gives the comparison a way to expose overfitting. A reduced network can use fewer weights and perform well on the training examples, while the test scores show whether that use of capacity carries over to unseen examples. The validation splits are separate from the reported test sets.

The effects of pooling and rolling

The first Plankton comparison adds slicing at the input and a cyclic pooling operation just before the output layer. The authors test mean, maximum and root-mean-square pooling, each with and without a ReLU before the pooling operation. Mean pooling without that ReLU yields the best cross-entropy among the tested choices. It becomes the pooling setting for the remaining experiments. Cyclic pooling also gives modest improvements over the Galaxies baseline in RMSE and over the Massachusetts buildings baseline in AUC.

The broader rolling comparison adds intermediate cyclic layers and changes the widths of the ordinary layers around them. In the experiment with rolling throughout the network, the authors reduce the number of learned filters by a factor of 4. They report a substantial reduction in parameters with limited changes in performance across the datasets. For comparison, they train a narrower ordinary baseline with half as many filters in all layers except the last two. They use that comparison to support the claim that the rolling network spends a comparable parameter budget more effectively. The paper also describes the two approaches as requiring roughly comparable training computation, with rolling itself small in cost compared with the convolutions.

A separate experiment rolls only after the first dense layer in the Plankton and Galaxies classifiers. Halving that layer’s units reduces the weights needed to connect it to the flattened convolutional representation. The next dense layer receives a wider rolled representation, which raises its parameter count. In Plankton the saving in the earlier layer is larger than the added cost in the later one. The authors report slightly improved performance compared with the classification baselines. This comparison tests a targeted change to the part of the architecture where flattening a stack of maps produces a large input.

The Massachusetts buildings network has no dense layers. The authors evaluate a version that rolls throughout its convolutional stack with the filter count reduced by a factor of 2. Its parameter count is roughly comparable to the full baseline’s, and the authors report better AUC. The setting with the larger filter reduction answers a different question about how much the network can shrink when retaining cyclic sharing. The chart shows the documented filter-count settings. Its metric measures architectural compression at the affected layers, separate from an AUC score or the total number of weights.

Filter-count reduction in Massachusetts buildings networks with rolling throughout

The configuration with the stronger reduction uses fewer learned filters at each affected layer.

Filter-count reduction in Massachusetts buildings networks with rolling throughoutRolling with the larger filter bank: 2Rolling with the larger filter bank2Rolling with the smaller filter bank (this paper): 4Rolling with the smaller filter bank(this paper)4
The numbers
System or settingfilter-count reduction factor
Rolling with the larger filter bank2
Rolling with the smaller filter bank (this paper)4

The reported comparisons give the direction of the changes in the predictive metrics and describe the parameter changes by their approximate size. Exact split-specific cross-entropy, RMSE and AUC differences would require the corresponding numeric result entries. The baseline leaderboard positions and the factors used to narrow the filters quantify different aspects of the experiments and cannot serve as substitutes for those differences.

What the ablations show

Which aspects of pooling were tested directly

The Plankton pooling experiment separates the choice of summary function from the presence of a nonlinearity at the input to that function. In each variant there is a collection of responses to the same example under the chosen cyclic orientations. Mean pooling gives each value equal influence on the average. Max pooling retains the greatest response. Root-mean-square pooling takes the square root after averaging the squared responses, which makes the summary sensitive to large magnitudes. Each function is unchanged if its arguments are permuted, so each satisfies the order-independence condition needed by the framework.

A ReLU changes which values can contribute to the combined representation. Before mean pooling, it removes negative activations that otherwise can offset positive ones. Before root-mean-square pooling, it removes the contribution that negative values would have made after squaring. For max pooling, rectification can matter when all candidate values are negative. Thus the comparison is about what evidence reaches the final layers, even though all the choices respect the same orientation permutation.

The best Plankton result among these configurations comes from the mean applied without a preceding ReLU. That shows that a common symmetry condition can leave consequential choices about feature aggregation. It identifies the best option in the tested Plankton architecture by cross-entropy. The paper leaves the choice open across network sizes and datasets and mentions anecdotal observations in which other functions seemed to regularize better. Those observations have a different evidentiary status from the explicit Plankton comparison.

The comparison between the ordinary baseline and a network with slicing and pooling tests the joint effect of shared evaluation over the cyclic views and an invariant or same-equivariant readout. It does not isolate a training-time benefit of slicing from an inference-time benefit of pooling. A conventional test-time averaging run under the same transformation set would be a different comparison. The paper’s setting is still informative because baseline training already included general rotations. Improving on such a baseline shows that the observed gain can coexist with augmentation.

What changes when filters are removed

A smaller ordinary network is a stronger comparison for the compression question than the full baseline alone. If a smaller rolling network matches a full baseline, one possibility is that the task admitted a smaller network in the first place. Training the narrower ordinary baseline helps test that possibility. The authors halve filter counts in most of its layers to bring its parameter count into the range of the more strongly reduced rolling network. The rolling network can use the responses of a shared filter at several relative orientations, while the narrowed ordinary network has fewer independently learned detectors and no corresponding exchange of aligned features.

The resulting comparison supports the authors’ conclusion about the use of parameters. It evaluates complete network configurations. Slicing, pooling, rolling and width can all differ between the narrowed ordinary baseline and the cyclic network. The experiment therefore grounds the claim that this combination works better at a comparable budget, while leaving the exact contribution of each component unresolved. The distinction matters especially in a network where the first layer, the interior convolutions and the readout do different amounts of work.

The discussion of computation has a similarly specific scope. Rolling itself joins copies of available activations, and the underlying convolutions dominate the costs in the authors’ account. More orientation entries are processed, while the convolutions can use fewer learned filters at a time. The paper describes the resulting training computation in the comparison as roughly similar. This is more limited than a measured conclusion about how fast every version trains or runs on a particular GPU. The two methods of implementing rotation also place different demands on activation memory.

Where rolling is inserted

Rolling after the first dense layer asks whether the number of learned connections can be reduced at a particular bottleneck in the classifiers. That layer receives a large flattened input, so reducing its output width has a relatively large effect on its own weights. Rolling keeps the orientation evidence for the following dense layer. That next layer then has more input connections. For Plankton the balance is a net reduction, since the earlier layer was the more expensive one. The finding depends on the sizes of the adjacent layers and shows why placement matters to the parameter calculation.

Rolling throughout the network asks whether sharing earlier representations is useful across the full feature hierarchy. In this configuration the next convolution can use evidence extracted in several orientation frames after every roll, before a final pooling decision. The more strongly narrowed version shows that much of the baseline’s performance can survive a smaller parameter budget. It does not identify a particular depth at which the extra orientation features become decisive. The dense-only variant changes the placement and the width adjustment together, and the buildings baseline has no dense bottleneck to match the classifiers’ intervention.

For Massachusetts buildings, maintaining roughly the full parameter budget while adding repeated rolling yields an improvement over the baseline. This comparison illustrates how the same operation can serve another purpose. At a smaller budget, a network can trade independent filters for shared responses. At a comparable budget, it can retain more filters and use their rolled responses to give later layers more orientation information. The authors caution that an analogous large rolling configuration would overfit on the other datasets. That caution sets a boundary on transferring the setting across tasks, even though the operations themselves can be applied to each architecture.

The preliminary dihedral comparison receives less extensive treatment. The authors say that they usually saw no practical benefit from adding reflections, and that the increase in sharing made capacity comparisons harder. They consequently concentrate the main evaluation on rotations. The experiments establish the practical case for cyclic sharing on the chosen tasks. Whether reflected views help under specifically matched training and capacity conditions remains a separate empirical question.

Limitations

Limits identified by the authors

The exact rotational domain is narrow. Quarter turns fit the sampling grid, and the rest of the construction relies on that exact mapping. The authors identify handling other angles as future work because interpolation and the alignment of feature maps become more involved. The experiments use datasets whose targets can have a broader rotational symmetry. Random training rotations between the full range of angles provide exposure to this broader variation, while the architectural argument establishes equivariance only for the cyclic transformations used by the layers.

There are also costs at the tensor level. Slicing multiplies the effective batch size and can require a smaller input minibatch to keep training manageable. Rotating feature maps requires square maps for batching and copies activations during rolling. Rotating filters moves the shape constraint to the filters and can reduce memory consumption, while requiring tighter integration with convolutional layers. These are explicit implementation tradeoffs. A decrease in learned parameters alone tells the reader little about peak activation memory or the practical speed of inference.

The authors leave the value of broader symmetry groups and additional domains open. Their preliminary experiments with reflection motivated a focus on cyclic symmetry. They discuss medical imaging as a prospective application where sharing could be valuable when examples are scarce. They also describe volumetric data as a prospective extension, with a different set of interpolation-free symmetries and a potentially greater incentive to reduce parameters. Those directions follow from their design argument. The experiments themselves concern images and the specific classification, morphology and segmentation tasks described above.

The paper also qualifies its choice of pooling function. Mean pooling before rectification is selected from the Plankton comparisons. The authors explicitly allow the preferred choice to depend on the dataset and parameter budget. Similarly, the ranking of large and small rolling configurations depends on how easily they overfit. A single functional principle, shared processing across orientations, leaves the setting of widths and the readout appropriate to each task.

Limits of the experimental comparisons

The dataset selection gives the architecture a credible reason to share across rotations. Plankton species and galaxy morphology have orientation-independent labels, and the buildings task uses spatial labels that rotate with the scene. The experiments therefore investigate a setting in which the symmetry is supported by the target. They offer little evidence about tasks where the absolute orientation is itself informative. Standalone stacking allows later layers to use such information, but the main invariant and same-equivariant experiments do not estimate the cost of imposing the wrong symmetry.

The evaluation measures predictive performance on the datasets. Cross-entropy, RMSE and AUC each assess a different task. None is a direct measurement of how a prediction changes when the same held-out image is turned through a series of angles. Within the allowed group the architecture supplies the mathematical relationship. Outside the group, test performance cannot show which angles remain difficult or how much the predictions change. Nor is the Massachusetts AUC by itself an evaluation of building boundaries or a report of performance under a specified segmentation threshold.

The tests compare networks trained repeatedly, which helps distinguish a consistent pattern from a favorable individual run. Because the reported metrics are distinct and the changes are described at different parameter budgets, there is no common numerical effect to pool across them. The case for parameter efficiency rests most directly on the narrower baseline comparison and the near-budget-matched buildings comparison. A timing and memory study would answer a separate question, particularly because fewer weights can accompany wider intermediate representations and more views in each effective batch.

Finally, the theoretical argument depends on what happens between and after the cyclic layers. Independent shared processing respects the pathway shift, and rolling preserves it. A spatial map emerging from pooling transforms in image coordinates, where a following orientation-sensitive layer need not preserve the rule. The architecture can guarantee the intended behavior when the path to the readout respects the relevant transformation at each stage. The guarantee follows from that composition, so the presence of a cyclic layer somewhere in a network is insufficient by itself.

What came after

The paper identifies a concurrent development in Cohen and Welling’s Group Equivariant Convolutional Networks. According to the authors, that work gives a general formal account of symmetry in convolutional networks and describes the same type of networks that can be assembled with cyclic slicing, rolling and pooling. The connection is visible in the orientation pathways. A quarter turn acts on those pathways by a permutation, and each intermediate operation has to respect that action if the network is to retain equivariance. The cyclic layers make this correspondence concrete using ordinary batch and feature axes.

The authors’ proposals beyond that contemporary connection are research directions. Arbitrary-angle rotation would require a treatment of interpolation and spatial alignment, while a volumetric extension would require choosing transformations suited to a different sampling grid. The paper leaves both as prospective extensions, and a later empirical result for either direction is outside its account.

Cite

Cite as Sander Dieleman, Jeffrey De Fauw and Koray Kavukcuoglu. 2016. Exploiting Cyclic Symmetry in Convolutional Neural Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1602.02660 · arXiv 1602.02660

@misc{dieleman2016exploiting,
  title = {{Exploiting Cyclic Symmetry in Convolutional Neural Networks}},
  author = {Sander Dieleman, Jeffrey {De Fauw} and Koray Kavukcuoglu},
  year = {2016},
  doi = {10.48550/arxiv.1602.02660},
  eprint = {1602.02660},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1602.02660}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dieleman-2016-exploiting-cyclic-symmetry-convolutional-neural/

References

29 references, from the paper's own bibliography.

  1. Clark, Christopher and Storkey, Amos. Training deep convolutional neural networks to play go. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pp. 1766–1774, 2015. OpenAlex ↗ · Scholar ↗
  2. Cohen, Taco and Welling, Max. Learning the irreducible representations of commutative lie groups. arXiv preprint arXiv:1402.4437, 2014. OpenAlex ↗ · Scholar ↗
  3. Cohen, Taco S and Welling, Max. Group equivariant convolutional networks. arXiv preprint arXiv:1602.07576, 2016. OpenAlex ↗ · Scholar ↗
  4. Cowen, Robert K., Sponaugle, S., Robinson, K.L., and Luo, J. Planktonset 1.0: Plankton imagery data collected from f.g. walton smith in straits of florida from 2014-06-03 to 2014-06-06 and used in the 2015 national data science bowl, 2015. (NODC Accession 0127422). NOAA National Centers for Environmental Information. Dataset. doi:10.7289/V5D21VJD. OpenAlex ↗ · Scholar ↗
  5. Dieleman, Sander, Willett, Kyle W, and Dambre, Joni. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical Society, 4500 (2):0 1441–1459, 2015. OpenAlex ↗ · Scholar ↗
  6. Fasel, Beat and Gatica-Perez, Daniel. Rotation-invariant neoperceptron. In Pattern Recognition, 2006. ICPR 2006. 18th International Conference on, volume 3, pp. 336–339. IEEE, 2006. OpenAlex ↗ · Scholar ↗
  7. Gens, Robert and Domingos, Pedro M. Deep symmetry networks. In Advances in neural information processing systems, pp. 2537–2545, 2014. OpenAlex ↗ · Scholar ↗
  8. Goodfellow, Ian, Lee, Honglak, Le, Quoc V, Saxe, Andrew, and Ng, Andrew Y. Measuring invariances in deep networks. In Advances in neural information processing systems, pp. 646–654, 2009. OpenAlex ↗ · Scholar ↗
  9. He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015. our card
  10. Hinton, Geoffrey E, Krizhevsky, Alex, and Wang, Sida D. Transforming auto-encoders. In Artificial Neural Networks and Machine Learning–ICANN 2011, pp. 44–51. Springer, 2011. OpenAlex ↗ · Scholar ↗
  11. Jaderberg, Max, Simonyan, Karen, Zisserman, Andrew, et al. Spatial transformer networks. In Advances in Neural Information Processing Systems, pp. 2008–2016, 2015. OpenAlex ↗ · Scholar ↗
  12. Kavukcuoglu, Koray, Ranzato, Marc Aurelio, Fergus, Rob, and Le-Cun, Yann. Learning invariant features through topographic filter maps. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 1605–1612. IEEE, 2009. OpenAlex ↗ · Scholar ↗
  13. Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
  14. Kivinen, Jyri J and Williams, Christopher KI. Transformation equivariant boltzmann machines. In Artificial Neural Networks and Machine Learning–ICANN 2011, pp. 1–9. Springer, 2011. OpenAlex ↗ · Scholar ↗
  15. Krizhevsky, A., Sutskever, I., and Hinton, G. E. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25, 2012. our card
  16. Lenc, Karel and Vedaldi, Andrea. Understanding image representations by measuring their equivariance and equivalence. arXiv preprint arXiv:1411.5908, 2014. our card
  17. Liao, Qianli, Leibo, Joel Z, and Poggio, Tomaso. Learning invariant representations and applications to face verification. In Advances in Neural Information Processing Systems, pp. 3057–3065, 2013. OpenAlex ↗ · Scholar ↗
  18. Mnih, Volodymyr. Machine Learning for Aerial Image Labeling. PhD thesis, University of Toronto, 2013. OpenAlex ↗ · Scholar ↗
  19. Ngiam, Jiquan, Chen, Zhenghao, Chia, Daniel, Koh, Pang W, Le, Quoc V, and Ng, Andrew Y. Tiled convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1279–1287, 2010. OpenAlex ↗ · Scholar ↗
  20. Rowley, Henry A, Baluja, Shumeet, and Kanade, Takeo. Rotation invariant neural network-based face detection. In Computer Vision and Pattern Recognition, 1998. Proceedings. 1998 IEEE Computer Society Conference on, pp. 38–44. IEEE, 1998. OpenAlex ↗ · Scholar ↗
  21. Schmidt, Uwe and Roth, Stefan. Learning rotation-aware features: From invariant priors to equivariant descriptors. In Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on, pp. 2050–2057. IEEE, 2012. OpenAlex ↗ · Scholar ↗
  22. Sifre, Laurent and Mallat, Stéphane. Rotation, scaling and deformation invariant scattering for texture discrimination. In Computer Vision and Pattern Recognition (CVPR), 2013 IEEE Conference on, pp. 1233–1240. IEEE, 2013. OpenAlex ↗ · Scholar ↗
  23. Simard, Patrice Y, Steinkraus, Dave, and Platt, John C. Best practices for convolutional neural networks applied to visual document analysis. In null, pp. 958. IEEE, 2003. OpenAlex ↗ · Scholar ↗
  24. Simonyan, Karen and Zisserman, Andrew. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. our card
  25. Sohn, Kihyuk and Lee, Honglak. Learning invariant representations with local transformations. arXiv preprint arXiv:1206.6418, 2012. OpenAlex ↗ · Scholar ↗
  26. Szegedy, Christian, Liu, Wei, Jia, Yangqing, Sermanet, Pierre, Reed, Scott, Anguelov, Dragomir, Erhan, Dumitru, Vanhoucke, Vincent, and Rabinovich, Andrew. Going deeper with convolutions. arXiv preprint arXiv:1409.4842, 2014. OpenAlex ↗ · Scholar ↗
  27. Teney, Damien and Hebert, Martial. Learning to extract motion from videos in convolutional neural networks. arXiv preprint arXiv:1601.07532, 2016. OpenAlex ↗ · Scholar ↗
  28. Willett, Kyle W, Lintott, Chris J, Bamford, Steven P, Masters, Karen L, Simmons, Brooke D, Casteels, Kevin RV, Edmondson, Edward M, Fortson, Lucy F, Kaviraj, Sugata, Keel, William C, et al. Galaxy zoo 2: detailed morphological classifications for 304 122 galaxies from the sloan digital sky survey. Monthly Notices of the Royal Astronomical Society, pp. stt1458, 2013. OpenAlex ↗ · Scholar ↗
  29. Wu, Fa, Hu, Peijun, and Kong, Dexing. Flip-rotate-pooling convolution and split dropout on convolution neural networks for image classification. arXiv preprint arXiv:1507.08754, 2015. OpenAlex ↗ · Scholar ↗