An activation tensor of shape 28×28×192 passes through a 1×1 convolutional layer with 64 filters (including biases). What are the output shape, the number of learnable parameters and the multiply-accumulate (MAC) count, and why do architectures such as Inception and ResNet use 1×1 convolutions?

Deep learning, Convolutional networks
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you understand a 1×1 convolution as a shared per-pixel linear projection across channels and can count its parameters and MACs.

Key idea

At every spatial position (h,w), a 1×1 convolution takes the Cin-dimensional channel vector and multiplies it by a Cout×Cin weight matrix plus bias. Spatial dimensions stay unchanged, while the channel depth changes from Cin=192 to Cout=64.

Steps

  1. Output shape: kernel size is 1×1 with stride 1 and no padding needed, so spatial size stays 28×28 and the 64 filters give shape 28×28×64.
  2. Parameters: each filter has 1×1×192=192 weights and 1 bias, so 64×(192+1)=12,352 learnable parameters.
  3. MACs (one multiply-accumulate per weight application): 28×28 positions ×192 input channels ×64 output channels =9,633,792 MACs (a 3×3 conv with the same channels would cost 9× the MACs and nearly 9× the parameters: 110,656 parameters and 86,704,128 MACs).
  4. Purpose: 1×1 convolutions act as cheap channel bottlenecks (reducing 192 channels down to 64 before an expensive 3×3 or 5×5 convolution, or expanding channels afterwards) while adding non-linearity when followed by ReLU.

Common mistakes

How long your answer should be

4–5 lines; 2 minutes.

Last checked on 4 December 2026.

Read this

Previous in Deep learning: Given the 4×4 single-channel input X=[12013−120021−210−12] and 2×2 filter W=[1−201] with bias b=0, stride 1 and no padding, what is the output after cross-correlation, ReLU activation and 2×2 max pooling with stride 1?
Next in Deep learning: A small CNN takes a 32×32×3 image through: (1) a 3×3 conv with 16 filters, stride 1, padding 1; (2) 2×2 max pooling, stride 2; (3) a 3×3 conv with 32 filters, stride 1, padding 1; (4) global average pooling; and (5) a 10-class linear head. Including biases, what are the output shape after each layer and the total parameter count, and why does global average pooling avoid a parameter explosion?