# Divergence-Free Skew-Transport Layer

- ID: 2592
- Canonical URL: https://synthcore.org/idea/2592/divergence-free-skew-transport-layer
- API JSON: https://synthcore.org/api/idea/2592.json
- API Markdown: https://synthcore.org/api/idea/2592.md
- Verification status: unverified
- Source: [arXiv:2608.19835](https://arxiv.org/abs/2608.19835)
- Category: dynamics
- Solves: stability, accuracy, generalization
- ML areas: cnn, ssm, training-dynamics
- Math tags: pde, functional-analysis, differential-geometry
- Ratings: usefulness 6/10; difficulty 5/10; novelty 6/10

## Idea description

Replace an unconstrained spatial residual block by a discretized transport evolution whose generator is skew-adjoint. Symmetric channel matrices and divergence-free spatial coefficients make the continuous operator energy-preserving, while a matrix exponential or Cayley transform gives an exactly norm-preserving discrete layer.

## Mathematical statement

The paper studies the vector transport equation $u_t+Lu=0$ with $(Lu)_i=\sum_{k=1}^{n}\sum_{j=1}^{m}a^k_{ij}(x)\partial_{x_k}u_j$, where $u(t,x)\in\mathbb{R}^m$, $x\in\mathbb{R}^n$, and $a^k(x)\in\mathbb{R}^{m\times m}$. Its assumptions are channel symmetry $a^k_{ij}(x)=a^k_{ji}(x)$ and entrywise solenoidality $\sum_{k=1}^{n}\partial_{x_k}a^k_{ij}(x)=0$. For sufficiently regular coefficients satisfying a linear-growth condition, the spatial operator is skew-adjoint: $L^*=-L$. Therefore $\frac{d}{dt}\|u(t)\|_{L^2}^2=-2\langle u,Lu\rangle_{L^2}=0$. On a discrete periodic grid, let $D_k$ be a real skew-symmetric derivative matrix, $D_k^T=-D_k$, and let $A_k$ be a block-diagonal multiplication matrix formed from symmetric channel matrices, $A_k^T=A_k$. The discrete generator $K=-\frac12\sum_k(A_kD_k+D_kA_k)$ then satisfies $K^T=-K$ exactly. The matrix exponential $\exp(hK)$ and Cayley transform $(I-hK/2)^{-1}(I+hK/2)$ are orthogonal, so they preserve the discrete Euclidean feature norm.

## Key formulas

- $$u_{it}+\sum_{k=1}^{n}\sum_{j=1}^{m}a^{k}_{ij}(x)u_{jx_k}=0,\qquad i=1,\ldots,m.$$
- $$a^{k}_{ij}(x)=a^{k}_{ji}(x),\qquad \sum_{k=1}^{n}\partial_{x_k}a^{k}_{ij}(x)=0.$$
- $$\frac{d}{dt}\|u(t)\|_{L^2}^2=-2\langle u,Lu\rangle_{L^2}=0,\qquad L^*=-L.$$
- $$K=-\frac12\sum_{k=1}^{n}(A_kD_k+D_kA_k),\qquad Q_h=\left(I-\frac{h}{2}K\right)^{-1}\left(I+\frac{h}{2}K\right),\qquad Q_h^TQ_h=I.$$

## Implementation notes

(1) Integration point: replace a residual CNN block or spatial state-space/sequence-mixing block. Store features as $U\in\mathbb{R}^{B\times m\times H\times W}$, flattening the spatial dimensions only for the transport operation. Use fixed periodic finite-difference or FFT derivative operators $D_x,D_y$. Predict unconstrained matrices $S_x(p),S_y(p)$ from a low-cost pointwise linear layer or a smaller conditioning network, and impose symmetry pointwise with $A_k(p)=\frac12(S_k(p)+S_k(p)^T)$. (2) Pseudocode: `Sx,Sy = coeff_net(U)`; `Ax = 0.5*(Sx + transpose_channel(Sx))`; `Ay = 0.5*(Sy + transpose_channel(Sy))`; `K = -0.5*(Ax@Dx + Dx@Ax + Ay@Dy + Dy@Ay)`; `U_new = solve(I-h*K/2, (I+h*K/2)@U)`. For large grids, implement the solve with a few conjugate-gradient-like iterations on the positive-definite system $(I-hK/2)^T(I-hK/2)$, or use an approximation to the exponential based on repeated Cayley substeps. (3) The mathematical guarantee is checked by measuring $\|K+K^T\|_F$ and the relative norm error $|\|U_{new}\|_2-\|U\|_2|/\|U\|_2$. On nonperiodic boundaries, explicitly set $K\leftarrow(K-K^T)/2$ after discretization. (4) First experiment: train CIFAR-10 with a small ResNet-18 and a 50-layer version, replacing four or twelve residual blocks by transport blocks. Match parameter count and FLOPs against ordinary residual blocks, test with and without batch normalization, and compare Euler, Cayley, and unconstrained residual updates. Track loss smoothness, gradient norms, feature norms, accuracy, and the largest learning rate that trains without divergence. Success means exact numerical norm preservation, fewer exploding-gradient runs, and stable optimization at depth or learning rates where the baseline fails; compare wall-clock overhead separately.

## Disclaimer

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