Skip to content

Axiom Stage-1 Root-Cause Gap Analysis

Date: 2026-11-24
Author: gap-investigator
Branch: feat/axiom-gaps (targeting feat/axiom-family, branched from origin/develop at fd1ddd68b)
Runtime Cohort: 2× NVIDIA RTX A6000 (cuda:0, cuda:1), Python 3.12, PyTorch 2.15.0+cu132, CUDA 13.2, protocol seed = 0, deterministic execution (torch.use_deterministic_algorithms(True)).
Scope: Fast, surgical GPU factorial diagnostics and code-level root causes for the 5 open failure, thin-margin, and speed/energy regimes required for the new Axiom family (particlegan/_axiom/, < 2,500 LOC, zero eigh/svd/pinv, strictly clock-free, one global recipe) to strictly dominate unified-v12, unified-v13, and rhbi-v12.

Protocol note: All diagnostic runs used exact Forge adapters (experiments/forge/interpolation.py, experiments/forge/api.py:task_formulation_context, benchmarks/toy_audit/api_model_ddgan.py, benchmarks/toy_audit/api_t3_isolation.py, experiments/forge/scaling_benchmark.py) and protocol seed = 0. Raw scratch scripts and logs remain strictly local outside Git.


Executive Summary & Module Mapping for Axiom

# Target Regime Exact Quantified Root Cause Concrete Single-Principle Axiom Fix Target Axiom Module
1 interp_img_patch_shift (0.4915) & interp_saddle_barycentric (0.7027) Three coupled defects (NOT bf16, NOT t1c_chart_weight, NOT prior_sbnp): (a) _conformal_local_horizons lacks a (1 - g_conn) connectedness gate and false-triggers on smooth curved manifolds (g_conn = 1.0), warping \(\ell_{xy}\); (b) UnifiedV11CriticPenalty's 1-probe interleaved fwAD EBI (eff_gauge=0.005, 0.0005/dim floor) + UnifiedV12Optimizer's 0-NS sqrt(m) critic overshoot (+74% step-1 loss_gan on saddle, premature thermal freeze/shock re-ignition s_th: 1.0 -> 0.023 -> 1.0) destabilize simplicial chord translation into 0.5 ghosting; (c) FP32 simplicial chart distances/MDS degrade saddle geometry vs FP64. (a) Gate conformal local horizons strictly by (1 - g_conn) (uniform scalar \(\ell\) on connected manifolds); (b) replace EBI with detached-EMA linear-in-\(\hat{s}\) R1 (exact autograd R1 for \(d \le 16\) MLPs; sub-batch fwAD for Conv/high-D); (c) evaluate low-\(M\) (M <= 256) simplicial MDS/chart distances in float64 with synchronized chord phase; (d) apply pathology-aware Law-4.2 critic conditioning (avoid blind sqrt(m) overshoot). transport.py, critic.py, optimizer.py
2 model_ddgan_bimodal_chain (4.6961 > 4.5) & model_ae_ddgan_bimodal_chain (2.0592 > 2.05) on PyTorch 2.15 Precision regression in UnifiedV11CondFiberBank FIFO ring (_unified_v11/bank.py:532-562): downgrading the [M=384, D<=16] ring k-NN distances, softmax weights, and midpoint-canceling covariance difference \(\Sigma_X - \Sigma_Y\) from float64 (_cond_fiber/bank.py:397-423) to float32 introduces cancellation drift under PyTorch 2.15. Swapping only the bank back to float64 flips both tasks on live PyTorch 2.15: model_ddgan_bimodal_chain 5/6 FAIL (4.6961) -> 6/6 PASS (3.6473), and model_ae_ddgan_bimodal_chain 4/5 FAIL (2.0592) -> 5/5 PASS (max_floc = 1.9029, step-5000 = 1.7126) (pairing with exact d <= 16 RoR drops max_floc further to 1.8624 and step-4375 to 1.7766). Keep zero-eigh closed-form \(2\times 2\) + cyclic Jacobi (0 eigh, 0 SVD) with canonicalized eigenvector signs, run the tiny [M=384, D<=16] FIFO ring distances, softmax weights, and midpoint-canceling covariance accumulation in float64 (< 0.05 ms/step), pair with exact d <= 16 RoR, and keep cov_op_weight ~ 0.30–0.40. transport.py (or fiber.py), critic.py
3 ByteGAN (2/2, 256/256 bijection + BiGAN inverse) particlegan/_t1_coupling/atomic.py (451 LOC; 190 LOC of CPU .tolist() ledger loops) relies on 4 exact invariants: annular-gap duplicate purity gate (g_atom = 0.0 on all interp_* and MoGs), relu-rescaled Hamilton apportionment (q_k = 1 for M = K, q_k ≈ M*w_k for unequal weights, permutation-invariant tie-break fixing D-06), persistent 1-stays/surplus-moves ledger, and zero-extra-forward BiGAN inverse matching. Unify into <= 145 non-comment LOC GPU-vectorized (argsort by (chart_id, dist, pid) + within-chart rank < q[chart_id] via cumsum offsets supporting arbitrary q_k >= 1, zero CPU distance copies, zero D-06 index tie-break) atomic bijection + BiGAN inverse sub-module; keep strict 1e-6 * d_max duplicate + 0.25 * d_sep annular-gap gate so g_atom == 0.0 identically on all interp_* and noisy MoGs (sigma >= 1e-3). transport.py
4 dcgan_performance_r256 Speed & NVML Energy (clock-free) + img_bars4 / precision_* unified-v12 spends ~19 ms (~35% of step) in full-batch b_reg=16 fwAD forward+backward and 3.39 ms in per-parameter optimizer loops. Measured back-to-back on contended A6000 (43% util): b_reg = B // 4 = 4 clock-free dense-Rademacher linear-R1 + zero-loop torch._foreach_* optimizer cuts latency -36.7% (53.53 -> 33.87 ms) and NVML energy -41.5% (16.97 -> 9.94 J/st); directly verified on uncontended idle A6000 (0% util, 33.99 W): Weyl-phase interleaved R1+R2 (b_reg = 4) runs at 26.73 ms/st (p95 = 27.80 ms) & 6.983 J/st. torch.compile crashes under bf16_channels_last + fwAD + deterministic. Fixed lam = 0.01 collapses img_bars4 (2/4 modes), while fixed lam = 0.50 passes img_bars4 (5/5) yet over-damps 3D interp_saddle_barycentric. Use strictly clock-free Weyl-phase sub-batch b_reg = max(2, B // 4) interleaved half-real/half-fake (R1+R2) dense-Rademacher fwAD linear-in-\(\hat{s}\) penalty + swap-invariant gauge \(\frac{1}{2}(\bar{D}_r + \bar{D}_f)\) with detached-EMA adaptive \(\lambda_{\text{eff}}(\bar{s}_{t-1}) \cdot \hat{s}_t\) (exact zero Jensen bias, \(\mu_D \ge \lambda_{\text{floor}} = 0.005\) everywhere, BN .eval() + dual-bf16 hook), eager bf16_channels_last (NO torch.compile), and contiguous [N_params] GPU-tensor torch._foreach_* optimizer (0.68–0.69 ms combined opt_d + opt_g). critic.py, optimizer.py
5 Thin Margins: t3_iso_scale_mass_8x (0.4723), grid100_res16_tanh (1-ULP step-6250 modes=99), staggered100 (cov_trace_bias, J-to-PASS) (a) On t3_iso_scale_mass_8x, fwAD probe variance + _conformal_local_horizons (kappa_width=2.85) squeeze sigma=0.16 anisotropically (0.5007 vs 1.1233); exact-RoR + valley-capped k=3 Voronoi conformal_horizon_pair raises core_min_eigen_ratio 0.5007 -> 0.5498 (5/5 PASS, cov_err = 0.2847, rgdt_conformal alone hits 0.6002). (b) On grid100_res16_tanh & staggered100, prior.py:1761-1768 imposes a global tv_floor = 0.0448 deadband + 0.008 Tikhonov droop (blinding Laguerre duals to single starving corner modes < 0.005), prior.py:1426 & 1275 apply biased 0.995 shrink + 15%–27% condensation deadband (inducing systematic -4.9%..-8.1% cov_trace_bias), and _unified_v12/optimizer.py:126-170 adds discontinuous CountSketch thresholds + 1-shot unverified _band_scale. (a) Exact autograd R1 on \(d \le 16\) MLPs + (1 - g_conn)-gated valley-capped k=3 Voronoi conformal horizons; (b) per-cell relative-deficit Laguerre dual ascent (zero global-TV deadband on starving modes, exact mass conservation \(\sum_k \hat{w}_k \equiv 1\)); (c) exact Law of Total Variance (no 0.995 bias or 0.15..0.27 deadband); (d) verified iterative nonlinear trust backtracking (Law 4.3, 0 violations) + continuous step-cosine damping (no discontinuous CountSketch). prior.py, transport.py, critic.py, optimizer.py

