SP8192 + 4-Layer Depth Recurrence (loop_end=6)#1678
Open
tashapais wants to merge 2 commits intoopenai:mainfrom
Open
SP8192 + 4-Layer Depth Recurrence (loop_end=6)#1678tashapais wants to merge 2 commits intoopenai:mainfrom
tashapais wants to merge 2 commits intoopenai:mainfrom
Conversation
Extends the SOTA 3-layer depth recurrence to 4 layers by setting LOOP_END=6 (was 5), creating 19 virtual layers from 11 physical instead of 17. Total layer-step compute budget is identical (~77,350). Also absorbs QK_GAIN_INIT=5.25 as the script default (was passed as an env var in the prior SOTA submission). Results pending on 8xA100 hardware.
- test_architecture.py: CPU-only PyTorch test verifying forward pass, gradient flow, and virtual layer structure for both SOTA and 4-layer configs; all checks pass locally - README: add virtual layer diagrams, skip-connection table, compute budget equivalence analysis, and verified test output
leon2k2k2k
added a commit
to leon2k2k2k/parameter-golf
that referenced
this pull request
Apr 20, 2026
… candidates User shared a deep timeline of all recurrence experiments in the PG competition (openai#8 through openai#1739). Several of my previously-proposed experiments have ALREADY BEEN TESTED ON THIS STACK and shown to fail: KILLED: - Timing sweep earlier: openai#1726 showed 0.15 is +0.050 worse; openai#1739 showed step-0 catastrophic (1.3936 bpb) - Progressive ramp: openai#1663 showed hard-onset = smooth, no difference - Position shift: openai#1726 showed layer 2-7 +0.163 worse, layer 5-6 shift +0.006 worse — layer 3-5 IS the empirical sweet spot Also corrected the baseline config: openai#1736 uses LOOP_START=3 LOOP_END=5 (three layers: 3, 4, 5 — "Loop345"), not Loop45 as directory name suggests. 3 layers × 3 passes = 17 virtual layers. VIABLE candidates: - Recur-Alpha (openai#1714, Anakintano): learnable scalar per looped block, init 0 → identity. 6 params. Author's grant ran out before TTT eval so composition with openai#1736's phased TTT is genuinely open. NEW TOP PICK. - Cross-pass XSA: still novel, untested in any PR - Loop3-6 variant (openai#1678): tashapais running it; might wait for result Recommendation updated: port Recur-Alpha onto openai#1736 as spec 015. ~$25, identity-at-init (safe), 30 LOC, direct recurrence question. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Summary
Extends the current SOTA (val_bpb=1.0810, PR #1509) by widening depth recurrence from 3 looped layers to 4 (
LOOP_END=6). All other hyperparameters and techniques are unchanged.The only code change from SOTA:
Architecture
Virtual layer sequences
SOTA (loop_end=5) — 17 virtual layers, 8 U-Net skips:
This PR (loop_end=6) — 19 virtual layers, 9 U-Net skips:
Layer 6 is promoted from the non-recurring post-loop section into the recurrence core. It now executes 3 times (like layers 3, 4, 5) instead of once. The 4-layer loop also adds one new U-Net skip connection (9 vs 8 pairs).
Compute Budget Equivalence
The 4-layer loop is slower per step but the total layer-step budget is identical:
Prior depth-recurrence results show monotonic improvement with virtual depth at equal compute:
Local Verification
test_architecture.pyvalidates both configs on CPU (no CUDA, no flash_attn, standard PyTorch only):Reproduction
No extra env vars —
QK_GAIN_INIT=5.25andLOOP_END=6are now script defaults.Results pending on 8xA100 hardware.
Test plan