Verace Anneal
An energy-descent optimizer and native component set for squared-residual world-model training, gated by pre-registered falsifiable experiments.
- Squared-residual energy: World-model term in representation space
- Energy descent: Learning descends a scalar energy
- Near the floor: Loss-aware multipliers take smaller steps near the floor
Overview
Verace Anneal is an optimizer and component study for training the lab's energy-based world models. It starts from the lab's energy-descent law: learning descends a scalar energy , where the world-model term is a squared residual in representation space, . It asks whether an optimizer that knows its loss is a squared-residual energy, possibly non-stationary, can beat Adam, AdamW and SGD. Those optimizers never read the loss value, assume a stationary objective and precondition by the squared-gradient diagonal. The same question is then put to the architecture's sequence mixer, normalization, initialization, activation and action planner.
The method is organised around structural requirements specifications. Each specification derives necessary conditions from six structural demands of the architecture: a squared-residual energy, representations on a fixed-norm sphere with anti-collapse, no normalization or partition function, non-stationary continual learning, local updates, and a 6 GB memory ceiling. It then specifies an object that meets them, and gates adoption on an experiment with a stated kill condition. The resulting components are the EDGN optimizer, which uses the Gauss-Newton metric rather than the empirical Fisher; the EDTrust and DBL variants of Adam; the softmax-free DeltaMix mixer, whose causal path is the published DeltaNet delta rule; SphereNorm and SphereInit; and the EDPlan action optimizer.
The evaluation records report one optimizer win. Under drift, track-phase input K-FAC, a published method by others, beats best-tuned AdamW, 26.3 against 49.0 on toy regression and 10.12 against 13.82 (about 27%) on a shifting JEPA task. The loss-aware EDTrust variant gains 7.22% under drift on 5 of 5 seeds but loses 8.36% when stationary. EDGN as a global default collapsed grounding from 0.997 to -0.025, and no optimizer beat AdamW on the stationary probe. DeltaMix's chunked delta kernel matches the per-token rule to 5e-7 and runs about 17x faster at T=512. Its width-2 binding convolution lifts associative-recall reliability from 1/5 to 10/10 fresh seeds.
All components are implemented in Python with test suites. The DeltaMix specification records 25 tests passed and 0 expected failures. Recorded experiments cover drift tracking, stationary probes, associative recall, grounding and planning, all at small scale on synthetic tasks, CIFAR patches and a point-mass control problem. In the specification index, the optimizer, mixer, normalization, initialization and planner specifications are still marked proposed. The activation change from ReLU to SiLU was tested and cut. The adopted optimizer is regime-aware: Adam while representations are built, K-FAC while tracking drift. The build or track phase must be set externally, because the method cannot detect it. No training at the scale of a full world model is recorded.
Status
Experiments. Optimizers, mixer, normalization, initialization and planner are implemented with unit tests, and multi-seed drift, recall, grounding and planning experiments are recorded, including negative results and a withdrawn claim.
Simulator
A point rolls downhill on a made-up energy surface with one deep valley and two shallower ones. Set the step size and the momentum, and drag the start.
- rings: lines of equal energy · dots: the floors of the three valleys
- Comes to rest in
- The deepest valley
- Energy at the start
- 0.04
- Energy at the end
- -0.99
- Overshot on the way
- No
Drag the ring, or tap the surface, to move the start. Raise the step size until the point overshoots, or the momentum until it rolls through a shallow valley.
This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.
Architecture
EDGN optimizer
Energy-Descent Gauss-Newton optimizer for squared-residual energies, with several preconditioner paths behind one class: Monte Carlo diagonal Gauss-Newton, diagonal and input K-FAC, empirical Fisher, Muon, one-sided Shampoo and a regime-blended mode. It adds a loss-aware Polyak step and energy-monotone damping; Muon, K-FAC, Shampoo and the Polyak step are published methods by others that EDGN wraps.
EDTrust optimizer
An AdamW variant with per-layer trust multipliers computed from local energy or stall signals, plus an optional loss-aware Polyak multiplier. With trust switched off it equals AdamW.
DBL drift-balanced optimizer
Adam whose global step is scaled by a gain adapted to the measured ratio of drift to gradient noise. The gain returns to 1 when no drift is present, so DBL reduces to Adam. Two of its drift experiment scripts,
exp_drift.pyandexp_drift_fast.py, are stale: they passeta_minandeta_maxarguments that the current DBL signature does not accept.DeltaMix sequence mixer
A softmax-free token mixer that is linear in sequence length and replaces multi-head attention. It uses bidirectional linear attention for images and a causal delta-rule recurrence for sequences, with sphere-normalized keys, rotary positions and optional sparse keys. Its causal path is the published DeltaNet delta rule with its WY chunked form, taken from Yang et al.'s Parallelizing Linear Transformers with the Delta Rule, both others' work.
SphereNorm and SphereInit
SphereNorm projects each sample onto the sphere of radius as the single explicit normalizer, with a scale-only RMSNorm fallback. SphereInit orthogonally initializes linear and convolutional weights with zero biases.
EDPlan action optimizer
An energy-aware planner that refines action sequences with a Gauss-Newton or Levenberg-Marquardt step through the world model's residual. It always keeps the better of the gradient result and a Cross-Entropy Method solution.
Structural requirements specifications
One specification per component, deriving necessary conditions from the architecture and naming a falsifiable gate with a kill condition. A traceability matrix maps every clause to a test.
Equal-compute verification harness
A shared closure contract, drifting and stationary tasks, and pre-registered multi-seed verdict rules. All optimizers are compared against AdamW, Adam and SGD at equal compute.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Monte Carlo diagonal Gauss-Newton
EDGNdraws probes in residual space, computes as the gradient of the residual-weighted sum, and estimates . The estimate is smoothed with EMA rho=0.1 and refreshed every 3 steps (gn_every). Unlike Adam's , this curvature does not depend on the residual's magnitude.- Input-covariance one-sided K-FAC
- For a linear layer with ,
InputKFACapplies with . Otherwise it applies with . The damping is = 1e-3 times the mean diagonal, with EMA 0.05, refresh every 10 steps and warmup 20, so state stays at the square of the smaller dimension. - Regime-blended Adam and K-FAC
- The
precond='auto'path computes , with in the build phase and in the track phase. The effective learning rate blends the same way and is capped at the larger of the AdamW rate and a Borkar cap. The phase is set by the configurator. - Energy-monotone damping and Polyak step
- If the damping is raised 3x and the step rejected. If , is multiplied by 3, otherwise by 0.8, within [1e-6, 1e6], with at EMA 0.9. The Polyak step is capped at 10, and the update norm is clipped to .
- Bounded loss-aware step multipliers
EDGNkeeps and scales its step by .EDTrustinstead uses with baseline EMA 0.99. Both take larger steps on drift-induced energy spikes and smaller steps near the floor.- Layerwise local-energy trust
- For each parameter group , smoothed with EMA 0.9. A stall signal divides it by an EMA of . Group shares are normalized by their mean and clipped to [0.25, 4], then multiply the Adam step while conserving the global step budget.
- Drift-balanced learning-rate envelope
DBLestimates noise (beta 0.99) and drift (betas 0.9 and 0.999), with . The update is with default = 4, lr 3e-3 and warmup 50. The code's docstring motivates it with the claim .- Loss z-score drift detection
- EMA mean and variance of the scalar loss are tracked with beta 0.05. After 20 warmup samples, a jump more than 4 standard deviations above the mean raises a drift flag with a 10-step refractory period. Consumers drop their curvature estimates on a flag.
- Causal delta-rule mixer with strict read
- Per head, a state starts at zero. Each token computes , writes with , and reads , with and unit-normalized. The
read_prevoption reads before the write, because a query's own write is an exact self-match that would dominate the read. - WY chunked parallel delta rule
- Per chunk with incoming state , the kernel forms for and . It solves in fp32 and reads , using strictly under
read_prev. It then updates ; the test suite checks equality with the per-token loop for chunk sizes 8, 16 and 32, and checks causality. - Short causal binding convolution
- With
conv2=2, a depthwise causal convolution is applied to q, k and v. A key and value on adjacent positions are then gathered structurally, so the value write sees the key's content without a learned lag-one gather. The design specification notes this is the short convolution used in the published DeltaNet, which is others' work. - Gated segment read for growing memory
- Each segment keeps , read as a numerator over denominator ratio. A gate , L1-normalized over segments, mixes the reads as . Cost is , behaving as an RNN at and as attention at ; it follows a cited published method by others.
- Gauss-Newton action refinement with CEM floor
- For action cost ,
EDPlansolves with = 1e-3 and updates , with max_step 1.0 and tol 0.05. CEM samples a population of 64, refits to the top 8 elites for 10 iterations, with 8 restarts. The planner always returns the lower-cost of the refined actions and a gradient-polished CEM elite. - Quintic Newton-Schulz polar factor
- The Muon path approximates without eigendecomposition. It normalizes by , then runs 5 iterations of with .
Results
From the lab's own experiments and records. They have not been independently replicated.
K-FAC tracks drift better than tuned AdamW
In the lab's experiments, track-phase input K-FAC reached 26.3 against best-tuned AdamW's 49.0 on toy drifting regression. On a shifting JEPA task it reached 10.12 against 13.82, about 27% better.
Loss-aware trust wins under drift, loses stationary
The evaluation records report EDTrust la_trust gaining 7.22% under drift on 5 of 5 seeds and losing 8.36% on a stationary task. The lab reads this double dissociation as showing that the win comes from the drift-tracking property of the energy law.
EDGN as global default collapsed grounding
Using EDGN everywhere dropped grounding from 0.997 to -0.025. The lab's audit traced this to three gaps: under-weighted representation cost, coarse adoption logic, and a manifold constraint aimed at the wrong object.
No optimizer beats AdamW on the probe
The claimed stationary-probe win was withdrawn: curvature methods and sphere-tangent SAM tied or lost against AdamW. In build-phase auto mode, grounding stayed at parity, 0.293 against AdamW's 0.298.
Monte Carlo Gauss-Newton beats empirical Fisher
The lab's records report the residual-independent Monte Carlo estimate of beating the empirical Fisher diagonal by 185x on ill-conditioned problems.
Chunked delta kernel is exact and faster
The WY chunked kernel equals the per-token delta rule to 5e-7 and is about 17x faster at T=512. The integration check reports about 0.999 recall at 8 pairs, against 0.251 for a chunked linear-attention baseline.
Binding convolution makes delta recall reliable
A width-2 causal convolution lifted recall reliability from 1/5 to 10/10 fresh seeds at = 128 with 16 pairs. It also reached 5/5 at = 32, 5/5 at 32 pairs and 5/5 under the WY kernel; the earlier capacity-wall reading was revised as a binding failure.
Component cuts and planning results
SiLU reached grounding 0.903 against ReLU's 0.987, so ReLU was kept. The norm-free LayerScale residual lost 0.030 grounding, so a scale-only RMSNorm was kept. On planning, Gauss-Newton steps solved the quadratic PointMass task in 1 rollout against 30 for Adam on actions; greedy planning on a trap model scored a planned cost of -5.5 against a real 2.1, and the ensemble-disagreement pessimism penalty fixed traps but not model bias.
Concepts
- Energy-descent law
- The lab's account of learning as descent of a scalar energy , with a squared representation-space residual as world-model free energy. It sets four desiderata for an optimizer: residual-preconditioned, energy-monotone, balanced between drift and noise, and noise-floored.
- Gauss-Newton versus empirical Fisher
- For the natural curvature is , not the empirical Fisher that Adam approximates. The two diverge near convergence, where gradients shrink but curvature does not.
- Squared-residual structure
- Energies are written with the residual exposed, not only as a scalar. Gauss-Newton and Polyak steps can then use and directly; the harness closure returns the scalar and stashes the residual.
- Polyak step
- A step size that uses the loss value Adam discards. The lab describes it as orthogonal to Adam's per-coordinate normalization.
- Structural requirements specification
- The lab's practice of deriving a component's necessary conditions from the architecture and specifying an object that meets them. Adoption is gated on a falsifiable experiment with a kill condition, and writing a specification commits to testing it, not to building it.
- Grounding
- How well learned representations linearly predict ground-truth factors, measured as probe . The lab's acceptance gate rejects any change that raises early grounding at the cost of converged grounding.
- Regime-aware preconditioning
- Training is split into a build phase, where Adam preserves grounding, and a track phase, where K-FAC whitening follows a drifting target. The lab found the phase must be set externally rather than detected.
- Adam's implicit bias
- The lab's records conclude that natural-gradient whitening removes an implicit regularization of Adam that helps representations ground. Whitening trades generalization for speed during representation building.
- Sphere constraint on activations
- Representations are normalized to a sphere of radius , but no parameter lies on that sphere. The lab's audit therefore found weight-tangent projection vacuous and noted that weight whitening warps activation geometry.
- Delta rule
- A fast-weight memory that writes only the prediction error at a key, , rather than adding raw outer products. Retrieval is a bounded dot product with no softmax, so cost grows linearly in sequence length.
- Multi-query associative recall
- A synthetic task of key-value pairs followed by queried keys, where the model must output each key's value. A fixed-size state superposes the pairs, so interference bounds recall; the lab uses it to compare delta-rule and softmax mixers.
- Grok lottery
- The lab's term for the observation that delta-rule recall succeeds on some random seeds and fails on others. It is measured as the fraction of fresh seeds whose recall accuracy reaches at least 0.7.
- Rank bound on delta recall
- After the binding fix, the design specification states that the delta state's true capacity limit is rank at most . Softmax remains preferred only beyond that bound and in unmeasured regimes.
- Model exploitation in planning
- A planner that optimizes against a learned model can find actions the model wrongly scores as good. EDPlan adds a pessimism penalty on ensemble disagreement, which disables the Gauss-Newton path in favour of Adam.
- Fair tuned-versus-tuned protocol
- Both optimizers receive the same learning-rate grid, seeds and drift schedule, and only best-against-best is compared. A win counts as structural only if it survives equal tuning; otherwise it is reported as a learning-rate artifact.
About this page
Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.
Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.