# An Introduction to Convolutional Neural Networks

Convolutional networks limit each neuron to a small image region

Keiron O'Shea, Ryan Nash · arXiv · 2015-11-26

- **Problem** Dense networks connect each neuron to every input value, so a 64 × 64 colour image needs 12, 288 weights per neuron.
- **Method** The authors limit each convolutional neuron to a small image region and share its weights across the image. Unlike dense layers, each neuron sees only a small patch of the input.
- **Results** A 6 × 6 receptive field gives 108 weights per neuron, compared with 12, 288 for a standard neuron on the same input.

## Why image inputs overwhelm dense networks

Dense networks struggle with images because each neuron connects to every value of the layer before it. A 64 × 64 colour image raises that to 12, 288 weights per neuron, and the whole network has to grow with it. So the cost of a dense design rises with the image size, not only with the number of layers.

Adding more layers and neurons is therefore not a simple fix. Two obstacles block it: limited computing power and time, and overfitting. Overfitting means the network can't pick out generalised features, so performance drops on test and prediction data. Fewer trainable parameters are expected to lower that risk.

## Building image structure into the network

The key move is to use the fact that the input is an image and write that knowledge into the layout of the network. Here the neurons are laid out in three dimensions: height, width and depth, where depth is the third axis of an activation volume rather than a count of layers. A 64 × 64 × 3 input volume shrinks through the network until the output is a 1 × 1 × n vector of class scores.

The network is built from three kinds of layers that are stacked in turn: convolutional, pooling and fully-connected. The input layer holds the pixel values, and each later stage transforms the output of the stage before it. A rectified linear unit (ReLu) is then applied element-wise to the activations, and the text gives sigmoid as an example of that kind of function.

## Convolutional layer: local connections and shared weights

A convolutional layer slides small learnable kernels across the input, and each kernel yields a two-dimensional activation map. Each kernel is small in height and width but spans the full depth of the input. Each neuron sees only a receptive field of the input, and its reach through the depth equals the depth of the input.

Take a 64 × 64 × 3 RGB input with a 6 × 6 receptive field. Each neuron then has 108 weights, which is 6 × 6 × 3, compared to 12, 288 for a standard neuron on the same input. That gap is the reason the layer stays tractable as images grow.

Three hyperparameters control the output: depth, stride and zero-padding. Stride sets how far the receptive field moves, so a stride of 1 gives heavy overlap and very large activations. A larger stride reduces overlap and gives an output with smaller spatial dimensions. Zero-padding adds a border to the input and gives further control over the output size.

The output size follows from the input size V, receptive field R, padding Z and stride S: subtract R from V, add twice Z, divide by S and add one. If that result isn't a whole number, the stride doesn't fit the input.

Parameter sharing assumes that a feature useful in one region is useful in another. Each activation map therefore uses one shared set of weights and bias, so the layer needs far fewer parameters. During backpropagation the gradients for a map are totalled across the depth and update that single set.

## Pooling and fully-connected layers

Pooling layers reduce the spatial size of each activation map, which cuts both the parameters and the computation that follow. The usual setting is 2 × 2 max-pooling with stride 2, which reduces each map to 25% of its original size and keeps the depth. Overlapping pooling, with stride 2 and kernel 3, is the alternative the paper describes.

The paper states that kernels above 3 usually hurt performance, but it gives no experiment for that claim.

General pooling, such as L1/L2-normalisation or average pooling, also exists. The tutorial itself concentrates on max-pooling. Fully-connected layers connect to all neurons of the two adjacent layers, as in standard ANNs. They turn the pooled activations into class scores, and the paper suggests ReLu between these layers.

## Stacking layers and managing memory

A common pattern stacks two convolutional layers before each pooling layer rather than one. The authors argue that this lets the network select more complex features of the input. Stacking three 3 × 3 convolutional layers gives neurons at successive depths a 3 × 3, a 5 × 5 and a 7 × 7 view of the input. The stacked non-linearities are said to express stronger features with fewer parameters.

Input sizes should be divisible by two, such as 32 × 32, 64 × 64 or 224 × 224. With small filters and stride 1, zero-padding should be one less than the receptive field size, divided by two.

A 227 × 227 input filtered with 64 kernels gives roughly 10 million activations, about 70 megabytes per image. Two options follow: resize the raw images, or use larger filters with stride 2.

## Limits of this tutorial

The numbers in the text are worked examples from layer settings, not benchmark results. The MNIST activation figure is a qualitative illustration, and the text gives no score for it. The claim that fewer parameters reduce overfitting is stated as expectation, not measured. Rules of thumb such as the kernel-size limit and the advice to split large layers are offered without measurements.