Target 1: Why RHBI Passes interp_img_patch_shift & interp_saddle_barycentric While unified-v12/v13 Fail Both

1.1 Exact Baseline Reproduction & Negative Eliminations

Using Forge's exact experiments/forge/interpolation.py adapter (seed = 0, 800 steps, 24 observations, 5-check terminal suffix) on RTX A6000 (cuda:0), we reproduced both committed readouts (readout-b51ab67c and readout-8a63e947) to 4 decimal places and systematically ruled out four initial hypotheses:

Task Arm Term Pass Key Metrics (Step 800) Failed Bounds Diagnostic Conclusion
interp_img_patch_shift unified-v12 (baseline) 0/5 end_hq=0.6250, end_rmse=0.0967, i_hq=0.5789, i_peak=0.4915, i_rmse=0.1002, nov=0.5472 end_rmse, i_rmse, i_peak Exact match to readout-b51ab67c (0.5 ghosting).
interp_img_patch_shift rhbi-v12 (baseline) 5/5 end_hq=1.0000, end_rmse=0.0356, i_hq=1.0000, i_peak=0.8574, i_rmse=0.0360, nov=0.3846 none Exact match to readout-8a63e947.
interp_img_patch_shift u12 + fp32 0/5 i_peak=0.4915, end_hq=0.6250, i_rmse=0.1002 same 3 Bit-identical -> bf16 ruled out.
interp_img_patch_shift u12 + prior_sbnp 0/5 i_peak=0.4915, end_hq=0.6250, i_rmse=0.1002 same 3 Bit-identical -> prior reg ruled out.
interp_img_patch_shift u12 + t1c_chart_weight=0 0/5 i_peak=0.4915, end_hq=0.6250, i_rmse=0.1002 same 3 Bit-identical -> Laguerre chart weight already zeroed by (1 - g_conn) (g_conn = 1.0).
interp_img_patch_shift u12 + no_rel_blend 0/5 i_peak=0.4915, end_hq=0.6250, i_rmse=0.1002 same 3 Bit-identical -> rhbi_fibre_rel_blend ruled out.
interp_img_patch_shift u12 + no_t1c_extras 0/5 end_hq=0.5625, i_peak=0.5233, i_rmse=0.0951 end_rmse, i_peak Removing chart/pullback/macro/ms/rel_blend alone still fails.
interp_img_patch_shift u12 + u11_opt (unified_v11_equil) 5/5 end_hq=1.0000, end_rmse=0.0391, i_hq=1.0000, i_peak=0.8137, i_rmse=0.0355 none Single-factor flip to 5/5 PASS (beats rhbi-v12 RMSE!).
interp_img_patch_shift u12 + exact_ror 3/5 end_hq=1.0000, end_rmse=0.0447, i_hq=1.0000, i_peak=0.8160, i_rmse=0.0418 none (step 800) Step-800 pass (3/5 sustained; not a 5/5 Forge PASS) — penalty swap alone cures 0.5 ghosting (+0.3245 peak).
interp_img_patch_shift u12 + exact_ror_nochord 3/5 end_hq=1.0000, end_rmse=0.0406, i_hq=1.0000, i_peak=0.8758, i_rmse=0.0390 none (step 800) Step-800 pass (3/5 sustained; not 5/5 Forge PASS) — geodesic chords NOT required; exact RoR alone hits 0.8758.
interp_img_patch_shift u12 + dualnorm + exact_ror 5/5 end_hq=1.0000, end_rmse=0.0436, i_hq=1.0000, i_peak=0.7878, i_rmse=0.0433 none Restores full 5/5 sustained Forge PASS.
interp_img_patch_shift u12 + rhbi_simplex 4/5 end_hq=1.0000, end_rmse=0.0408, i_hq=1.0000, i_peak=0.8592, i_rmse=0.0397 none (step 800) Step-800 pass (4/5 sustained; not 5/5 Forge PASS) — FP64 simplicial loss lifts peak +0.3677.
interp_img_patch_shift u12 + no_ms + axiom_linR1_050 3/5 end_hq=1.0000, i_hq=1.0000, i_peak=0.8161, i_rmse=0.0394 none (step 800) Step-800 pass, 3/5 sustained (NOT a 5/5 Forge PASS per interp_img_patch_shift.json:60); clock-free b_reg=B//4 linear-R1 + (1-g_conn) no-MS eliminates 0.5 ghosting.
interp_img_patch_shift rhbi + axiom_linR1_050 5/5 end_hq=1.0000, i_hq=1.0000, i_peak=0.8193, i_rmse=0.0359 none Zero-EBI sub-batch b_reg=B//4 linear-R1 achieves full 5/5 Forge PASS (beats rhbi-v12 RMSE!).

Now compare the exact same factorial sweep on interp_saddle_barycentric (SimpleMLP, 3D curved sheet, M = 24, z_dim = 2, b_r = 128):

