Skip to content
World models and agentsExperiments

Verace Anneal

An energy-descent optimizer and native component set for squared-residual world-model training, gated by pre-registered falsifiable experiments.

Verace Research·June 9 to June 10, 2026
  1. Squared-residual energy: World-model term in representation space
  2. Energy descent: Learning descends a scalar energy
  3. Near the floor: Loss-aware multipliers take smaller steps near the floor
Figure 1. Descent on one squared-residual energy in Verace Anneal. Schematic: steps running downhill on a squared-residual energy, the descent that Verace Anneal's optimizers are built to follow. The components are implemented and tested at small scale on synthetic tasks.
Open the simulator on its own pageDescent on an energy surface: an interactive toy model of the principle. You can also try it below

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 E=Fθ+CE = F_\theta + C, where the world-model term is a squared residual in representation space, Fθ=12∥ϵ∥2F_\theta = \frac{1}{2}\|\epsilon\|^2. 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 G=J⊤JG = J^\top J 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

  1. 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.

  2. 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.

  3. 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.py and exp_drift_fast.py, are stale: they pass eta_min and eta_max arguments that the current DBL signature does not accept.

  4. 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.

  5. SphereNorm and SphereInit

    SphereNorm projects each sample onto the sphere of radius d\sqrt{d} as the single explicit normalizer, with a scale-only RMSNorm fallback. SphereInit orthogonally initializes linear and convolutional weights with zero biases.

  6. 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.

  7. 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.

  8. 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
