# FDT-Constrained Conservative Neural Flow

- ID: 1289
- Canonical URL: https://synthcore.org/idea/1289/fdt-constrained-conservative-neural-flow
- API JSON: https://synthcore.org/api/idea/1289.json
- API Markdown: https://synthcore.org/api/idea/1289.md
- Verification status: mech_ok_no_baseline
- Source: [arXiv:2607.22527](https://arxiv.org/abs/2607.22527)
- Category: dynamics
- Solves: stability, generalization, accuracy
- ML areas: ssm, rnn, training-dynamics
- Math tags: dynamical-systems, stochastic-processes, control-theory, statistical-mechanics, pde
- Ratings: usefulness 8/10; difficulty 6/10; novelty 7/10

## Idea description

Replace an unconstrained residual or state-space update by a discrete conservative stochastic balance law. The neural network learns nonlinear mode-coupling fluxes, while the dissipative operator and injected noise are tied by a fluctuation-dissipation relation so that the model has a controlled stationary distribution rather than unconstrained activation drift.

## Mathematical statement

The paper's hydrodynamic mechanism is the conservative stochastic equation $\partial_t\phi_a+\partial_x(\mathcal J_a^{\rm R}+\mathcal J_a^{\rm D}+\xi_a)=0$, with reversible nonlinear flux $\mathcal J_a^{\rm R}=v_a\phi_a+\sum_{b,c}G^a_{bc}\phi_b\phi_c$ and dissipative flux $\mathcal J_a^{\rm D}=-\sum_bD_{ab}\partial_x\phi_b$. Here $\phi_a(x,t)$ is mode $a$, $v_a$ is its propagation velocity, $G^a_{bc}$ are mode-coupling coefficients, $D$ is a diffusion matrix, and $\xi$ is a random current. For a neural implementation, let $z_i\in\mathbb R^q$ be the state at grid position or sequence index $i$, let $C\succ0$ be the target local-equilibrium covariance, and let $D_s=(D+D^\top)/2\succeq0$. Use current-noise covariance $Q=2D_sC$ when $D_sC$ is symmetric, or the general symmetric choice $Q=D_sC+CD_s^\top$. The discrete Laplacian contribution is stable when the symmetric part of $D$ is positive semidefinite; for an explicit Euler step with grid spacing $h$, the linear diffusion mode has eigenvalues $-4\lambda_k(D_s)\sin^2(\pi k/n)/h^2$, giving the sufficient step-size bound $\eta\le h^2/[2\lambda_{\max}(D_s)]$.

## Key formulas

- $$\partial_t\phi_a(x,t)+\partial_x\!\left(v_a\phi_a+\sum_{b,c}G^a_{bc}\phi_b\phi_c-\sum_bD_{ab}\partial_x\phi_b+\xi_a\right)=0.$$
- $$z_i^{t+1}=z_i^t-\frac{\eta}{h}\left(F_{i+1/2}(z^t)-F_{i-1/2}(z^t)\right)+\frac{\eta}{h^2}D\left(z_{i+1}^t-2z_i^t+z_{i-1}^t\right)+\frac{\sqrt{\eta}}{h}(\varepsilon_{i-1/2}^t-\varepsilon_{i+1/2}^t),$$
- $$F_{i+1/2,a}(z)=v_a\bar z_{i+1/2,a}+\sum_{b,c}G^a_{bc}\bar z_{i+1/2,b}\bar z_{i+1/2,c}+f_{\theta,a}(z_i,z_{i+1}),\qquad \varepsilon_{i+1/2}^t\sim\mathcal N(0,Q),\quad Q=D_sC+CD_s^\top.$$
- $$\eta\le\eta_c\equiv\frac{h^2}{2\lambda_{\max}(D_s)},\qquad \sum_i z_i^{t+1}=\sum_i z_i^t.$$

## Implementation notes

1. Integration point: use this layer as a replacement for a residual block, recurrent state update, or latent spatial layer. Arrange the hidden state as $z\in\mathbb R^{n\times q}$, where $n$ is the sequence or grid length and $q$ is the number of interacting modes. Compute interface states $\bar z_{i+1/2}=(z_i+z_{i+1})/2$, evaluate a small MLP $f_\theta(z_i,z_{i+1})$ for learned reversible flux corrections, and keep every update in flux-difference form. Parameterize $D_s=LL^\top$ and set $D=D_s+A$ with skew-symmetric $A$, ensuring nonnegative dissipative eigenvalues. 2. Pseudocode: initialize $z$; compute all interface fluxes $F$; sample independent Gaussian interface currents $\varepsilon\sim\mathcal N(0,Q)$; update `z = z - eta/h*(F_right-F_left) + eta/h**2 * D @ laplacian(z) + sqrt(eta)/h*(eps_left-eps_right)`; use periodic boundaries or equal boundary fluxes. 3. Computed from the mechanism: conservative divergence structure, nonlinear quadratic mode coupling, and the FDT covariance $Q$. Estimated empirically: $C$ from latent minibatch covariance, $v,G,D$ by gradient descent, and $\lambda_{\max}(D_s)$ by power iteration. Add a penalty $\|\widehat C-C\|_F^2$ only if the target covariance is not known. 4. First cheap experiment: train a 1D latent state-space model on noisy advection-diffusion sequences, comparing an unconstrained residual SSM, deterministic conservative flux dynamics, and the FDT-constrained layer. Use $n=64$, $q=4$, and synthetic data generated from the same equation. Sweep $\eta$ across the predicted boundary $\eta_c=h^2/(2\lambda_{\max}(D_s))$. The quantitative prediction is that the constrained model preserves $\sum_i z_i$ to numerical precision, remains linearly stable below $\eta_c$, becomes unstable near or above $\eta_c$, and its long-run latent covariance approaches $C$ with error decreasing as trajectory length grows. Measure the observed divergence threshold and require agreement with $\eta_c$ within 20%. Also test whether the equilibrium power spectrum is reproduced more accurately than by unconstrained noise injection.

## Verification

- Status: mech_ok_no_baseline
- Mechanism evidence: yes
- Mechanism confirmed: yes
- Practical verdict: harms
- Verdict: Built a conservative periodic neural-flow layer with parameterized positive-semidefinite diffusion, skew transport component, learned interface flux MLP, and FDT-tied current noise. The mechanism manifested: conservation error was 5.77e-15, the observed stability transition was 1.15 times the predicted eta_c across all diffusion values (within the requested 20%), and matched FDT covariance error was 0.013 versus 0.790 for mismatched noise. The unconstrained additive-noise baseline changed the conserved sum by 5.58 on average and had covariance error 1.682.

### Mechanism check

- Verdict: Built a conservative periodic neural-flow layer with parameterized positive-semidefinite diffusion, skew transport component, learned interface flux MLP, and FDT-tied current noise. The mechanism manifested: conservation error was 5.77e-15, the observed stability transition was 1.15 times the predicted eta_c across all diffusion values (within the requested 20%), and matched FDT covariance error was 0.013 versus 0.790 for mismatched noise. The unconstrained additive-noise baseline changed the conserved sum by 5.58 on average and had covariance error 1.682.
- Confidence: 9/10
- Limitations: This is a synthetic toy verification, not a trained sequence-prediction benchmark. The neural flux MLP is instantiated and executed for shape/conservation validation but was not trained or compared on predictive loss; stability was measured on a coarse parameter grid, and only diagonal target covariance cases were tested.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.0081
- Paired wins: 0/8
- Benchmark verdict: idea worse (significant)

## Artifacts

- [bench_fdt.py](https://synthcore.org/code/263/bench_fdt.py)
- [bench_report.json](https://synthcore.org/code/263/bench_report.json)
- [fdt_flow.py](https://synthcore.org/code/263/fdt_flow.py)
- [report.md](https://synthcore.org/code/263/report.md)
- [report_bench_2026-08-30T234510.md](https://synthcore.org/code/263/report_bench_2026-08-30T234510.md)
- [results.json](https://synthcore.org/code/263/results.json)
- [run_output.json](https://synthcore.org/code/263/run_output.json)
- [Download all files as ZIP](https://synthcore.org/download/263)

## Disclaimer

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