Rigid-Motion-Quotient Covariance Loss
Implementation & benchmark of arXiv:2607.16782 — Dynamical Optimal Transport with $\mathfrak{so}(d)$-Invariance: From Theory to Computation
Source paper: Dynamical Optimal Transport with $\mathfrak{so}(d)$-Invariance: From Theory to Computation arXiv:2607.16782 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Add a distribution-level loss that compares minibatch embeddings only through the square roots of their ordered covariance eigenvalues, ignoring global translation and rotation of the embedding coordinate system. This implements the Gaussian specialization of the paper’s Procrustes-Wasserstein geometry and is useful when two embedding clouds are semantically equivalent up to a rigid change of coordinates.
Formulas
Mathematical statement
The paper motivates quotienting ambient rigid motions using the Euclidean group E(d), with the stated Wasserstein-space symmetry Isom(P_2(R^d), W_2) isomorphic to E(d) semidirect-product O(d). For a Gaussian embedding distribution with covariance Sigma positive semidefinite, let lambda_1(Sigma) greater than or equal to ... greater than or equal to lambda_d(Sigma) greater than or equal to 0 be its ordered eigenvalues and define the spectral coordinate s(Sigma) = (sqrt(lambda_1(Sigma)), ..., sqrt(lambda_d(Sigma))). The Gaussian Procrustes-Wasserstein distance is D_PW^2(Sigma_a, Sigma_b) = ||s(Sigma_a) - s(Sigma_b)||_2^2 = sum_i (sqrt(lambda_i(Sigma_a)) - sqrt(lambda_i(Sigma_b)))^2. Since lambda_i(Q Sigma Q^T) = lambda_i(Sigma) for every orthogonal matrix Q, the loss is invariant to global rotations or reflections of embedding coordinates. Centering the embeddings removes translations. In a network, use this as a penalty between two augmented views, domains, or class-conditional embedding clouds. The square-root map compares standard deviations rather than variances.
Implementation notes
1. Integration point: attach the loss to the penultimate embedding tensor of a classifier, contrastive encoder, graph neural network, or autoencoder. For each minibatch, generate two augmentations v=1 and v=2, encode them as z_{v,j} in R^d, and compute one covariance per view. Add lambda_rigid times L_rigid to the ordinary task or contrastive loss during training; inference is unchanged. 2. Pseudocode: z1 = encoder(view1(x)); z2 = encoder(view2(x)); mu1 = z1.mean(0); mu2 = z2.mean(0); C1 = (z1-mu1).T @ (z1-mu1)/(n-1); C2 = (z2-mu2).T @ (z2-mu2)/(n-1); C1 = C1 + eps*I; C2 = C2 + eps*I; lam1 = sort(eigvalsh(C1), descending=True); lam2 = sort(eigvalsh(C2), descending=True); loss_rigid = ((sqrt(lam1)-sqrt(lam2))**2).sum(); loss = loss_task + lambda_rigid*loss_rigid; loss.backward(). Use a symmetric eigensolver, clamp eigenvalues below zero, and set eps near 1e-5. 3. The paper supplies the quotient construction, spectral invariance, and square-root metric. The minibatch means and covariances are empirical estimates. For large d, use a randomized eigensolver or retain only the largest k eigenvalues. Monitor eigenvalue crossings and covariance collapse; optionally add a variance floor. 4. First experiment: train a small ResNet-18 on CIFAR-10 or a two-layer GNN on ModelNet40 with two standard augmentations. Compare no distribution loss, Frobenius covariance matching, standard Bures covariance matching, and this quotient loss at matched compute. At evaluation, multiply one view’s embeddings by an independently sampled orthogonal matrix and add a random translation. Success is unchanged prediction or contrastive loss under these transformations, improved augmentation or domain robustness, and lower validation error at equal training steps without covariance collapse. Report eigendecomposition time and covariance condition numbers.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.