Geodesic Matrix Divergence Loss
Implementation & benchmark of arXiv:2608.15833 — Geodesic Quantum $f$-Divergences
Source paper: Geodesic Quantum $f$-Divergences arXiv:2608.15833 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace a conventional covariance or density-matrix discrepancy with the geodesic quantum f-divergence between an example's predicted positive-definite matrix and its target matrix. Use t as a controllable interpolation between the standard Petz divergence at t=0 and the maximal divergence at t=1, with f(x)=x log x or another operator-convex power generator. The loss is suited to covariance-predicting networks, SPD-valued embeddings, and matrix-valued classifiers where eigenvector alignment matters and elementwise MSE is coordinate-dependent.
Formulas
Mathematical statement
For invertible positive-definite states rho and sigma, define left and right multiplication on Hilbert-Schmidt matrices by L_rho[X]=rho X and R_sigma^{-1}[X]=X sigma^{-1}. The standard and maximal relative modular operators are Delta_{rho|sigma}=L_rho R_sigma^{-1} and widehat{Delta}_{rho|sigma}=R_{sigma^{-1/2}rho sigma^{-1/2}}. Their affine-invariant geodesic is Gamma_t=Delta_{rho|sigma} #_t widehat{Delta}_{rho|sigma}=L_{rho^{1-t}}R_{sigma^{-1/2}rho^t sigma^{-1/2}}, so Gamma_t[X]=rho^{1-t} X sigma^{-1/2}rho^t sigma^{-1/2}. The geodesic f-divergence is D_f^t(rho||sigma)=<sigma^{1/2},f(Gamma_t)[sigma^{1/2}]>_HS, where <A,B>_HS=Tr(A^dagger B), f is an operator-convex scalar function, and f(Gamma_t) is defined by spectral functional calculus on the superoperator Gamma_t. The endpoints are D_f^0, the standard/Petz divergence, and D_f^1, the maximal divergence. For every completely positive trace-preserving map Phi, data processing gives D_f^t(Phi(rho)||Phi(sigma)) <= D_f^t(rho||sigma).
Implementation notes
(1) Integration point: add this as an auxiliary loss after an SPD-valued network head. Given feature vector h, parameterize rho_theta(h)=L L^T+epsilon I, where L is a lower-triangular output, and represent the target covariance or density matrix as sigma=M M^T+epsilon I. If using density matrices, normalize both by trace. Combine lambda D_f^t(rho_theta||sigma) with the existing supervised loss; do not use the divergence alone for classification.
(2) Pseudocode: compute eigendecompositions of rho and sigma, form rho^(1-t), rho^t, and sigma^(-1/2); define the linear operator G(X)=rho^(1-t) X sigma^(-1/2)rho^t sigma^(-1/2); set v=vec(sigma^(1/2)); for a small matrix dimension explicitly construct the d^2 by d^2 representation of G, eigendecompose G, apply f(lambda)=lambda log(lambda) to its eigenvalues, and evaluate v^T f(G)v. Clamp all matrix eigenvalues below 10^(-6). For larger matrices, use 10-30 Lanczos iterations to approximate f(G)v without materializing G. Warm up t from 0 to a chosen value in [0,1].
(3) Computed from the paper's mathematics: the geodesic operator, the functional-calculus loss, and the data-processing comparison. Estimated empirically: the best t, lambda, epsilon, Lanczos depth, and whether the maximal endpoint improves robustness. Monitor the minimum eigenvalue and gradient norms.
(4) First cheap experiment: train a small MLP on synthetic Gaussian classification or rotated-MNIST, with each example represented by a 4x4 or 8x8 covariance target. Compare Frobenius loss, log-Euclidean distance, Bures distance, and geodesic losses at t=0, 0.5, and 1 using identical optimizers and matched training budgets. Measure validation accuracy, calibration, sensitivity to random orthogonal changes of basis, gradient-norm variance, and performance under covariance perturbations. Success means lower validation error or better corruption robustness at matched training loss without unstable gradients. Also verify numerically that applying a random CPTP compression layer never increases the measured divergence.
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.