Skip to main content

What omnibias unlocks

Differentiate deeper. Make decisions differentiable. Math that trains.

omnibias removes the nested high-order spatial-autodiff bottleneck for supported models. Activation identities, Taylor composition and direct operator contractions replace repeated differentiation of a growing backward graph. The resulting spatial derivatives retain parameter gradients, so a derivative can participate in a trainable residual, regularizer or conditional model.

From bottleneck to primitive​

NeedMechanism and APIEvidence and scope
High-order activation derivativesShared polynomial recurrences; get_activation(...).fastpath in the backend APIsActivation benchmark: order eight avoids the nested graph; arithmetic still grows with polynomial degree
Derivatives through a deep networkmlp_jet for directions; mlp_jet_mv for mixed partialsExecutable examples; deep-MLP comparison, including JAX Taylor-mode wins
A Laplacian without a full Hessiandeep_field_laplacian; one-layer neural_field_polylaplacianOperator measurements; 5,000-dimensional training. Deep repeated derivatives report exact support or an estimator
Learn conditional structureSigmoid gates, partition weights and regional-model compositionPartition API, trainable gates and experts in the README; finite-temperature smooth decisions
Train using parameter curvatureResidual Jacobians, Hessian-vector products and structured approximationsOptimizer choices below; optimization behavior remains problem-dependent
Bound a supported quantityOutward-rounded intervals, Taylor models and checked certificatesGuarantees; stated domain, model and assumptions remain part of the result

The improvement is constructive: compute only the derivative or contraction the model needs. Nested high-order graphs can become infeasible in time or memory; these alternative representations make demonstrated workloads practical. They do not establish that autodiff always has worse numerical accuracy. The independent precision sweep also records input-dependent cancellation in closed-form polynomials.

Two limits, two useful operations​

For a sufficiently smooth activation, normalized weighted bias collapse gives

$$ \lim_{\delta\to0}\delta^{-n} \sum_{j=0}^{n}(-1)^{n-j}\binom{n}{j}\sigma(z+j\delta) =\sigma^{(n)}(z). $$

The weights and normalization are essential: an unweighted sum of coalescing activations is not an arbitrary derivative. The backend kernels evaluate the analytic limit instead of subtracting nearly equal samples. Riccati identities such as tanh′ = 1 − tanh² generate the derivative polynomials. Taylor jets compose them through supported networks with coefficients f⁽ᵏ⁾/k! or Dᵅf/α!; conversion helpers recover ordinary derivatives.

Temperature hardening is a different limit. With g(x) = sigmoid(β(w·x − t)), the mixture (1 − g)f₀(x) + g f₁(x) trains thresholds, directions and experts together. Increasing β approaches hard routing away from ties. The external omnibias-tab consumer supports both jointly trained soft-tree/neural models and stagewise GBM-style Newton boosting. Those are separate procedures; this does not differentiate an existing hard tree's discontinuous choices.

Curvature-aware training​

Spatial derivatives from jets remain tensor expressions. Parameter autodiff can therefore form a residual Jacobian or Hessian-vector product without reintroducing nested spatial differentiation. Choose curvature according to the objective and available memory:

FamilyCurrent APIWhat it uses
Least-squares curvatureomnibias.torch.optim.GaussNewton, CubicGaussNewtonResidual Jacobian and Gauss–Newton curvature; not the full loss Hessian
Newton and trust regionsomnibias.torch.optim.CubicNewton, TrustRegionNewtonCGHessian-vector products, cubic regularization or a trust-region solve
Structured approximationsomnibias.torch.optim.NaturalGradient, DiagonalCurvature, FrugalCurvature, KFACFisher, diagonal, streamed or Kronecker-factor structure; distinct from exact full curvature
Closed-form parameter curvatureomnibias.curvature.one_layerAlgebraic parameter gradients/Hessians and Fisher factors for supported one-layer fields
Curvature regularizationomnibias.curvature.torchDeep-model Hessian operators and sharpness functionals; exact and stochastic routes are separately named

The functional GaussNewton driver takes a flat parameter vector and residual function. Optimizer subclasses such as CubicGaussNewton have their own closure contracts; inspect the Torch API and implementation before substituting one into a training loop. The curvature package documents its backend and dependency boundary.

Historical optimizer evidence​

The pre-extraction 1-D Poisson benchmark used a one-layer tanh field, 16 hidden units, 62 interior points, float64 CPU and five seeds. It recorded these medians under method-specific step budgets:

MethodRelative L2Wall time
Adam, 800 steps8.52 × 10⁻⁴0.385 s
L-BFGS, 60 steps2.19 × 10⁻⁵0.399 s
Gauss–Newton, 40 steps4.05 × 10⁻⁵0.080 s
Cubic Gauss–Newton, 40 steps1.25 × 10⁻⁴0.706 s
Trust-region Newton-CG, 40 steps8.24 × 10⁻⁴0.195 s

This is historical evidence, not a rerun of the current split ecosystem or an equal-wall-time comparison. L-BFGS attained the lowest median error here; Gauss–Newton finished faster. The immutable artifact and driver preserve the exact experiment. Curvature methods are an additional training tool, not a universal replacement for tuned first-order optimizers.

Four PINN integration routes​

The external omnibias-pinn repository owns these application integrations. Module paths below are relative to that consumer, not imports supplied by the primitive workspace. The historical experiments and artifacts now live in the separate omnibias-research checkout.

ObstacleConsumer routeHistorical five-seed evidence and boundary
Causalitytrain.torch.march_solve and JAX twin: gated time windows with handoffReaction-family marching median relative L2 ≈ 0.084 versus whole-interval ≈ 0.99; whole-interval won the heat case. Artifact
Curved boundariesdomain.torch.DistanceConstrainedField and JAX twin: boundary ansatz with a distance factorDisk boundary error near 10⁻¹⁶; boundary satisfaction and interior accuracy are separate. Nonconvex interior accuracy remained open. Artifact
Parametric operatorsoperator.torch and JAX counterpart: conditioned DeepONet/FNO modelsConditioned median relative L2 0.0148 versus 0.0186 unconditioned and 0.0185 residual PINN on the tested family. Artifact
Spectral biastorch.fields: Fourier/multiscale features and multilevel FBPINN; separate one-shot readout least-squares experimentLeast-squares median relative L2 ≈ 5.2 × 10⁻⁹ through frequency 16; it used more features than the matched arm and ≈ 20× Adam's wall time. Artifact

These are achieved, workload-specific acceptance results, not universal claims about all PDEs. The immutable acceptance matrix records both passed gates and remaining problems. The PINN guide starts with an executable residual and explains when to reach for these routes.

Source guide at 9a2d73df0573.