Lie-Rinehart Vector-Field Module
Implementation & benchmark of arXiv:2607.11169 — Cartan calculus in tangent categories
Source paper: Cartan calculus in tangent categories arXiv:2607.11169 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Build a latent dynamical model from learned vector-field generators and scalar state-dependent gates, while explicitly preserving the derivation and Lie-bracket identities of a Lie-Rinehart algebra. The model should be tested both with exact automatic differentiation and with a separately predicted tangent/JVP head; in the latter case, the identities become useful training constraints rather than tautologies.
Formulas
Mathematical statement
For an object X, a vector field is a section v:X o TX of the tangent projection \pi_X:TX o X. For an R-valued function f:X o R, Equation (5.6) defines the action of v on f by v\cdot f=\eta_R\circ Tf\circ v, where Tf:TX o TR is the tangent map and \eta_R:TR o R extracts the tangent/fiber component under the tangent-stable identification TR\cong R imes R. Thus v\cdot f is the directional derivative of f along v. Given vector fields v,w, the paper defines \delta(v,w)=-_{TX}\circ(Tw\circ v, au_X\circ Tv\circ w), where Tw and Tv are tangent maps, au_X:T^2X o T^2X is tangent symmetry, and -_{TX} subtracts two tangent vectors in the same fiber. The Lie bracket [v,w] is the unique vector field satisfying \delta(v,w)=(\lambda_2)_X\circ(w,[v,w]), with (\lambda_2)_X the second vertical-lift map. The transferable identities are v\cdot(fg)=(v\cdot f)g+f(v\cdot g) and the Lie-Rinehart Leibniz rule [v,fw]=(v\cdot f)w+f[v,w]. In Euclidean latent space X=R^d, v,w:R^d o R^d, f:R^d o R, these become v\cdot f=J_f(x)v(x) and [v,w](x)=J_w(x)v(x)-J_v(x)w(x), up to bracket sign convention; the scaled-field identity is [v,fw]=(J_fv)w+f(J_wv-J_vw).
Implementation notes
Integrate this into a latent ODE, state-space RNN, or continuous-time sequence model. Let the latent state be x\in R^d, let a neural network produce K vector-field generators V_i(x)\in R^d, and let another network produce scalar gates a_i(x)\in R; define the drift F(x)=\sum_i a_i(x)V_i(x). The simplest MVP uses ordinary autodiff to compute Jacobian-vector products. For a stronger test, add a tangent head G_ heta(x,u) that predicts directional derivatives of scalar network outputs and vector-field components in direction u, avoiding explicit Jacobians. Training pseudocode: (1) sample x,u and scalar functions f,g, including random linear probes and internal gate outputs; (2) compute D_vf=G_f(x,v) or an autodiff JVP; (3) compute B(v,w)=J_wv-J_vw using two JVP calls, or use a bracket head B_ heta; (4) form residuals r_der=D_v(fg)-(D_vf)g-f(D_vg), r_LR=B(v,fw)-(D_vf)w-fB(v,w), and r_scale=D_{cv}f-cD_vf for random scalar c; (5) optimize the forecasting or reconstruction loss plus lambda_der||r_der||^2+lambda_LR||r_LR||^2+lambda_scale||r_scale||^2. With exact autodiff, the residuals mainly validate implementation; with a learned tangent head or low-rank Jacobian approximation, they provide training supervision. Estimate JVPs with forward-mode autodiff for the baseline and compare against the learned head. First experiment: use a 2D or 4D damped oscillator and Lorenz-63 trajectory prediction, comparing a standard MLP neural ODE, the same model with independently predicted JVPs, and the Lie-Rinehart-constrained version. Measure multi-step rollout error, derivative residuals, sensitivity to solver step size, and robustness to additive noise. Success means lower long-horizon error or stable integration at a larger solver step size at equal parameter count; target a 10-20% rollout-error reduction or a measurable increase in the largest stable solver step.
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.