Many models are trained with a round trip. A structure is mapped into some intermediate code, mapped back, and the model is penalized when the result differs from the original. This is the idea behind cycle consistency and dual learning, where two mappings in opposite directions regularize each other. Problems appear when the data has symmetries, meaning many coordinate descriptions of the same object. A molecule rotated in space is still the same molecule, and so is a molecule whose three methyl hydrogens have swapped labels. If the round-trip error is measured in raw coordinates, the only way to drive it to zero is for the intermediate code to record which rotation and which labeling it saw. That information has nothing to do with chemistry. The loss therefore actively trains the model to smuggle symmetry information through the bottleneck. This is a concrete, symmetry-induced version of the "hidden watermark" shortcut that the dual-learning literature already worries about.
We propose to measure every reconstruction leg of a bidirectional model on the quotient space, the space in which all symmetric copies of an object are merged into a single point. Concretely, the reconstruction error is the minimum over the joint group of rigid motions and the molecular graph's discrete relabelings (its automorphisms). The rotation part has an exact closed-form solution. The discrete part is a small search, or a matching problem. Gradients pass through the minimum by the envelope theorem. We test this in a three-way bidirectional model of 3D molecules on QM9 and GEOM. The model has an encoder that splits a structure into a property code and an "everything else" code, a decoder that rebuilds structures, and a property predictor. We test two predictions. First, raw-coordinate cycles leak pose and labeling into the latent code, and quotient cycles do not. Second, removing that leak improves the conditional invariance error that Samarin et al. report.
Core Claim
The claim has a precise form. Let $x$ be a structure, $y$ the intermediate code, $\hat x(y)$ the reconstruction, and $G$ the symmetry group with elements $g$. Then the raw-coordinate cycle loss splits into two parts:
$$ \mathbb{E}\,\|\hat x(y) - x\|^2 \;=\; \mathbb{E}\,\min_{g\in G}\|\hat x(y) - g\cdot x\|^2 \;+\; \mathbb{E}\,\rho(x,y). $$
The first term is the quotient loss. The second is an alignment residual $\rho \ge 0$, which is zero only when $\hat x$ already sits in the specific pose and labeling of $x$.
Consider an intermediate code that carries no information about $g$ beyond what the shape itself determines. For such a code, the best reconstruction under the raw loss is the orbit average $\mathbb{E}[g\cdot x \mid y]$, the average over all symmetric copies of $x$ consistent with the code. Averaging rotated copies shrinks them toward their centroid, so this reconstruction is a blurred shape. The residual then has a strictly positive floor. Pushing the raw loss below that floor requires the mutual information between $y$ and $g$ to be positive. This follows from the standard fact that the minimum mean-squared-error predictor is the conditional mean.
So the leak is not an accident of optimization. It is what the objective rewards. A quotient loss removes the residual term entirely.
The new element is the discrete half of the group. Rotation-aligned (Kabsch) losses are common practice, but they still leave a floor from label swaps among chemically equivalent atoms. We predict that this floor produces a measurable discrete leak. Pose canonicalization cannot fix it, and rotation-only quotienting does not touch it.
Relation to Prior Work
Three papers sit closest to this idea, and each covers only part of it.
Samarin et al. learn conditional invariance with a property-based cycle. They encode a structure into a property part and an invariant part, resample the invariant part, decode, and require the property predictor to return the original property. They report an invariance error of 1.34 kcal/mol on the QM9 C7O2H10 subset. They also note that their method assumes connected, convex level sets, meaning the set of structures sharing a property value is assumed to be one connected, convex region. Their partition is Euclidean, and they compute no group invariants. Their work supplies our loop and our benchmark. It also motivates one specific question: how much of their reported level-set disconnection is just symmetric copies of the same molecule, which a quotient metric would merge?
Mehr et al. supply the method. Their Quotient Autoencoder reconstructs against the minimum over a rotation orbit, uses envelope-theorem gradients, and reports up to 20% lower reconstruction error than rotation augmentation on ShapeNet. However, it is a single-direction autoencoder on voxels, and it searches rotations by grid. We replace the grid with the exact rotation solution, add the discrete automorphism group, and place the loss inside a bidirectional loop.
Xu et al. run diffusion directly on the space of shapes modulo rigid motion. They project each update onto the directions that change shape and add a correction for how orbit size varies across shapes. They report 9% to 23% relative gains over ET-Flow on GEOM. Their method is a one-direction generative model and handles only continuous groups. Their projection also inverts the moment-of-inertia tensor, which needs ad hoc regularization for nearly planar or collinear molecules.
Our loss is a minimum over the group, so its value stays continuous even where the minimizing rotation is not unique. That sidesteps this singularity rather than regularizing it away. We do not claim the singularity disappears for every quantity: the minimizing rotation itself is still ill-defined at those configurations.
On the bidirectional side, Cheng et al. frame translation as a closed-loop autoencoder through a latent foreign sentence. That design is the template for our round trip, and it is also the setting where hidden-signal shortcuts are a known risk. We do not pursue the file's suggestion of quotienting attention-agreement penalties over the Transformer basis symmetries studied by da Silva et al.. Attention matrices are already unchanged by those symmetries, so an agreement penalty on them is already symmetry-invariant as a function. Only the optimizer's path through parameter space would differ, which is a much weaker lever.
Research Program
The model has three components. The first is an encoder $E$ that takes 3D coordinates and the molecular graph and outputs a property code $z_0$ and a residual code $z_1$. The second is a decoder $D(\text{graph}, z_0, z_1)$ that outputs coordinates. The third is a property predictor $f$.
Training uses three round trips. The structure cycle is $x \to E \to D$, with error measured modulo the group. The property cycle is the one from Samarin et al.: decode with a freshly sampled $z_1$ and require $f$ to recover the original property. The latent cycle is $(z_0, z_1) \to D \to E$, and it requires the codes to be recovered. The latent cycle is the bidirectional constraint that gives the leak something to act on. If $E$ can read pose and $D$ writes pose, all three cycles can be satisfied by passing pose through $z_1$.
The group is the product of 3D rotations and translations with the graph automorphism group, where atoms of the same element are interchangeable only when the graph allows it.
The minimum over the group is computed differently for the two datasets. On QM9 we enumerate automorphisms exactly, since the groups are small, and solve one Kabsch alignment per automorphism. On GEOM-DRUGS, products of local symmetries such as methyl groups and ring flips can make the group large. There we alternate between a Kabsch alignment and a Hungarian matching within each class of equivalent atoms. On a held-out subset we measure the gap between this alternating search and exact enumeration, because the alternation can stall in local minima.
At near-ties, where two candidate alignments have almost equal error, the minimizing group element jumps discontinuously. We replace the hard minimum with a log-sum-exp soft minimum and anneal its temperature toward zero over training.
The analysis has two parts. First, we train linear and small MLP probes on $z_1$ to predict the rotation (as a 6D representation) and the automorphism index. Leakage is the probe's accuracy above chance. Second, for Samarin's level-set question, we build $k$-nearest-neighbor graphs over held-out structures with matching band gap. We count connected components under raw distance and under quotient distance, which measures how much apparent disconnection is merely symmetry.
Baselines
The naive reference point is the same three-cycle model with plain raw-coordinate losses and a non-invariant encoder. This configuration should show the leak most clearly. Every variant uses the same architecture, data splits, step budget, and an equal hyperparameter search of twenty trials, tuned on validation invariance error.
The strongest published competitor on the conditional-invariance question is the cycle-consistent model of Samarin et al.. It reports an invariance error of 1.34 kcal/mol on QM9 C7O2H10, against 3.05 for the adversarial STIB and 5.66 for β-VAE. We will rerun it on our splits and also quote the published figure. Beating it means a lower invariance error on identical splits, with property error no worse than 5% relative.
The key ablation is rotation-only quotienting: Kabsch-aligned losses with no automorphism search. This is the practice most researchers already use. It isolates our discrete-symmetry ingredient. If it matches the full method on both leakage and invariance error, our central claim fails.
For structure reconstruction quality we also compare against grid-searched orbit pooling as in Mehr et al., reimplemented for point clouds and given an equal compute budget.
For downstream conditional conformer generation on GEOM-QM9 and GEOM-DRUGS, the strongest relevant system is quotient-space diffusion from Xu et al.. The file records only relative gains over ET-Flow (9% to 23%), not absolute coverage or matching-RMSD numbers. No reported absolute result was found on Lacuna for GEOM coverage or matching RMSD, so we will retrain it ourselves. On that task our aim is parity, not victory.
Why not just…?
Why not just augment with random rotations and atom relabelings? Augmentation shows the model many copies of each orbit, but the raw-coordinate loss still has the alignment floor. The model can lower that floor by reading pose, so augmentation may even make leakage easier to learn. Tahmasebi and Jegelka prove that augmentation does not achieve the improved convergence rate of invariant estimators, and Mehr et al. measure up to 20% worse reconstruction with it. We include augmentation as a baseline and report its probe leakage directly.
Why not just canonicalize each molecule's pose before training? This is the cheapest serious threat. Principal-axis canonicalization handles rotation, but it is discontinuous near symmetric or planar molecules, which is the same degeneracy that troubles the horizontal projection in Xu et al.. It also does nothing about equivalent-atom labelings. A canonical atom ordering does fix labelings, but it breaks continuity under small geometric perturbations. We run canonicalization as a baseline and stratify results by how close each molecule's inertia tensor is to degenerate. If canonicalization matches us outside the near-degenerate stratum, we will say so.
Why not just use an adversary to strip pose from the latent? The file's evidence favors cycles over adversarial invariance here: STIB reaches 3.05 against 1.34 in Samarin et al.. More fundamentally, an adversary fights the objective rather than removing its incentive. The raw loss still rewards leakage, so the two terms trade off against each other. We include an adversarial pose remover on top of the raw-coordinate model as a baseline.
Why not just use Kabsch-aligned losses, which people already do? This is the closest existing practice, and it is exactly our main ablation. Our prediction is specific: a residual leak of automorphism identity, and an invariance-error gap concentrated in molecules with nontrivial automorphism groups. If neither appears, the discrete extension is not worth its cost.
Proposed Experiments
The first decisive check is leakage. On QM9 C7O2H10, the raw-coordinate model should let a probe recover rotation well above chance. The rotation-only model should drive rotation leakage to chance while automorphism leakage stays above chance. The full quotient model should remove both. If automorphism leakage under rotation-only quotienting is at chance, the discrete story is wrong.
The second check is invariance error against the 1.34 kcal/mol reference. We report results stratified by automorphism-group size, predicting that the gains concentrate where the group is nontrivial.
The third check is the level-set analysis: the fraction of same-property components that merge under quotient distance. This quantifies how much of Samarin's acknowledged limitation is a symmetry artifact and how much is genuine topology, which quotienting cannot fix.
The fourth check tests scale on GEOM-DRUGS, together with the measured gap between alternating search and exact enumeration. Here we report conditional generation coverage and matching RMSD, with symmetry-corrected evaluation, against our retrained quotient-space diffusion model. The aim on this task is parity.
References
- Learning Conditional Invariance Through Cycle Consistency
- Manifold Learning in Quotient Spaces
- Quotient-Space Diffusion Models
- Semi-Supervised Learning for Neural Machine Translation
- Hide & Seek: Transformer Symmetries Obscure Sharpness & Riemannian Geometry Finds It
- Sample Complexity Bounds for Estimating Probability Divergences under Invariances