All models

NIN

Tiny perceptrons slid over the image instead of linear filters, topped by global average pooling.

Image classification · 27 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (35 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
967K
Operations
27
Framework
PyTorch
Recurrent
No
Published
ICLR 2014
Cited by
6,809 (as of 4 October 2026)
Authors
Min Lin, Qiang Chen, Shuicheng Yan
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1835
Graph hash
4c18c3711a25fc279204b0e5589d0b76c860b1c052f178da33ebc7dce5a9049e
Skeleton hash
5cc9107ec24eb18aa95f5890605a1862ece440cd17ec0120077fef9bc675df92
Architecture hash
df9ec489634740636eabd94535d309e3379cdd851eb2f61cad465e018452b7c1
Diagram SHA-256
4b172518d20fbc49320b6ccbc51331b1b9b744d1b6a6db5698a85d36463b6c62
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

Network In Network, usually shortened to NIN, replaces the linear filter of a convolutional layer with a small neural network that abstracts the data within each receptive field. The micro network is a multilayer perceptron, chosen as a potent function approximator. The resulting unit is called an mlpconv layer. Deep NIN is built by stacking multiple of them.

The paper's own reading of the mechanism is that the cross channel parametric pooling layer is equivalent to a convolution layer with a 1x1 convolution kernel. Because the micro networks model local patches well, the classifier can use global average pooling over the feature maps, which is easier to interpret and less prone to overfitting than fully connected layers. The spatial average of the last mlpconv layer's feature maps is output directly as the confidence of categories and fed to the softmax.

The captured networks are the CIFAR configuration: three stacked mlpconv layers, each followed by a spatial max pooling layer that downsamples by a factor of two. Dropout is applied on the outputs of all but the last mlpconv layers. NIN reported state-of-the-art classification on CIFAR-10 and CIFAR-100 and reasonable results on SVHN and MNIST. The authors' released code is a cuda-convnet fork in which they implemented cccp, cascadable cross channel parametric pooling. A trained three-layer CIFAR-10 model later went into the Caffe Model Zoo.

Key idea. Replacing the linear convolutional filter with a sliding multilayer perceptron, the mlpconv layer, and replacing the fully connected classifier with global average pooling over category feature maps.

  • Network In Network
  • NIN
  • NetworkInNetwork
  • mlpconv
  • global average pooling
  • 1x1 convolution
  • CIFAR-10
  • image classification

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lin2014networknetwork,
      title={Network In Network}, 
      author={Min Lin and Qiang Chen and Shuicheng Yan},
      year={2014},
      eprint={1312.4400},
      archivePrefix={arXiv},
      primaryClass={cs.NE},
      url={https://arxiv.org/abs/1312.4400}, 
}