# Weak Tangential-Divergence Curvature Loss

- ID: 1471
- Canonical URL: https://synthcore.org/idea/1471/weak-tangential-divergence-curvature-loss
- API JSON: https://synthcore.org/api/idea/1471.json
- API Markdown: https://synthcore.org/api/idea/1471.md
- Verification status: unverified
- Source: [arXiv:2607.27012](https://arxiv.org/abs/2607.27012)
- Category: geometry
- Solves: accuracy, stability, generalization
- ML areas: loss, regularization, geometry, implicit-representation
- Math tags: differential-geometry, functional-analysis, measure-theory
- Ratings: usefulness 5/10; difficulty 4/10; novelty 6/10

## Idea description

Add a curvature-aware regularizer to a neural scalar field whose level set represents a shape, occupancy boundary, signed distance function, or decision surface. Instead of differentiating a noisy explicit surface or requiring a mesh, evaluate the tangential divergence of ambient test vector fields directly and penalize its deviation from a target weak relation.

## Mathematical statement

The paper defines tangential divergence for a sufficiently regular vector field v along level sets of u by ${\rm TD}(v)\coloneqq {\rm div}(v)-\nabla v(\frac{{\mathrm d}u}{|{\mathrm d}u|},\frac{{\mathrm d}u}{|{\mathrm d}u|})$. Here u is a Sobolev scalar function, ${\mathrm d}u$ is its differential, $|{\mathrm d}u|$ is its norm, v is an ambient vector field, ${\rm div}(v)$ is ambient divergence, and $\nabla v(a,b)$ is the covariant derivative of v evaluated on directions a and b. In Euclidean implementation, let $n=\nabla u/(\|\nabla u\|+\varepsilon)$ and let $J_v$ be the Jacobian of v. Then ${\rm TD}(v)=\operatorname{tr}(J_v)-n^{\mathsf T}J_vn$, the divergence restricted to directions tangent to the level set. For test fields $v_k$ and target weak values $c_k$, use the squared residual as a neural loss. Constant fields give zero residual identically, so affine or low-frequency fields should be used in the actual regularizer.

## Key formulas

- $${\rm TD}(v)\coloneqq{\rm div}(v)-\nabla v\left(\frac{{\mathrm d}u}{|{\mathrm d}u|},\frac{{\mathrm d}u}{|{\mathrm d}u|}\right).$$
- $$n(x)=\frac{\nabla u(x)}{\|\nabla u(x)\|+\varepsilon},\qquad {\rm TD}(v)(x)=\operatorname{tr}(J_v(x))-n(x)^{\mathsf T}J_v(x)n(x).$$
- $$\mathcal L_{\mathrm{TD}}=\frac{1}{K|B|}\sum_{x\in B}\sum_{k=1}^{K}w(x)\left({\rm TD}(v_k)(x)-c_k(x)\right)^2.$$$
- $$\mathcal L=\mathcal L_{\mathrm{task}}+\lambda_{\mathrm{TD}}\mathcal L_{\mathrm{TD}}+\lambda_{\mathrm{eik}}\,\mathbb E_{x\in B}\left(\|\nabla u(x)\|_2-1\right)^2.$$

## Implementation notes

Integrate this at the loss level for an MLP neural implicit representation $u_\theta:\mathbb R^d\to\mathbb R$, such as an occupancy field, signed-distance model, or classifier whose zero level set is the learned boundary. Sample a minibatch $B$ of points near the target level set by mixing labeled points with random perturbations. Choose $K$ fixed affine test fields $v_k(x)=A_kx+b_k$, with random matrices $A_k$ and vectors $b_k$; affine fields make $J_{v_k}=A_k$ available without an extra autodiff graph. For every point x, compute $g=\nabla_xu_\theta(x)$, set $n=g/(\|g\|_2+\varepsilon)$, and evaluate $t_k=\operatorname{tr}(A_k)-n^TA_kn$. Use $c_k(x)=0$ for a minimal tangential-variation prior, or use known boundary-condition targets when the application supplies them. Average the weighted squared residuals, add the standard task loss and Eikonal term, and backpropagate through n and $u_\theta$. The projected divergence is computed from the paper's formula; $K$, the affine-field distribution, sampling weights $w$, epsilon, and lambda are empirical hyperparameters. Start with a 2D noisy-circle or two-moons reconstruction using a small SDF MLP. Compare against task loss plus Eikonal and against Eikonal plus ordinary total variation. Evaluate Chamfer distance, boundary curvature variance, noise robustness, and optimization stability. Success is lower noisy-boundary error and fewer curvature spikes at equal parameter count and compute, with no clean-data accuracy loss.

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
