This release is a pre-release and may not be stable for production use.
omnibias-curvature
Let curvature shape the optimization step. A loss landscape, its local quadratic model and a damped update.
Static poster · Narrow-screen animation · How this visual is computed
Network parameters and a stated curvature quantity enter; a Hessian, Gauss–Newton object or structured factor leaves. Optimizer builders use these operators to choose a parameter-space step without confusing an approximation with an exact loss Hessian.
The animation uses computed outputs to explain this package. Frame transitions are illustrative unless a training step is explicitly identified; it is not a performance comparison.
API reference · Source · Tests · Talk to Derivon
The mathematical connection
Bias-collapse activation derivatives provide analytic ingredients for parameter curvature. A signed Hessian describes local behavior and can be indefinite. Temperature collapse may appear in a consuming soft-decision model, but is not the definition of Hessian, Fisher or KFAC. Damping and step acceptance remain optimizer responsibilities.
Run this README
The examples use omnibias-curvature on Python >=3.10. Their installed-wheel
profile selects runtime features, not an editable workspace. Install the prepared
prerelease from PyPI:
python -m pip install --pre "omnibias-curvature==0.1.0a2"
For local development before publication, build and test the coordinated wheelhouse using the release guide. The package's wheel profile executes the examples below outside the source checkout.
Existing published consumers may need historical primitive versions; see the compatibility policy.
Why this package exists
A gradient gives a local direction; curvature describes how that direction changes with parameters. For supported model structures, analytic parameter derivatives avoid rebuilding a generic parameter-Hessian computation. Other paths trade exactness or density for structured factors and operator products.
What you can build
- One-layer parameter gradients and Hessians.
- MSE Hessian, Gauss–Newton/Fisher and KFAC constructions.
- Damped solves, matrix-free curvature and sharpness-oriented utilities.
Use curvature when a training method, uncertainty calculation or neural-VMC optimizer needs more than first-order information. Start from the objective and parameterization that the formula supports. Dense Hessians are useful small-model references; operator and factorized forms address different memory budgets.
A working example
import jax.numpy as jnp
from omnibias.curvature import one_layer_param_hessian
x = jnp.array([0.2, -0.1])
W = jnp.array([[0.4, 0.2], [-0.3, 0.5]])
H = one_layer_param_hessian(x, W, jnp.zeros(2), jnp.ones(2), jnp.array(0.), "tanh")
assert H.shape == (9, 9) # scalar bias + readout + hidden bias + weights
assert bool(jnp.allclose(H, H.T))
Choose the right contract
An exact Hessian, a Gauss–Newton matrix, a Fisher matrix and KFAC are not synonyms. Damping changes the solve and its interpretation. One-layer formulas do not automatically cover arbitrary deep modules; validate both the mathematical structure and parameter layout before using a second-order step.
Explore and validate
The API guide contains the generated module/export inventory. Use it to find the focused implementation rather than guessing a symbol from another package. The capability map connects the primitives to larger scientific workflows.
From the main repository, run the package’s regression suite:
uv run pytest packages/omnibias-curvature/tests -q
License
AGPL-3.0-or-later or commercial. See LICENSE and the licensing policy. Comply with the AGPL terms or obtain a signed commercial grant; commercial use alone does not require payment. Commercial terms describe the alternative. Previously distributed Apache editions, where applicable, retain their original grants.
Metadata
Release files for omnibias-curvature 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnibias_curvature-0.1.0a2.tar.gz | 75.6 kB | With provenance | Details for omnibias_curvature-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnibias_curvature-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for omnibias_curvature-0.1.0a2-py3-none-any.whl |
Total release size: 137.3 kB
Release files / omnibias_curvature-0.1.0a2.tar.gz
| Download URL | omnibias_curvature-0.1.0a2.tar.gz |
|---|---|
| Size | 75.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0060f02dcaf5790fb82248a659763de662268a6b65fbbcce68b73e4e8ee404d
|
|
BLAKE2b-256 checksum How to use checksums |
ad31e4730d907e62ef2cf9a9b420bf18790f8ac088c0a4aa52188278f678b519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / omnibias_curvature-0.1.0a2-py3-none-any.whl
| Download URL | omnibias_curvature-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 61.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6044fd2ab2d7ab6ff16beefb9fa9486526c9153d78e538a2cdbfd418ad3a9716
|
|
BLAKE2b-256 checksum How to use checksums |
8ab3c82392e58d41ac1d2db6337b40c290a22262f8571e97296aa83245dec2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logSecurity for omnibias-curvature 0.1.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omnibias_curvature-0.1.0a2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.