# Network In Network

Network In Network replaces linear convolution filters with small perceptrons for stronger local features

Min Lin, Qiang Chen, Shuicheng Yan · arXiv · 2013-12-16

- **Problem** Convolution layers use linear filters, so they capture local patches poorly when the concepts they describe are not linearly separable. Adding more filters helps but makes each following layer costlier to compute.
- **Method** NIN swaps each linear filter for a small perceptron and averages category maps.
- **Results** NIN with dropout scored 10.41% test error on CIFAR-10, compared to 11.68% for Conv. maxout + Dropout.

## Where the linear filter gets stuck

A standard convolution layer slides a linear filter over the input and applies a nonlinear activation to each result. The authors argue that this linear step only captures a concept when its examples fall on one side of a separating plane. Real concepts often lie on nonlinear manifolds, so the features that describe them are highly nonlinear functions of the input.

One workaround is an over-complete set of filters, but each extra filter adds work for the next layer, which must handle every combination of variations.

The maxout network takes a maximum over affine feature maps, which lets it separate concepts that lie within convex sets. That approach assumes each concept occupies a convex region of the input, and this need not hold. Sliding a small network over the input has appeared before, but those versions targeted specific problems and used only one such layer.

## A micro network inside each convolution layer

The core idea keeps the sliding-window structure of a convolution but puts a multilayer perceptron where the linear filter used to be. The same small network is shared across all receptive fields, so the layer still produces feature maps the way a CNN does. The authors choose a multilayer perceptron because it is a universal function approximator and can be trained by back-propagation.

It can also be a deep model in its own right, which the authors connect to the idea of feature re-use.

For the first layer of the perceptron, the output at location (i, j) for channel k\_1 is a rectified linear unit applied to a linear map of the patch. \\\[ f^{1}\_{i,j,k\_1} = \\max(w^{1\\,T}\_{k\_1} x\_{i,j} + b\_{k\_1}, 0) \\\] Each further layer takes the previous layer's output and applies the same form, so the stack ends with f^{n}\_{i,j,k\_n} computed from f^{n-1}\_{i,j}.

Each such layer is also equivalent to a convolution with 1x1 kernels, which makes the structure easier to reason about. Maxout approximates convex functions with a maximum over linear functions, whereas the mlpconv layer uses a universal approximator in that position.

## Global average pooling as the classifier

Standard CNNs flatten the last feature maps into fully connected layers before a softmax, and those layers overfit easily. Instead, the authors make one feature map per category in the last mlpconv layer and average each map over its spatial extent. The averaged vector goes straight into the softmax, so this step has no parameters to fit.

Because each map is tied to one category, the maps can be read as category confidence maps. Averaging also removes spatial position, which the authors say makes the output more robust to translations of the input. The authors treat this as a structural regularizer, and it only works because mlpconv layers approximate the confidence maps better than linear filters do.

The full NIN stacks mlpconv layers, with optional subsampling between them, and ends with this pooling step and the cost layer. Each mlpconv layer contains a three-layer perceptron in the paper's main setup, and the number of layers can be tuned for each task.

## CIFAR-10 results and the effect of dropout

Each network has three mlpconv layers, each followed by spatial max pooling, and dropout on every mlpconv output except the last. Training uses mini-batches of 128, and the learning rate is lowered by a factor of 10 each time training accuracy stops improving. The local receptive field size and weight decay were tuned on the last 10,000 training images before the model was retrained on the full set.

With dropout and no augmentation, NIN scored 10.41% test error on CIFAR-10, compared to 11.68% for Conv. maxout + Dropout. The authors describe this as more than one percent better than the prior state of the art. Adding translation and horizontal flipping augmentation lowered the error to 8.81%, compared to 9.38% for Conv. maxout + Dropout + Data Augmentation.

Without dropout, NIN reached 14.51% on CIFAR-10, which already beats many prior regularized models except maxout.

## CIFAR-100, SVHN and MNIST

For CIFAR-100 the authors reused the CIFAR-10 settings without tuning, changing only the last mlpconv layer to output 100 feature maps. NIN with dropout scored 35.68% test error, compared to 38.57% for Conv. maxout + Dropout.

On SVHN the network has a structure similar to the CIFAR-10 one and uses local contrast normalization. NIN with dropout reached 2.35% test error, compared to 2.47% for Conv. maxout + Dropout.

On MNIST the authors used the CIFAR-10 structure with fewer feature maps per layer and no augmentation. NIN with dropout scored 0.47%, compared to 0.45% for Conv. maxout + Dropout. The authors call this comparable rather than better, since MNIST error is already very low.

## Pooling versus fully connected heads

The authors replaced only the pooling head of their NIN with a fully connected layer, with and without dropout, on CIFAR-10. Without dropout the fully connected head reached 11.59% error, and with dropout it reached 10.88%. Global average pooling reached 10.41%, the lowest of the three. The authors attribute the weak no-dropout result to the fully connected layer overfitting when no regularizer is applied.

To check whether pooling helps a conventional CNN, the authors built a network with three convolutional layers and one local connection layer of 10 feature maps. That network scored 17.56% error with a fully connected layer and 15.99% with dropout added. Replacing the dropout and fully connected layer with global average pooling gave 16.46%.

