What is spatial transformer network (STN) and how does it learn geometric invariance?

Updated May 15, 2026

Short answer

STN learns spatial transformations to normalize input images within the network.

Deep explanation

Spatial Transformer Networks introduce a differentiable module that predicts transformation parameters (translation, rotation, scaling) and applies them to input feature maps. This allows the network to learn invariance to geometric transformations without explicit preprocessing.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Computer Vision interview questions

View all →