Geometrically Constrained and Token-Based Probabilistic Spatial Transformers

Johann Schmidt, Sebastian Stober
9/14/2025
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Fine-grained visual classification (FGVC) remains highly sensitive to geometric variability, where objects appear under arbitrary orientations, scales, and perspective distortions. While equivariant architectures address this issue, they typically require substantial computational resources and restrict the hypothesis space. We revisit Spatial Transformer Networks (STNs) as a canonicalization tool for transformer-based vision pipelines, emphasizing their flexibility, backbone-agnostic nature, and lack of architectural constraints. We propose a probabilistic, component-wise extension that improves robustness. Specifically, we decompose affine transformations into rotation, scaling, and shearing, and regress each component under geometric constraints using a shared localization encoder. To capture uncertainty, we model each component with a Gaussian variational posterior and perform sampling-based canonicalization during inference.A novel component-wise alignment loss leverages augmentation parameters to guide spatial alignment. Experiments on challenging moth classification benchmarks demonstrate that our method consistently improves robustness compared to other STNs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schmidt2025geometrically,
  title  = {Geometrically Constrained and Token-Based Probabilistic Spatial Transformers},
  author = {Johann Schmidt and Sebastian Stober},
  year   = {2025},
  eprint = {2509.11218},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.11218v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.11218.svg)](https://codeofpaper.com/paper/2509.11218)

Discussion