Introduction
Nash-Equilibrium Adaptive Training, a conflict-aware optimizer for Keras 3 that runs on TensorFlow, JAX and PyTorch.
NEAT is a drop-in Keras 3 optimizer. It measures directional conflict between the current gradient and an opponent signal (momentum, a gradient EMA, or the previous gradient). When it finds conflict, it removes the conflicting component before the momentum update. The correction is:
- gated: no conflict means no correction, and NEAT behaves like momentum SGD
- bounded: clipped to
nce_clip_ratio · ‖g‖, so it can never dominate the step - observable: every run reports how often and how strongly the correction fired
Official Keras ecosystem project
NEAT is listed on keras.io alongside KerasHub, KerasRS, KerasTuner, AutoKeras and BayesFlow. It is maintained independently of the Keras team.
Status
| Release | 1.0.0, the first stable release under Semantic Versioning |
| Keras backends | TensorFlow, JAX and PyTorch, all exercised in CI |
| Python | 3.10 to 3.13 |
| Platforms | Linux and macOS |
| Default spec | nce_spec_v2 (frozen); nce_spec_v3 research options are opt-in |
| License | Apache 2.0 |
Get started
Installation
Install a prebuilt wheel or build from GitHub source.
Keras
Use NEAT in model.compile on any Keras backend.
Diagnostics
Measure whether the correction is doing anything on your task.
Reference engine
Validate the update rule with deterministic NumPy code.
Player-aware mode
Treat each example, task, or objective head as its own gradient contributor.
Contribute
Starter issues for benchmarks, GPU work, backends and packaging.
What NEAT is not
Nash-inspired, not a Nash solver
NEAT is Nash-inspired: it treats directional disagreement between two signals as an interaction. It does not compute a Nash equilibrium and makes no Nash-equilibrium convergence guarantee.
- Not NeuroEvolution of Augmenting Topologies. NEAT here means Nash-Equilibrium Adaptive Training and is unrelated to Stanley and Miikkulainen (2002).
- Not neural architecture search, and not a framework that builds models for you.
- Not a claim of universal superiority over Adam or SGD. Published results are early and mixed; see Benchmarks.