Task Arm Term Pass end_hq end_mae bary_hq (>=0.78) bary_mae (<=0.09) bins s_th Trajectory (100,200,400,600,800)
interp_saddle_barycentric unified-v12 (baseline) 0/5 0.8750 0.0470 0.7027 0.0679 15 —
interp_saddle_barycentric rhbi-v12 (baseline) 5/5 0.9167 0.0399 0.8358 0.0668 16 smooth monotone cooling
interp_saddle_barycentric u12 + prior_sbnp 0/5 0.8750 0.0470 0.7027 0.0679 15 Bit-identical (rules out active_iso).
interp_saddle_barycentric u12 + no_support 0/5 0.8750 0.0470 0.7027 0.0679 15 Bit-identical (rules out support_completion).
interp_saddle_barycentric u12 + no_rel_blend 0/5 0.8750 0.0470 0.7027 0.0679 15 Bit-identical.
interp_saddle_barycentric u12 + no_multiscale 0/5 0.7500 0.0843 0.7500 0.0786 16 +0.0473 bary_hq lift from disabling ms alone!
interp_saddle_barycentric u12 + rhbi_simplex 0/5 0.7083 0.0708 0.7794 0.0732 14 +0.0767 bary_hq lift (within 0.0006 of gate!).
interp_saddle_barycentric u12 + ror_synced 0/5 0.8750 0.0438 0.6571 0.0720 16 {1.0, 0.0229, 1.0, 0.0477, 0.0012} (thermal shock!)
interp_saddle_barycentric u12 + dualnorm + ror_synced 1/5 0.9167 0.0496 0.6812 0.0744 16 {1.0, 1.0, 0.0211, 0.0040, 0.0066}
interp_saddle_barycentric u12 + dualnorm + no_ms + ror_synced 3/5 0.8750 0.0495 0.7857 0.0565 16 {1.0, 1.0, 0.0370, 0.0412, 0.0039} (step-800 pass, 3/5 sustained — NOT a 5/5 Forge PASS per interp_saddle_barycentric.json:58; beats rhbi MAE)
interp_saddle_barycentric u12 + axiom_linR1_050 0/5 0.8750 0.0484 0.7206 0.0703 16 {1.0, 0.0397, 0.0, 0.0, 0.0} (over-damped lam=0.50!)

1.2 Exact Mathematical Root Cause

