WorksComputer Science
LexiCan: Lexicographic Canonicalization of Point Clouds for Machine Learning Applications
Abstract
Canonicalization resolves the rotational and permutation ambiguity of 3D point clouds by selecting a unique orbit representative, maintaining their geometric information while allowing standard architectures, such as Transformers, to operate on them. Existing canonicalizations, however, exhibit discontinuity jumps on molecular configurations and non-trivial invariance errors in popular molecular datasets, which lead to ambiguity in their representation. To bridge this gap, we introduce LexiCan, a canonicalization that is provably invariant under either or , empirically invariant to rotations to within angstroms on the QM9 and QM-sym molecular datasets, and mitigates discontinuity jumps on QM-sym, while running orders of magnitude faster than an existing canonicalization. Finally, non-invariant models perform better on QM9 property prediction and ModelNet40 shape classification with LexiCan than with that canonicalization.
Introduction
Three-dimensional point clouds are an efficient and widely-used representation of geometric data in molecular modelling, computer vision, robotics, geometric processing, and scientific computing [2] (Thomas et al. 2018; Gebauer et al. 2019; Pomerleau et al. 2015). Unlike images expressed on a fixed pixel grid, point clouds generally do not come with a preferred coordinate system. The same object may be observed at arbitrary positions and orientations, whilst its geometric and physical properties remain unchanged. A reliable learning system must account for these transformations: invariant outputs, such as object classes or molecular energies, should not depend on the chosen reference frame, whereas geometric outputs, such as forces or trajectories, should transform accordingly. Incorporating these symmetries into the learning pipeline can substantially improve sample efficiency, robustness, and generalization by preventing a model from learning spurious dependencies only based on pose [7] (Hinton et al. 2011; Romero et al. 2024).
Nevertheless, constructing a reliable canonical frame is difficult. Classical alignment techniques often rely on Principal Component Analysis (PCA), using the eigenvectors of the point cloud’s covariance matrix as coordinate axes [5, 3] (Vranic et al. 2001). Yet, such frames are ambiguous under sign changes and become non-unique when covariance eigenvalues coincide. Frame Averaging methods retain multiple possible frames but do not fully resolve the degeneracies caused by repeated eigenvalues and can increase computational costs [8] (Puny et al. 2022). Learning-based canonicalization offers greater flexibility but introduces a different set of difficulties. A learned frame may depend on the symmetries represented in its training distribution, may generalize poorly to previously unseen stabilizer types, and can introduce errors into the canonicalized coordinates (Winter et al., 2022).
Exact canonicalizations of point clouds under the orthogonal O(3) and special orthogonal SO(3) groups exist. But, as recently shown, none of them can be made continuous (Dym et al., 2024; Baker et al., 2024). To address this, Baker et al. [1] introduce Asymmetric Unit Normalization (ASUN), an explicit construction that detects the point group of a point cloud to extract a component of the point clouds called an asymmetric unit and uses this component to align the point cloud to a canonical pose. In practice, however, we find that ASUN’s implementation assigns different orientations to rotationally equivalent point clouds, beyond numerical error, and fails to canonicalize some symmetric configurations and is unstable on molecular geometries in the QM9 dataset Ramakrishnan et al. (2014).
We address this theory-to-practice gap by introducing LEXICAN, a 3D point cloud canonicalization based on lexicographic ordering, which is both invariant to within Å on molecular data, handles symmetric point clouds and improved stability on molecular configurations. Specifically, our main contributions are the following:
Provable canonicalization. We construct a provable canonicalization for labeled point clouds under groups and , where is the symmetric group on elements, using circular words and least cyclic shifts, proving its correctness in Lemma 1, Theorem 2, and Theorem 3 (see Appendix C).
Efficient implementation. We provide an algorithm with a worst-case runtime complexity of (see Theorem 4 in Appendix C). However, empirically, across the evaluated input sizes, LEXICAN is faster than ASUN by a factor of to on ModelNet40 (Wu et al., 2015) and of to on QM9, growing with the number of points.
Almost-everywhere local regularity. We prove that LEXICAN’s exact construction and its tolerance-based construction are locally Lipschitz almost everywhere in the space of centered point clouds with fixed labels (Theorem 1). This establishes generic local regularity and we assess stability on molecular configurations specifically through our perturbation experiments.
High-precision invariance. On the QM9 dataset, LEXICAN achieves mean invariance errors of Å, four to five orders of magnitude lower than those of PCA- and ASUN-based canonicalizations (0.89 and 0.04 Å on molecules of rank 3) (see Section 5).
Well-posedness at molecular geometries. We show that while PCA and ASUN maintain a non-zero probability of an -perturbation inducing an change in canonical form as , for LEXICAN this probability is 0 at (no jump in 64,000 trials) on the QM-sym (Liang et al., 2019) dataset, and LEXICAN shows no jumps on any of the 82 pilot geometries (see Table 4).
Related Work
Point cloud canonicalization. Classical methods construct representatives using deterministic geometric rules, such as PCA-based alignment, eigenvector canonicalization, or lexicographic ordering. Frame Averaging constructs a set of PCA-derived frames and averages predictions over them (Puny et al., 2022), while ASUN [1] detects point-group symmetries, extracts an asymmetric unit, and aligns it with a canonical frame. Yet, PCA has sign ambiguities of its eigenvectors (and eigenbasis ambiguities on self-symmetric point clouds), leading to a mapping that is not well-defined, while ASUN has non-trivial invariance errors on QM9 and discontinuity jumps on molecular structures, see Section 5. More related work is presented in Appendix A.
Preliminaries
We consider point clouds with additional point-wise labels as our data object for canonicalization. Formally, let be a positive integer, and let be a totally ordered label set (for example, atomic symbols in the case of molecules) and let
be a labeled point cloud. Here is a point and its label.
Point clouds have natural symmetry to node reordering and rotations of the points, both proper and improper. These actions are formalized as the action of the symmetric group on elements, denoted by , and the action of SO() and O() on each of the points, respectively.
We denote the joint action of permutations and rotations by and , where the first accounts for permutations and proper rotations and the second also includes reflections. The action of a group action on a point cloud is
where , where is the dimension and stands for SO() or O().
The labels are unchanged by spatial transformations and are permuted together with their points. For point clouds having multiple attributes or labels, we consider the set of labels as , where each is totally ordered. This gives a natural lexicographic ordering of the entire label set.
Under this notation, a point cloud is written as:
We center by , where is the centroid of the point cloud, which is a translation canonicalization of the point cloud. We assume is centered henceforth, giving translational invariance, therefore we focus on canonicalizing point clouds with respect to the groups and .
We now formally define the term canonicalization for point clouds and use it throughout the text for the groups and , with and .
Definition 1 (Canonicalization for Point Clouds). A point cloud canonicalization for the group , where is the dimension and stands for the groups SO or O, is a function on centered, labeled point clouds that satisfies, for every group element ,
That is, it is an invariant mapping that chooses a orbit representative for each point cloud.
LexiCan: Lexicographic Canonicalization of Point Clouds
In this section, we present LexiCan and prove it satisfies the properties of a canonicalization of point clouds. We first build a canonicalization for 2D point clouds. To extend it to 3D, we select an invariant axis of rotation and then apply the 2D recipe to the projected planar cloud. LexiCan handles node features and is also valid in their absence. An overview of the LexiCan workflow is shown in Figure 1.
Figure 1. Visualization of LexiCan algorithm. (1) Each point of the labeled and centered point cloud described by a string of values . (2) A candidate set for the axis of projection is chosen based on radius, labels (here, one point at distance ). The projection axis is then oriented with . (3) 2D canonicalization is performed on the projected point cloud, where the lexicographically minimal starting point (here ) is rotated around axis and aligned with . (4) This is performed across all choices of and the lexicographically minimal serialization yields the canonicalization.
Labels and their ranks. Each point carries one label from a totally ordered set (the atomic label for molecules and unlabeled clouds use a single label). LexiCan compares labels through their rarest-first rank: with the number of points carrying label , the labels present in are sorted by increasing , ties broken by the order of , and is the position of in that list (the rarest label has rank 0). Ranks are unchanged by spatial transformations and are permuted together with the points. In general, we denote node labels by , but in the case they are vector valued, they are denoted by .
Canonicalization of a Labeled 2D Point Cloud
We draw inspiration from classical symmetry detection algorithms ((Wolter et al., 1985)) to represent 2D point clouds as a discrete one-dimensional torus with rotation-invariant multi-dimensional continuous and discrete features, intuitively resembling a circular string. We then choose the lexicographically minimal starting point and align it with the axis. Additionally, we extend this approach to handle reflections.
Any point cloud in 2D can be written as , where each is the spatial coordinate of a point. Writing the position vector using polar coordinates and including the node labels (as in Eq. (2)), we can write a planar point cloud as: , where are polar coordinates and are the label tuples. For the non-origin points, we create a canonical description through the following steps:
We sort the points by increasing angle . Points with the same angle are ordered by . We denote the resulting sorted indices by .
For each point, let be the counterclockwise angular gap from to , including the wrap-around from to .
We record each point by its radius, angular difference, and labels. This gives the circular word
We read this word starting from every possible position and retain the lexicographically smallest reading: , where denotes a cyclic shift by positions. The first point of therefore provides a canonical reference.
SO(2) canonicalization. If all points lie at the origin, return them ordered by their original labels. Otherwise, rotate the cloud so that the first point of lies on the positive axis. If is its angle, define for every non-origin point, and write if and otherwise. Let order all point indices lexicographically by . Then:
Points at the origin are excluded from reference selection but included in the final ordering.
O(2) canonicalization. To additionally remove reflections for the point cloud , we do the following:
compute the SO(2) canonical form ;
reflect across the axis and compute the same canonical form;
Call the reflected point cloud . For , let be a starting index producing and write . After choosing this start, define
This comparison examines the complete label-rank sequence first, then the complete angular-gap sequence, and finally the complete radial sequence. Define by the same construction applied to the reflected cloud. If , both keys are empty. Define:
If the two keys agree, the two branches produce the same exact labeled canonical form. For projected 3D clouds, append the complete height sequence as the final component of .
Canonicalization of a Labeled 3D Point Cloud
We extend the 2D canonicalization to a 3D one via the insight that once we fix an anchor axis in 3D, the projections of the points onto its orthogonal hyperplane form a 2D point cloud. This reduces the problem of 3D canonicalization to a 2D one, which we have solved in Section 4.1. Using lexicographic sorting and only invariant features, we can choose this axis invariantly to permutations, rotations, and translations, thus allowing us to obtain a 3D canonicalization.
Let be a centered labeled point cloud in . We reduce its canonicalization to the 2D construction above via the following steps:
We choose a candidate set for the axis based on invariant features: the largest radius and, among those points, the rarest label as follows:
For every , choose a rotation that places on the positive axis. We can write , where is the planar projection and is the height. The planar cloud keeps the height as an extra label: , and its circular word is , with points of equal angle ordered by ; that is, the label rank first and the height last.
Once a candidate axis is fixed, we canonicalize the projected planar cloud using the 2D canonicalizations defined in the preceding subsection. For every possible candidate , we perform this project and canonicalize procedure and select the output with the minimum lexicographic order.
SO(3) canonicalization. For each , apply to , including height and retaining the original labels. Restore each height as the third coordinate: . Order the resulting labeled 3D points lexicographically by , where is the rarity rank, and denote this ordered candidate by . We define the canonicalization as:
O(3) canonicalization. We perform the same construction as before using instead of and call the resulting 3D cloud . We define the canonicalization as:
By comparing the reflected planar projection, we remove 3D reflections in this case. In Theorem 2, we prove that and are canonical representations for and , respectively. The theorem statement and formal proofs are in Appendix § 11.
Algorithms for Computing the Canonicalizations
Algorithm 1: LexiCan
Input: Centered labeled cloud
if all points are at the origin then return points ordered by their labels
Construct the admissible pole set using Eq. (6)
for each do
Align with and construct as in Algorithm 3
Apply the planar canonicalization to , using Algorithm 2 for the least cyclic shift
Restore heights and order the lifted records by to obtain
if this is the first candidate then
else if then
return
The LexiCan algorithm (see Algorithm 1), that computes the canonicalizations and , is divided into two subroutines: Algorithm 2 for the canonicalization of a 2D point cloud and Algorithm 3 that computes the required 3D canonicalization by repeatedly using Algorithm 2 after selecting an axis of projection.
Specifically, we first select an axis of projection based on frame invariant features like radius and label and project the 3D point cloud into a 2D one from the chosen axis. On this 2D projection, we apply Algorithm 2, which is a two-pointer based approach inspired by Booth’s algorithm [4] to find the lexicographically minimum representation of a circular string. In case of ties in choosing the axis of projection, we perform this projection followed by Algorithm 2 for all possible axis choices and then select the one that produces the lexicographically smallest output. More details on the algorithm are given in Appendix § 10.
In Theorem 3, we show that LexiCan computes the canonicalizations , where is SO or O, and analyze the complexity in Theorem 4 (Appendix § 11). LexiCan has a worst case runtime of since the number of ties for the axis choice is in the worst case. But in most practical settings, grows sublinear in . For datasets such as QM9 or ModelNet40, we have and the runtime is log-linear in , as shown in Table 1.
| ModelNet40 | |||
| #Points | LexiCan | PCA | ASUN |
| 128 | 0.428±0.009 | 0.189±0.001 | 56.8±0.2 |
| 256 | 0.467±0.008 | 0.204±0.001 | 158.6±0.5 |
| 512 | 0.574±0.012 | 0.231±0.001 | 562.7±1.4 |
| 1,024 | 0.782±0.023 | 0.279±0.001 | 1,873.0±1.8 |
| 2,048 | 1.274±0.042 | 0.374±0.001 | 6,883.9±12.4 |
| QM9 | |||
| #Atoms | LexiCan | PCA | ASUN |
| 6–10 | 0.411±0.051 | 0.171±0.004 | 2.490±0.113 |
| 11–15 | 0.358±0.003 | 0.169±0.000 | 3.940±0.037 |
| 16–20 | 0.360±0.001 | 0.171±0.000 | 5.186±0.016 |
| 21–25 | 0.363±0.003 | 0.170±0.000 | 6.302±0.024 |
| 26–29 | 0.355±0.006 | 0.169±0.005 | 7.872±0.056 |
Table 1. Per-cloud canonicalization runtime in milliseconds (ms) on ModelNet40 and QM9, mean ± standard error over clouds of the per-cloud median of 10 calls, one thread, for SO(3) canonicalization. Best results are in bold.
Robustness of the LexiCan Algorithm
The canonicalizations with , are defined using exact comparisons, but for their numerical implementations LexiCan uses a fixed relative tolerance : two lengths differing by at most , where is the largest distance of a point from the centroid, and two angles differing by at most radians may be treated as tied. We write for the implemented numerical map with tolerance .
It is known that the canonicalizations cannot be globally continuous (Dym et al., 2024). But we show that for all , the map is locally Lipschitz almost everywhere, establishing the robustness of the exact maps as well as that of the numerical approximations .
In the following Theorem 1 (proof in Appendix § 11) we show that for almost every point cloud , the canonical map is Lipschitz in a neighbourhood of , thus proving almost everywhere continuity of the implemented map accounting for numerical approximations. This is due to the fact that sorting is piecewise continuous, although discontinuous when tie-breaking occurs, and the points of discontinuity form a Lebesgue-measure zero set, which then implies that LexiCan satisfies this as well. It should be noted that the analysis does not account for floating-point roundoff or machine-range restrictions.
Theorem 1 (Locally Lipschitz almost everywhere property of LexiCan). Fix the number of points, their labels, the group with , and a value .
For almost every centered point cloud , there exist and such that it holds that
Consequently, for every fixed , the map is continuous almost everywhere.
The local Lipschitz property guarantees that small perturbations to a generic point cloud do not cause its canonical representation , as produced by LexiCan, to change discontinuously. Such a robustness result is not proven in the literature for existing canonicalization methods like ASUN, and we empirically validate this in Tables 4 and 5, where LexiCan is more robust to small perturbations compared to ASUN and PCA.
Dependence of LexiCan on numerical tolerance. The numerical tolerance plays an important role in LexiCan. Since LexiCan is a sorting-based algorithm, the quantities considered tied below a certain numerical threshold play an important role in the properties discussed below.
Robustness: As , the algorithm becomes more sensitive to small perturbations because most of them now start to cross the tolerance threshold, Canonicalization invariance: As increases, the exactness of the sorting ceases to exist since all differences below are now considered tied. Consequently, the numerical implementation starts to differ from Algorithms 1 and 3. Thus different poses may start to output different canonicalizations, and Runtime: As increases, the number of tied points increases (the cardinality of from Algorithm 1 increases). So, more tie-breaking comparisons need to be made, increasing runtime.
Tables 12 and 13 from Appendix § 12.4 give a detailed analysis on how robustness and runtime vary according with respect to tolerance, and we have subsequently chosen the tolerances of LexiCan (as well as of PCA and ASUN) to achieve the optimal trade-offs.
Experiments
In this section, we test the validity, efficiency, robustness, and end-to-end learning performance of LexiCan against ASUN [1], and centered PCA, which are leading methods for point cloud canonicalization. In all the experiments of this section, the numerical tolerances of the corresponding canonicalization algorithms are taken as: for ASUN (absolute, in Å) and for LexiCan (relative to the cloud’s radius); PCA has no tolerance. This choice was based on optimal performance for each canonicalization, see Appendix § 12.4 for more details. We discuss more experiments and setup details in Appendix § 12.
Our data and code are publicly available at https://anonymous.4open.science/r/lexican-anon/.
Runtime Analysis
We consider the wall-clock runtime of LexiCan against ASUN and PCA on the ModelNet40 and QM9 datasets. We report the wall-clock runtime in milliseconds (ms) grouped by the number of points in the point cloud in Table 1. As observed, LexiCan is faster than ASUN at every size, by 130 to 5,400× on ModelNet40 and by 6 to 22× on QM9. PCA, which computes a single eigendecomposition, is the fastest method, about 2 to 3× faster than LexiCan, but it is not a proper canonicalization: each eigenvector is defined only up to sign (and up to an orthogonal transformation within a repeated eigenvalue), so PCA is not invariant (Table 2 and Table 3).
| Method | R1 | R2 | R3 |
| PCA | 3.5×10⁻¹⁶ | 5.4×10⁻¹⁶ | 8.9×10⁻¹ |
| ASUN | 1.3×10⁻¹⁵ | 1.3×10⁻¹⁵ | 3.8×10⁻² |
| LexiCan | 3.5×10⁻¹⁶ | 4.2×10⁻¹⁶ | 1.8×10⁻⁶ |
Table 2. Invariance error by rank: mean EMD (Å, two significant digits) between the canonical form of each QM9 molecule and that of a random rotation, translation and permutation of it. Best results are in bold.
| Group | PCA Mean | PCA Fail% | ASUN Mean | ASUN Fail% | LexiCan Mean | LexiCan Fail% | |
| 81,564 | 0.564 | 99.9 | 0.616 | 50.3 | 0.000 | 0.0 | |
| 81,017 | 1.715 | 100.0 | 0.155 | 32.0 | 0.000 | 0.0 | |
| 25,668 | 1.447 | 100.0 | 0.267 | 60.0 | 0.000 | 0.0 | |
| All | 188,249 | 1.180 | 99.9 | 0.370 | 43.8 | 0.000 | 0.0 |
Table 3. Symmetry group canonicalization errors: mean EMD (in Å) over random transformations in QM-sym. Best results are in bold.
Rank-wise Invariance Error
We measure consistency by comparing canonical forms before and after random rotations and translations. We report the mean Earth Mover’s Distance (EMD) in Å, lower is better.
From Table 2, we make the following observations: (1) LexiCan stays invariant at every rank, with a mean error of at most Å, (2) for the molecules of rank 3, neither ASUN nor PCA stays invariant.
Invariance Error on QM-sym
In Table 3 we test the reliability of LexiCan versus PCA and ASUN baselines on the QM-sym dataset, containing molecules with non-trivial self-symmetries. We rotate and translate each molecule ten times at random and measure the EMD between the canonical form of the molecule and that of each copy. We classify failure as a copy that surpasses the 0.1 Å EMD threshold, which is the error in measurement range of molecules in the QM9 dataset (Kim et al., 2019).
As observed, (1) LexiCan stays within the 0.1 Å threshold on every molecule in QM-sym (mean EMD Å), while the baselines do not, (2) ASUN breaks its own invariance on 43.8% of molecules and PCA breaks on 99.9%.
Perturbation Stability on Molecular Configurations
Almost-everywhere regularity in the ambient point-cloud space does not determine behavior on molecular geometries, which may belong to lower-dimensional families. We therefore evaluate perturbation sensitivity directly on QM-sym. For each tested perturbation magnitude , we report the empirical fraction of trials in which the EMD between the canonical forms of the original and perturbed clouds exceeds the jump threshold of 0.1. These measurements characterize finite-scale sensitivity.
In tbl:4 we see that (1) PCA and ASUN converge to 0.171 and 0.031, respectively, while LexiCan reaches 0 (no jump in 64,000 trials at ), (2) LexiCan shows no jumps on the pilot set, while PCA and ASUN jump on 33/82 and 9/75 geometries.
tbl:4: The limit on QM-sym geometries. is the 99-th percentile amplification, pooled over all , while Jumps specifies the number of geometries that show a jump on the pilot set. Best results are in bold.
| PCA | ASUN | LexiCan | |
| 0.171 | 0.031 | 0.000 | |
| 0.515 | 0.032 | 0.001 | |
| 0.519 | 0.094 | 0.093 | |
| 0.543 | 0.786 | 0.522 | |
| Jumps | 33/82 | 9/75 | 0/82 |
We also performed the analysis on a pilot set of 82 example point clouds, comprised of QM9 and GDB structures in their equilibrium geometries, together with synthetic high-symmetry solids (specified in Appendix § 12.§ 6). Resolving per geometry (see Figure 2 in Appendix § 12.§ 5) shows that failures are widespread rather than concentrated on a few specific inputs: PCA exhibits discontinuities on 33 of 82 geometries, and ASUN on 9 of the 75 it can process, at a median of 82% and 36% across all discontinuous directions respectively, while LexiCan is continuous across all geometries.