EDGN draws probes v∼N(0,1/N)v \sim \mathcal{N}(0, 1/N) in residual space, computes J⊤vJ^\top v as the gradient of the residual-weighted sum, and estimates diag(J⊤J)≈meank(J⊤v)2\mathrm{diag}(J^\top J) \approx \mathrm{mean}_k (J^\top v)^2. The estimate is smoothed with EMA rho=0.1 and refreshed every 3 steps (gn_every). Unlike Adam's E[g2]\mathbb{E}[g^2], this curvature does not depend on the residual's magnitude.
Input-covariance one-sided K-FAC
For a linear layer with din≤doutd_{in} \le d_{out}, InputKFAC applies ΔW=G(A+λI)−1\Delta W = G(A + \lambda I)^{-1} with A=E[hh⊤]A = \mathbb{E}[h h^\top]. Otherwise it applies ΔW=(R+λI)−1/2G\Delta W = (R + \lambda I)^{-1/2} G with R=GG⊤R = G G^\top. The damping is λ\lambda = 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 d=(1−a) dadam+a graft(dkfac)d = (1-a)\, d_{adam} + a\, \mathrm{graft}(d_{kfac}), with a=0a = 0 in the build phase and a=1a = 1 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 L>1.5LemaL > 1.5 L_{ema} the damping λ\lambda is raised 3x and the step rejected. If L>LemaL > L_{ema}, λ\lambda is multiplied by 3, otherwise by 0.8, within [1e-6, 1e6], with LemaL_{ema} at EMA 0.9. The Polyak step γ=max⁡(L−L∗,0)/⟨g,d⟩\gamma = \max(L - L^*, 0) / \langle g, d \rangle is capped at 10, and the update norm is clipped to 0.3∥θ∥0.3\|\theta\|.
Bounded loss-aware step multipliers
EDGN keeps Lema←0.99Lema+0.01LL_{ema} \leftarrow 0.99 L_{ema} + 0.01 L and scales its step by clamp(L/Lema,0.5,2.0)\mathrm{clamp}(\sqrt{L / L_{ema}}, 0.5, 2.0). EDTrust instead uses clamp((L−L∗)/EMA(L−L∗),0.3,3.0)\mathrm{clamp}((L - L^*)/\mathrm{EMA}(L - L^*), 0.3, 3.0) 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 rg=∥∇g∥r_g = \|\nabla_g\|, smoothed with EMA 0.9. A stall signal divides it by an EMA of ⟨g,dadam⟩\langle g, d_{adam} \rangle. 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
DBL estimates noise σn2=12E[(gt−gt−1)2]\sigma_n^2 = \frac{1}{2}\mathbb{E}[(g_t - g_{t-1})^2] (beta 0.99) and drift σd2=(mfast−mslow)2\sigma_d^2 = (m_{fast} - m_{slow})^2 (betas 0.9 and 0.999), with ρ=σd2/σn2\rho = \sqrt{\sigma_d^2/\sigma_n^2}. The update is p←p−η clamp(1+κρ,1,10) m^/(v^+ϵ)p \leftarrow p - \eta\, \mathrm{clamp}(1 + \kappa\rho, 1, 10)\, \hat{m}/(\sqrt{\hat{v}} + \epsilon) with default κ\kappa = 4, lr 3e-3 and warmup 50. The code's docstring motivates it with the claim η∗=σd2/σn2\eta^* = \sqrt{\sigma_d^2/\sigma_n^2}.
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 dh×dhd_h \times d_h state starts at zero. Each token computes u=vt−S⊤ktu = v_t - S^\top k_t, writes S←S+kt(βtu)⊤S \leftarrow S + k_t (\beta_t u)^\top with βt=σ(Wbxt)\beta_t = \sigma(W_b x_t), and reads rt=S⊤qtr_t = S^\top q_t, with qq and kk unit-normalized. The read_prev option reads rt=St−1⊤qtr_t = S_{t-1}^\top q_t 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 S0S_0, the kernel forms Aij=βi(ki⋅kj)A_{ij} = \beta_i (k_i \cdot k_j) for j<ij < i and Ti=βi(vi−S0⊤ki)T_i = \beta_i (v_i - S_0^\top k_i). It solves (I+A)W=T(I + A) W = T in fp32 and reads ri=S0⊤qi+∑j≤i(qi⋅kj)wjr_i = S_0^\top q_i + \sum_{j \le i} (q_i \cdot k_j) w_j, using strictly j<ij < i under read_prev. It then updates S=S0+K⊤WS = S_0 + K^\top W; 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 ut,c←∑τ=0w−1Wc,τut−τ,c+bcu_{t,c} \leftarrow \sum_{\tau=0}^{w-1} W_{c,\tau} u_{t-\tau,c} + b_c 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 KVs=∑ϕ(k)[v;1]⊤KV_s = \sum \phi(k)[v;1]^\top, read as a numerator over denominator ratio. A gate g=σ(cos⁡(ui,ϕˉ(k)s))g = \sigma(\cos(u_i, \bar{\phi}(k)_s)), L1-normalized over segments, mixes the reads as y=∑sg ry = \sum_s g\, r. Cost is O(NSd2)O(N S d^2), behaving as an RNN at S=1S = 1 and as attention at S=TS = T; it follows a cited published method by others.
Gauss-Newton action refinement with CEM floor
For action cost ∥ϵ(z0,a)∥2\|\epsilon(z_0, a)\|^2, EDPlan solves (J⊤J+λI)δ=J⊤ϵ(J^\top J + \lambda I)\delta = J^\top \epsilon with λ\lambda = 1e-3 and updates a←a−ηδa \leftarrow a - \eta\delta, 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 O≈(GG⊤)−1/2GO \approx (G G^\top)^{-1/2} G without eigendecomposition. It normalizes by ∥G∥\|G\|, then runs 5 iterations of X←3.4445X+(−4.7750A+2.0315A2)XX \leftarrow 3.4445 X + (-4.7750 A + 2.0315 A^2) X with A=XX⊤A = X X^\top.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Monte Carlo Gauss-Newton beats empirical Fisher

    The lab's records report the residual-independent Monte Carlo estimate of diag(J⊤J)\mathrm{diag}(J^\top J) beating the empirical Fisher diagonal by 185x on ill-conditioned problems.

  6. 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.

  7. Binding convolution makes delta recall reliable

    A width-2 causal convolution lifted recall reliability from 1/5 to 10/10 fresh seeds at dhd_h = 128 with 16 pairs. It also reached 5/5 at dhd_h = 32, 5/5 at 32 pairs and 5/5 under the WY kernel; the earlier capacity-wall reading was revised as a binding failure.

  8. 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 E=Fθ+CE = F_\theta + C, 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 E=12∥ϵ∥2E = \frac{1}{2}\|\epsilon\|^2 the natural curvature is G=J⊤JG = J^\top J, not the empirical Fisher E[gg⊤]\mathbb{E}[g g^\top] that Adam approximates. The two diverge near convergence, where gradients shrink but curvature does not.
Squared-residual structure
Energies are written with the residual ϵ\epsilon exposed, not only as a scalar. Gauss-Newton and Polyak steps can then use JJ and ϵ\epsilon directly; the harness closure returns the scalar and stashes the residual.
Polyak step
A step size γ=(L−L∗)/∥g∥2\gamma = (L - L^*)/\|g\|^2 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 R2R^2. 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 d\sqrt{d}, 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, S←S+k(β(v−S⊤k))⊤S \leftarrow S + k(\beta(v - S^\top k))^\top, 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 dhd_h. 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.