The authors describe this as a one percent gain over the CNN without dropout, but it did not beat the dropout version. They suggest pooling may be too demanding for linear convolution layers, which must produce rectified confidence maps.

## What the last feature maps show

The authors visualized the last mlpconv feature maps of the trained CIFAR-10 model for ten categories. The largest activations fall in the map of the ground-truth category, and the strongest responses sit near the object, especially for structured objects like cars. The authors note that these maps were trained with category labels only, so they expect finer labels or bounding boxes to help.

The authors suggest the category-level maps could support object detection, in the same way scene labeling work uses them.

## Limitations

The main experiments cover CIFAR-10, CIFAR-100, SVHN and MNIST only. On MNIST the result is not better than the best prior number of 0.45%. Maxout without dropout was not available, so only dropout-regularized baselines are compared. The feature-map visualization is qualitative, and object detection was not tested.

## Paper info

- **Authors**: Min Lin, Qiang Chen, Shuicheng Yan
- **Venue**: arXiv · Preprint
- **First published**: 2013-12-16
- **Added**: 2026-11-12
- **Updated**: 2014-3-4
- **Version**: v3
- **arXiv**: 1312.4400
- **Category**: cs.NE · cs.CV · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1312.4400v3) · [PDF ↗](https://arxiv.org/pdf/1312.4400v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Min Lin, Qiang Chen, Shuicheng Yan (2013). Network In Network. arXiv:1312.4400v3. https://arxiv.org/abs/1312.4400v3

**BibTeX**

```
@misc{lin2013network,
  title = {{Network In Network}},
  author = {Min Lin and Qiang Chen and Shuicheng Yan},
  year = {2013},
  eprint = {1312.4400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.4400v3}
}
```

## Other paper commentary

- [Self-Attention with Relative Position Representations](https://refivu.com/en/papers/9457d4e9-5650-4947-91f7-51a786a383f6-self-attention-with-relative-position-representations.md)
- [Deep Laplacian Pyramid Networks for Fast and Accurate Super-Resolution](https://refivu.com/en/papers/640b6f7c-566c-4cc7-a351-edc07a5183c8-deep-laplacian-pyramid-networks-for-fast-and-accurate.md)
- [A Critical Review of Recurrent Neural Networks for Sequence Learning](https://refivu.com/en/papers/0e786415-0fad-4e73-b947-9aa88bb3aed0-a-critical-review-of-recurrent-neural-networks-for.md)
- [BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer](https://refivu.com/en/papers/aebeacc7-489d-4871-a367-3a0b5ad01794-bert4rec-sequential-recommendation-with-bidirectional.md)
- [A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks](https://refivu.com/en/papers/22cf25fe-084f-44ca-aecf-bc06457c3a2c-a-baseline-for-detecting-misclassified-and-out-of.md)
- [1D Convolutional Neural Networks and Applications: A Survey](https://refivu.com/en/papers/03cdd780-b48e-4098-95e8-ba82fd387ae9-1d-convolutional-neural-networks-and-applications-a-survey.md)
- [TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension](https://refivu.com/en/papers/34db6f08-4b90-47eb-a2d8-fd0c5a90bf6e-triviaqa-a-large-scale-distantly-supervised-challenge.md)
- [Semantic Image Synthesis with Spatially-Adaptive Normalization](https://refivu.com/en/papers/7c8cce40-a7a4-49f2-a589-a9b074c36caa-semantic-image-synthesis-with-spatially-adaptive.md)
- [An Introduction to Deep Learning for the Physical Layer](https://refivu.com/en/papers/f1790a96-c7b5-4b05-9672-d9d222404a87-an-introduction-to-deep-learning-for-the-physical.md)
- [ByteTrack: Multi-Object Tracking by Associating Every Detection Box](https://refivu.com/en/papers/6d6f3415-7480-483d-afac-4b47286d13c9-bytetrack-multi-object-tracking-by-associating-every.md)
- [ViViT: A Video Vision Transformer](https://refivu.com/en/papers/4375a36b-0a1c-403c-8454-737a027ff973-vivit-a-video-vision-transformer.md)
- [Learning Important Features Through Propagating Activation Differences](https://refivu.com/en/papers/a23d41a4-f8c4-41eb-ac72-f85328d3740c-learning-important-features-through-propagating-activation.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [MNIST](https://refivu.com/en/terms/28b9bb66d1c6-mnist)
- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [convolutional neural networks](https://refivu.com/en/terms/936419759d72-convolutional-neural-networks)
- [CIFAR-100](https://refivu.com/en/terms/5afa3b877d18-cifar-100)
- [SVHN](https://refivu.com/en/terms/c24d35c2e4d0-svhn)
- [test error](https://refivu.com/en/terms/8b10281531ee-test-error)
- [global average pooling](https://refivu.com/en/terms/f70116a971b4-global-average-pooling)
- [Multilayer Perceptron](https://refivu.com/en/terms/0892ee9508d3-multilayer-perceptron)
- [maxout network](https://refivu.com/en/terms/689d5c9f21f4-maxout-network)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/27c629ee-aa61-4496-8fca-b1dbef86d705-network-in-network)
