Inside-Outside Net: Detecting Objects in Context with Skip Pooling and Recurrent Neural Networks
Paper · 2016 · Sean Bell, C. Lawrence Zitnick, Kavita Bala et al.
Summary
A detector looking for a small object may have only a few pixels to identify it and decide where its edges lie. In a cluttered image, evidence elsewhere in the scene can help, but a detector also needs to preserve whatever detail is available in the object itself. Inside-Outside Net, or ION, addresses both problems. It starts from Fast R-CNN, which evaluates candidate boxes using features computed once for the image. ION changes the evidence available when the detector scores and adjusts each box.
Inside a candidate box, ION collects features from several depths of a convolutional network. Earlier layers provide a finer spatial grid, while later layers provide more abstract descriptions. The authors call this skip pooling because the detector reads from earlier layers directly. To bring in evidence from outside the box, ION passes information across the image along rows and columns. Stacking these recurrent sweeps lets even locations in different rows and columns affect one another. The detector can then read a description of the broader scene that is specific to the position of the candidate box. Before combining the different features, ION adjusts their magnitudes so they can work together with the pretrained detection layers.
The best reported mean average precision, or mAP, is 79.2% on PASCAL VOC 2007 test and 76.4% on VOC 2012 test. On MS COCO 2015 test-dev, with the same training images and schedule, the authors’ Fast R-CNN baseline scores 20.5% and ION reaches 24.9%. The post-competition result of 33.1% on that split comes from a broader set of changes, including more training data, different proposals, and prediction from the original and horizontally flipped image. The challenge submission earns Best Student Entry and finishes third overall.
The size breakdown shows where the changes matter. In the matched COCO training setup, average precision for small objects rises from 4.1% to 7.0%, and their average recall rises from 7.3% to 10.7%. The controlled comparisons on VOC help explain why. Earlier features help once their magnitudes are accounted for. Spatially varying context adds evidence beyond those features, and an auxiliary task that predicts pixel classes can improve detection even though the detector discards that output at test time.
Deep dive: Inside-Outside Net: Detecting Objects in Context with Skip Pooling and Recurrent Neural Networks
Inside-Outside Net improves object detection by pooling fine detail across layers and passing image context between locations with recurrent sweeps. · about 34 minutes to read
The problem and its context
A candidate box presents two questions
Object detection asks what objects an image contains and where they are. The output pairs a class with a bounding box. A detector can recognize the right category and still fail if the box fits the object poorly. Conversely, a well-placed candidate is useful only if the detector scores it as the right class. ION studies the evidence available to the part of the system that makes both decisions.
The approach starts with object proposals. A proposal is a rectangle judged worth examining, without any requirement that it already enclose a particular kind of object. A detector can consider many of these rectangles and decide which contain a category of interest or belong to the background. The proposal mechanism therefore determines where the detector starts looking. Scoring and adjusting the proposals determines which of those starting points become detections.
The paper identifies a weakness in the features used to assess each proposal. The strongest detectors it discusses chiefly describe the object and its immediate neighborhood. That can work well when a candidate contains a clear view of a familiar object. A small potted plant among other items presents a different problem. Few pixels distinguish it, and those pixels may be scattered across leaves, stems, and parts of a pot. A chair whose visible parts are interrupted by other objects poses a related difficulty. In each case, the local evidence may be incomplete even if the proposal covers the right area.
Size creates a difficulty before classification as well. An image can contain many small objects, and the proposal algorithm has to produce a plausible starting rectangle for each one. A rectangle can cover a substantial part of a large object and still overlap it well. A similarly misplaced edge can be consequential for a small object. These are separate reasons for studying small detections. Retaining fine detail can improve how the system assesses a candidate, while the supply and placement of candidates constrain which objects it gets to assess.
How region-based detectors made this question practical
In the paper’s account, early convolutional detectors had worked in restricted domains such as face detection. Deeper convolutional networks subsequently succeeded at image classification, and R-CNN and OverFeat transferred that progress to more general detection. ION follows the region-based line of work. Its starting point is Fast R-CNN, which the authors describe as an end-to-end trainable refinement of SPPnet.
A convolutional feature map is a grid whose entries describe parts of the input image. Each grid position has several channels, with each channel recording the response of a learned feature. A region-based detector can compute such a grid for the image and reuse it across proposals. It can turn the cells covered by a proposal into a descriptor of fixed shape by pooling them into a fixed spatial layout. Pooling summarizes the responses within each part of that layout, so a box of one size and a box of another size can both go through the same classification and box-adjustment layers. That reuse makes it practical to consider thousands of boxes without computing the entire convolutional stack separately for each one.
The paper describes Fast R-CNN, Faster R-CNN, and SPPnet as reading proposals from the last convolutional layer of VGG16. A late layer is a natural choice because it has already transformed the image through many learned operations. Its spatial grid, however, is coarser than the grids in earlier layers. When an object occupies little of the image, a coarse grid leaves fewer positions with which to describe its arrangement. Pooling from a finer grid gives the detector a way to retain distinctions that may matter to classification or box placement.
Routing earlier features to later parts of a network was already familiar. The closest example in the paper is the use of features from multiple stages for pedestrian detection. The authors also point to skip connections in semantic segmentation, which assigns categories to pixels, and instance segmentation, which distinguishes separate objects. These tasks share a need to preserve spatial detail. ParseNet, a semantic segmentation system, also provided a precedent for adjusting feature amplitudes when combining representations from different sources. ION brings that concern into a proposal detector whose existing classification layers expect a particular input shape and magnitude.
Why scene information should depend on location
The authors cite prior studies of human and computer vision in which surroundings matter for recognition. They consider several ways to make those surroundings available to a detector. One is to average a feature map over the whole image. The resulting vector can indicate which kinds of visual evidence are present overall, but repeating it across the grid supplies the same scene description to every candidate. Positions on different sides of an image can have quite different surroundings and still receive the same average.
Adding convolutional layers is another option. Each additional layer broadens the neighborhood whose information can reach a location. This keeps the output tied to a position, and its reach is determined by the sequence of filters. The authors also consider spatial recurrence, in which a running state travels along an ordered row or column. In ordinary sequence recurrence, the order might be left to right through a series of inputs. A feature grid provides many such sequences along both axes.
The paper situates this choice among earlier uses of bidirectional recurrence, multidimensional recurrence for handwriting recognition, and lateral recurrence for image classification and semantic segmentation. It uses spatial recurrence to prepare context for object detection. The question is how to let evidence from far away reach a proposed object while keeping track of which position receives it. This differs from the question addressed by skip pooling, which concerns how much of the evidence at the proposal’s own location survives in its descriptor.
The method, step by step
From an image and proposals to object predictions
ION first computes a hierarchy of VGG16 feature maps from the image. It retains intermediate maps because later stages will need direct access to them. From the last convolutional map it computes another map that carries contextual information. It performs this work once for the image. Separately, the detector has a set of candidate boxes from a proposal algorithm. The standard architecture illustrates the evaluation of 2000 regions of interest, or ROIs, using those shared maps.
For each proposal, the network finds the corresponding region on each selected map and performs ROI pooling. The pooled features from conv3, conv4, and conv5 represent the candidate at different resolutions and depths. The pooled context features describe the same candidate’s position after information has traveled across the image. In all cases the box determines where to read. What differs is the calculation that produced the cells at that location.
How Inside-Outside Net evaluates candidate boxes
The steps in order.
The distinction between inside and outside refers to how the description is built. The detector pools every feature over the proposal, including the context features. A context cell inside the proposal may already carry information passed from distant cells. Thus the same pooling operation can select features associated with the candidate while giving its classification layers access to evidence beyond the candidate. The base convolutional features also have receptive fields extending around their positions. The architectural change is a route for evidence to travel more broadly across the grid before proposals are read.
Combining features from different depths
ROI pooling makes the spatial layouts of the selected features compatible. The earlier and later maps still differ in channel count and in the typical sizes of their activations. ION has to accommodate both differences because it reuses the pretrained VGG16 fully connected layers. The first of these layers, fc6, expects a particular number of inputs and works with the activation scale produced by the original detector.
Start with magnitude. ION applies L2 normalization to each pooled feature source for a proposal. An L2 norm measures the magnitude of a collection of entries by squaring them, summing the squares, and taking the square root. Dividing a collection by that magnitude preserves the relative values within it and makes its overall size comparable with other normalized collections. The main design treats each pooled source as a whole. The authors also test normalization across channels separately at each spatial location, which makes the normalization more local within a proposal.
Once the pooled sources are normalized, the detector joins them along the channel axis. A feature from the finer grid and a feature from the deeper grid can then occupy different channels in the same descriptor. The following scale layer brings the amplitudes back to a range compatible with the pretrained layers. In the main setup its scale is learnable per channel and starts at 1000. The authors get this starting value by measuring the typical norm of pooled conv5 features on the training data. This gives the new descriptor a scale tied to the original input that the pretrained detection head was accustomed to processing.
A 1x1 convolution then reduces the channel count. At each position in the pooled spatial grid, it combines the channels at that position using learned weights. This operation leaves the spatial layout intact, so a location within the pooled descriptor keeps its meaning as a location within the box. The result has shape 512x7x7, with channels first and the spatial dimensions following. The authors use Xavier initialization for the projection so that adding more input channels is accompanied by a suitable reduction in the initial weight magnitudes.
The descriptor now has the size required by fc6. It goes through the fully connected layers and reaches the two detection outputs. The class output uses softmax to assign scores over mutually exclusive categories for the proposal, with background available when the candidate contains no object of interest. The box output predicts an adjustment to the candidate’s coordinates. A proposal can therefore furnish enough evidence to recognize an object even when its original edges need correction.
The paper treats amplitude adjustment as part of making the different depths usable together. A projected descriptor can have the correct shape even when the signals from one source are much larger than those from another. Under that condition, the optimization starts with a poorly balanced input to the combination layer. The separate normalization and scaling operations address two distinct requirements: compare sources on a similar footing, then restore a useful magnitude for the layers inherited from the pretrained network.
Building a context map with directional recurrence
The context branch starts from conv5. Think of one row of that feature map as a sequence of vectors. A sweep moving right carries a hidden state, a vector that summarizes information available from the positions it has already processed. At the next position, the network combines that state with the local input and applies a rectified linear unit, or ReLU. ReLU keeps positive entries and sets negative entries to zero. A sweep moving left performs the corresponding operation in the opposite order. The branch also sweeps down and up along the columns.
Each direction has its own recurrent transition. The authors use an IRNN, a ReLU recurrent neural network whose hidden-to-hidden weight matrix starts as the identity. The identity makes the linear part of the recurrent transition initially pass its input through unchanged. Where ReLU is active, the initial transition can carry information and its gradient along the sequence without shrinking it through the recurrent matrix. The ReLU still gates individual entries, and training can change the matrix in the learnable version.
The paper simplifies the computation by applying the input-to-hidden transformation before the sweeps. A 1x1 convolution transforms each input cell, and its output can be shared across directions. The local input is placed in the corresponding hidden-state slot before it is updated. This is why the paper uses the current cell symbol on both sides of its rightward update.
hᵣ[i,j] ← max(Wₕₕᵣ · hᵣ[i,j−1] + hᵣ[i,j], 0)
Here hᵣ is the vector for the right-moving sweep, with ᵣ marking the direction. The indices i and j specify the row and column, and j−1 is the preceding column along that row. On the right, hᵣ[i,j−1] has already been updated, and hᵣ[i,j] still holds the current cell’s transformed input. Wₕₕᵣ is the rightward hidden-to-hidden weight matrix, and · denotes matrix-vector multiplication. The + adds the transformed preceding state and the local input. The max operation compares every entry with 0 to implement ReLU. The arrow assigns the result back to hᵣ[i,j], which becomes available to the next cell.
The other directions change which neighbor supplies the preceding state. Different rows in a horizontal sweep are independent and can advance together. The same is true of the columns in a vertical sweep. The operations within a row or column still follow the sweep order, because each step uses the result of the preceding one. Batching the independent sequences lets a GPU carry out the matrix operation for many positions at the same step. Sharing the input projection also lets the bias be included in that projection. The authors tried a separate initial-step bias for each direction and observed that it stayed near zero during training.
The paper also writes the simplified update used when the recurrent matrix is held at the identity. In that case the multiplication disappears.
hᵣ[i,j] ← max(hᵣ[i,j−1] + hᵣ[i,j], 0)
The symbol hᵣ again denotes the rightward state, and i, j, and j−1 index the current row, current column, and preceding column. On the right, the preceding state is added with + to the transformed input already stored at the current cell. max compares the resulting entries with 0, and ← stores the rectified result as the updated state. This is a running accumulation with a nonlinearity after each addition. The placement of that nonlinearity matters: a contribution clipped during an early step cannot be carried forward in the same form as a contribution that survives it.
How a second sweep reaches beyond a row or column
After the first set of directional sweeps, the network concatenates the directional states at each spatial location. A cell has received information along its own row and column. A cell elsewhere on the grid whose row and column both differ from those of the destination still needs a path to reach it. A 1x1 projection combines the directions at each location, and the second set of sweeps sends those mixtures along rows and columns again.
Consider a position above and to the left of a candidate location. During the first sweeps, information from that position can travel along its row to the candidate’s column. A sweep along that column can then take the result down to the candidate’s location. The route can also run along the column first and the row second. Every input position therefore has a path to every output position through the stacked layers. A path establishes which inputs can affect an output. The learned transformations and the activations determine how strongly particular inputs affect it.
The spatial resolution is preserved while the branch computes context. The final map has the same dimensions as conv5, so the detector can locate a proposal on this map in the same way it locates one on the original final convolutional map. Because the direction states are computed relative to each grid cell, two nearby proposals can receive different descriptions of how the broader scene relates to them. That is the functional difference between the context branch and a single scene vector copied into every region descriptor.
Adding pixel supervision during training
The detector can train with an auxiliary semantic segmentation output. Semantic segmentation supplies a category label at the pixel level. A detection box specifies the extent of a rectangle around an object, while the pixel labels give the network a more detailed target within and around that rectangle. The context branch is a natural place to attach this task because it retains a spatial grid.
The auxiliary path upsamples the recurrent features with a learned deconvolution and crops the resulting map to align with the segmentation target. The upsampling is 16x, with a 32x32 kernel. The extra softmax loss has weight 1. During training this loss supplies a gradient to shared features, alongside the gradients from object classification and box regression. During inference the detector can read the context map without running the segmentation output. The value of the extra task is measured by the effect of training with it on the resulting detector.
On VOC, the detection results that use this extra supervision identify the SBD segmentation labels in their training setup. The paper points out that segmentation labels are available for many VOC images and for the COCO images. The auxiliary branch is optional, so the authors can compare detection with and without its loss while keeping the prediction task at test time the same.
Training the shared detector
The implementation uses Fast R-CNN in Caffe and publicly available VGG16 weights pretrained on ILSVRC2012, distributed through Caffe’s collection of pretrained weights. The authors change the training procedure of Fast R-CNN as well as adding new feature branches. An update accumulates gradients from 4 images, processed by separate forward and backward passes. The detector samples 128 ROIs per image, giving 512 ROIs per parameter update. The authors measure the L2 norm of the parameter gradient and rescale it when it exceeds 20, or 80 for the accumulation over 4 images. Clipping the norm limits the size of a large update while holding its direction fixed.
The schedule initially holds all convolutional layers through conv5 3 fixed. The new layers and the trainable detection layers can adapt to the available features before the later convolutional layers change. The second stage holds only conv1 1 through conv2 2 fixed and updates the layers above them. This is where the pretrained feature extractor itself is adapted to the detection task through fine-tuning.
The VOC stages last 40k and 100k iterations. For COCO they last 80k and 320k. The learning rate decays exponentially from 5 · 10⁻³ to 10⁻⁴ in the first stage and from 10⁻³ to 10⁻⁵ in the second. The authors report that shorter schedules did not fully converge. They fix the random seed across variants so that the comparisons use the same order of training images. This is useful when a structural change is small and the order in which examples are presented could otherwise introduce another difference between runs.
The standard VOC experiments use the precomputed selective search proposals supplied with Fast R-CNN. The standard COCO setup uses precomputed proposals identified in the paper with the work of Hosang and colleagues. At test time the detector keeps boxes with softmax scores above 0.05 and retains at most 100 boxes per image. The appendix uses different proposal and training settings for the challenge, so these standard settings are the starting point for understanding the controlled comparisons.
Refining boxes and consolidating predictions
The simple detection setup scores the proposals and applies one round of box regression. The stronger VOC configuration adds another round, following a procedure introduced by MR-CNN. After the first predictions, the adjusted rectangles are passed through the detector again. The original and adjusted boxes then provide candidates for the final result. This can help when a starting proposal is close enough to recognize but still misses part of the object or includes too much background.
Non-maximum suppression removes duplicate reports by preferring highly scored boxes over overlapping alternatives. The voting step uses the suppressed boxes as well as retained ones to refine the coordinates of each survivor. In the VOC setup, boxes with overlap of at least 0.5 with the retained box can contribute to its average, weighted by their softmax scores. Thus suppression decides which detections remain, and voting decides how nearby predictions should affect each remaining box. The paper separately tests the implications of this averaging under the stricter localization requirements of COCO.
Experiments and results
What the benchmarks measure
The paper evaluates the detector on the PASCAL VOC 2007 and VOC 2012 test sets and on MS COCO. The primary metric is mean average precision, or mAP. For a class, average precision summarizes the precision and recall achieved as detections are considered in score order. Precision measures how much of what the detector reports is correct. Recall measures how much of the annotated target it retrieves. The mean combines the class-level results, so the aggregate describes performance across categories instead of the number of correct boxes alone.
A detection also has to meet the benchmark’s localization criterion. Intersection over union, or IoU, compares the area shared by the predicted and annotated rectangles with the area covered by either of them. It rises when the predicted box matches the annotated extent more closely. VOC uses an overlap threshold of 0.5. COCO averages over thresholds from 0.5 to 0.95, written as 0.5:0.95 in the paper. A detection that is located roughly correctly may thus contribute at the lower threshold and fail at stricter ones. The COCO tables also report precision and recall for objects of different sizes and show recall under different limits on the number of detections.
These choices matter for reading the experiments. The VOC and COCO headline values answer different localization questions and come from different data. Within COCO, a value reported at a single IoU threshold and a value averaged over the full range also have distinct meanings. The standard ION comparison uses the same images and training schedule as the authors’ baseline, whereas the challenge runs change the set of training images and the proposals as well as the detector configuration.
PASCAL VOC 2007
The VOC 2007 test results use the combined trainval splits from VOC 2007 and VOC 2012 for box supervision. The configurations that train with the auxiliary segmentation task add SBD labels. The published Fast R-CNN result in the comparison is 70.0 mAP, and the region proposal network detector listed in the same table reports 73.2 mAP. The authors’ Fast R-CNN rerun with their revised settings improves on the original settings by +0.8 mAP on VOC 2007 test. That rerun is the reference point for the skip-pooling design study.
The main ION result with context and segmentation supervision is 76.5% mAP on VOC 2007 test. Adding the second round of box regression and weighted voting brings it to 78.5%. Removing dropout after that brings the final result to 79.2%. Dropout zeros a random subset of activations during training and is usually used to discourage overfitting. In this case the authors judge the detector to be underfitting, and removal improves the test result. The sequence shows that the final score reflects training and box processing as well as the feature design.
The comparison with MR-CNN puts these changes in context. MR-CNN scores 78.2% mAP and uses context too. In the paper’s account, it evaluates its component regions separately and takes around 30 seconds per image at test time. ION takes 0.8s per image on a Titan X GPU with one round of box regression and 1.15s with the additional round, excluding proposal generation. Those timings illustrate the advantage of computing the contextual representation once and reusing it across candidates. They describe the reported systems and measurement conditions, with the proposal stage outside the ION timings.
PASCAL VOC 2012
The VOC 2012 experiment uses the public test evaluation in the comp4 setting. The paper compares ION with the leaders listed at the time of submission. Some baseline rows include VOC 2007 trainvaltest as well as VOC 2012 trainval. The ION row uses the trainval splits from both editions together with SBD segmentation labels, and it includes contextual recurrence, the extra box refinement and voting, and dropout removal.
Detector comparison on PASCAL VOC 2012 test by mAP
ION records the highest mean average precision among the listed submissions.
The numbers
| System or setting | mAP % |
|---|---|
| Fast R-CNN | 68.4 |
| Region proposal network detector | 70.4 |
| HyperNet | 71.4 |
| MR-CNN | 73.9 |
| ION (this paper) | 76.4 |
ION achieves 76.4% mAP on VOC 2012 test, and the authors report that it leads for most categories. Individual rows still matter. For example, the potted plant entry is 51.4 AP for ION compared with 45.3 for MR-CNN, while the bottle entry is 58.3 for ION and 62.7 for MR-CNN. These figures describe category-specific precision summaries on the same test benchmark. They show how a higher mean can coexist with a different ordering for particular categories. The challenge of deciding what a box contains and where its edges lie varies across object types.
The controlled comparison on COCO
The paper describes COCO as containing 80k training images in 2014 train and 40k validation images in 2014 val. It cites a published Fast R-CNN result of 19.7% mAP on COCO 2015 test-dev, then reruns Fast R-CNN under its longer schedule. The resulting score is 20.5% on the same split. The rerun is the more informative comparison because ION trains on the same 2014 train images with the same longer schedule.
Detectors trained on COCO 2014 train by averaged AP on COCO 2015 test-dev
The strongest standard ION configuration leads the Fast R-CNN rerun under the shared training schedule.
The numbers
| System or setting | AP % at IoU 0.5:0.95 |
|---|---|
| Fast R-CNN rerun | 20.5 |
| Fast R-CNN rerun with box voting | 20.0 |
| ION | 23.0 |
| ION with recurrent context | 23.6 |
| ION with recurrent context and segmentation supervision (this paper) | 24.9 |
The strongest standard ION setting scores 24.9% on COCO 2015 test-dev under 0.5:0.95. Its AP at IoU 0.50 is 44.7, compared with 39.9 for the Fast R-CNN rerun, and its AP at IoU 0.75 is 25.3, compared with 19.4. The improvement is visible at both of those thresholds. That is especially relevant for a detector that changes both the features used to identify a candidate and those used to estimate its box adjustment.
The second Fast R-CNN row is also informative. The VOC-style voting approach raises AP at IoU 0.50 from 39.9 to 40.3 on COCO 2015 test-dev, while averaged AP over 0.5:0.95 falls from 20.5 to 20.0. At IoU 0.75 the same comparison goes from 19.4 to 18.1. The authors attribute this pattern to averaging coordinates from boxes that agree only loosely. Such averaging can leave a rectangle near the right place while shifting its edges enough to lose credit at a stricter threshold. For the challenge, the authors retune suppression and voting so that a box needs much closer agreement to influence the final coordinates.
What changes for small objects
COCO reports size-specific results. Here the small category contains objects with area at most 32² pixels, and the paper describes about 40% of the objects as small. Small-object AP on COCO 2015 test-dev is 4.1% for the Fast R-CNN rerun and 7.0% for the strongest standard ION setting. Average recall over the small category is 7.3% and 10.7%, respectively. In the same comparison, medium-object AP goes from 20.0 to 26.1 and large-object AP from 35.8 to 40.1. The small-object results deserve attention both because their starting point is low and because the standard system improves recall as well as precision.
The authors note that selective search has average recall under 10% for small COCO objects in the proposal analysis they cite. A detector can sometimes recover an object whose proposals start outside the range that would count as a successful proposal. Regression can move a candidate’s edges until it overlaps the target closely enough to count as a detection. This is how the authors explain detection recall above the cited proposal figure. The mechanism still depends on having a candidate with enough useful evidence to score and adjust.
The VOC 2007 size analysis uses normalized AP and the error diagnosis procedure the paper attributes to Hoiem. It compares a progression of detector variants and likewise shows a marked improvement for small objects. That is complementary evidence to the COCO size breakdown. The VOC figure provides its own diagnostic view, and the COCO table provides explicit size-specific precision and recall under COCO’s evaluation. Together they establish that the improvement is visible when detections are grouped by size as well as when scores are averaged across classes.
The COCO challenge and the later run
For the competition, the authors train on COCO’s training split and part of its validation split. They hold out 5000 validation images as minival and refer to the enlarged training set as trainval35k. The challenge system also replaces selective search with a combination of Multiscale Combinatorial Grouping, or MCG, and a modified Region Proposal Network, or RPN. This changes the set of candidate rectangles before ION sees them. The authors combine the proposal methods because the resulting detections work better than with either method alone in their comparison.
The modified RPN uses additional anchor boxes, including smaller ones. An anchor is a preset box shape from which the proposal network predicts a candidate. The first RPN configuration uses conv5 3. The second also uses conv4 3, after normalizing and scaling the features to join them. The two RPN configurations have reported proposal average recalls of 44.1% and 44.3%, respectively, compared with 41.7% for selective search and 51.6% for MCG. Despite MCG’s stronger average recall, the authors find comparable detection results with the RPN proposals. That motivates testing the combination at the level of final detections. Proposal average recall summarizes coverage, while final detection also depends on how useful the proposed boxes are to the classifier and regressor.
The challenge training uses 1000 MCG and 1000 RPN1 boxes. Its test setup uses 2000 MCG and 1000 RPN2 boxes. The detector adds two convolutional layers above conv5 3 and pools from the later one, conv7, alongside conv3 3, conv4 3, conv5 3, and the recurrent context map. It also trains longer and uses two rounds of box regression with retuned voting. The joint search on minival selects 0.443 as the suppression IoU threshold and 0.854 as the voting IoU threshold. The reported improvement on minival is +1.3 mAP compared with a single round of standard non-maximum suppression at IoU 0.3.
The challenge entry uses a single convolutional network and reaches 31.0% mAP on COCO 2015 test-challenge and 31.2% on test-dev. It earns Best Student Entry and finishes third overall. Its reported runtime is 2.7 seconds/image on a Titan X GPU, excluding the generation of proposals. The split names distinguish the official challenge result from the development test score even though both are reported for the same submission.
The post-competition run continues training from the challenge weights with revised optimization settings. It also evaluates the original and horizontally flipped image, transforms the flipped predictions back, and averages class scores and box shifts. Its test proposal budget is 4000 boxes, using 2000 from each of MCG and RPN2. The resulting score is 33.1% on COCO 2015 test-dev. The runtime rises to 5.5 seconds/image under the same hardware and proposal timing convention. The paper attributes most of this increase to the extra image evaluation for flipping. The result illustrates what the authors obtained when they combined ION with more training and more extensive inference, while the standard 2014 train comparison shows how the detector performs under a shared baseline schedule.
What the ablations show
More layers help when their amplitudes are controlled
The architecture study uses the VOC 2007 test set and trains on the combined VOC 2007 and VOC 2012 trainval images. It keeps dropout and uses one round of box regression for the design comparisons. That common setup matters because the best headline score also uses changes in both of those areas. The first comparison asks what happens when the detector reads from several convolutional layers, with the context branch left out.
With a 1x1 projection as the only feature combination step, VOC 2007 test mAP is 70.8 for C5 alone. Pooling from C4 and C5 gives 69.7, adding C3 yields 63.6, and taking all the tested layers through C2 gives 59.3. In this experiment, each additional earlier source makes the result worse under direct combination. The projection has the ability to mix channels, but the authors explain that the very different activation magnitudes make learning poorly conditioned.
Normalized skip-pooling configurations on VOC 2007 test by detection mAP
The score improves as intermediate layers are added, then levels off at the earliest tested layer.
The numbers
| System or setting | mAP % |
|---|---|
| C5 | 71.5 |
| C4 and C5 | 74.4 |
| C3, C4, and C5 (this paper) | 74.6 |
| C2 through C5 | 74.6 |
With normalization and rescaling in place, the wider set of layers gives a better descriptor. Much of the gain appears as soon as C4 is included. Adding C3 improves the result further in this experiment, and C2 leaves it at the same reported level. The chosen C3 through C5 setting gets the strongest reported mAP without needing the additional earlier map. The comparison supports retaining useful features at more than one depth and setting their scale before mixing them. An additional source of finer resolution can be redundant once the detector already has access to intermediate features.
The separate normalization comparison asks how precisely this adjustment needs to be specified. The variants normalize either across channels at each spatial position or over the whole pooled feature, and they use either fixed scaling or learned per-channel scaling. The measured reference magnitudes are roughly 130 for the per-position, across-channel norm and 1000 for the norm over all entries. The design variants with segmentation regularization score 76.2, 76.4, 76.5, and 76.6 mAP on VOC 2007 test. These close results put the emphasis on handling amplitude at all. The experiment provides little empirical reason to prefer the learned scale on detection accuracy alone.
The form of context matters
The context comparison holds pooling from conv3, conv4, and conv5 in place. One option adds stacked convolutional layers on top of conv5 and reads their output as context. Another uses a global average repeated at every spatial location. The recurrent option passes information through the grid at the original resolution. These alternatives change what one cell can know about the rest of the feature map and whether the resulting description varies with its position.
The paper’s receptive-field figure makes the comparison concrete. With two 3x3 convolutions, a cell of the input map can influence output cells in a 5x5 window. With two 5x5 convolutions, the influence extends to a 9x9 window. This concerns the additional reach above conv5, whose features already describe neighborhoods in the original image. Global average pooling allows every input cell to contribute to the global description, but provides the same description at every location after it is repeated. Stacked recurrence gives each cell a route to all input positions and lets its description depend on where those positions lie in relation to it.
The authors report that the stacked four-directional IRNNs perform best among these context alternatives on VOC 2007 test, both with and without the segmentation labels. They also report fewer parameters for the recurrent architecture in this comparison. With the selected skip layers, the recurrent version scores 75.6 mAP with detection supervision and 76.5 when the auxiliary loss is added. The context result addresses the form of the additional evidence as well as its presence. The comparison is between particular architectures with different routes for transmitting information, so the receptive-field figure explains a plausible advantage while the held-out detection scores show which implementation worked best in this setup.
Pixel labels improve detection through training
The segmentation study evaluates the extra supervision across different selections of pooled layers. Adding pixel prediction generally improves detection mAP on VOC 2007 test. For the selected C3, C4, C5, and recurrent feature combination, the result moves from 75.6 to 76.5. A configuration that also reads from C2 changes from 74.9 to 76.8. This helps explain why the paper describes the effect as a typical improvement instead of a fixed increment associated with every setting.
The authors interpret the result as richer supervision of intermediate features. A class label on a candidate mainly tells the detector what that rectangle contains. Pixel labels give it a spatially detailed target for the same image. The comparison measures the usefulness of that extra training signal for detections. The gain carries no cost from evaluating the auxiliary output at test time because that output is removed once training is complete. The added labels and the computation needed to train on them are part of the training setup.
A short recurrent stack is sufficient in these experiments
The paper varies the number of recurrent layers with 512 hidden units in each and the segmentation loss applied at the top. Two layers work best on VOC 2007 test. That fits the architectural explanation for using a second set of sweeps: the first gives a cell access along its axes, and the second creates paths from cells off both axes. Adding another layer can transform and relay those features again, but it does not introduce the same jump in which parts of the map are reachable. The experiment finds no corresponding accuracy benefit from the deeper stack it tests.
For a separate comparison, the authors vary hidden widths from 128 through 256 and 512 to 1024. With the recurrent matrix learned, the respective VOC 2007 test scores are 76.4, 76.5, 76.5, and 76.2 mAP. With the matrix held at the identity, the scores are 75.5, 75.3, 76.1, and 76.4. The learned variants are close across widths. At the larger tested widths, fixing the transition can keep performance close to that of the learned version. The paper chooses 512 hidden units as the default for the other studies.
The authors suggest that the projections into and out of the hidden state already give the context branch enough flexibility to make the extra recurrent matrix multiplication dispensable in some settings. This interpretation is consistent with the additive update retaining its position-dependent accumulation and stepwise ReLU. The study also finds that sharing the input projection across directions has an effect of −0.1 mAP, while saving convolutional layers. Together, the simplifications show where the implementation can save work while preserving most of the accuracy measured in this design study.
The sweeps can be arranged differently
One variant sweeps horizontally in the first layer and vertically in the second. That arrangement also provides a path from a grid location to a destination in a different row and column. It ties the main method at 76.5 mAP on VOC 2007 test. Pooling from both recurrent layers gives 75.9. Pooling from the output of stacked convolutions as well as the recurrent branch gives 76.5. Those comparisons support using the upper recurrent map as the standard context descriptor and show that a different order of directional processing can be equally effective on this benchmark.
The added convolutional layers appear again in the COCO appendix. With 2014 train and selective search, the appendix lists 24.9 averaged AP on COCO 2015 test-dev for the ION configuration and 25.1 for the one that also pools from conv7. That makes the extra feature useful in that setting even though the convolution-plus-recurrence variant ties the main result in the VOC study. The relevant evidence is conditional on the dataset and configuration in which each version was tried.
What drives the challenge gains
The COCO appendix traces the progression from the baseline to the strongest run. One transition combines stronger proposals with the larger training set. The relevant test-dev results are 25.1 for ION with conv7 under the selective search and 2014 train setup, and 29.0 with MCG plus RPN and trainval35k. Both numbers are averaged AP at 0.5:0.95. The transition marks the importance of the changed proposal and training setup taken together. It leaves the independent effect of each change open.
The appendix also reports tests of individual refinements on minival. Averaging predictions from the original and flipped images gives +0.8 mAP there. Continued training with only the lower layers frozen gives +0.4 mAP, and the subsequent stage with all layers trainable gives +0.7. For the competition network, increasing the proposal budget from 3000 to 4000 gives +0.1 mAP. These checks describe changes under specific starting conditions. Their value is in explaining why the authors kept particular refinements after trying them, while the final test-dev result measures the combined system.
Limitations
Limits the authors identify
The authors explicitly describe the difficulty of proposing small objects. If a proposal set fails to provide a useful starting rectangle, pooling and contextual reasoning have little direct opportunity to act on that object. Box regression can rescue candidates that begin with insufficient overlap, and the COCO size analysis gives a reason to think that happens. The low absolute precision and recall for small objects show how much difficulty remains even after the detector improves. Recovering more small objects and reliably covering the whole small-object category are different experimental outcomes.
The authors also identify a localization tradeoff in the original box voting procedure. A generous overlap requirement can pull together slightly different estimates of where an object lies. That can help a score based on IoU 0.5 and hurt one that also depends on tighter fits. The challenge system reduces the problem by selecting stricter voting settings on minival. The demonstrated thresholds belong to that validation procedure and detector. Their suitability elsewhere would require another comparison.
The strongest COCO configuration was refined by starting from previously trained weights. The authors say they did not try training that entire configuration from the original ImageNet initialization. They believe it could work, but their result establishes the continued-training procedure they actually ran. They also note that the challenge deadline influenced design choices. Those conditions matter when interpreting a sequence of successful adjustments as evidence about which complete training path is preferable.
Timing in the paper is similarly specific. The ION times exclude proposal generation. The post-competition inference pass is longer because it evaluates a flipped image as well as the original, and it uses a larger candidate set. These measurements describe the expense of the reported detection settings on the stated hardware. The total cost of obtaining and processing detections would include the proposal algorithms too.
Limits visible in the comparisons
The standard COCO rerun controls the training images and schedule and supplies a better comparison for the detector design than the published Fast R-CNN figure from a different training run. The highest COCO score comes from a setup that changes more variables. The choice of training data, proposals, extra convolution, optimization schedule, box refinement, and flip averaging all contribute to the comparison between the standard and post-competition systems. Several have dedicated checks, and the larger training set and proposal replacement enter together in a prominent step of the appendix. A precise allocation of the full improvement among the individual changes remains unresolved.
The spatial context experiment establishes a route for distant features to affect a prediction. It does not identify which distant features supplied the decisive evidence for an individual detection. The detector also receives local information from conv5, and the recurrent branch changes the transformations applied to those features in addition to extending their reach. The potted plant and chair examples are consistent with the authors’ account of fine detail and occlusion. The category results and size breakdown establish performance differences. Determining whether a particular class score depended on a specific piece of surrounding evidence would require a different kind of analysis.
The architecture comparisons are mainly on VOC 2007 test, with the common training setup and the paper’s chosen feature extractor. A close result between two normalization methods, hidden widths, or sweep arrangements is evidence of similar performance in that experiment. The paper fixes the seed to control input order across variants and reports point estimates. It provides limited grounds for ranking very close settings across independent training runs or across other feature extractors. The larger shifts, such as the failure of directly merging several unnormalized layers, are easier to interpret from the experiments as presented.
The segmentation loss also relies on available pixel labels. Removing the auxiliary output after training preserves detection runtime, while acquiring and using the supervision remains a consideration. The measured gain belongs to a setup in which those labels and a compatible feature grid were available. The reported tables give no comparison between collecting pixel labels and spending an equivalent labeling effort on additional boxes. The paper shows that pixel targets can improve its detector under the tested conditions.
The small-object results cover improvements across benchmarks and supply a separate look at recall and precision on COCO. They do not independently vary object size, clutter, visibility, and proposal quality. Small objects can be crowded or partly obscured, and changing the feature extractor can affect both scoring and box regression. The evidence supports the practical result that ION improves small-object detection and the narrower design findings from the ablations. The causal contribution of each source of information to each small-object prediction remains open.
What came after
The subsequent citations connect ION to work on the representation used for detection, the training of dense detectors, and the visual context needed to identify an object. The connections differ in how directly they address ION’s design. A citing work’s title can establish its subject and support a comparison of the questions the papers pose. Which ION components it used, if any, requires a description of that work’s method.
The closest comparison in subject is the work on feature pyramids for object detection. ION handles scale by reading several VGG16 feature maps for each proposal and combining those reads into one descriptor. The later work’s title places a feature pyramid at the center of the detection approach. Both are concerned with giving a detector access to a representation that can serve objects at different scales. The specific point of comparison is the role played by the hierarchy: ION demonstrates that features from intermediate layers can improve proposal scoring when their amplitudes are made compatible. This is the connection to Feature Pyramid Networks.
Work on focal loss addresses a different part of the detector, the loss used to train dense object detection. ION’s standard procedure samples candidate regions and investigates what feature descriptions those candidates receive. A loss-centered study asks how the detector should learn from the predictions it makes in a dense setting. The shared subject is object detection, but the questions concern different operations. ION’s scale normalization changes the inputs to its prediction layers, while the cited work identifies its intervention as a training loss. That distinction locates the connection to Focal Loss for Dense Object Detection.
The paper also records a VOC 2012 comparison involving Fast R-CNN and the earlier YOLO detector. The later YOLO work continues that detector line. From ION’s side, the useful point of comparison is that sharing convolutional computation across proposals still leaves a cost for scoring candidates and, in the stronger configurations, repeating evaluation or refining boxes. ION reports those costs alongside accuracy and shows how additional evaluation changes both. The later title puts speed as well as detector performance among its aims in YOLO9000.
The work on context in referring expressions brings the same broad question to identifying a referent from a description. ION asks whether visual information elsewhere in the image helps a detector decide what occupies a candidate box. A referring expression can make the relationship to something else part of the identification itself. In that setting the useful question is which surrounding evidence distinguishes the intended region from other possibilities. The parallel is the value of context tied to a particular location. ION supplies that tie through directional sweeps over a visual grid. The later work studies context in the setting named by Modeling Context in Referring Expressions.
Cite
Cite as Sean Bell, C. Lawrence Zitnick, Kavita Bala and Ross Girshick. 2016. Inside-Outside Net: Detecting Objects in Context with Skip Pooling and Recurrent Neural Networks. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.
@inproceedings{bell2016inside,
title = {{Inside-Outside Net: Detecting Objects in Context with Skip Pooling and Recurrent Neural Networks}},
author = {Sean Bell, C. Lawrence Zitnick, Kavita Bala and Ross Girshick},
booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
year = {2016},
doi = {10.1109/cvpr.2016.314},
eprint = {1512.04143},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/cvpr.2016.314}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bell-2016-inside-outside-net-detecting-objects/