1x1 Convolutions

What is a 1x1 convolution?

A 1x1 convolution, also known as a channel-wise convolution or spatial convolution with a kernel size of 1x1, is a type of convolutional layer in a neural network. It is a basic building block of convolutional neural networks (CNNs) and is used to perform feature extraction and transformation.

In a standard convolutional layer, the kernel (or filter) slides over the input data with a specified stride and padding, performing a dot product between the kernel and the input data to produce an output feature map. The kernel size determines the number of input data elements that are involved in the computation.

In a 1x1 convolution, the kernel size is 1x1, which means that the kernel only involves a single input data element at a time. This type of convolution is essentially a point-wise multiplication, where each element of the input data is multiplied by a learnable weight and then passed through an activation function.

The 1x1 convolution has several key properties:

  1. Spatially invariant: The kernel is applied independently to each spatial location, making it spatially invariant.
  2. Channel-wise: The kernel operates on a channel-wise basis, meaning that it transforms each channel of the input data independently.
  3. Point-wise: The kernel is applied point-wise, meaning that it involves only a single input data element at a time.

1x1_conv.png