English

Training-free Spatially Grounded Geometric Shape Encoding (Technical Report)

Computer Vision and Pattern Recognition 2026-05-12 v2

Abstract

Positional encoding has become the de facto standard for grounding deep neural networks on discrete point-wise positions, and it has achieved remarkable success in tasks where the input can be represented as a one-dimensional sequence. However, extending this concept to 2D spatial geometric shapes demands carefully designed encoding strategies that account not only for shape geometry and pose, but also for compatibility with neural network learning. In this work, we address these challenges by introducing a training-free, general-purpose encoding strategy, dubbed XShapeEnc, that encodes an arbitrary spatially grounded 2D geometric shape into a compact representation exhibiting five favorable properties, including invertibility, adaptivity, and frequency richness. Specifically, a 2D spatially grounded geometric shape is decomposed into its normalized geometry within the unit disk and its pose vector, where the pose is further transformed into a harmonic pose field that also lies within the unit disk. A set of orthogonal Zernike bases is constructed to encode shape geometry and pose either independently or jointly, followed by a frequency-propagation operation to introduce high-frequency content into the encoding. We demonstrate the theoretical validity, efficiency, discriminability, and applicability of XShapeEnc via extensive analysis and experiments across a wide range of shape-aware tasks and our self-curated XShapeCorpus. We envision XShapeEnc as a foundational tool for research that goes beyond one-dimensional sequential data toward frontier 2D spatial intelligence.

Keywords

Cite

@article{arxiv.2604.07522,
  title  = {Training-free Spatially Grounded Geometric Shape Encoding (Technical Report)},
  author = {Yuhang He},
  journal= {arXiv preprint arXiv:2604.07522},
  year   = {2026}
}

Comments

Training-Free 2D Geometric Shape Encoding

R2 v1 2026-07-01T12:00:00.160Z