Repository navigation
Releases
NeuralOpt v0.7.0
NeuralOpt v0.7.0
Released 2026-11-22 (UTC merge date) · PRs #7, #8 and the release-engineering PR · commits
A compiled engine makes the v0.6 loop much faster without changing its results, and a pre-registered Gram-space history model fails to beat the untrained BB step; this is also the first release on PyPI. Result type: negative.
Highlights
- Track A (speed only, PR #7): the preconditioned loop runs as one compiled
lax.while_loop, about 74× faster per warm solve than the Python loop, with the same
results. - Track B (research, PR #8): a pre-registered Gram-space history model. Negative: it
does not beat the untrained Barzilai–Borwein (BB) step, which stays the bar. - Release engineering: first PyPI release, tag-driven releases, versioned docs and
curated release notes for every version.
Features
minimize(..., preconditioned_engine="compiled")and
neuralopt.compiled.preconditioned_solve/preconditioned_solve_batch(vmapped over
tasks of one family and dimension). Float64 parity with the Python loop to 1e-10.neuralopt.task_families: parametric objectivesf(x, theta)reproducing the v0.6
generator; one compilation per family and dimension.neuralopt.fast_training.train_batched: compiled, batched training step with a NaN
guard; skipped updates are counted inTrainingReport.skipped_steps.- Opt-in Gram-space history model (
model_kind="gram", compiled engine only), schemas
neuralopt-policy/v0.7-gram-v1and-v2, withhistory-v2masks. - Opt-in step-acceptance rules on the compiled engine:
loop_rule="halving"(default),"armijo"and"wolfe". neuralopt.gram_training: a training unroll matched to the evaluation loop, and
train_batched(model_kind="gram").
Research results
Negative: the pre-registered primary hypothesis (H1) fails, and Track A changes speed
only, not quality.
- Track A: warm tf-h8 solve 296.1 ms (Python) → 4.00 ms (compiled). Under equal work,
learned geometry reaches 1e-3 on 10 of 32 tasks and 1e-6 on none; L-BFGS-B and
Optimistix LBFGS reach 1e-6 on all 32. - Track B, H1 fails: gram-full − BB on the curvature domain is −0.224
[−0.510, +0.115]; the interval is not entirely below zero. BB stays the bar. - The reliability guard is also violated: Rastrigin +2.14 [+0.36, +4.34], Ackley +0.89
[+0.10, +2.08]. - gram-full − oracle-BFGS is +4.69 [+3.76, +5.68] decades; the learned model is far from
relearning L-BFGS. H2 and H3 are exploratory, with no claim. - An exploratory post-mortem (training and validation tasks only, no claims): wider
models imitate the oracle better but none performs well in the loop; A/C gradients
reach the heads without a saddle. The cause is undetermined. - Next direction: amortized optimization over problem families. Learned guidance
for certified search is deferred, not cancelled.
Reports: engine speed (Track A),
Gram-space model (Track B).
Fixes
- The compiled engine casts the budget fraction to the parameters' dtype, as the Python
loop does (float32 checkpoints on float64 problems). - τ and σ for Gram runs are recorded in their own fields; they were mislabelled.
Documentation
- Docs restructured: installation, quickstart, when to use NeuralOpt, user guide,
research reports by version, release notes, changelog, citing and API reference. - Release notes for v0.1.0–v0.7.0.
Build and CI
- First PyPI release, by trusted publishing.
- Tag-driven release workflow; GitHub releases use these notes.
- Versioned docs (Zensical with its mike fork).
- git-cliff with conventional commits, and a PR-title check.
- Release-metadata consistency checks on every PR:
pyproject.toml,CITATION.cff,
.zenodo.json,CHANGELOG.mdand the release notes. - New logo and a Citing page.
- Optimistix added to the
benchmarkextra only; it never runs inside inference.
Breaking changes
minimize(..., preconditioned_engine=...)now defaults to"compiled".
candidate_method="preconditioned"with a host/NumPygradient=now raises a
ValueErrorthat namespreconditioned_engine="python". Pass that to keep the
previous behavior.neuralopt.__version__now comes from the package metadata.- The v0.6 reproduction script
scripts/run_trajectory_curvature_v0_6.pynow pins
preconditioned_engine="python". Its sha256 changed from
35c1e401e6bc8bccfaecbb9168708335e9a7d4fbd6498e35d635ed54da5e50d1to
f80e8acc6bda802d65a00ea73e80e179ffcf7f8d0ddd9e23492220581b27e9f3.
results/trajectory-curvature-v0.6.0.jsonis unchanged.
Known limitations
- Alpha research release: learned components do not beat BB or classical quasi-Newton
methods in these benchmarks. - In float32 the compiled engine matches the Python loop only to rounding level, not
bit for bit. - Track B: five training seeds, float64 and exact gradients only; test dimensions 7, 16
and 32 for a model trained at 4, 8 and 12. Why A and C were not learned is not
established. - Optimistix solvers have no box bounds; they are benchmark references only.
NeuralOpt v0.6.0
NeuralOpt v0.6.0
Released 2026-11-21 (UTC merge date) · PR #6 · commits
Opt-in secant-history features and a shared preconditioned loop, tested in a pre-registered multi-seed study; an untrained Barzilai–Borwein step beats every learned arm by about one decade. Result type: negative.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
No sdist or wheel. At this commit pyproject.toml, neuralopt.__version__ and
CITATION.cff still read 0.5.0, so a build would be mislabelled. This GitHub release has
no build files; use the git tag or the source archive.
Highlights
history-v1trajectory features built only from actually evaluated states.- One preconditioned loop shared by every arm, with objective and gradient calls charged
to one budget. - A golden regression test pins v0.1–v0.5 checkpoints and inference outputs.
- A pre-registered study: three training seeds per arm, 84 final-test tasks at unseen
dimensions 7/10/16.
Features
neuralopt.trajectory: a fixed-shape buffer of normalized(u, g_u, f)records.
Rejected candidates only increment a counter. Masked secant pairs and twelve
scale-invariant, permutation-equivariant curvature and reliability features.ModelConfig(feature_set="history-v1", history_length=K)with checkpoint schema
neuralopt-policy/v0.6-history-v1. Unknown, stripped or inconsistent schemas fail
closed; legacy files are written byte-compatibly.minimize(..., candidate_method="preconditioned"): hard acceptance, step halving after
rejection, no Hessian-vector products. Negativesᵀyis reported, never inverted.train(..., objective="history"): alax.scanmirror of the loop, tested equal to
inference.
Research results
Negative: an untrained Barzilai–Borwein (BB) step beats every learned arm by about one
decade, and attention adds nothing over an MLP.
- tf-h8 − BB on the curvature domain: +0.92 [+0.59, +1.25] (positive means BB is
better). L-BFGS-B leads by about six decades. - H1 supported: history plus a rejection signal beats a matched no-history control,
−0.54 [−0.80, −0.32]. The control also drops the rejection counter, so the value of
secant pairs alone is not isolated. - H2 not supported: tf-h8 − mlp-h8 = −0.08 [−0.20, +0.06].
- H3 not supported under the 3.5× anisotropy cap: tf-h8 beats the tuned fixed step on the
curvature domain (−0.22 [−0.43, −0.03]) but fails the reliability guard on Rastrigin
(+2.39) and Ackley (+0.82). Fixed geometry stays the default. - Results:
results/trajectory-curvature-v0.6.0.json(6,300 rows, reproduced exactly).
Reports: v0.6 results,
experiment protocol,
literature.
Fixes
- Legacy golden-test tolerances set from measured cross-host float32 drift; the test
reports every mismatch and per-case drift.
Documentation
- Project instructions, research rules, domain skills, reviewer agents, the v0.6+ roadmap
and the frozen v0.6 design. - New reports listed under Research results.
Build and CI
- No version bump (see the note above).
- CI runs the legacy golden regression test.
Breaking changes
None. v0.1–v0.5 checkpoints and outputs are pinned by the golden test.
Known limitations
- The geometry parameterization caps off-axis anisotropy at about 3.5×; rotated κ=100–1000
needs 100–1000×, so H3 is a weaker test than the research question. - Training used a 50-unit budget feature and evaluation used 100; the bias on H3 and the
BB comparison was not measured. - Three training seeds make the seed level of the bootstrap coarse.
- Rosenbrock replicates are near-duplicates, and Rastrigin and Ackley start inside the
global basin, so global search is not tested. - Stochastic methods reject history configurations; stochastic history geometry was not
started. - The retroactive release workflow does not rerun the test suite at this tag.
NeuralOpt v0.5.0
NeuralOpt v0.5.0
Released 2026-11-20 (UTC merge date) · PR #5 · commits
Scale-aware, bounded learned geometry evaluated on 30 held-out instances; it did not beat a validation-tuned fixed geometry. Result type: negative.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
Highlights
- Exact reproduction of every deterministic v0.4 metric (timings excluded), and
reconciliation of its two reported FP results. - A diagnosis: the v0.4 features discarded the gradient norm, so geometry could not
adapt to objective scale. - A held-out comparison with disjoint validation tuning, at unseen dimensions 7, 8
and 10.
Features
- Opt-in bounded log gradient-scale feature in place of the constant feature, using the
same input width. - Bounded geometry for new checkpoints: diagonal bounded in log space; low-rank factor
normalized by dimension and rank and bounded withtanh. Legacy checkpoints behave as
before. - Diagonal-only, low-rank-only and full geometry heads as explicit ablations.
- Temperature and friction sampled from their inference ranges during training;
optional multi-key pathwise meta-gradients. - Scripts:
scripts/run_transfer_geometry_v0_5.pyand
scripts/run_geometry_diagnostics_v0_5.py.
Research results
Negative: learned geometry did not beat the validation-tuned fixed geometry overall.
- 30 held-out instances, budget 100; paired mean
log1p(regret)against tuned fixed
geometry, positive is worse (results/transfer-geometry-v0.5.0.json). - Overdamped learned diagonal: +0.075 [−0.064, 0.246]; learned full: +0.088
[0.021, 0.164]; learned FP: +0.079 [0.009, 0.178]; learned low rank: +0.315
[0.065, 0.609]. - BAOAB learned diagonal +0.053 [−0.247, 0.353] and full +0.058 [−0.204, 0.322].
- Learned geometry helped isotropic tasks but regressed on ill-conditioned and rotated
quadratics (and, for BAOAB, Rastrigin). - A 36-update full checkpoint also had a worse point estimate, +0.103 [−0.058, 0.329];
144 updates narrowed the interval but stayed worse, so training budget alone does
not explain the result. FP regularization did not establish an improvement. - Diagnosis: a single gradient cannot identify rotated curvature; the limitation is
information, not positive definiteness.
Report: transferable geometry.
Fixes
- v0.4 reproduced exactly (
results/geometry-diagnostics-v0.5.0.json). Its two
overdamped FP − regret values came from two checkpoint generations; the corrected
−0.048 [−0.105, −0.006] supersedes the pre-review −0.089 [−0.181, −0.008].
Documentation
- New report:
transferable-geometry.md.
Build and CI
- Version 0.5.0 in
pyproject.toml,neuralopt.__version__andCITATION.cff.
Breaking changes
None. Legacy checkpoint behavior is preserved.
Known limitations
- One meta-training seed and 30 final instances; six instances per family, so family
means are diagnostic only. - Objective closures are compiled independently, and transformer overhead remains
material. - Timings are single-host and descriptive.
- The retroactive release workflow does not rerun the test suite at this tag.
NeuralOpt v0.4.0
NeuralOpt v0.4.0
Released 2026-11-15 (UTC merge date) · PR #4 · commits
Trains transformer mobility and mass geometry through differentiable overdamped and BAOAB trajectories; learned BAOAB geometry does not beat a fixed diagonal. Result type: negative.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
Highlights
- Transformer diagonal-plus-low-rank mobility and mass heads trained end to end through
stochastic trajectories. - A held-out ablation against identity, fixed-diagonal and untrained geometry with paired
bootstrap intervals. - The simple fixed diagonal remains the strongest supported BAOAB result.
Features
stochastic_geometry_loss: pathwise differentiation through explicit-noise overdamped
Euler or BAOAB trajectories with episode-frozen geometry.- Losses: multi-horizon
log1pregret, a stability penalty, a fixed compute-cost term,
a weak-generator (Fokker–Planck) term and an optional Gaussian free-energy surrogate
(disabled in the reported run). - Ablation arms: identity, fixed diagonal, untrained, regret-trained and
regret-plus-Fokker–Planck. - Reproduction script
scripts/run_geometry_training_v0_4.py(with
--reuse-checkpoints) and checkpointsartifacts/neuralopt-v0.4.0-*.npz.
Research results
Negative: learned BAOAB geometry does not beat the fixed diagonal, and Fokker–Planck
transfer to BAOAB is inconclusive.
- Ten held-out pairs, budget 80; paired mean
log1p(regret)against identity, negative
is better (results/geometry-training-v0.4.0.json). - BAOAB fixed diagonal: −0.441 [−0.878, −0.078]. BAOAB regret-trained: −0.028
[−0.259, 0.207]. BAOAB transferred regret + FP: −0.247 [−0.752, 0.072]. - Overdamped: every learned interval crosses zero against identity.
- Overdamped FP − regret: −0.048 [−0.105, −0.006] on the ten pairs. This is a small
effect on a small prespecified set, not a general advantage. - At budget 40, transferred FP geometry was worse for BAOAB at both unseen
temperatures.
Report: distribution-aware training.
Fixes
- The weak-generator loss evaluates the Gaussian noise term analytically; sampling it
added a variance term that rewarded shrinking the mobility. - BAOAB training samples its initial momentum from
N(0, T M), matching inference. fixed_metric_diagis cast to the problem's floating dtype (an integer array kept an
integer dtype before).
Documentation
- New report:
distribution-aware-training.md;training.mdgained a stochastic
geometry section.
Build and CI
- Version 0.4.0 in
pyproject.toml,neuralopt.__version__andCITATION.cff.
Breaking changes
None.
Known limitations
- Small study: six training tasks, ten primary held-out pairs, one training seed, no
BBOB or scientific inverse problem. - The FP weight was not selected on a separate validation sweep.
- Transfer evaluations use four instances; their intervals are descriptive.
- v0.5.0 found that the v0.4 feature map discarded the gradient norm, so the model could
not adapt to objective scale. - The retroactive release workflow does not rerun the test suite at this tag.
NeuralOpt v0.3.0
NeuralOpt v0.3.0
Released 2026-11-15 (UTC merge date) · PR #3 · commits
Opt-in overdamped and underdamped Langevin candidates, Fokker–Planck diagnostics and a periodic function-space reference, with negative smoke evidence for learned geometry. Result type: infrastructure.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
Highlights
- Opt-in overdamped Euler–Maruyama and underdamped BAOAB candidate trajectories with
identity or learned diagonal-plus-low-rank geometry. - Exact small-dimensional mobility divergence and weak Fokker–Planck diagnostics.
- A periodic Gaussian function-space reference that refines consistently across four
resolutions.
Features
- Overdamped Langevin (Euler–Maruyama) and BAOAB integrators with episode-frozen
geometry, explicit PRNG keys and the same logistic box transform as HMC. mobility_divergence: exact Itô divergence term viajacfwd, for small dimensions.- Weak-form Fokker–Planck generator residual and an analytic Gaussian free-energy
reference. - Periodic Gaussian reference measure with mesh-normalized Fourier reconstruction at
32, 64, 128 and 256 points. - Objective, gradient, integration and timing costs reported separately.
Research results
Infrastructure; the smoke evidence for learned stochastic geometry is negative.
- 15 instances, three seeds, nominal budget 100 (
results/stochastic-smoke-v0.3.0.json). - Overdamped identity and learned mobility beat direct on only 5/15 and 4/15 pairs.
Identity and learned BAOAB each beat direct on 11/15. - Learned geometry has not established a consistent advantage over identity.
- Gates: distribution-aware training and function-space transfer are partial;
certification injection is blocked. Certification lower bounds are unchanged.
Reports: Langevin theory,
Fokker–Planck,
Gibbs measures,
function spaces,
stochastic research status,
stochastic limitations and gates.
Fixes
- Nonfinite Langevin coordinates are rejected.
- Fourier refinement and optional-import checks corrected.
Documentation
- New reports listed under Research results.
Build and CI
- New optional extra
sde(diffrax>=0.7.2) for an independent identity-mobility
Euler reference; the base package does not import it. - Version 0.3.0 in
pyproject.toml,neuralopt.__version__andCITATION.cff.
Breaking changes
None.
Known limitations
- Euler–Maruyama and BAOAB have finite-step bias; history-adaptive geometry has no fixed
invariant measure. No exact Gibbs sampling is claimed. - No Langevin-specific checkpoint exists; the v0.1 transformer was not trained for
mobility. - The function-space experiment validates a discretized reference problem only; no
mesh-independent transformer claim is made. - The smoke study is too small for publication-level intervals, and hyperparameters were
not tuned on a separate validation set. - The retroactive release workflow does not rerun the test suite at this tag.
NeuralOpt v0.2.0
NeuralOpt v0.2.0
Released 2026-11-15 (UTC merge date) · PR #2 · commits
Research foundation for outcome-driven training, trajectory diagnostics, certified scheduling and opt-in Hamiltonian proposals, with smoke-scale evidence only. Result type: infrastructure.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
Highlights
- Differentiable multi-horizon regret training through unrolled updates.
- Trajectory diagnostics that diagnose the v0.1 policy's failure: good directions,
but steps that are too long and a proposal head that is never accepted. - Opt-in native JAX Hamiltonian (HMC) proposals with explicit cost accounting.
- Certificate replay now checks domain coverage and non-overlap of retained boxes.
Features
unrolled_regret_loss:lax.scanunrolling with robust normalized best-so-far regret;
requires an explicit known optimum.- Normalized box-coordinate transforms for positions and gradients, round-trip tested.
- A matched-input MLP policy as an architecture ablation (no attention).
- Evaluation-neutral trajectory diagnostics: one row per objective evaluation, no extra
calls. - Certification scheduling controls (lower-bound or width priority, widest or
round-robin splitting) and callbacks for learned ranking. Callbacks affect only the
order of work, never bounds, pruning or termination. candidate_method="hamiltonian": leapfrog with Metropolis correction, logistic box
transform with its Jacobian, fixed or learned diagonal-plus-low-rank mass, and a
separate feasible incumbent.
Research results
Infrastructure with smoke-scale evidence only; the outcome-trained smoke checkpoint is a
negative result and is not promoted.
- Outcome-training smoke (12 meta-updates): the checkpoint worsened an unseen 8D rotated
quadratic from 89.41 to 164.71. It is kept asneuralopt-v0.2.0-smoke.npz. - A fixed normalized-gradient control beats v0.1.0 on every recorded smoke family. Each
family is a single instance, so this is not a superiority claim. - Diagnostics: v0.1 directions have median descent cosine 0.833–0.999, yet acceptance
is 0–4.1%; the proposal head uses 24 of 49 evaluations and is never accepted. - HMC smoke (15 instances, three seeds): identity HMC beats direct on 8/15 pairs and
learned-metric HMC on 9/15, but learned beats identity on only 7/15. Learned mass
geometry is not supported (H2). - Certification: no learned scheduling policy was trained, so no speedup is claimed.
Reports: training, benchmarks,
certification,
generalization,
trajectory diagnostics,
Hamiltonian theory,
Hamiltonian correctness,
Hamiltonian related work.
Fixes
- After a rejected candidate,
xmoved without being evaluated, so its stored value no
longer matched its gradient. The current state now stays unchanged after rejection. - Certificate replay closes the v0.1.0 domain-accounting omission (volume and overlap
checks). - Benchmarks enforce evaluation budgets strictly and handle nonfinite samples without
replacing a valid incumbent. - Training regularizers compare directions and gradients in the same normalized
coordinates. - Regret-training numerics hardened; learned-policy architecture parameters validated;
HMC chain state preserved exactly between transitions.
Documentation
- New reports listed under Research results.
Build and CI
- Version 0.2.0 in
pyproject.toml,neuralopt.__version__andCITATION.cff.
Breaking changes
None.
Known limitations
- All evidence is smoke-scale (single instances or 15 instances, three seeds).
- Hamiltonian proposals are opt-in. History-adaptive learned metrics have no
stationary-distribution claim. - Hamiltonian incumbents are not injected into certified search.
- The retroactive release workflow does not rerun the test suite at this tag.
NeuralOpt v0.1.0
NeuralOpt v0.1.0
Released 2026-11-14 (UTC merge date) · PR #1 · commits
First research prototype: a small transformer optimization policy for box-bounded problems, plus a restricted interval certificate system that does not depend on the model. Result type: infrastructure.
This release was tagged retroactively on 2026-11-22; it was not published to PyPI.
Highlights
- A transformer policy that proposes optimization steps directly, for objectives of any dimension.
- Restricted interval branch-and-bound certificates with independent replay. The learned
model cannot affect whether a certificate is valid. - A held-out smoke check in which the trained policy loses decisively to SciPy L-BFGS-B.
Features
- Direct transformer policy: normalized coordinate tokens, two task tokens, and heads for
direction, independent proposal, step length, a positive diagonalDand a low-rankU.
The update appliesD + U Uᵀwithout forming a dense matrix. - A fixed reject-and-contract rule, so worse or nonfinite candidates are not propagated.
- Bounded
ProblemAPI (box constraints, gradients required). - Deterministic synthetic training on quadratics and portable
.npzcheckpoints; the
bundled demo checkpoint isdemo-v0.1.0.npz. - Interval certification over a small serializable expression language, with one-ULP
outward rounding after every supported operation; unsupported operations fail closed. - Model-independent certificate replay that re-evaluates retained terminal boxes.
- A
neuraloptcommand-line interface (train-demo).
Research results
Infrastructure only; the one smoke check rejects H2 (competitiveness with a classical
solver) for this checkpoint and task distribution.
- On three held-out four-dimensional quadratics (budget 100), the median final objective
was 13.0525 for the trained policy, 195.745 for random weights and 2.14e-12 for SciPy
L-BFGS-B. Median end-to-end times, compilation included, were 0.635 s, 0.652 s and
0.0329 s. - Three instances are a smoke check, not statistical evidence for H1.
- Raw measurements:
results/heldout-smoke.json.
Reports: smoke benchmark,
mathematical specification,
experiment plan,
literature audit,
novelty and falsification,
limitations.
Fixes
- Certificate verification was hardened before merge (commit
8b89604).
Documentation
- Docs site (Zensical) with the theory, experiment plan, literature, novelty, limitations
and smoke-benchmark pages. - README, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY and
artifacts/README.md. - Example:
examples/kinetic_inverse.py.
Build and CI
- CI on Python 3.11 and 3.12:
ruff,pyright,pytestwith coverage,uv buildand
twine check. - A scheduled and manual "Research smoke" workflow that trains a 20-step demo model.
pre-commit,pixi.toml,CITATION.cff,.zenodo.json,cliff.tomland
.bumpversion.toml.
Breaking changes
None.
Known limitations
- No claim of superiority or production maturity. The training curriculum is small and
supervised and does not establish transfer beyond its sampled quadratics. - Gradients are required; only box constraints are supported. Residuals and nonlinear
constraints are metadata only. - Certification supports an explicit expression language, not JAXPR. It assumes
correctly rounded host operations and libm, is not IEEE 1788 conformant, and is a
validated numerical result, not a machine-checked proof. - The v0.1.0 verifier did not check domain coverage of retained boxes; v0.2.0 added it.
- The random-weight smoke median (195.745) cannot be reproduced because its seed was not
recorded; v0.2.0 reports 27.4117 with seed 123. - The retroactive release workflow does not rerun the test suite at this tag.