## Paper info

- **Authors**: Keiron O'Shea, Ryan Nash
- **Venue**: arXiv · Preprint
- **First published**: 2015-11-26
- **Added**: 2026-11-12
- **Updated**: 2015-12-2
- **Version**: v2
- **arXiv**: 1511.08458
- **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/1511.08458v2) · [PDF ↗](https://arxiv.org/pdf/1511.08458v2)

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

Keiron O'Shea, Ryan Nash (2015). An Introduction to Convolutional Neural Networks. arXiv:1511.08458v2. https://arxiv.org/abs/1511.08458v2

**BibTeX**

```
@misc{oshea2015introduction,
  title = {{An Introduction to Convolutional Neural Networks}},
  author = {Keiron O'Shea and Ryan Nash},
  year = {2015},
  eprint = {1511.08458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.08458v2}
}
```

## Other paper commentary

- [Matching Networks for One Shot Learning](https://refivu.com/en/papers/b9fc7556-8641-4de5-90e9-278f5122412f-matching-networks-for-one-shot-learning.md)
- [LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation](https://refivu.com/en/papers/ce104c95-75b4-4033-900a-57eef9818488-lightgcn-simplifying-and-powering-graph-convolution-network.md)
- [Unsupervised Domain Adaptation by Backpropagation](https://refivu.com/en/papers/5b06ce85-04aa-40bd-a8ba-094e15a092f1-unsupervised-domain-adaptation-by-backpropagation.md)
- [Spatial Transformer Networks](https://refivu.com/en/papers/6eb29eca-41eb-4d69-ace3-032bf11562a8-spatial-transformer-networks.md)
- [LINE: Large-scale Information Network Embedding](https://refivu.com/en/papers/395ad92f-93c2-44fe-8480-bbf8df48c4cf-line-large-scale-information-network-embedding.md)
- [Stacked Hourglass Networks for Human Pose Estimation](https://refivu.com/en/papers/5578e324-2c80-4bb0-90a0-e90427560e5f-stacked-hourglass-networks-for-human-pose-estimation.md)
- [Instant Neural Graphics Primitives with a Multiresolution Hash Encoding](https://refivu.com/en/papers/b4180f7f-7d22-475c-8add-12309c2b51a3-instant-neural-graphics-primitives-with-a-multiresolution.md)
- [Medical Image Segmentation: Foundation Model Adaptation versus Task-Specific Training](https://refivu.com/en/papers/d5e6d956-8d45-41ee-a229-cfa12c77a62f-medical-image-segmentation-foundation-model-adaptation.md)
- [Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFs](https://refivu.com/en/papers/551829fd-0dd3-4274-8bd3-cb4438cd4b78-semantic-image-segmentation-with-deep-convolutional-nets-and.md)
- [VoxelNet: End-to-End Learning for Point Cloud Based 3D Object Detection](https://refivu.com/en/papers/96419e97-366d-4b0f-b7db-232e374f7e8c-voxelnet-end-to-end-learning-for-point-cloud.md)
- [The Kinetics Human Action Video Dataset](https://refivu.com/en/papers/a2b572fe-2c51-40af-87d9-956918d52119-the-kinetics-human-action-video-dataset.md)
- [Billion-scale similarity search with GPUs](https://refivu.com/en/papers/e02b0778-dbc6-4a4a-9b69-43dee7ffbd0c-billion-scale-similarity-search-with-gpus.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [convolutional neural networks](https://refivu.com/en/terms/936419759d72-convolutional-neural-networks)
- [backpropagation](https://refivu.com/en/terms/e09284f057ac-backpropagation)
- [max-pooling](https://refivu.com/en/terms/c2bc224c5125-max-pooling)
- [image recognition](https://refivu.com/en/terms/b92f065c611b-image-recognition)
- [Artificial neural networks](https://refivu.com/en/terms/b6ea897601dd-artificial-neural-networks)
- [overfitting](https://refivu.com/en/terms/82a66a720533-overfitting)
- [parameter sharing](https://refivu.com/en/terms/a678bc1aadfb-parameter-sharing)
- [rectified linear unit](https://refivu.com/en/terms/aa3703587017-rectified-linear-unit)
- [zero-padding](https://refivu.com/en/terms/f55daa779269-zero-padding)
- [Convolutional layer](https://refivu.com/en/terms/db0dc257a16c-convolutional-layer)
- [receptive field size](https://refivu.com/en/terms/60bbd7a85083-receptive-field-size)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/6b236b8c-8750-484a-8c31-87433f51f2eb-an-introduction-to-convolutional-neural-networks)
