TL;DR
ReNet proposes a novel deep learning architecture for object recognition that replaces standard convolution and pooling layers with a structured arrangement of four recurrent neural networks (RNNs). By sweeping horizontally and vertically across image patches, ReNet captures global context at every layer, demonstrating that RNNs are a viable and competitive alternative to the ubiquitous Convolutional Neural Network (CNN).
What Problem Does This Paper Address?
For years, Convolutional Neural Networks (CNNs) have been the undisputed champions of computer vision. Their success stems from their ability to exploit local spatial correlations through kernels and achieve translation invariance via pooling. However, CNNs have a "local" bias; a single neuron in a lower layer only "sees" a small patch of the image.
While Recurrent Neural Networks (RNNs) are the standard for sequential data (like text or speech) because they capture long-term dependencies, applying them to 2D images has been challenging. Previous attempts, like Multidimensional RNNs (MDRNNs), were computationally expensive because the number of required RNNs scaled exponentially with the number of dimensions. The authors of ReNet sought to bridge this gap, creating an RNN-based vision architecture that is computationally efficient and captures global image context more effectively than standard CNNs.
Methods
The core innovation of ReNet is the replacement of the standard convolution + pooling block. Instead of sliding a small window, ReNet processes the image in two distinct stages per layer:
- Vertical Sweep: The input (either the raw image or a feature map from a previous layer) is divided into non-overlapping patches. Two RNNs—one moving top-to-bottom and one bottom-to-top—process each column of patches independently.
- Horizontal Sweep: The hidden states from the vertical sweep are concatenated. Then, two more RNNs—one moving left-to-right and one right-to-left—process the resulting rows.
By the end of these two sweeps, every activation in the output feature map has "seen" every patch in the input image. This provides a global context that standard CNN layers lack. These layers can be stacked to form a deep ReNet, followed by fully connected layers and a softmax classifier for final predictions. The authors tested both Gated Recurrent Units (GRUs) and Long Short-Term Memory (LSTM) units as the underlying recurrent cells.
Datasets
The authors evaluated ReNet on three classic computer vision benchmarks:
- MNIST: 70,000 grayscale images of handwritten digits (0-9).
- CIFAR-10: 60,000 low-resolution color images across 10 categories (e.g., airplane, bird, cat).
- SVHN (Street View House Numbers): Over 600,000 cropped images of house numbers captured from Google Street View.
Key Insights and Ideas
- Linear Scaling: Unlike MDRNNs, which require $2^d$ RNNs (where $d$ is the dimension), ReNet only requires $2d$ RNNs. This makes the architecture much more practical for 2D images and potentially higher-dimensional data.
- Global Receptive Fields: In a CNN, the receptive field grows linearly with depth. In ReNet, even the first layer has a global receptive field. This allows the network to resolve redundancies and handle small displacements through learned lateral connections rather than fixed pooling operations.
- End-to-End Differentiability: Because ReNet avoids non-invertible operations like max-pooling, the entire network is smooth and differentiable. This makes it a promising candidate for generative models and autoencoders where decoders need to "undo" the encoding process.
- Competitive Performance: The study proves that the specific "convolutional" inductive bias isn't the only way to solve vision tasks; sequential processing with memory can achieve similar results.
Key Results
ReNet performed comparably to well-known CNN architectures across all three datasets, though it did not quite reach the absolute state-of-the-art (SOTA) at the time.
- MNIST: Achieved a test error of 0.45%, matching the performance of CNNs like Maxout networks.
- CIFAR-10: Reached a test error of 12.35%. While higher than the SOTA CNNs (which were around 4.5% - 9%), it outperformed several baseline models.
- SVHN: Achieved a test error of 2.38%, which was highly competitive, even outperforming some established CNN models like those by Zeiler and Fergus.
Limitations and Future Work
The primary drawback of ReNet is parallelization. Convolutions are inherently parallel—you can compute every output pixel simultaneously. RNNs are sequential; you must compute the state of the previous patch before moving to the next. This makes ReNet significantly slower to train on current GPU hardware compared to optimized CNNs.
The authors suggest that future work should focus on:
- Improving the computational efficiency and parallelization of the RNN sweeps.
- Exploring hybrid architectures that combine the local feature extraction of CNNs with the global context of ReNet.
- Qualitative analysis to understand exactly what kind of image structures the ReNet "memory" is capturing compared to CNN filters.
Summary updated