midCNN

What is weight sharing in CNNs and why is it important?

Updated May 15, 2026

Short answer

Weight sharing means the same filter is applied across the entire image, reducing parameters and improving generalization.

Deep explanation

In CNNs, a single filter (kernel) is applied across all spatial locations of an image. This is called weight sharing. It significantly reduces the number of parameters compared to fully connected networks. It also allows the model to detect patterns regardless of their position in the image, making it translation invariant.

Real-world example

Detecting a cat whether it appears in the top-left or bottom-right of an image.

Common mistakes

  • Assuming each pixel location has separate weights.

Follow-up questions

  • How does weight sharing reduce overfitting?
  • What is translation invariance?

More CNN interview questions

View all →