APIUp to 28% cheaper than official pricesTry the API →
Hermes
Back to News

Open-Source Cadence Builds AI Agents That Never Stop Learning

Cadence is a Python brain library that learns continuously with no backprop, attention or frozen weights. One step loop handles observation, memory, prediction, action and learning with no train/inference split.

Open-Source Cadence Builds AI Agents That Never Stop Learning
Source
AlphaSignal
Published
Author
AlphaSignal
Read
1 min read

Takeaways

  • Cadence is a Python brain library that learns continuously with no backprop, attention or frozen weights.
  • One step loop handles observation, memory, prediction, action and learning with no train/inference split.
  • Synapses update from a local free vs nudged contrast, an equilibrium propagation variant with no backward graph.
  • Planning uses imagined futures: symmetry-broken settled states compared via recorded consequences, never written to memory.
  • Ships four demos (Arm, World, Connect Four, Artist) with verifiable receipts against online MLP and transformer baselines.
  • Install via pip from git, NumPy-only core, optional Numba/PyTorch/MLX backends, under heavy active development.

Cadence is a new open-source Python library for building continuously learning agents, which the project calls brains. It combines learning, memory, planning, and action selection in one persistent object. Each synapse updates from the activity of its two connected neurons plus a broadcast correction signal, with no retained backward graph or global gradient exposed to neurons.

Project snapshot

AreaDetails
RuntimePython 3.11 or later
Required dependencyNumPy
Optional backendsNumba, PyTorch, and MLX
Core APIGenericBrain.step
Learning modelContinuous online updates through equilibrium propagation
Project statusUnder heavy development
Available evidenceFour end-to-end demos, event-log verifiers, and comparison runners

One loop keeps learning

The GenericBrain.step method receives an observation and the outcome of the previous action. It then updates memory and synapses, settles the brain’s state, and selects the next action. Every call can modify the same object used for action selection, so the library has no separate pretraining, fine-tuning, inference, or frozen deployment modes.

Each brain contains recurrent cortices that settle into a joint equilibrium. An incoming reading is centered, projected through a fixed sparse expansion, and filtered by winner-take-all inhibition. Active cells record what followed previous readings, and predictions combine the records associated with the current activity. This mechanism supplies working and episodic memory inside the learning loop, without requiring a separate replay buffer.

Reporting is indexed from AlphaSignal. Rights remain with the original publisher and cited sources.

Read original report

Sources

  1. 01github.com
  2. 02github.com
  3. 03arxiv.org
  4. 04github.com