This paper proposes XShapeEnc, a training-free 2D spatial geometric shape encoding framework. The method decomposes a spatially grounded 2D shape into two components: normalized geometry and spatial pose. The mathematical formulation is clear, and the phase-modulation-based geometry-pose joint encoding is quite novel. The problem addressed in this work is of significant value. While existing positional encodings primarily target discrete positions of points, tokens, or patches, this paper attempts to provide a unified encoding for continuous 2D spatial geometric regions, which is highly meaningful. The decomposition of shapes into normalized geometry and spatial pose aligns well with the intuition behind spatial geometric modeling. The true novelty of this work lies mainly in the pose encoding and the geometry-pose joint encoding. However, the geometry encoding component bears a strong resemblance to the classical work Invariant image recognition by Zernike moments.
Major Concerns:
Limited Novelty over Classical Descriptors: Projecting a shape mask onto Zernike bases to obtain complex coefficients is inherently very similar to traditional Zernike moment-based shape representations. Currently, the paper fails to sufficiently distinguish its proposed method from classical Zernike moments, Fourier descriptors, and recent geometry-location encoding methods in terms of fundamental differences. Consequently, the method risks being perceived as merely a modernized repackaging of classical Zernike moment descriptors rather than a fundamentally new shape encoding framework.
Overstated Invertibility: The claims regarding invertibility need to be more cautious. For geometry encoding, a finite-length Zernike expansion can only approximate the reconstruction of the original shape; it is not strictly lossless and reversible. The experiments also indicate that longer encoding lengths yield better reconstruction quality, and complex shapes require higher-order bases to recover fine details.
Heuristic Nature of Frequency Propagation: The Frequency Propagation (FreqProp) module appears somewhat heuristic. Its motivation is to alleviate the sparsity of high-frequency coefficients in simple shapes by propagating low-frequency information into high-frequency coefficients. While this may improve downstream performance, it compromises the interpretability of each coefficient as an independent orthogonal projection. The paper should systematically analyze the impact of FreqProp on interpretability, reconstruction error, stability, and downstream performance, rather than treating it solely as an effective empirical enhancement.
Insufficient Support for Broad Claims: The paper claims that XShapeEnc can serve as a foundational encoding tool for 2D spatial intelligence. However, current experiments are limited to shape retrieval, pairwise polygon topological relationship classification, and a region control task. Although relevant, these tasks are insufficient to substantiate such an ambitious narrative of a "unified spatial encoding framework."
Lack of Multi-Object and Scene-Level Modeling: The primitive encoding unit of the proposed framework is a single spatially grounded shape. Although multiple instances in an image can be encoded individually and subsequently aggregated via a set or graph encoder, this goes beyond the original design of the method. The paper lacks a systematic discussion on preserving multi-object identities, modeling inter-object relationships, and handling occlusion, overlap, or complex scene layouts.
In summary, this is a well-structured, methodologically clean, and somewhat inspiring paper. It effectively formulates the problem of spatially grounded 2D shape encoding and provides a training-free, analytical, and interpretable framework. The use of Zernike bases is well-justified, and both the harmonic pose field and the phase-based joint encoding are elegant.
Nevertheless, the primary weakness of the current manuscript is that the claims are overly ambitious relative to the supporting evidence in novelty and experiments. The geometry encoding is highly correlated with classical Zernike moments; invertibility does not hold unconditionally under finite encoding lengths and joint encoding; FreqProp relies heavily on heuristics; and the experiments have yet to cover complex real-world spatial tasks, multi-object scenarios, or semantic-related tasks. Therefore, I believe this work is better positioned as a valuable training-free analytic shape descriptor framework, rather than a fully validated foundation encoder for general spatial intelligence.
We sincerely thank the reviewer for the feedback and constructive comments of our work. Regarding your concerns or questions, we provide one-to-one feedback.
Q1: Can the XShapeEnc effectively discriminate two similar 2D spatially grounded shapes with nuanced difference?
A1: Yes. They are achievable by design: shape geometry, higher-order Zernike coefficients explicitly encode localized, subtle geometric detail (Sec. 3.3). If the nuanced difference lies in shape geometry, we can discriminate it by adopting higher-order Zernike basis; For shape pose, Fig. 10/Sec. A.3 proves an isometric mapping between pose-field distance and encoding distance, so small pose differences yield proportionally small, distinguishable encoding shifts (also visualized as continuous manifolds in Fig. 19). Therefore, XShapeEnc maintains fine-grained discriminability for both shape geometry and shape pose encoding (either jointly or separately).
Q2: What is 2D spatially grounded shape? The "grounded" means the exact point-wise 2D coordinates are known?
A2: "Spatially Grounded" means each 2D shape is associated with a spatial context (its [x, y] position, orientation, and scale in the plane). It generally indicates "where" the 2D shape sits on the plane. We explicitly distinguish the shape geometry and shape pose because most prior shape recognition methods are spatially invariant, they intentionally discard where the 2D shape sits. A spatially-grounded 2D shape encoding framework should account for both the 2D shape structure (shape geometry) and spatial position (shape pose). Our proposed XShapeEnc encodes the two components either jointly or separately, and further allow adjustable relative emphasis on shape geometry and shape pose.
Q3: Why the jointly encoding shape geometry and pose is needed?
A3: Many real tasks require reasoning about a shape geometry and shape pose together. For example, in topological relation classification (Table 4), whether two polygons are disjoint, touching, overlapping, or one lies within another depends jointly on geometry AND relative pose, we have to jointly encode both shape geometry and shape pose; In spatial target region control task (TRC), the specified target region encoding requires to encode shape geometry and shape pose jointly. In summary, the joint encoding is needed whenever a 2D shape's geometric structure and spatial pose have to be considered.
Q4: What is the upper boundary of the encoding input? Like the maximum resolution of the input image for the networks, does the 2D shape encoding support the shape encoding without upper bound of shape complexity?
A4: XShapeEnc has no fixed input-resolution cap, unlike CNN/ViT baselines that require a fixed image size. Moreover, XShapeEnc can encode arbitrary input 2D shape, there is no upper bound on shape complexity: because the Zernike basis is complete and orthogonal (Sec. 3.2), arbitrarily intricate shapes can be represented given a sufficiently high order N. Fig. 18/Table 6-7 quantify this directly: reconstruction MSE rises smoothly with shape complexity (depth) at fixed encoding length, and shrinks again once more Zernike coefficients are added, exactly as expected from function approximation theory.
Q5: The authors can clarify why the Zernike basis is superior for the encoding basis to make the contribution more grounded.
A5: The Zernike basis is carefully chosen to fit for our need. 1. Domain match: Zernike basis directly encodes a region, making it ideal for 2D shape encoding; 2. Rotation equivariance and linearity. Zernike basis can yield rotation-invariant (magnitude) and rotation-variant variants, as well as compositional encoding, which lends us much flexibility to obtain various encodings tailored for different goal; 3. Invertibility Zenike basis separates radial and angular encoding, and the final encoding is invertible.
Q6: The t-SNE visualization seems to show the better clustering of ViT and ResNet than the proposed framework, despite the fact that the proposed framework is training-free. In my opinion, if the inference time of pretrained models and the training-free methods are comparable, then why the training-free methods are needed?
A6: We respectfully note that ViT and ResNet18 achieve clustering comparable to, XShapeEnc — all the three methods form compact, well-separated clusters. The paper states in Sec. 4.3: XShapeEnc "achieves separability comparable to pretrained ResNet18 and ViT" despite using no learning or external data. Although the comparable performance of ViT and ResNet18 on augmented shape geometry clustering, XShapeEnc exhibits favorable properties, including training-free, invertibility and interpretability, that are unavilable to ViT and ResNet18. XShapeEnc also outperforms ViT and ResNet18 based encoding on 2D shape retrieval tasks and inter-shape topological relation classification task (see the two tables below). Moreover, ViT and ResNet can only encode a shape expressed in an image, XShapeEnc goes beyond the constraint and is capable of encode a 2D shape of arbitrary size, shape complexity and spatial pose. Therefore, ViT and ResNet18 are not a replacement of XShapeEnc.
2D Shape Retrieval mAP (↑) result
Inter-shape topological relation classification accuracy rate (↑) result
We again appreciate the reviewer's insightful and constructive comments. If you have any further question, please let us know.