Gauge-invariant vortex charge loss
Implementation & benchmark of arXiv:2607.07910 — The Pseudo-Analytic Charge
Source paper: The Pseudo-Analytic Charge arXiv:2607.07910 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Add a topological loss that preserves the winding number of a complex numerator field predicted by a neural network. The loss is invariant to positive rescaling of the field, so it penalizes vortex creation or destruction rather than harmless amplitude changes.
Formulas
Mathematical statement
The paper defines the numerator field $N:=\Phi\,\mathfrak{b}-\Psi\,\mathfrak{a}-W_L(\Phi,\Psi)$, where $\Phi,\Psi,\mathfrak{a},\mathfrak{b}$ are complex coefficient fields and $W_L(\Phi,\Psi):=\Phi L\Psi-\Psi L\Phi$ is the $L$-Wronskian. The first-order operator is $L:=\bar{\partial}-\mu\,\partial$, with complex Beltrami coefficient $\mu$ satisfying $|\mu|<1$; in Cartesian coordinates, $\partial=(\partial_x-i\partial_y)/2$ and $\bar{\partial}=(\partial_x+i\partial_y)/2$. For a closed positively oriented curve $\gamma$ that does not intersect a zero of $N$, the pseudo-analytic charge is the winding number $n=\operatorname{wind}(N\circ\gamma,0)=(2\pi)^{-1}\oint_\gamma d\arg N\in\mathbb{Z}$. On sampled loop points $z_k=\gamma(k/K)$, define $u_k=N(z_k)/(\lvert N(z_k)\rvert+\varepsilon)$ and calculate the discrete charge from wrapped phase increments. Positive transformations $N\mapsto qN$ with $q>0$ leave all phase increments and therefore $n$ unchanged. The differentiable surrogate compares predicted phase increments with the target charge while penalizing small boundary modulus, preventing charge changes through a zero crossing.
Implementation notes
Integrate this loss into a neural field, U-Net, or Fourier neural operator that predicts complex coefficient fields $(\Phi,\Psi,\mathfrak a,\mathfrak b,\mu)$ on a 2D grid, or predicts a complex PDE solution from which $N$ is derived. At each training step, select one or more closed pixel loops around annotated or expected vortices. Use automatic differentiation or Sobel finite differences to evaluate $\partial$ and $\bar\partial$; explicitly compute $L\Phi=\bar\partial\Phi-\mu\partial\Phi$ and $L\Psi=\bar\partial\Psi-\mu\partial\Psi$, then construct $N=\Phi\mathfrak b-\Psi\mathfrak a-(\Phi L\Psi-\Psi L\Phi)$. Sample $K$ ordered points on each loop, calculate $u_k=N_k/(|N_k|+\varepsilon)$, and use atan2 on adjacent complex products to obtain wrapped phase increments. If the target charge is $n_\star$, add $\lambda_c\mathcal L_{\mathrm{charge}}$ to the ordinary pixelwise, supervised, or PDE residual loss. The boundary term with margin $m$ keeps $N$ away from zero on the loop; this is necessary because winding is invariant only while the loop contains no zero. Use $\varepsilon=10^{-6}$, gradient clipping, and a warm-up in which $\lambda_c$ increases from zero. Compute the rounded integer $\hat n$ as a detached evaluation metric, while optimizing the differentiable surrogate. The first experiment should use synthetic fields $N(r,\theta)=A(r,\theta)e^{in\theta}$ with random positive amplitudes, positive spatial gauge factors $q(x)$, coordinate warps, and known charges $n\in\{-2,-1,0,1,2\}$. Train a small CNN with and without the loss. Measure charge classification accuracy, vortex localization, pixel error, and robustness under amplitude rescaling. Success is fewer spurious charge changes under perturbations and higher out-of-distribution charge accuracy at comparable reconstruction loss and FLOPs.
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.