Repository navigation
feat(unified): add opt-in unified_v13 (feydy_atomic) solving both 256-byte ByteGAN stretch tasks with 0 regressions - #644
Merged
Conversation
…crete atomic targets Introduce self_coupling='feydy_atomic' (exposed via opt-in preset 'unified_v13' with zero new Recipe fields, preserving unified_v12 / DEFAULT_RECIPE bit-for-bit): 1. Scale-invariant discrete-atomic support gate (compute_discrete_atomic_gate): distinguishes finite discrete atomic targets (exact duplicate draws separated by an empty annular gap) from continuous 1D/nD densities and point masses, preventing the q75/q90 manifold gate from blinding chart discovery and orphan transport. 2. Persistent 1-stays / surplus-moves bijection ledger (update_atomic_ledger): uses exact sampled prior rows to pin closest particle(s) per chart via deterministic Hamilton quotas and route only surplus duplicates to nearest deficit charts, paired with zero-radius Born-Infeld commitment, absent-chart shielding, and non-splitting streaming charts (allow_dead_revival=False in atomic mode). 3. Scale-invariant discrete atomic thermal residual: keeps thermal cooling active while any particle is unassigned or uncrisp relative to inter-atom spacing, then cools smoothly once settled. 4. Joint BiGAN inverse codebook contraction (split_joint_table_pair, match_inverse_atomic_targets): contracts encoder codes toward each real atom's assigned latent particle code inside joint_relativistic_loss with zero extra forward passes and full checkpointing via opt_d.record. Verified on GPU 0 (seed=0): - bytegan_hypercube8: PASS 5/5 (256/256 valid unique, rms=0.0445, max=0.183) - bytegan_bigan_dictionary: PASS 5/5 (256/256 fwd/recon/enc-bij, rms=0.0041, recon_rms=0.0109) - 9/9 Forge canaries PASS (clockfree, two_pole, unused_token_hold, cover_leftover, gaussian1d_smoke, interp_sparse_arc, ring16_acquisition, img_bars4, five_word_joint_smoke) - Unit tests (incl. tests/test_unified_bytegan.py bit-exact continuation & parity), check_lint.py, check_repo_bloat.py, and experiments.forge validate all clean.
…teGAN bijection readout
This was referenced Nov 24, 2026
Merged
martyn
added a commit
that referenced
this pull request
Nov 24, 2026
Phase-2: Sync origin/develop (PR #644), CPU-only CI parity & P0-P10 consistency audit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Research Question
Can an unchanged, strictly recipe-owned global extension of
unified_v12solve both zero-sigma 256-particle discrete byte codebook stretch benchmarks (bytegan_hypercube84k steps andbytegan_bigan_dictionary6k steps) in an exact 1-to-1 bijection without editing any frozen task/adapter/scorer, addingRecipefields, breaking clock-freedom or zero-autograd.grad/SVD/eigh/pinvinvariants, or regressing any existing Tier 1–2 task or high-res Conv2d speed?Answer: Yes. Opt-in preset
unified_v13(rhbi_self_coupling="feydy_atomic", single-field delta fromunified_v12, zero newRecipefields) passes both ByteGAN benchmarks (0/2 -> 2/2PASS,5/5terminal checks each) while preserving strict0.000e+00bit-exact metric parity across all41/41matched non-ByteGAN regression tasks and zero latency/VRAM overhead ondcgan_performance_r256.Matched RTX A6000 Results (
seed = 0, Python 3.15 / PyTorch 2.15, Sourcebed1d3cdeaa7)1. Target Benchmarks: ByteGAN 256-Byte Bijection
unified-v12(Control)unified-v13(Candidate)bytegan_hypercube8(Tier 2 Stretch, 4k steps)0/5·0/24) ·valid_unique=139/256(raw=154),coll=102,vfrac=0.8555,rms=0.0875,mass_tv=0.38485/5·18/24, first pass@834) ·valid_unique=256/256(raw=256),coll=0,vfrac=1.0000,rms=0.0445,max=0.1640,mass_tv=0.0000(173.9s,15,431.8 J)bytegan_bigan_dictionary(Tier 4 Stretch, 6k steps)0/5·0/24) ·fwd=177/256,recon_exact=0/256,recon_rms=0.8769,enc_bij=152/256,enc_cyc=88/256,rms=0.14165/5·20/24, first pass@1250) ·fwd=256/256,recon_exact=256/256,recon_rms=0.0124,enc_bij=256/256,enc_cyc=256/256,enc_dist=0.0330,rms=0.0040,mass_tv=0.0000(251.6s,23,026.5 J)2. Full Matched Regression & High-Res Conv2d Summary
seed = 0)unified-v12Controlunified-v13Candidate2tasks)0 / 2PASS2 / 2PASS+2PASS,0reg43tasks: ByteGAN + 16 T1 + 24 Key T2 + r256)38 / 43PASS40 / 43PASS+2PASS,0reg44tasks)38 / 44PASS40 / 44PASS+2PASS,0reg41tasks)41 / 41bit-exact (max_abs_diff == 0.000e+00)0.000e+00driftunified-v13Suite (51tasks: all 49 T1–2 + BiGAN + r256)47 / 51PASS (0ERROR / TIMEOUT / BLOCKED)7/7extra T2 PASSdcgan_performance_r25641.11 ms(p95 42.77,1147.65 MiBalloc /1188.00 MiBres,536.4 J)39.94 ms(p95 40.63,1147.65 MiBalloc /1188.00 MiBres,514.2 J)-1.18 ms,0.00 MiBHonest same-cohort disclosure: On this Python 3.15 / PyTorch 2.15 RTX A6000 cohort, both matched live
unified-v12andunified-v13record bit-exact identicalFAILcurves (0.000e+00diff) onmodel_ddgan_bimodal_chain,model_ae_ddgan_bimodal_chain,interp_img_patch_shift, andinterp_saddle_barycentric.Recipe-Owned Mechanism (
particlegan/)Strictly opt-in via
rhbi_self_coupling="feydy_atomic"(get_recipe("unified_v13")), general/task-agnostic (zero hardcoded256/{-1,+1}^8/ byte constants), clock-free, deterministic, zeroautograd.grad/ SVD /eigh/pinv, and fully checkpointed viaopt_d.record:particlegan/_t1_coupling/atomic.py:compute_discrete_atomic_gate): distinguishes finiteK >= 2discrete atomic supports (exact duplicate draws separated by an empty annular gap) from continuous 1D/nD densities, manifolds, and point masses across 6+ orders of scale.update_atomic_ledger,compute_atomic_quotas): pins closest particle(s) per discovered chart under deterministic Hamilton quotas (exact unit quotas wheneverM == K) and routes only surplus duplicates to nearest deficit charts with zero-radius Born-Infeld commitment and non-splitting streaming charts.1e-6once settled.split_joint_table_pair,match_inverse_atomic_targets): contracts encoder outputsE(x)toward each real atom's assigned latent particle code insidejoint_relativistic_losswith zero extra forward passes.Scope & Governance Boundaries
DEFAULT_RECIPE = "unified_v12"andconfigs/forge/selections/family-current-v1.jsonare completely untouched (unified_v13is introduced strictly as an opt-in preset / registered Forge candidate; any future default promotion belongs in a separate calibrated promotion stage).configs/forge/tasks/*.json,benchmarks/toy_audit/*,experiments/forge/*), or historical receipts/GIFs.reports/forge/studies/unified-bytegan-bijection.md·reports/forge/studies/unified-bytegan-bijection.jsonconfigs/forge/ideas/unified-v13.json·configs/forge/studies/unified-v13-bytegan-study.json·configs/forge/studies/unified-v13-disc-stab-study.json·configs/forge/studies/unified-v13-dcgan-perf-study.jsontests/test_unified_bytegan.pyVerification Summary (Independently Audited)
python scripts/check_lint.py— PASS (294 existing findings, 0 additions)python scripts/check_repo_bloat.py— PASS (0 new violations, 302 legacy allowlisted)python -m experiments.forge validate— PASS (675 candidates, 42 families)python -m experiments.forge history --check— PASS (8927/8927valid)python -m experiments.forge compile --check— PASS (CURRENT,memory_current=true)python ops/refresh_forge_readouts.py --check --reports-only— PASS (CURRENT, stale stages: none)pytest -q(18 suites incl.tests/test_unified*.py,tests/test_forge_bytegan.py,tests/test_training.py,tests/test_dualnorm_batched_gram_parity.py, etc.) — 635 passed, 0 failedparticlegan-0.12.0-py3-none-any.whl=943,328 B(< 1.2 MB), clean roots (particlegan,particlegan_forge,.dist-info)K=17, D=5random Gaussian atoms,M=17, 800 steps):unified_v1215/17vsunified_v1317/17exact bijection.