Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Yuhang He• 2026

Related benchmarks

TaskDatasetResultRank
2D shape retrievalMendeley 2D shape dataset
mAP91
12
2D shape retrievalMPEG-7 CE-Shape-1 Part B
mAP59
12
Polygon-polygon topological relation classificationOpenStreetMap Singapore (test)
Accuracy76
9
Polygon-polygon topological relation classificationOpenStreetMap New York (test)
Accuracy76.8
9
ClassificationMendeley
F1-score100
7
Shape classificationcBBBC010
F1 Score92
7
ClassificationMNIST
F1 Score94
7
ClassificationMPEG-400
F1-score97
7
ClassificationMPEG-7
F1 Score87
7
Shape classificationBBBC010
F1 Score83
7
Showing 10 of 15 rows

Other info

Follow for update