Figure 2. Each point represents the fraction of 500 random perturbation directions, at , that move the canonical form by more than 0.1 of the cloud’s RMS radius, for each geometry. The geometries are sorted descending on the x axis independently per method. ASUN is drawn over the 75 geometries it can process; it raises an assertion on the octahedron and the six bipyramids at every tolerance.
Stability Under Controlled Perturbation
To further test robustness to perturbation of LexiCan, in Table 5 we consider a set of four common molecules (NH, CH, HO, and CH). We define a one-parameter path , with , from each symmetric molecule in its equilibrium geometry, to a fully perturbed geometry . We measure discontinuity, which we define as a difference in canonical form by more than 0.1 in the radius of the point cloud (given by ) along , between the canonicalized output at and along 600 steps.
tbl:5: Number of discontinuities (summed over 12 rotated copies) along controlled perturbation paths, with the largest single move (in Å) in parentheses. Best results are in bold.
| Path | PCA | ASUN | LexiCan |
| NH stretch | 17 (0.875) | 0 (0.001) | 0 (0.000) |
| NH bend | 17 (0.860) | 0 (0.011) | 0 (0.001) |
| CH stretch | 5301 (1.019) | 12 (0.802) | 0 (0.001) |
| CH stretch | 4 (0.742) | 0 (0.018) | 0 (0.000) |
| HO torsion | 3 (0.745) | 46 (0.804) | 24 (0.428) |
| Max move | 1.019 | 0.804 | 0.428 |
As observed, LexiCan has no discontinuity on 4/5 paths and never more discontinuities than ASUN; on the HO torsion, which passes through a symmetric configuration, PCA has fewer (3 against 24) and LexiCan has the lowest overall maximum move. We extend these tests to explore more general perturbation effects on a larger set of 18 representative clouds in Appendix D.6.
We further test the robustness of LexiCan and baselines in a real dataset of symmetric molecules, namely QM-sym. We quantify our results by considering the “flip rate”, the amplification factor and the failure to be invariant. In Table 6, flip rate is the fraction of perturbations whose canonical form varied 10 further than the input moved, is the output movement divided by the input movement (1 means no amplification). Both of the values, if lower, imply robustness.
| Flip rate | Median | p95 | Not invariant | |
| PCA | 0.581 | 57.9 | 1000/1000 | |
| ASUN @ | 0.782 | 54.9 | 456/1000 | |
| LexiCan @ | 0.208 | 1.52 | 435 | 0/1000 |
Table 6. Robustness in QM-sym (1,000 molecules). Not invariant counts the molecules with one of 12 random views more than 0.1 Å (EMD) from the canonical form, out of those the algorithm canonicalizes. Best results are in bold.
As observed, (1) LexiCan has lower flip rate than baselines and has a lower median amplification rate (2) LexiCan preserves invariance across all the tested QM-sym molecules which the baselines fail to do.
End-to-end Learning Experiments
To test the impact of our method on downstream learning tasks, we evaluate LexiCan against baselines on molecular property prediction and 3D shape classification tasks.
Regression on molecules. We tested property prediction on QM9 using a standard Transformer architecture (details in Appendix D.1) trained on the regular dataset, on the ASUN-canonicalized dataset, and on the proposed canonicalized representation.
As observed in Table 7, LexiCan achieves the lowest error and improves on ASUN on every seed.
| Representation | MAE | RMSE |
| Regular | ||
| ASUN | ||
| LexiCan |
Table 7. QM9 isotropic polarizability prediction (Transformer, Table 9). Test MAE and RMSE over three seeds (mean ± STD), on randomly rotated, permuted and translated test molecules (see Appendix D.1 for more details).
Classification of 3D point clouds. Using the ModelNet40, we further demonstrate the superiority of LexiCan against ASUN for point cloud alignment. We sample 512 points from each cloud and train invariant/equivariant (SchNet (Schütt et al., 2017) and EGNN (Satorras et al., 2021)) and non-invariant (GCN (Kipf and Welling, 2017), GCNII (Chen et al., [6]), SchNet-Pos and EGNN-Pos) models on ASUN versus LexiCan canonicalized data.
As seen in Table 8, (1) performance for invariant models remains largely unchanged, but LexiCan beats ASUN for 4/4 non-invariant models and produces overall best accuracy of 37.1% across architectures, (2) using LexiCan representation in EGNN-pos/SchNet-pos (which add an embedding of the coordinates to the invariant backbone of EGNN/SchNet) improves upon the respective baseline invariant models.
| ModelNet40 () | |||||
| Model | ASUN | LexiCan | |||
| SchNet | |||||
| EGNN | |||||
| GCN | |||||
| GCNII | |||||
| SchNet-Pos | |||||
| EGNN-Pos |
Table 8. Accuracy of classification (%, mean ± STD over three seeds). Best results are in bold.
Conclusion and Future Work
In this work, we introduced LexiCan, a lexicographic canonicalization method for labeled 3D point clouds that provides a provable canonical representative under permutation and either SO(3) or O(3) transformations, while achieving high-precision invariance and a substantially improved runtime over ASUN. Experiments on QM9, QM-sym, ModelNet40 datasets, and controlled perturbation on molecular configurations further show that LexiCan avoids the invariance failures and reduces discontinuity jumps observed in PCA- and ASUN-based approaches, while improving downstream performance for non-invariant architectures. Our canonicalization runs in the worst case compared to ASUN’s , yet empirically it is faster on QM9 and ModelNet40, as seen in Table 1. Extending our empirical evaluation of combining LexiCan with additional state-of-the-art architectures remains a direction for future work. In particular, we aim to investigate the trade-offs between specialized equivariant architectures and lightweight standard models aided by canonicalization.
AI use statement
In this work, we used generative AI tools for assistance in implementing the algorithmic methods for the experiments, assist in the writing proofs of theorems and claims by finding errors and refining notation, refining the readability of the manuscript, assistance in generating a synthetic data set of symmetric point clouds in Appendix § 12.7, and provide feedback on the experiment methodology. We have not used generative AI tools to help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, clean and reformat datasets, support qualitative and thematic data analysis, interpret results, and assisting with translation is not applicable to this work. Additionally, we used generative AI tools for formatting the tex document, assistance in refining figures and tables, and conducting literature review to survey the state of progress in the field. We have reviewed all AI-assisted work. We manually inspected LLM-generated code and tested for correctness by 3 authors. All writing edits and refinements assisted by LLMs was verified and reviewed by the authors. All proofs refined by LLMs were checked and verified line by line by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Acknowledgments
The authors acknowledge London Geometry and Machine Learning (LOGML) Summer School 2026 since this work was initially started as a project during the School. D.M. acknowledges support by the UKRI Centre for Doctoral Training in Algebra, Geometry and Quantum Fields (AGQ), Grant Number EP/Y035232/1. L.B. acknowledges financial support from the European Regional Development Fund for the project ‘Materials for clean energy, advanced sensors and quantum technologies’ (Grant No. PK.1.1.10.0002). S.H. thanks the Gloria and Ken Levy Foundation for a research fellowship.
Additional Related Work
Additional canonicalization methods. Other approaches learn the canonicalization itself (Kaba et al., 2023). Together with the methods in § 2, these approaches either average over multiple valid frames, resolve only specific ambiguities in the representation, or rely on assumptions that exclude non-trivial stabilizers. In contrast, our method defines a single map that returns a provable canonical representative for every point cloud, including symmetric inputs with non-trivial stabilizers.
Theoretical limitations of canonicalization. Dym et al. (2024) establish impossibility results for continuous canonicalization under common group actions and illustrate the trade-off using exact but discontinuous constructions, such as lexicographic sorting. Relatedly, Baker et al. [1] show that continuous frames do not exist in general for and when . The difficulty arises particularly at symmetric inputs, where non-trivial stabilizers make the choice of a unique representative inherently ambiguous. Our work, therefore, focuses on constructing an exact representative and characterizing its numerical behavior around these unavoidable discontinuities.
Equivariant and invariant representations. Beyond canonicalization, equivariant models preserve the transformation structure throughout the network, while invariant architectures produce outputs that are unchanged under the group action. Another line of work constructs complete geometric invariants of point clouds using quantities such as point- or simplex-wise distance distributions (Widdowson and Kurlin, 2023; Kurlin, 2022, 2023; Widdowson and Kurlin, 2022). Unlike canonicalization, invariant representations generally do not return an oriented representative of the original orbit. Canonicalization therefore provides a complementary strategy, allowing standard non-equivariant architectures to operate directly on a canonical representative.
Algorithms for Canonical Pose Computation
First, we present the two-pointer based algorithm to find the lexicographically minimum orientation of a 2D string. The exact details of the algorithm are given in the main text. For a point cloud , let list its original labeled records in the order determined by . When comparing two candidate sequences for the same input cloud, we compare these rank-coordinate keys lexicographically.
Algorithm 2: Least cyclic shift of a circular word.
Input: Nonempty word W = (ω₀, …, ωₘ₋₁)
Output: Index s such that τₛW = min₀≤r<m τᵣW
if m = 1 then
return 0;
i ← 0, j ← 1, t ← 0;
while i < m and j < m and t < m do
u ← ω_(i+t) mod m, v ← ω_(j+t) mod m;
if u = v then
t ← t + 1;
else if u < v then
j ← j + t + 1;
if j ≤ i then
j ← i + 1;
t ← 0;
else
i ← i + t + 1;
if i ≤ j then
i ← j + 1;
t ← 0;
return min{i, j};
Now we give the algorithm to compute the canonicalization of a 3D point cloud that uses Algorithm 2 after projecting from a chosen axis and chooses the representation with the lexicographically minimum output. The exact details of the algorithm are given in the main text.
Algorithm 3: Canonicalization of a centered labeled 3D point cloud.
Input: Centered cloud , group with
Output: Canonical form
Compute , ;
if then
return zero points ordered by their labels;
Compute the rarest-first ranks of the original labels ;
construct as in Eq. (6);
;
for do
Choose s.t. ;
Write and construct , retaining the previously computed ranks ;
if then
, using Algorithm 2 to compute ;
else
, using Algorithm 2 for and ;
Restore each retained height: ;
Order the lifted records by , and denote the ordered candidate by ;
;
if or then
;
return ;
Proofs of Technical Results
We use the circular word defined in the main text. For , let denote the word read cyclically from position , with indices taken modulo . Define
The minimum uses lexicographic order. In two dimensions, each letter is , where is the rarity rank of the original label. For a projected three-dimensional cloud, the height is appended to each letter.
For , let . After selecting the cyclic start, define the orientation key
This key compares the complete label-rank sequence first, then the complete angular-gap sequence, and finally the complete radial sequence. For a projected three-dimensional cloud, append the complete height sequence as the final component. If , no cyclic start is needed and is the empty sequence.
We start with formal theorem statements and proofs of the validity of our canonicalization for and .
Lemma 1 (Correctness of 2D canonical maps). The maps and are canonicalizations for and , respectively.
Proof. We verify that the maps are well defined, invariant under their respective group actions, and lie in the orbit of the input under the corresponding group actions. Rarity ranks depend only on the multiset of original labels. They are unchanged by spatial transformations and are permuted together with their points. Distinct original labels present in the input have distinct ranks.
Well-definedness: Let be the set of indices of points not at the origin and let . First suppose . Let be the polar angle of each such point. Order the indices in lexicographically by and denote them by . Define the angular gaps by
This lets us write as a circular word:
Such a circular word has an inherent total order, induced by its coordinates. We choose a shift (see Eq. (9)) which gives the word with the least lexicographic order. Thus, the starting position is selected by repeatedly comparing around the circle and choosing the lexicographic minimum.
Suppose and both achieve the minimum in (9). Then . Their corresponding rank, radius, and angular-gap sequences therefore agree. Consequently, they also give the same channelwise orientation key .
Once the first selected point is placed at angle , the remaining canonical angles are determined recursively by angular increments. More precisely, for , we have:
The empty sum is zero. Thus either minimizing starting point reconstructs the same non-origin Cartesian records. Their original labels are determined by their ranks among the labels present in and points at the origin remain fixed and are included in the final ordering by . Hence tied starting positions give the same complete output, and both and are well defined.
Permutation invariance. A permutation changes only the indices attached to the points. The subsequent ordering by therefore produces the same ordered sequence of point records. If two such records are identical, their relative order is irrelevant because exchanging them does not change the output. After rotation, all points, including those at the origin, are ordered by . This ordering also does not depend on the input row indices. Consequently, for every ,
SO(2) invariance. Let be a rotation by angle , and let . The radii and attributes are unchanged, while every nonzero point has angle . Adding the same angle to every point preserves their circular order. Hence, for some , . The set of cyclic shifts of a word is unchanged when the word itself is cyclically shifted. Therefore , and hence .
Choose corresponding minimizing positions for and . The selected points differ in angle by . For every index , we have:
The canonical radii, angles, attributes, and row order are therefore unchanged. Together with permutation invariance, this proves that , .
The output is obtained by rotating every point through and then applying a row permutation. Thus . If , every point is at the origin, and the result follows directly from the prescribed ordering of the original labels. Hence is a canonicalization for .
O(2) invariance. Let be reflection across the first coordinate axis, so that . We will use the fact that every is either or for some , where denotes rotation in the 2D plane by an angle .
First suppose . By the SO(2) invariance proved above, we get: and . Since , we also have . Another application of SO(2) invariance gives , . Thus a proper rotation leaves both candidates in Eq. (5) unchanged. Now suppose . Then we have:
Consequently, we get
Therefore, an improper transformation exchanges the two candidates in Eq. (5). Selecting the candidate with the smaller orientation key is unchanged by this exchange. Hence for every . In any of the branches selected we have, . Finally, if , the reconstruction argument at the beginning of the proof shows that the two branches give the same canonical cloud. Therefore is well defined and is a canonicalization for .
The same argument applies when heights are retained as additional attributes unchanged by planar transformations. The angular ordering then uses , the circular letters use , and the complete height sequence is appended to . The final ordering uses . Ranks are still computed from the original labels alone. If every projected radius vanishes, the planar transformation is the identity and the retained records are ordered by .
Theorem 2 (Correctness of 3D canonical maps). The maps and are canonicalizations for and , respectively.
Proof. We verify that the maps are well defined, invariant under the corresponding group actions, and return a representative from the appropriate orbit.
Let and be as defined in Eq. (6). First we suppose that . Then every point lies at the origin, and both maps return the zero points ordered by their labels. This output is unchanged by rotations, reflections, and row permutations, and differs from only by a row permutation. The result therefore holds in this case. Henceforth, assume .
Independence of pole-alignment rotation: For a fixed , suppose that both align the pole with . Thus we have . The matrix belongs to and fixes . Since is orthogonal, it preserves the orthogonal complement . Hence, with respect to , it has the form
for some . Therefore, the projected clouds obtained from and differ only by the planar rotation , their heights and labels being identical. The height-augmented result of Lemma 1, using the unchanged original-label ranks, therefore gives the same planar output. Restoring heights and ordering by gives the same and for either choice of .
Invariance to and spatial transformations: Let , and write . By the group action, , . Since is orthogonal, we get . The multiset of original labels is unchanged, so the rarity ranks satisfy for every . Thus and have the same maximum radius and the same smallest rarity rank among the farthest points. Consequently, , and is a bijection between the pole sets. Now, we fix and let . Choose proper rotations satisfying , . Define . Since and orthogonal transformations preserve norms, we get:
Thus, is orthogonal and fixes . Its restriction to is therefore an element , and we can write
Moreover, because , we have . Consequently, when , and similarly when . For every , we write . Then we have:
Together with and , this shows that corresponding projected points have identical heights, original labels, and rarity ranks. Their planar coordinates differ by , and their rows differ by .
If , then . Applying Lemma 1 therefore gives . Since is a bijection between the pole sets, we get . Taking the lexicographic minimum and using Eq. (7) yields . If , then . The same argument using gives , and hence, by Eq. (8), we get . This proves invariance under and , respectively.
Orbit membership. We fix . Since is a canonicalization, its output is obtained from by a planar rotation and a row permutation. Lifting to gives . We denote the corresponding 3D transformation as . The operation introduces at most another row permutation. Therefore, such that , implying .
Similarly, the output of is obtained using some . Its lift to given by lies in , and therefore . After combining all row reorderings into a permutation , we obtain . Hence .
The pole set is nonempty and finite. Consequently, each lexicographic minimum in Eq. (7) and Eq. (8) is attained by at least one pole. It follows that , . If several poles attain the minimum, their sorted rank-coordinate keys agree. Since distinct original labels present in have distinct rarity ranks, their returned labeled records also agree. Thus the minimum is well defined. Points with zero planar projection remain fixed under every , with their heights and labels retained. If all planar projections vanish, the planar transformation is the identity and the final ordering is determined by .
Thus, each map is invariant under its stated group and returns a point in the corresponding orbit. By Definition 3, and are canonicalizations for and , respectively.
Now, we prove correctness of LexiCan algorithm in computing the maps , in the following theorem.
Theorem 3 (Correctness of LexiCan algorithm). Algorithm 2 returns a least cyclic shift of . Consequently, when used in the planar constructions Eq. (4) and Eq. (5), it computes and , respectively. Algorithm 3 computes when and when . Hence the algorithms compute the canonicalizations established in Lemma 1 and Theorem 2.
Proof. We use exact arithmetic and exact comparisons. The entries of belong to a totally ordered set. The scan receives a nonempty word. The case is immediate, so assume . We extend periodically by defining, for every , , . Thus and . Let be the nonempty set of least starting positions.
Suppose that the words beginning at positions and agree for their first entries and then satisfy for , . Then, for every , we have . Indeed, for , we get , whereas at the next position the two words contain and , respectively. The first word is therefore lexicographically smaller. Consequently, every valid starting position among is excluded from . The symmetric statement holds when .
We now establish the following loop invariants:
The two candidate indices are distinct.
If , then and agree in their first entries.
Every least start below is represented by one of the two candidates:
These properties hold initially because , , and . Suppose they hold at the beginning of an iteration. If , increasing by one preserves all three properties.
Suppose that . The elimination claim shows that none of belongs to . Let . If , replacing by skips exactly this excluded block. If , the algorithm instead sets . Every position between and was already below the previous maximum and, by the third invariant, was already excluded; the position itself remains represented by the other pointer. Thus, the update skips no member of . Resetting to zero makes the second invariant immediate, and the updated indices remain distinct. The case is symmetric. Therefore, all three invariants hold throughout the algorithm.
It remains to examine termination. First we suppose that one pointer reaches . For example, let and . Since every valid start lies below , the third invariant gives . Because is non-empty, . Hence is a least starting position. The case is symmetric.
Now suppose that the algorithm terminates because . Then and . Assume without loss of generality that , and set . Equality of these two length- words implies
Thus, is a cyclic period of , and for every .
Choose any . If , the third invariant implies . If , repeatedly subtracting gives an index such that . Hence , and the third invariant again gives . Therefore is a least cyclic shift. Since , both candidates are valid, and the returned index belongs to . The case is symmetric.
We have therefore proved that Algorithm 2 returns an index satisfying
Next, we connect the procedure to the planar maps. Applied to , it returns an index satisfying Eq. (9), and hence computes the starting position used by . If two indices and both attain the minimum, then . The shifted word records the rarity ranks, radii, angular gaps, and retained heights when present. The ranks identify the original labels among those present in . Once the first point is placed at angle , the remaining angles are reconstructed by
Thus tied least shifts reconstruct the same non-origin records. Including the fixed origin records, converting to Cartesian coordinates, and applying the prescribed final ordering gives the same canonical output.
For , the scan is applied separately to and . The returned starts determine the channelwise keys and in (10). Selecting the candidate with the smaller key gives exactly (5).
If , no cyclic start is required. The standalone zero cloud is ordered by its original labels; the height-augmented construction retains all heights and orders the records by . Thus the planar constructions compute and exactly.
Finally, consider Algorithm 3. If , its output agrees with the separately defined all-zero case. Otherwise, it computes the original-label ranks once and constructs from (6). For each , it forms , retaining the previously computed ranks. It applies the height-augmented planar construction, restores the heights, and orders the lifted records by to obtain . It then sets . Candidate comparisons use the associated rank-coordinate keys.
The candidate does not depend on the particular proper rotation chosen to align the pole: two such rotations differ, after alignment, by an element of acting on the projection, which is removed by either planar canonicalization. After processing any collection of poles, is, by induction, the lexicographic minimum of the candidates processed so far. Hence, the final output is
which is precisely (7) or (8), respectively.
Therefore, the algorithms compute the maps established as canonicalizations in Lemma 1 and Theorem 2.
In the following result, we analyze worst case runtime complexity of LexiCan.
Theorem 4 (Runtime analysis of LexiCan algorithm). Assume that the number of labels is fixed and that arithmetic and label comparisons take constant time. For a word of length , Algorithm 2 runs in time and uses auxiliary memory after has been stored. The complete planar canonicalizations and require time and auxiliary memory for a point cloud of size . Let , Algorithm 3 runs in time for . Since , its worst-case running time is . It uses auxiliary memory and the bounds hold for both SO and O variants.
Proof. We assume that all coordinate dimensions and the number of labels are fixed. Hence each arithmetic operation, label comparison etc. takes constant time.
We first analyze Algorithm 2. At the beginning of an iteration, define . If the compared entries are equal, the algorithm replaces by , while and remain unchanged. Hence increases by one.
Suppose instead that . Before the optional correction enforcing , the update satisfies , . Consequently, we get:
The optional assignment can only increase further. The case is symmetric. Therefore, increases by at least one in every iteration.
Whenever the loop condition is satisfied, , , and . Therefore, . Since is integer-valued and increases by at least one per iteration, the loop performs at most iterations. Each iteration uses a constant number of arithmetic operations, comparisons, and assignments. Thus, the running time is .
After has been stored, the procedure maintains only the indices , , and the two currently compared entries , . Because each word entry has fixed size, this requires auxiliary memory. Storing the word itself requires memory, but this storage is excluded from the stated auxiliary bound for the scan.
We next consider a planar cloud with points. Computing the rarest-first ranks of the original labels takes time. Let . Computing the radii and the angles of non-origin points takes time. Ordering those points by costs time; appending a retained height does not change this bound. The cases take constant time.
Once this ordering has been computed, constructing the angular increments and the circular word costs . By the first part of the proof, selecting its least cyclic shift also costs . Constructing the canonical angles, transforming the points, and forming the orientation key each require time. Sorting the final Cartesian records by , with height appended when retained, costs . The standalone all-zero case only sorts the original labels, with the same bound. Consequently, . The construction repeats the circular construction for the reflected cloud and compares the two resulting keys. This performs at most a constant multiple of the work in the SO(2) case, so . The angular ordering, circular word, reflected candidate, and output can all be stored using arrays of length at most . Thus either planar construction uses auxiliary memory.
Finally, consider Algorithm 3 for . The original-label ranks are computed once in time. Given these ranks, computing the radii, maximum radius, minimum admissible rank, and pole set takes time. Let . The planar constructions reuse these ranks. Fix a pole . Since the ambient dimension is fixed, constructing takes constant time. Applying to all points and constructing takes time. By the planar bound, canonicalizing takes time. Restoring the heights takes time. Ordering the lifted records by to obtain costs . Comparing its rank-coordinate key with that of the current best candidate takes time in the worst case. The total work for one pole is therefore .
Summing over all poles and including the initial rank computation gives
Since , we get in the worst case. If the admissible pole is unique, the sharper bound is .
The all-zero case requires only ordering the labels and therefore costs time, which is covered by the stated worst-case bound.
For memory, the algorithm only needs to retain the input, the current projected cloud, its circular representation, the current lifted candidate, and the best candidate found so far. Each contains records. Standard sorting workspaces also use at most memory. Because candidates are processed one pole at a time rather than stored simultaneously, the auxiliary memory is rather than .
The O(2) and O(3) variants evaluate one additional reflected planar orientation. This multiplies the planar work by at most a constant and does not change any asymptotic time or memory bound.
Now we proceed to show that LexiCan is Lipschitz almost everywhere. We first define some notations. We fix the label sequence and let
be the corresponding space of centered point clouds. For and in , we define
Thus measures the largest displacement of corresponding points, without optimizing over rotations or permutations while contains the centered clouds in which no point of is displaced by or more.
For this theorem, denotes the construction evaluated in real arithmetic, retaining its grid comparisons and deterministic selection rules, with unbounded integer comparison keys. For , it denotes the exact construction without quantization. The theorem does not account for floating-point roundoff or machine-range restrictions.
Theorem 1 (Locally Lipschitz almost everywhere property of LexiCan). Fix the number of points, their labels, the group with , and a value .
For almost every centered point cloud , there exist and such that it holds that
Consequently, for every fixed , the map is continuous almost everywhere.
Proof. Fix . We equip with its intrinsic Lebesgue measure as a finite-dimensional Euclidean space. We first prove that there is a countable collection of open sets such that their complement has a measure of zero and, on each , the algorithm makes the same choices.
For a given , there is a finite upper bound on the number of comparisons made in an execution of LexiCan. We prove inductively that, after each decision, is covered, up to a set of measure zero, by countably many connected open sets on which all decisions made so far are fixed and all continuously varying quantities computed so far are real-analytic. If , the centered output is constant. Assume and exclude
Each set in this union is a proper linear subspace, so . Every possible pole is nonzero outside .
We use the following general finite-decision argument. Consider a deterministic procedure with finite decision depth satisfying two properties. First, between consecutive decisions, its continuously varying quantities are updated by real-analytic maps on open domains. Second, each decision is determined by the position of a real-analytic scalar quantity relative to a locally finite set of thresholds .
Let be a connected open region on which all preceding decisions are fixed and all quantities computed so far are real-analytic. If the next decision compares an analytic scalar with thresholds , define
For each in this union, is a nonzero real-analytic function, so has Lebesgue measure zero (Mityagin, 2020). Since is locally finite, is also null. If on , the deterministic tie rule makes the same choice throughout . Hence, the next decision is fixed on each connected component of . These components are open and countable.
The induction gives the claimed partition provided the intervening operations are defined and analytic on regions covering the input space up to a null set. We verify this condition for LEXICAN.
Polynomial operations, sine and cosine are real analytic. Square roots and reciprocals are analytic on their positive and nonzero domains, respectively. For an analytic vector on a connected region , either , in which case its norm is constant, or is a nonzero analytic function. In the latter case, its zero set is null; away from this set, is analytic.
Pole normalization is defined outside . For a unit pole direction , the coordinate helper is chosen using the smallest absolute coordinate of , giving . A selected planar reference has nonzero projection; if no reference is selected, the planar transformation is the identity. Angular coordinates are analytic on local charts away from the origin. Refining these charts by coordinate signs uses the same scalar-comparison argument above.
These refinements discard only null sets and leave countably many open regions on which the geometric updates are analytic. Identically zero quantities are retained as constant functions.
The scale is computed by comparing the polynomial quantities . Refine the preceding regions using these comparisons. On each resulting region, a maximizing index is fixed. Outside , the function is positive and real analytic. Consequently, is real analytic whenever is real analytic on that region. Identically tied maxima are handled by a fixed deterministic choice of index.
For , define , where . The implementation bins each spatial scalar , including radii, heights, and Cartesian coordinates, as
while each angular quantity is binned as . The same full-cloud scale is retained throughout the three-dimensional construction.
Thus each binning decision applies to an analytic scalar , either or . Its bin can change only when
These thresholds are fixed and locally finite. Once the bins are fixed, comparisons of their integer keys are fixed as well. The remaining exact comparisons use analytic differences with threshold zero. For , quantization is omitted.
Thus, the preceding argument applies to LexiCAN and yields connected open sets and real-analytic maps such that
Let . Fix and choose containing . Since is open, there exists such that . For , define . Using its induced operator norm, since is real-analytic and is compact, we define
The mean-value inequality gives, for every ,
The row order and labels are fixed on , so pairing the corresponding rows is an admissible EMD matching. Therefore,
Thus the local Lipschitz bound holds outside the null set . Setting proves continuity almost everywhere.
Additional Experimental Results and Details
Licenses of datasets and baseline code. QM9 and QM-sym are released under the CC0 1.0 Universal Public Domain Dedication, as specified in their original dataset records.2 3 ModelNet40 is provided for academic research only, with copyright over the CAD models retained by their original creators.4 The ASUN implementation is publicly available in the authors’ repository accompanying their ICML 2024 paper, yet we did not identify an explicit software license in that repository.5
QM9 Property Prediction Experimental Details
In the transformer model, each molecule is represented as a sequence of atom tokens. For atom , its atomic-number embedding is added to an embedding of its Cartesian coordinates:
A learned [CLS] token is prepended to the sequence, and padding atoms are excluded using an attention mask. The tokens are processed by a standard transformer encoder without positional encodings, making the architecture invariant to permutations of the atom order. The encoded [CLS] token is passed to an MLP that predicts the molecular property. The model is not intrinsically rotation invariant or equivariant; instead, the canonicalized coordinates provide a consistent reference frame.
Table 9 shows the final selected hyperparameters, all architectural and optimization settings are held fixed when comparing regular, ASUN-canonicalized, and our canonicalized coordinates. After selecting the final configurations, models are evaluated using three random seeds.
| Hyperparameter | Transformer |
| Model dimension | 128 |
| Transformer layers | 6 |
| Attention heads | 8 |
| Feed-forward dimension | 512 |
| Encoder activation | GELU |
| Coordinate-MLP activation | SiLU |
| Trainable parameters | 1,224,961 |
| Train/val/test split | 100,000/10,000/20,831 |
| Batch size | 256 |
| Maximum epochs | 200 |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | |
| Early-stopping patience | 40 epochs |
| Learning-rate scheduler | ReduceLROnPlateau |
| Scheduler factor/patience | 0.5/5 epochs |
Table 9. Final architecture and training hyperparameters selected for the Transformer model.
Each molecule is given one random rotation (or reflection), atom permutation and translation, fixed across epochs. ASUN and LexiCAN canonicalize this randomly posed copy in training, validation and test, so they cannot benefit from the stored QM9 coordinates, which share a common, non-random orientation. The regular representation is trained and validated on the stored coordinates and tested on the randomly posed molecules, as in the setting of ModelNet40. This is because QM9 molecules share a common orientation (Lippmann et al. (2026)), so random rotations are applied at test time to measure the impact of canonicalization versus non-invariance on this dataset. Testing the canonicalized models on a second, independent random pose of every test molecule leaves their error unchanged up to (seed 0: ASUN 0.428 and 0.429, LexiCan 0.406 on both poses).
ModelNet40 Classification Experimental Details
Each ModelNet40 shape is represented by points sampled uniformly (area-weighted) from its mesh surface, centered and scaled so that . Every model operates on the -nearest-neighbor graph (, no self-loops) of the posed points, recomputed for each batch, so that edges always refer to the posed coordinates. We use two families of models, following Baker et al. [1]. The non-invariant models take the coordinates as node features, so their output depends on the pose: GCN (Kipf and Welling (2017)) and GCNII (Chen et al. [6]) (, ) with coordinate inputs and batch normalization, and SchNet-Pos and EGNN-Pos, which add a linear embedding of the coordinates to the node features of SchNet and EGNN. The invariant controls see only relative geometry: SchNet (Schütt et al. (2017)) (interaction blocks on edge lengths expanded in 50 Gaussians with cutoff 2.0, from a shared learned node embedding) and EGNN (Satorras et al. (2021)) (message passing on squared edge lengths without coordinate updates, nodes initialized from their distance to the centroid). All models end with a readout that concatenates mean and max pooling over the nodes, followed by a two-layer MLP classifier over the 40 classes.
All models and representations share one configuration (Table 10); no hyperparameter is tuned per representation. Training uses a fixed number of epochs, and test accuracy is reported at the epoch with the best validation accuracy. We report the mean and standard deviation over three seeds at every . In the setting, models are trained on the upright shapes and tested on randomly rotated ones; in all other settings, each shape is given one fixed random rotation (and point permutation), and canonical representations canonicalize that rotated copy.
| Hyperparameter | Value |
| Hidden dimension | 16 |
| Layers | 4 |
| Dropout | 0.5 |
| -NN graph | |
| Readout | concatenated mean and max pooling, then a two-layer MLP |
| Trainable parameters | GCN 2,216; GCNII 2,424; SchNet 8,776; SchNet-Pos 8,840; EGNN 7,832; EGNN-Pos 7,864 |
| Train/val/test split | 8,859/984/2,468 |
| Batch size | 128 |
| Epochs | 60 (no early stopping) |
| Optimizer | Adam |
| Learning rate | |
| Weight decay | |
| Learning-rate scheduler | none |
| Loss | cross-entropy |
| Model selection | best validation accuracy |
Table 10. Architecture and training hyperparameters for the ModelNet40 models, shared by every model and representation.
Additional Results on ModelNet40 Shape Prediction
The ModelNet40 dataset consists of 40 categorized CAD meshes, with 9,843 training and 2,468 testing samples. We sample points from the mesh and use the sampled points to predict properties of the point cloud. We train state-of-the-art invariant/equivariant SchNet ((Schütt et al., 2017)) and EGNN ((Satorras et al., 2021)) architectures. Upon adding positional encodings, the invariance breaks, which we denote as SchNet-Pos and EGNN-Pos. We also train non-invariant GCN and GCNII. The main paper reports the accuracy for sampled points, and here we do the same for in Table 11.
| Model | , | , | , ASUN | , LexiCAN | , | , | , ASUN | , LexiCAN |
| SchNet | 27.6 ± 0.8 | 28.2 ± 0.8 | 28.1 ± 0.4 | 27.8 ± 1.2 | 27.6 ± 0.2 | 28.2 ± 1.1 | 27.9 ± 0.1 | 27.5 ± 1.6 |
| EGNN | 33.9 ± 1.7 | 33.3 ± 0.8 | 36.3 ± 0.1 | 32.1 ± 1.1 | 25.7 ± 5.3 | 30.8 ± 2.9 | 27.0 ± 2.5 | 28.9 ± 2.1 |
| GCN | 7.4 ± 0.3 | 14.7 ± 0.5 | 16.6 ± 1.5 | 25.3 ± 1.3 | 8.9 ± 0.6 | 18.9 ± 0.6 | 20.7 ± 1.4 | 27.1 ± 1.4 |
| GCNII | 7.7 ± 0.9 | 21.1 ± 1.1 | 24.4 ± 0.4 | 29.5 ± 2.1 | 7.2 ± 1.8 | 20.8 ± 1.1 | 25.2 ± 0.3 | 27.3 ± 2.8 |
| SchNet-Pos | 10.7 ± 1.0 | 28.6 ± 0.4 | 29.9 ± 0.6 | 33.1 ± 1.8 | 10.2 ± 0.7 | 27.7 ± 1.6 | 31.3 ± 1.7 | 33.5 ± 3.1 |
| EGNN-Pos | 9.8 ± 0.6 | 28.9 ± 3.1 | 30.3 ± 1.0 | 35.3 ± 2.9 | 10.0 ± 1.0 | 26.8 ± 0.6 | 30.1 ± 2.6 | 34.6 ± 1.9 |
Table 11. Accuracy of classification on ModelNet40 for and (%, mean ± STD over three seeds). Best results are in bold.
As observed from the table, (1) in the shape classification task, LEXICAN gives better performance than ASUN for 4/4 non-invariant architectures for both the mesh of 200 and 1024 points, (2) the invariant SchNet and EGNN do not benefit from canonicalization: SchNet stays within one point across representations, and EGNN is best with ASUN at and without canonicalization at . Intuitively, LEXICAN computes a smoother canonicalization map than ASUN as observed from the other experiments, which can be used to explain the superior empirical performance.
Optimal Numerical Tolerance
All the canonicalization algorithms deal with invariance here. Each one of the baseline algorithms (PCA and ASUN), as well as LexiCan, implement a tolerance hyperparameter in a different manner. For PCA, the tolerance does not have any effect against its eigenvalue degeneracy, which is its main failure point. For ASUN, it has two main different effects: it sets the minimum sensitivity for interatomic distances (which is the dominant effect and the one that governs the varying behavior of the algorithm at different tolerances) and it sets a threshold for angular degeneracy (which is the reason why a higher tolerance fails at more configurations). LexiCan, consistently and at every step of the algorithm, treats as equal two lengths within of each other ( the largest distance from the centroid) and two angles within radians, so that one tolerance means the same on clouds of any size.
To run a fair set of experiments, we compare every algorithm against the 18 adversarial point clouds under a sweep of tolerances, recording the flip rate (amplification ) at perturbations from to and 12 random rotations for each. The results can be seen in Table 12. PCA has no tolerance, so its entries are the same in every row. ASUN raises errors on point clouds for tolerances and ; we choose a tolerance of as it has a good trade-off between flip rate and an acceptable number of failures. LexiCan has a decreasing flip rate as tol , however that hurts runtime; it stays invariant on every QM-sym molecule at the 0.1 Å threshold at every tol. Thus, to achieve a trade-off, we choose a tolerance of for most of the experiments.
| tol | PCA | ASUN | LexiCan | ||||||
| Time | Flip | Non-inv. | Time | Flip | Non-inv. | Time | Flip | Non-inv. | |
| 0.184 | 0.762 | 1.000 | 5.838 | 0.418* | 0.353 | 2.051 | 0.623 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.929 | 0.418* | 0.353 | 2.096 | 0.623 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.982 | 0.418* | 0.353 | 2.082 | 0.600 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 6.001 | 0.408* | 0.353 | 2.084 | 0.503 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.987 | 0.393* | 0.353 | 2.094 | 0.404 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.886 | 0.375* | 0.353 | 2.088 | 0.297 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.890 | 0.358* | 0.353 | 2.058 | 0.196 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.930 | 0.356* | 0.353 | 2.066 | 0.103 | 0.000 | |
| 0.184 | 0.762 | 1.000 | 5.916 | 0.345* | 0.353 | 2.246 | 0.001 | 0.000 |
Table 12. Tolerance sweep across the 18 labeled point clouds. Time is the mean per-cloud canonicalization time in ms (median over 10 calls per cloud). Flip is the fraction of perturbations whose canonical form moved more than further than the input did, pooled over six noise magnitudes ( of the cloud’s RMS radius) and twelve draws per cloud. Non-inv. is the fraction of clouds whose random rotations give different canonical forms. Per method and column, bold marks the best tol and underline the second best (times compared to two significant figures); * marks a tol at which the method fails to return a canonicalization for some inputs. LexiCan ranks labels rarest first. PCA has no tolerance (one setting, repeated in every row). Best results are in bold.
We also do similar tolerance sweeps for the symmetric molecule dataset QM-sym, the results of which we show below in Table 13.
| tol | PCA Time | PCA Flip | PCA Non-inv. | ASUN Time | ASUN Flip | ASUN Non-inv. | LexiCan Time | LexiCan Flip | LexiCan Non-inv. |
| 0.206 | 0.581 | 1.000 | 38.6 | 0.897 | 0.276 | 1.349 | 0.534 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>38.1</u> | 0.897 | 0.276 | <u>1.388</u> | 0.534 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>37.9</u> | 0.896 | <u>0.297</u> | 1.690 | 0.519 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>37.8</u> | 0.875 | 0.468 | 1.795 | 0.457 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>37.6</u> | 0.861 | 0.413 | 1.802 | 0.373 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>38.0</u> | 0.841 | 0.414 | 1.818 | 0.289 | 0.000 | |
| 0.206 | 0.581 | 1.000 | 37.4 | 0.817 | 0.419 | 1.825 | 0.208 | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>37.6</u> | <u>0.782</u> | 0.456 | 1.877 | <u>0.125</u> | 0.000 | |
| 0.206 | 0.581 | 1.000 | <u>37.9</u> | 0.693 | 0.593 | 2.013 | 0.036 | 0.000 |
Table 13. Tolerance sweep across 1,000 QM-sym molecules Time is the mean per-cloud canonicalization time in ms (median over 10 calls per cloud). Flip is the fraction of perturbations whose canonical form moved more than 10× further than the input did, pooled over six noise magnitudes ( of the cloud’s RMS radius) and twelve draws per cloud. Non-inv. is the fraction of molecules with one of 12 random views more than 0.1 Å (EMD) from the canonical form. Per method and column, bold marks the best tol and underline the second best (times compared to two significant figures); ∗ marks a tol at which the method fails to return a canonicalization for some inputs. LexiCan ranks labels rarest first. PCA has no tolerance (one setting, repeated in every row). Best results are in bold.
Additional Results on Robustness
Here, we compare LexiCan with ASUN and PCA on how much the canonical representations move upon random small perturbations. We take 500 random perturbation directions and report the fraction of representations that move more than 0.1 of the cloud’s RMS radius. We take multiple point cloud geometries, some more robust than the others in terms of immunity to big jumps upon random perturbations. We sort the geometries according to their jump percentage and report the fraction of representations that flip significantly for each of PCA, ASUN, and LexiCan in Figure 2.
At the tested perturbation magnitude, LexiCan exhibits no threshold-exceeding jumps across the 82 pilot geometries. PCA and ASUN exhibit positive observed jump frequencies on several geometries, with substantial variation across inputs. These results support lower observed perturbation sensitivity for LexiCan under this protocol.
Machine dependence of PCA. The PCA values in Tables 4 and 5 were computed on an Intel Xeon Gold 6336Y CPU with NumPy 2.5.3 (OpenBLAS 0.3.34). They may differ on other machines, since PCA’s eigenbasis at repeated eigenvalues is set by floating-point rounding, which depends on the processor’s linear-algebra kernels (for example, 5,680 instead of 5,301 discontinuities on the CH stretch on an Intel Xeon 6710E). The conclusions drawn from these tables are unchanged.
Perturbation Across Symmetric Polyhedra
In Table 14, we consider the effect of adding isotropic Gaussian noise at from to to a set of polyhedra described in Section D.7.
| Flip rate | Median | p95 | Not invariant | |
| PCA | 0.762 | 18/18 | ||
| ASUN @ | 0.356 | 2.14 | 6/17 | |
| LexiCan @ | 0.196 | 1.25 | 516 | 0/18 |
| LexiCan @ | 0.404 | 1.66 | 0/18 |
Table 14. Algorithms applied to the 18 labeled point clouds spanning polyhedra, molecules, and adversarial cases (see Figure 3). Flip rate is the fraction of perturbations whose canonical form varied further than the input moved, is the output movement divided by the input movement (1 means no amplification), and not invariant counts the clouds whose random rotations give different canonical forms, out of those the algorithm canonicalizes. Best results are in bold.
Figure 3. The 18 labeled point clouds used in the perturbation study. The set represents a mix of four molecules, symmetric polyhedra, unstructured clouds and three adversarial cases. Color indicates species, while edges are drawn only to make the shape legible and carry no information beyond the points themselves. Each cloud is scaled independently, so relative size across panels is not meaningful.
We quantify our results by considering the ‘flip rate’ and the failure to be invariant (the canonicalization is not unique, measured by considering the distance between canonicalized inputs at some tolerance).
Our algorithm shows 0 clouds with invariance errors (the ‘Not invariant’ column in the table below) against 18/18 and 6/17 for baselines, and the p95 amplification rate of the worse version of LexiCan is 30 times smaller than the best baseline. ASUN raises an error on one of the clouds (see Appendix § 12.4), which is why ASUN is compared against one less example. ASUN is unable to return a frame for certain configurations, as it requires three non-perpendicular directions. In this setup, it fails against a regular octahedron with its two axial vertices labeled differently from its four equatorial ones.
Symmetric Polyhedra Data for Perturbation Experiments
We handcraft a set of point clouds for the perturbation experiments. We aim for a computationally manageable sample that would carry a set of challenging configurations, which nonetheless could be representative across domains. It is comprised of:
Molecules. A set of four molecules: NH, CH, HO, and CH.
Symmetric solids. Nine polyhedra with structured labels: a tetrahedron and an icosahedron (one marked vertex each); a cube split into two inscribed tetrahedra; a cube with only one species; an octahedron divided into axial and equatorial sites; a hexagonal frustum and antiprism, each split into two rings; a hexagonal bipyramid with marked apices; and a cube-octahedron compound.
Unstructured clouds. Two completely asymmetric configurations: nine isotropic Gaussian points (two species) and twelve random spherical directions (three species).
Adversarial cases. Three configurations designed to defeat specific tie-breaking rules. In a cuboctahedron and a cube-octahedron compound, species are assigned by vertex index to break structural symmetry. The third case is a spherical shell with one point with a different label at one-tenth the outer radius. All three of these were meant to test the limits of LexiCan; the first two have full symmetries that cannot be easily broken by distance, angle or label, while the spherical shell forces a complete tie at the second step of the algorithm (after setting the axis).
Tolerance Threshold Dependence of LexiCan in End-to-end Learning
In the main experimental section, we have compared LexiCan with baselines across a broad range of tasks testing speed, invariance, robustness and performance in end-to-end learning tasks. However, we had chosen the tolerance threshold of for those tasks. As seen in Table 12 and Table 13, having a lower threshold ensures invariance (thus, an accurate canonicalization) and runtime efficiency, but might hurt robustness.
However, it is unclear how that would impact end-to-end learning performance. Thus in this section, we demonstrate the performance of LexiCan across two thresholds: the chosen threshold of and a lower threshold of . We show the performance variation of LexiCan across the end-to-end learning tasks in the following Table 15 and Table 16:
| Representation | MAE | RMSE |
| Regular | ||
| ASUN | ||
| LexiCan @ | ||
| LexiCan @ |
Table 15.
| Model | ASUN | LexiCan @10 | LexiCan @10 | ||
| SchNet | |||||
| EGNN | |||||
| GCN | |||||
| GCNII | |||||
| SchNet-Pos | |||||
| EGNN-Pos |
Table 16. Accuracy of classification (%, mean STD over three seeds). Best results are in bold. ModelNet40 ()
Table 15: QM9 isotropic polarizability prediction (Transformer). Test MAE and RMSE over three seeds (mean STD), on randomly rotated, permuted and translated test molecules, as in Table 7. Regular is trained on the stored QM9 poses.
References
- [1]Justin Baker, Shih-Hsin Wang, Tommaso De Fernex, and Bao Wang. An Explicit Frame Construction for Normalizing 3D Point Clouds. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 2456–2473. PMLR, 2024. URL https://proceedings.mlr.press/v235/baker24a.html.
- [2]Simon Batzner, Albert Musaelian, Lixin Sun, Mario Geiger, Jonathan P. Mailoa, Mordechai Kornbluth, Nicola Molinari, Tess E. Smidt, and Boris Kozinsky. E(3)-Equivariant Graph Neural Networks for Data-Efficient and Accurate Interatomic Potentials. Nature Communications, 13(1):2453, 2022. doi: 10.1038/s41467-022-29939-5. URL https://doi.org/10.1038/s41467-022-29939-5.
- [3]Ben Bellekens, Vincent Spruyt, Rafael Berkvens, and Maarten Weyn. A Survey of Rigid 3D Point-cloud Registration Algorithms. In AMBIENT 2014: The Fourth International Conference on Ambient Computing, Applications, Services and Technologies, pages 8–13, 2014.
- [4]Kellogg S Booth. Lexicographically least circular substrings. Information Processing Letters, 10(4-5): 240–242, 1980.DOI
- [5]Mohamed Chaouch and Anne Verroust-Blondet. A Novel Method for Alignment of 3D Models. In 2008 IEEE International Conference on Shape Modeling and Applications, pages 187–195. IEEE, 2008.DOI
- [6]Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep graph convolutional networks. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 1725–1735. PMLR, 13–18 Jul 2020. URL https://proceedings.mlr.press/v119/chen20v.html.arxiv.org/abs/2007.02133
- [7]Taco Cohen and Max Welling. Steerable CNNs. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=rJQKYt5ll.arxiv.org/abs/1612.08498
- [8]Alexandre Agm Duval, Victor Schmidt, Alex Hernández-García, Santiago Miret, Frangiskos D. Malliaros, Yoshua Bengio, and David Rolnick. FAENet: Frame Averaging Equivariant GNN for Materials Modeling. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 9013–9033. PMLR, 2023. URL https://proceedings.mlr.press/v202/duval23a.html.arxiv.org/abs/2305.05577
AI tools statement
This work lists 1 AI tool.
generative AI tools · AI tool
- Roles
- Data curationFormal AnalysisInvestigationMethodologySoftwareVisualizationWriting — original draftWriting — review & editing
- Verification
- self-declared at submission
Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