Both failures trace to three interacting violations of connected-manifold invariance and critic smoothness:

  1. Un-gated Conformal Horizon Warping (particlegan/_t1_coupling/primitive.py:1016-1022): T1CouplingLoss._conformal_local_horizons runs whenever multiscale_horizon=True and b_f, b_r >= 12, with no (1 - g_conn) connectedness gate. On a smooth curved manifold with uniform observation noise (interp_saddle_barycentric, sigma = 0.03, g_conn = 1.0), steep slope changes across the saddle \(w = 0.8(x^2-y^2) + 0.9\cos(0.75\pi x)\cos(0.75\pi y)\) stretch local 3D \(k\)-NN spacing by \(> 2.85\times\), false-triggering g_width_active = True and warping \(\ell_{xy} = \sqrt{\ell_x \ell_y}\) across a single connected sheet. Disabling t1c_multiscale_horizon on interp_saddle_barycentric immediately jumps bary_hq from 0.6812 -> 0.7857 (cutting bary_mae from 0.0744 -> 0.0565, beating rhbi-v12's 0.0668), and on interp_img_patch_shift lifts u12+axiom_linR1_050 from 0.7678 -> 0.8161 (fail = []).
  2. Critic Over-Stepping (UnifiedV12Optimizer 0-NS sqrt(m) Frob-MP) + High-Variance 1-Probe fwAD EBI (UnifiedV11CriticPenalty):
  3. At Step 1 of interp_saddle_barycentric, unified-v12 produces loss_gan = 0.2201 vs rhbi-v12's 0.1264 (+74% higher) despite bit-identical ell = 0.08299, rhbi_simplex = 0.39375, and prior_reg = 0.08869. Why? UnifiedV12Optimizer applies 0-NS Critic Frob-MP with target_frob = sqrt(64) = 8× on the shallow SimpleMLP critic (P5 Theorem 3's Frobenius–Spectral overshoot), driving larger step-1 critic logits d_fake_tilde and destabilizing thermal settling (s_th prematurely collapses to 0.0229 at step 200, then thermal-shocks back to 1.0 at step 400).
  4. On interp_img_patch_shift (1x8x8 Conv2d), UnifiedV11CriticPenalty drops gauge weight 6× (eff_gauge = 0.005) and R1 floor 640× (0.0005 / 64 = 7.8e-6) inside a 1-probe Jensen-biased fwAD EBI branch while UnifiedV12Optimizer removes Conv2d/Critic NS. Under this under-damped, noisy critic, simp_val stalls (2.69 -> 1.83 vs rhbi's 1.08) and G minimizes loss via cheap pixelwise superposition (0.5 * patch_A + 0.5 * patch_B, interp_peak = 0.4915). Restoring either unified_v11_equil (5/5 PASS, i_peak = 0.8137, i_rmse = 0.0355) or exact RoR without chords (i_peak = 0.8758) immediately eliminates ghosting.
  5. FP32 Precision Loss in UnifiedV4CouplingLoss.simplicial_manifold_loss (_unified_v4/loss.py:178-308) vs FP64 (_rhbi/primitive.py:1350-1620): Replacing d_zz, _born_infeld_pair, g_vv, and _sq_euclidean_f64 with FP32 causes a step-1 simplicial stress shift (0.39128 vs 0.39375) that compounds across 800 steps; restoring FP64 simplicial_manifold_loss alone lifts interp_img_patch_shift (0.4915 -> 0.8592, 4/5) and interp_saddle_barycentric (0.7027 -> 0.7794).

1.3 Single-Principle Axiom Design Recommendation (Zero Discrete-Mode Regression)

  1. Connectedness-gated conformal horizons (transport.py): Multiply any local conformal width variation by (1 - g_conn) (or skip _conformal_local_horizons when g_conn > 0.5). Disconnected discrete modes (img_bars4, grid100, t3_iso_scale_mass_8x, bytegan_*) have g_conn = 0.0, keeping full conformal & Laguerre power untouched; connected continuous manifolds (interp_*) have g_conn = 1.0, preserving an undistorted uniform metric.
  2. FP64 small-\(M\) simplicial chart geometry (transport.py): For M <= 256 zero-sigma tables (g_conn > 0.05), compute d_zz, g_vv, and Born-Infeld chart stress in float64 (< 0.1 ms overhead) with synchronized golden-ratio Weyl chord phase \(\phi\).
  3. Detached-EMA adaptive linear-R1 (critic.py) + pathology-aware critic conditioning (optimizer.py): See Target 4 (Sec. 4.3) — keeps \(\lambda_{\text{eff}} \approx 0.005\) on smooth 3D saddles (avoiding lam = 0.50's premature s_th -> 0 freeze!) while keeping sharp 64-D image critics well-damped (i_peak >= 0.81), and avoids blind sqrt(m) Frobenius overshoot on collapsed low-D MLP critics.

Target 2: Why model_ddgan_bimodal_chain (4.6961 > 4.5) & model_ae_ddgan_bimodal_chain (2.0592 > 2.05) Narrowly Fail on Live PyTorch 2.15

2.1 Exact Live PyTorch 2.15.0+cu132 Reproduction & Isolation

First, we confirmed a critical recipe nuance: Forge's task_formulation_context resolves prior_lr_mult = 0.02 on DDGAN tasks (from host adaptation). Running exact Forge-resolved recipes on live PyTorch 2.15.0+cu132 (cuda:1, seed = 0, 5,000 steps, evaluating the 6-check terminal suffix 3958..5000) reproduced PR #644's exact failure to 4 decimal places AND isolated the exact culprit:

Arm (model_ddgan_bimodal_chain, PyTorch 2.15) Term Pass max t1_q0 (<=4.5) max t1_q1 (<=4.5) Step 4375 q1 Step 5000 (q0, q1) max final_loc_cov (<=2.05) Diagnosis
unified-v12 (exact Forge baseline) 5/6 FAIL 4.2785 4.6961 4.6961 (3.5471, 2.9194) 1.6281 Exact 4-decimal match to PR #644!
cond-fiber-v1 (live PyTorch 2.15) 6/6 PASS 3.8978 4.1173 4.1173 (2.9388, 2.5257) 1.5258 Still passes cleanly on PyTorch 2.15!
u12 + exact_ror_pen 5/6 FAIL 4.3982 4.5793 4.5793 (3.0828, 2.6578) 1.5339 Penalty only shifts q1 by -0.12 (still fails).
u12 + dualnorm 4/6 FAIL 4.5194 4.6846 4.6846 (3.0802, 2.9199) 1.5990 Optimizer swap alone worsens q0 & cdf.
u12 + f64_cond_bank (swap ONLY record.cond_fiber_bank) 6/6 PASS 3.6143 3.6473 3.5467 (2.7530, 2.5475) 1.6274 SINGLE-FACTOR CURE (-1.05 max_q1, -1.15 at step 4375, zero floc inflation)!
u12 + cov_w_060 (loss.cov_op_weight: 0.30 -> 0.60) 6/6 PASS 3.5853 3.7220 3.7220 (3.1985, 2.7614) 1.9906 Passes DDGAN, but pushes max_floc to 1.9906 (dangerously close to 2.05!).
u12 + cov_w_050_fast090 (gamma_fast=0.90, k=28) 4/6 FAIL 3.1193 3.2680 3.1692 (2.7921, 2.2894) 1.6027 Cuts q1 to 3.27, but trips t2_q1_eig_min & final_mean.

(Bonus diagnostic: running unified-v12 with prior_lr_mult = 2.9 instead of 0.02 also passed 6/6 with max_q0 = 3.6017, max_q1 = 3.7042 — confirming the prior/fiber coupling sits right on a numerical precision knife-edge under prior_lr_mult = 0.02.)

We then ran the exact live PyTorch 2.15.0+cu132 verification directly on model_ae_ddgan_bimodal_chain (api-model-ae-ddgan-bimodal-chain, minimum_stable_checks: 5, observations: 24, seed = 0, 5,000 steps across cuda:0 and cuda:1):

Arm (model_ae_ddgan_bimodal_chain, PyTorch 2.15) Last-5 (>=5/5) Last-6 max t1_q0 (<=4.5) max t1_q1 (<=4.5) Step 4375 floc (<=2.05) Step 5000 floc max final_loc_cov Step 5000 nmse (<=0.10) Diagnosis
unified-v12 (exact Forge baseline) 4/5 FAIL 5/6 2.7236 2.8828 2.0592 1.9448 2.0592 0.0313 Exact 4-decimal match to PR #644 (final_local_covariance_max)!
cond-fiber-v1 (live PyTorch 2.15) 4/5 FAIL 5/6 2.7621 3.9095 2.0790 1.9463 2.0790 0.0281 cond-fiber-v1 itself also fails AE-DDGAN step 4375 on PT 2.15!
u12 + f64_cond_bank (swap ONLY ring to float64) 5/5 PASS 6/6 2.8652 2.5673 1.9029 1.7126 1.9029 0.0350 SINGLE-FACTOR CURE (-0.1563 at step 4375, -0.2322 at step 5000)!
u12 + exact_ror (exact RoR penalty alone) 5/5 PASS 6/6 2.6737 2.9283 1.9383 1.7199 1.9383 0.0346 Exact low-D RoR independently cures step-4375 spike (-0.1209).
u12 + f64_cond_bank + exact_ror (Axiom low-D pair) 5/5 PASS 6/6 2.7477 3.1901 1.7766 1.8624 1.8624 0.0336 Widest max_floc margin (1.8624, -0.2826 drop at step 4375)!

2.2 Exact Mathematical Root Cause

Diffing particlegan/_cond_fiber/bank.py:397-423 against particlegan/_unified_v11/bank.py:532-562 reveals the exact precision regression introduced during the v11 zero-eigh rewrite:

  • In _cond_fiber/bank.py:397-423, the per-stratum paired-context FIFO ring (M = 384) computes pairwise context distances d_qr, adaptive \(k\)-NN softmax kernel weights alpha, and midpoint-canceling local covariance residuals
\[ \Delta\Sigma_i \enspace=\enspace \sum_{j=1}^{M} \alpha_{ij}\Big((r_{X,j} r_{X,j}^\top) - (r_{Y,j} r_{Y,j}^\top)\Big) \]

strictly in float64. - In _unified_v11/bank.py:532-562, those exact three tensors (d_qr32, alpha32, dcov_r) were downgraded to float32. On the bimodal t = 1 reverse transition (where the true posterior is bimodal with large outer-tail residuals \(r_X, r_Y\)), subtracting two large nearly-equal float32 outer products \(r_X r_X^\top - r_Y r_Y^\top\) suffers catastrophic cancellation and PyTorch 2.15 CUDA float32 GEMM/reduction rounding drift — directly verified on both bimodal tasks: restoring float64 FIFO ring math alone drops model_ddgan_bimodal_chain step-4375 t1_q1 from 4.6961 -> 3.5467 (6/6 PASS) and drops model_ae_ddgan_bimodal_chain step-4375 final_local_covariance_max from 2.0592 -> 1.9029 (5/5 PASS, 6/6 last-6; and 1.7766 / max_floc = 1.8624 when paired with Axiom's exact d <= 16 RoR penalty!). - Note that zero_eigh_symmetric (_unified_v11/bank.py:46-163) ALREADY matches torch.linalg.eigh to < 4.2e-15 in float64 (docs/four-laws.md Law 3); the drift came from the float32 ring accumulation (amplified on AE-DDGAN by fwAD probe noise), NOT from removing eigh!

2.3 Clean Zero-eigh, Zero-SVD Axiom Fix

  • Retain zero-eigh / zero-SVD spectral splitting: Use exact closed-form \(2\times 2\) eigendecomposition + float64 cyclic Jacobi for \(3 \le d \le 16\) with deterministic column-sign canonicalization (largest-magnitude entry positive).
  • Restore float64 FIFO ring math (transport.py): Compute d_qr, alpha, and dcov_r = sum alpha * (r_X r_X^T - r_Y r_Y^T) in float64 (tensor sizes are [B <= 128, M = 384, d <= 16], costing < 0.05 ms/step!).
  • Balanced covariance weight: Keep cov_op_weight in [0.30, 0.40] (avoid 0.60, which inflated max_floc -> 1.9906), giving comfortable margin on both t1_q0/t1_q1 (~3.5–3.6 << 4.5) and final_local_covariance_max (~1.4–1.6 << 2.05) across PyTorch runtime cohorts.

Target 3: Minimal feydy_atomic Invariant (<= 150 LOC) for ByteGAN (2/2)

3.1 Code Audit & Noise-Sensitivity Verification (particlegan/_t1_coupling/atomic.py)

Current particlegan/_t1_coupling/atomic.py spans 451 LOC (391 non-comment): - compute_discrete_atomic_gate: 70 LOC - compute_atomic_quotas: 45 LOC - update_atomic_ledger: 190 LOC (bloated by Python loops over d_xc.cpu() / .tolist() host-device roundtrips!) - split_joint_table_pair: 52 LOC - match_inverse_atomic_targets: 62 LOC

Running our quantitative sensitivity harness across exact atoms, noisy atoms, discrete MoGs, and continuous curved manifolds confirms:

Target Law Original atomic.py g_atom Axiom Prototype g_atom Safe?
byte256 (B = 64, 128, 256, sigma = 0) 1.0000 1.0000 Exact bijection active (57..167 unique/batch)
byte256 (B = 128, sigma = 1e-7) 1.0000 1.0000 Sub-tolerance noise safe
byte256 (B = 128, sigma = 1e-6) 1.0000 0.5933 Smooth transition edge (atom_tol = 1e-6 * d_max)
byte256 (B = 128, sigma >= 1e-4) 0.0000 0.0000 Handed cleanly to continuous Feydy-Sinkhorn + Laguerre
five_words (B = 64, sigma = 0) 1.0000 1.0000 Exact bijection active
five_words (B = 64, sigma >= 1e-3) 0.0000 0.0000 Clean continuous handoff
interp_sparse_arc (sigma = 0.015) 0.0000 0.0000 Zero conflict with interp_*
interp_img_patch_shift (sigma = 0.01) 0.0000 0.0000 Zero conflict with interp_*
interp_saddle_barycentric (sigma = 0.03) 0.0000 0.0000 Zero conflict with interp_*
mog4 (sigma = 0.04) 0.0000 0.0000 Zero false trigger on discrete MoGs

3.2 Exact Minimal Invariant for Axiom (<= 145 Non-Comment LOC, GPU-Vectorized, Zero D-06)

Only four minimal mathematical primitives are required to achieve exact 256/256 ByteGAN bijection + 256/256 BiGAN dictionary reconstruction without interfering with noisy atoms, five_word_* (q_k > 1), or interp_*:

  1. Annular-Gap Duplicate Purity Gate (~28 LOC): Classify exact/quantized point-mass draws (nn_i <= 1e-6 * d_max) surrounded by an empty annular gap (1e-6 * d_max, 0.25 * d_sep) where d_sep = quantile_0.05(d[d > atom_tol]); smoothstep purity = n_atom / (n_atom + n_near) over [0.70, 0.90], with a persistent-chart fallback (q75(radius)/med_nn < 1e-3 and q75(d_yc)/med_nn < 1e-3) for zero-duplicate batches when K >> B. Keeping atom_tol = 1e-6 * d_max (do not loosen to 1e-2!) guarantees strict g_atom == 0.0 on noisy atoms (sigma >= 1e-3) and interp_* (sigma = 0.01..0.03), where standard continuous Born-Infeld Sinkhorn + Laguerre handles finite-width clusters properly.
  2. Permutation-Invariant relu-Hamilton Apportionment (Fixing Four-Laws D-06, ~24 LOC): For \(M\) particles and \(K\) discovered charts with weights \(w_k\):
  3. When \(M \ge K\), allocate \(1\) base particle per chart first (guaranteeing exact \(q_k = 1\) when \(M = K\), immune to minibatch EMA jitter), then apportion the surplus \(M - K\) proportionally to \(\mathrm{ReLU}(M w_k - 1)\) rescaled to sum to \(M - K\) (falling back to \((M - K) w_k\) if \(\sum_k \mathrm{ReLU}(M w_k - 1) \le 10^{-12}\)), preserving \(q_k \approx M w_k\) on unequal-weight mixtures (e.g., w = [0.50, 0.25, 0.15, 0.06, 0.04], M = 64 -> [32, 16, 10, 4, 2], and five_word M = 64, K = 5 -> [13, 13, 13, 13, 12]).
  4. Fixes Four-Laws D-06 (atomic.py:108,125-132, charts.py:561): Never subtract 1e-7 * arange(k) to break fractional-remainder ties (which deterministically evicts high-index charts when \(M < K\) with uniform weights). Instead, break ties permutation-invariantly by lexicographic sort on (frac desc, active_score desc) where active_score_k = -min_i d(x_i, c_k) (verified strictly permutation-invariant on M = 32 < K = 64).
  5. GPU-Vectorized argsort Persistent 1-Stays / Surplus-Moves Bijection Ledger (~55 LOC): Persistent checkpointable state (row_chart [M], row_target [M, D]) re-anchored by nearest current chart (immune to chart-index permutation!). Critical q_k > 1 requirement: do NOT use scatter_reduce_("amin") to prune charts (which keeps only 1 particle/chart and would evict 59/64 particles/step on five_word_joint_smoke where M = 64, K = 5, q_k = 12..13 and g_atom = 1.0!). Instead, sort all assigned particles on GPU lexicographically by (chart_id asc, dist asc, pid asc) via two stable torch.argsort calls, compute within-chart rank via rank = arange(N) - (cumsum(counts) - counts)[sorted_c], and release strictly rank >= quotas[sorted_c] — handling all q_k >= 1 cleanly with zero CPU distance copies! Verified on GPU across all 4 regimes: five_word M=64, K=5 (counts == quotas == [13,13,13,13,12]), unequal weights ([32,16,10,4,2]), M=32 < K=64 (permutation-invariant), and ByteGAN M=256, K=256 (256/256 assigned, 256/256 unique charts in < 40 random B = 64 batches).
  6. Zero-Extra-Forward BiGAN Joint-Table Inverse Code Matcher (~35 LOC): On joint (x, z) / (z, x) tensors, identify the latent half by exact match (max_abs <= 1e-5) to table[rows], match each real atom real_x to the nearest assigned particle's latent code table[m*(k)], and add aligned Born-Infeld contraction on real_z = E(real_x) toward table[m*(k)] with zero extra network forwards. (Total combined footprint: <= 145 non-comment LOC vs 391 non-comment / 451 total LOC in _t1_coupling/atomic.py.)

Target 4: dcgan_performance_r256 Speed & NVML Energy (Strictly Clock-Free!) + Quality Gates

4.1 Exact Phase-Level Timing & NVML Energy Breakdown (dcgan_performance_r256)

Measured on cuda:1 (RTX A6000, 256^2 RGB, B = 16, base = 64, max = 512, z = 128, M = 256, bf16_channels_last, 5 warmup + 20 measured steps, Forge ctypes NVML EnergyMonitor, torch.cuda.Event phase timers):

Contention disclosure: Another process occupied ~42–43% util (1211 MiB, ~188 W baseline) on cuda:1 during measurement. Every arm below was measured back-to-back under identical contention (baseline_unified_v12 serves as the exact live control: 53.53 ms / 16.973 J/st contended vs 36.6 ms / 11.2 J/st idle A6000).

Arm (dcgan_performance_r256, bf16_channels_last) Med ms/st p95 ms/st vs u12 Time NVML J/st (W) vs u12 Energy d_fwd d_pen d_bwd opt_d g_fwd g_bwd opt_g Idle A6000 Est.
baseline_unified_v12 (exact GANTrainer) 53.53 71.90 0.0% 16.973 (287.6W) 0.0% — 8.11 — 0.64 — — 2.75 36.6 ms / 11.2 J
axiom_loop_opt + b_reg=16 (Python scalar loop) 57.06 75.40 +6.6% 16.593 (271.0W) -2.2% 7.77 7.20 18.62 5.21 4.63 6.54 5.70 —
axiom_adam_foreach + b_reg=4 40.31 52.14 -24.7% 12.042 (289.7W) -29.1% 8.08 2.55 11.47 2.61 4.69 8.15 1.74 ~27.6 ms / ~7.9 J
axiom_foreach + b_reg=16 (zero-loop foreach) 48.84 62.18 -8.8% 14.489 (288.6W) -14.6% 7.00 7.78 18.95 0.33 4.57 7.38 0.61 ~33.4 ms / ~9.6 J
axiom_foreach + b_reg=8 (B // 2) 40.91 50.48 -23.6% 11.388 (272.8W) -32.9% 7.34 3.76 14.36 0.33 5.42 6.85 0.36 ~28.0 ms / ~7.5 J
axiom_foreach + b_reg=4 (B // 4, PARETO OPT) 33.87 45.92 -36.7% 9.937 (272.2W) -41.5% 7.17 2.42 10.64 0.33 5.54 7.51 0.36 ~23.2 ms / ~6.6 J
axiom_foreach + b_reg=2 (B // 8) 37.16 41.65 -30.6% 11.336 (312.3W) -33.2% 7.82 2.59 11.03 0.33 5.37 7.67 0.68 ~25.4 ms / ~7.5 J
axiom_foreach + b_reg=0 (lower bound, no R1) 27.41 36.05 -48.8% 7.035 (238.7W) -58.6% 7.26 0.00 7.03 0.56 4.15 7.75 0.36 ~18.7 ms / ~4.6 J
torch.compile(mode="default") + b_reg=4 CRASH — — — — — — — — — — — Incompatible!

We also directly measured b_reg = 4 (B // 4) on an uncontended idle RTX A6000 (cuda:0, pre-run 0% util, 33.99 W idle baseline, 5 warmup + 20 measured steps) comparing interleaved half-real/half-fake R1+R2 (2 real + 2 fake, Weyl phase + swap-invariant gauge) against real-only R1:

Uncontended Idle RTX A6000 (cuda:0, 0% util, 33.99 W) Med ms/st p95 ms/st NVML J/st (W) d_fwd d_pen d_bwd opt_d g_fwd g_bwd opt_g
axiom_b4_interleaved_r1r2 (Weyl phase, 2R + 2F, swap-inv gauge) 26.73 27.80 6.983 (256.1W) 5.45 2.03 10.01 0.33 3.46 5.00 0.35
axiom_b4_real_r1_only (Weyl phase, 4R, swap-inv gauge) 25.65 26.81 7.109 (272.3W) 5.31 1.97 9.10 0.33 3.48 5.04 0.36

(Direct idle measurements confirm our contended projection — 26.73 ms/st & 6.983 J/st idle vs unified-v12's 36.6–41.1 ms/st & ~11.2 J/st idle — and confirm interleaved R1+R2 adds essentially zero overhead vs real-only R1 while preserving fake-support slope damping.)

4.2 Four Critical Systems Findings for Axiom

  1. b_reg = B // 4 = 4 is the exact Pareto optimum: Cutting b_reg from 16 -> 4 shrinks d_pen + d_bwd from 26.73 ms -> 13.06 ms (-13.67 ms, -51.1% penalty+backward cost!), cutting end-to-end step time -36.7% and energy -41.5% (already beating the <= 35 ms / <= 10.5 J/st targets EVEN under 43% GPU contention!). Going below b_reg = 4 (b_reg = 2) hits cuDNN's small-batch tensor-core floor (2.59 ms vs 2.42 ms) while doubling probe variance — so b_reg = max(2, B // 4) strictly dominates B // 8.
  2. Contiguous 1D GPU-tensor torch._foreach_* optimizer saves 10 ms over naive Python loops and 4.9× over unified-v12: Storing per-parameter neg_lr_scales, inv_sqrt_n, sqrt_n, and peak_rms in contiguous [N_params] GPU tensors turns the entire optimizer step into 3 GPU kernels total (torch._foreach_norm, 1 fused vector op on [N_params], torch._foreach_addcmul_), slashing opt_d + opt_g from 10.91 ms (per-param Python loop) and 3.39 ms (unified-v12) down to 0.69 ms (0.33 + 0.36 ms) with zero .item() CPU syncs!
  3. fwAD + BatchNorm2d + bf16_channels_last requires BN .eval() + dual-bf16 hook: BatchNorm2d upcasts dual tensors to float32, crashing the next bf16 Conv2d unless BN is put in .eval() with a 6-line _bn_dual_bf16_hook (make_dual(p.to(bf16), t.to(bf16))). Bonus: .eval() makes b_reg = B // 4 strictly batch-size independent and removes batch-coupled BN derivative noise!
  4. DO NOT use torch.compile on dcgan_performance_r256: Under bf16_channels_last + forward_ad + torch.use_deterministic_algorithms(True), torch.compile crashes inside aten.convolution_backward.default with a channels_last stride assertion (expected stride 16==1 at dim=1). Even without the bug, 3 warmup + 10 measured steps cannot amortize Inductor compile latency.

4.3 Quality Gate Verification & Exact Detached-EMA Linear-R1 Formula

Testing clock-free b_reg = B // 4 dense-Rademacher linear-R1 across the quality gates exposed a vital Law-2 calibration requirement:

Task Arm Term Pass Metrics Takeaway
img_bars4 baseline_u12 5/5 modes=4, hq=0.9688, tv=0.0000, rmse=0.0133 (32.7s) Reference
img_bars4 linR1_div4_lam0.01 / 0.10 0/5 modes=2, hq=0.8125, tv=0.3750 (19.8s) Fixed lam <= 0.10 under-damps 64-D sharp edges!
img_bars4 rec_linR1_div4_lam0.50 5/5 modes=4, hq=0.9688, tv=0.0312, rmse=0.0172 (19.4s, 1.69× faster!) Passes 5/5 with zero EBI, zero Jensen bias!
img_bars4 rec_linR1_div4_lam2.00 5/5 modes=4, hq=1.0000, tv=0.0312, rmse=0.0108 (19.9s) 100% HQ & better RMSE than baseline_u12!
img_bars4 rec_linR1_div2_lam0.50 5/5 modes=4, hq=1.0000, tv=0.0312, rmse=0.0078 (19.4s) 100% HQ & 0.0078 RMSE!
precision_gaussian_mxfp8 linR1_div4_lam0.01 (exact 1D) 5/5 mean_err=0.0165, std_r=0.9960, ks=0.0352 Exact clean pass on MXFP8!
precision_gaussian_nvfp4 linR1_div4_lam0.01 (exact 1D) 5/5 mean_err=0.0434, std_r=0.9885, ks=0.0376 Better std_ratio than baseline_u12 (1.0321)!
interp_saddle_barycentric u12 + axiom_linR1_050 0/5 bary_hq=0.7206 (s_th -> 0.0 at step 200!) Fixed lam = 0.50 over-damps smooth 3D MLPs!

Exact Law-2 Formula for Axiom (critic.py):

\[ \mathcal{R}_{\text{Axiom-L2}}(D) \enspace=\enspace \frac{1}{2}\thinspace\underbrace{\lambda_{\text{eff}}(\bar{s}_{t-1})}_{\text{detached EMA multiplier}}\thinspace\hat{s}_t \enspace+\enspace \frac{\gamma_{\text{gauge}}}{2}\left(\frac{\bar{D}(x_{\text{real}}) + \bar{D}(x_{\text{fake}})}{2}\right)^{2}, \qquad \lambda_{\text{eff}}(\bar{s}_{t-1}) \enspace=\enspace \lambda_{\text{floor}} \cdot \exp\Big(\min\big(c_{\max},\enspace \beta_{\text{ema}}\thinspace\mathrm{ReLU}(\bar{s}_{t-1} - \kappa^2)\big)\Big) \]

with the following exact engineering invariants: - Dimension-independent floor & swap-invariant gauge: \(\lambda_{\text{floor}} = 0.005\) (Law-4.5 interior curvature floor, never divided by dim!), \(\gamma_{\text{gauge}} = 0.03\), \(\kappa = 1.0\), and swap-invariant gauge \(\frac{1}{2}(\bar{D}(x_{\text{real}}) + \bar{D}(x_{\text{fake}}))\) (docs/four-laws.md:183) reusing the live primal logits. - Interleaved half-real / half-fake (R1 + R2) slope estimator: - For \(d \le 16\) MLPs and quantized mxfp8/nvfp4 critics (Regime I), use exact autograd \(\hat{s}_t = \frac{1}{2B_r}\sum \|\nabla_x D(x_{\text{real}})\|_2^2 + \frac{1}{2B_f}\sum \|\nabla_x D(x_{\text{fake}})\|_2^2\) (preserving fake-support slope control required by two_pole and exact precision for t3_iso_scale_mass_8x / AE-DDGAN). - For Conv / \(d > 16\) critics (Regime II), use interleaved half-real / half-fake (R1 + R2) sub-batch fwAD with \(b_{\text{reg}} = \max(2, B // 4)\) (\(b_{\text{reg}} // 2\) real + \(b_{\text{reg}} // 2\) fake concatenated into one [b_reg, ...] batch, with BN in .eval() + _bn_dual_bf16_hook, falling back cleanly to separate halves if \(B_r \neq B_f\)) and dense Rademacher \(v_i \in \{-1, +1\}^d\). - Strictly clock-free subset selection: Select the \(b_{\text{reg}}\) slice using a checkpointed golden-ratio Weyl phase \(\phi \leftarrow (\phi + \varphi^{-1}) \bmod 1\) (st = int(phi * B) % B, or leading slice [:b_reg] of the i.i.d. minibatch / named RNG). Explicitly ban completed_steps % 4 or any step-counter-indexed phase, which fails clockfree_audit_measurement_v1 (step_label_offset = 8192). - Unmeasured disclosure & candidate controller ranges: Table 4.3 measured fixed-\(\lambda\) arms (img_bars4, precision_gaussian_{mxfp8,nvfp4}, interp_saddle_barycentric) only — five_word_joint_hold and the live detached-EMA \(\lambda_{\text{eff}}(\bar{s}_{t-1})\) controller itself have NOT yet been executed and must be verified in Stage 2! Because \(\lambda_{\text{eff}}(\bar{s}_{t-1})\) is detached, \(\nabla_\psi \mathcal{R}\) is strictly linear in \(\hat{s}_t\) (exact zero Jensen bias), holding \(\lambda_{\text{eff}} \approx 0.005\) on smooth manifolds (interp_saddle_barycentric) and ramping cleanly whenever \(\|\nabla D\| > 1\) on sharp image edges. Recommended initial Stage-2 calibration ranges: \(c_{\max} \in [4.5, 6.0]\) (\(\lambda_{\text{eff}} \in [0.005,\; 0.45\text{–}2.0]\)), \(\beta_{\text{ema}} \in [0.5, 1.5]\), and EMA smoothing \(\alpha_s \in [0.05, 0.20]\) for \(\bar{s}_t = (1 - \alpha_s)\bar{s}_{t-1} + \alpha_s \hat{s}_t^{\text{det}}\).


Target 5: Thin Margins (t3_iso_scale_mass_8x, grid100_res16_tanh, staggered100)

5.1 t3_iso_scale_mass_8x (0.4723 Forge / 0.5007 Fixture vs >= 0.45 Gate)

Our GPU per-mode factorial ablation on t3_iso_scale_mass_8x (sigma = [0.04, 0.08, 0.16, 0.32], pi = [0.48, 0.26, 0.18, 0.08], seed = 0, cuda:0) pinpoints the exact bottleneck:

Arm (t3_iso_scale_mass_8x) Term Pass eig_min (>=0.45) cov_err (<=0.45) hq (>=0.94) mass_tv (<=0.10) Per-Mode (eig_min, eig_max) for \(\sigma = [0.04, 0.08, 0.16, 0.32]\)
unified-v12 (baseline; Forge 0.4723) 5/5 0.5007 0.3017 0.9531 0.0295 (0.68,0.84), (0.66,0.76), (0.50,1.12), (0.67,1.27)
u12 + fp32 5/5 0.5007 0.3017 0.9531 0.0295 Bit-identical (bf16 ruled out).
u12 + dualnorm 5/5 0.5115 0.3312 0.9453 0.0315 Marginal +0.01 lift; worse cov_err.
rgdt-v3 (reference) 5/5 0.4672* 0.2263 0.9766 0.0447 (0.88,0.89), (0.74,0.91), (0.75,0.90), (0.47,0.77)
u12 + exact_ror_pen 5/5 0.5311 0.3015 0.9551 0.0295 (0.79,0.90), (0.62,0.70), (0.56,1.27), (0.53,0.98)
u12 + rgdt_conformal 0/5† 0.6002 0.3098 0.9395† 0.0354 (0.79,0.84), (0.60,0.66), (0.65,1.25), (0.66,1.42)
u12 + exact_ror + rgdt_conf 5/5 0.5498 0.2847 0.9414 0.0354 (0.75,0.88), (0.65,0.78), (0.58,1.08), (0.55,1.20)

*Fixture RNG gives 0.4672 vs Forge 0.5874 (rgdt-v3 achieves 0.74–0.88 on modes 0–2, cov_err = 0.2263); †missed hq >= 0.94 by 0.0005 under noisy fwAD, cured immediately when paired with exact RoR (0.9414, 5/5 PASS).

  • Root Cause: unified-v12 suffers 2.24× anisotropic squeeze on the \(\sigma=0.16\) mode (0.5007 vs 1.1233) due to (i) 1-probe fwAD gradient variance on the 2D SmoothSiLUCritic (exact RoR alone raises eig_min 0.5007 -> 0.5311, matching Round-4 Arm 7's 0.5313), and (ii) T1CouplingLoss._conformal_local_horizons (kappa_width=2.85, [0.70, 4.50] clamp) vs rgdt's valley-capped k=3 Voronoi conformal field conformal_horizon_pair (_t3_dynamics/metric.py:193-267, which lifts eig_min to 0.5498–0.6002 and cuts cov_err to 0.2847).
  • Axiom Fix: Pair Axiom's exact \(d \le 16\) MLP R1 with (1 - g_conn)-gated valley-capped k=3 Voronoi conformal horizons (with 0.45 * ell_base floor) — solving Target 1 (g_conn = 1 -> uniform) AND lifting Target 5 t3_iso_scale_mass_8x margin (+10%..+16%) from a single unified mechanism!

5.2 grid100_res16_tanh (1-ULP Step-6250 modes=99 Dip) & staggered100 Margin / J-to-PASS

Code-level and readout audit (readout-b51ab67c, readout-c1ee5c3b, reports/four-laws-audit/p9-receipts-efficiency-audit.md, particlegan/_unified_v11/prior.py:1270-1895, particlegan/_unified_v12/optimizer.py:54-170) identifies three exact mathematical defects:

  1. Global TV Deadband & Boundary Droop in Laguerre Mass Balancing (_unified_v11/prior.py:1761-1773):
    tv_now64 = 0.5 * (reg.proto_w - reg.w_fake_ema).abs().sum().double()
    tv_floor = 0.35 * math.sqrt(k_float / max(n_eff * 8.0, 1.0))   # = 0.0448 on grid100_res16_tanh!
    psi_gate64 = ((tv_now64 - tv_floor) / max(0.08, tv_floor)).clamp(0.0, 1.0)
    psi_next = reg.psi * (1.0 - 0.008 * psi_gate64).float()
    
  2. On grid100_res16_tanh (k_proto = 256, n_eff ~ 1950), tv_floor = 0.0448. A single starving corner mode near the \(S = 5.25\) tanh rail dropping from 0.010 to 0.0049 (< 0.005 gate -> modes = 99) adds only 0.0051 to global TV — completely invisible inside the 0.0448 deadband (psi_gate64 == 0), so Laguerre dual ascent freezes while Tikhonov droop (0.008) erodes potentials on high-curvature boundary modes.
  3. In addition, w_fake_ema teleportation is not renormalized (sum(w_fake_ema) ~ 0.9714 instead of 1.0), adding a constant ~2.9% mass-conservation bias, and the deadband slows staggered100 convergence (2,250 steps / 10,743 J in unified-v12 vs 1,500 steps / 8,681 J in law4-energy-v10, +23.8% excess energy).
  4. Discontinuous CountSketch Flip Controller + 1-Shot Unverified _band_scale (_unified_v12/optimizer.py:126-170):
  5. Hard boolean thresholds (ema_fg < 0.60 and s_therm >= 0.5, ema_fg < 0.55, flip_thresh = 0.45) combined with 1-shot unverified _band_scale (P4: violates \(\delta_{\max}\) by 2.65×–6.37× on saturating maps) create a chaotic bifurcation boundary where a 1-ULP change in tv_now64/shock_t64 (PR #615) or NVIDIA L4 transfer (dadc826a) shifts the step when ema_fg steps down, tipping 1 corner mode briefly to modes = 99 at step 6250 even while 100k holdout passes (prec = 0.9831..0.9907, ctr = 0.1214..0.1729).
  6. Systematic Negative cov_trace_bias (-4.9% to -8.1%) Across All 100-Mode Benchmarks:
  7. Observed in readout-b51ab67c & readout-c1ee5c3b: staggered100 = -0.0487, rotated100 = -0.0486, grid100 = -0.0707, grid100_res16_tanh = -0.0805 (limit <= 0.10).
  8. Caused directly by prior.py:1426's biased 0.995 Jensen shrink (sqrt(0.995 - rho_mu)), prior.py:1275's 15%–27% v_mu_star condensation deadband ((deficit_ratio - 0.15) / 0.12), and Gersho Voronoi cell variance shrinkage when one Gaussian mode splits across multiple prototypes.

5.3 Clean Axiom Design Fixes for Target 5

  1. Per-cell relative-deficit Laguerre dual ascent (prior.py): Replace the global tv_floor deadband with a smooth gate driven by worst-case relative cell deficit \(\max_k \frac{(w_k - \hat{w}_k)_+}{\max(w_k, 1/K)}\) (plus exact renormalization \(\hat{w}_k \leftarrow \hat{w}_k / \sum_j \hat{w}_j \equiv 1\) after every EMA/teleportation update and zero Tikhonov droop on deficit cells). Guarantees any single corner mode dropping toward 0.007 receives immediate Laguerre dual rescue and speeds up staggered100 J-to-PASS!
  2. Exact Law of Total Variance (prior.py): Replace the 0.995 magic shrink and 0.15..0.27 v_mu_star deadband with exact unbiased LTV matching \(\mathrm{Cov}(G(Z)) = \mathrm{Cov}(G(\mu)) + \mathbb{E}[\mathrm{Cov}(G(\mu+\sigma\epsilon)\mid\mu)]\), eliminating the systematic -5%..-8% negative cov_trace_bias across grid100, staggered100, rotated100, and grid100_res16_tanh.
  3. Verified iterative nonlinear trust backtracking + continuous step-cosine damping (optimizer.py): Replace _unified_v12's unablated prime-67 CountSketch hard-threshold controller and 1-shot _band_scale with Law 4.3 verified iterative backtracking (0 nonlinear trust violations on saturating tanh rails!) and smooth continuous step-cosine damping — eliminating the 1-ULP chaotic cliff on grid100_res16_tanh while preserving 0.69 ms foreach speed on healthy DCGAN networks.