NEATdocs

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

Release1.0.0, the first stable release under Semantic Versioning
Keras backendsTensorFlow, JAX and PyTorch, all exercised in CI
Python3.10 to 3.13
PlatformsLinux and macOS
Default specnce_spec_v2 (frozen); nce_spec_v3 research options are opt-in
LicenseApache 2.0

Get started

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.

On this page