Repository navigation
v0.9.0 – First AI Framework Release
🧠 PARAGON v0.9.0 – First AI Framework Release
The first official version of PARAGON is here. This drop-in AI framework focuses on lightweight architecture, full type flexibility, and deep modularity — all written in Go.
TL;DR: Generic tensor ops, pluggable layers, perturbative NAS, replay-based training, and layer state sharding. All in one framework.
🧠 Core Runtime
- Generic numeric backend – every tensor op works on
int,uint,float32, andfloat64via aNumerictype-param. - 2-D grid layers with per-neuron IDs, bias, activation, and inputs.
- Supports hot-swappable sub-networks (“dimensional neurons”).
- One-call constructor (
NewNetwork) to mix layer sizes, activations & connectivity (fully-connected vs. local).
⚙️ Training & Evaluation
- Forward/backward pass with gradient clipping and tag-based partial training for large-scale layers.
- Built-in ADHD score + sample-level diagnostics (bucket histograms, worst-sample dump).
- Epoch loop prints loss & replay penalty each cycle for real-time feedback.
🚀 Activation & Math
- Plug-and-play activations:
relu,sigmoid,tanh,leaky_relu,elu,linear(withsoftmaxfor output). - Generic wrappers
ApplyActivationGeneric&ActivationDerivativeGenericfor custom activations.
🏃♂️ Replay, Checkpoint & Sharding
- Layer-level inference and checkpointing with:
SaveLayerState,LoadLayerStateForwardFromLayer,ForwardUntilLayer
- Supports shardable inference and mid-network resume.
- Per-layer replay gating (budget, offset, entropy gate) + integrated stats and replay loss.
🔬 Neural Architecture Search (NAS)
- PerturbWeights – Gaussian noise added to any numeric weight.
InitNAS: clone → mutate (weights & activations) → short-train → ADHD score → keep best.IterativeInitNAS: multi-round NAS with adaptive mutations and stop conditions.
💾 Persistence
- Full model export via
SaveJSON,MarshalJSONModel– compact schema includes replay knobs and gates. - Layer-state JSONs enable incremental save/load & distributed training.
🛰 Proxy & Reverse Inference
- Proxy-error backpropagation (
PropagateProxyError) – for use when true gradients aren't available. ReverseInferFromOutput– estimate likely inputs from a desired output (experimental).
🧹 Data Utilities
SplitDataset: train/val splitter.Cleaner: flexible prefix & parameter stripper for CSV workflows.
🔧 Evolution & Extensibility
- Dynamic neuron growth via
AddNeuronsToLayer(auto re-wires downstream). - Debug mode outputs per-neuron values; replay logs saved per-layer.
- Easily extensible: each major module has plug-point wrappers and default helpers.
💡 Bonus (Preview of What’s Coming)
- 🕸 WebAssembly + distributed sharded inference – infrastructure laid for running shards in browser.
- 🌱 Layer-by-layer evolution supports lightweight, continuous NAS over low-end hardware.
- 🧠 Experimental Reverse-to-Input chaining (research-focused logic inversion).
- 🔄 Designed with agent-based learning loops in mind — plug in your own evaluators, mutators, or scorers.
This release is a milestone for standalone, evolvable AI stacks written in Go. Thanks for checking out PARAGON. More docs, examples, and experiments coming soon.