RecurLoRA v2: Pass Index Embeddings + Low-Rank Adapters on SP8192 Depth Recurrence#1552
Open
Tanush1912 wants to merge 2 commits intoopenai:mainfrom
Open
RecurLoRA v2: Pass Index Embeddings + Low-Rank Adapters on SP8192 Depth Recurrence#1552Tanush1912 wants to merge 2 commits intoopenai:mainfrom
Tanush1912 wants to merge 2 commits intoopenai:mainfrom
Conversation
… stack Two novel per-pass specialization mechanisms for recurrent layers: - Pass index embeddings (3072 params): learned vectors added to hidden states before repeated execution, inspired by Universal Transformers - Rank-2 LoRA on attention (21K params): per-pass Q,K,V,O corrections Built on frontier stack: SP8192, 3-layer recurrence (layers 3-5), parallel residuals L7+, SDClip (int6 matrix/int8 embed), MuonEq-R, QK-Gain 5.25, score-first TTT. Total overhead: 48KB (0.3% of budget).
leon2k2k2k
added a commit
to leon2k2k2k/parameter-golf
that referenced
this pull request
Apr 26, 2026
Three teams proposed iteration embeddings (openai#1552, openai#1554, openai#1640) — all open, no results yet. MLP-only loop confirmed novel across all ~300 PRs scanned. Residual 1/L partially covered by frozen alpha in openai#1779 baseline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Refactoring the Hyperparameters class for v2 dropped these names but the lr_mul function and Muon LR group setup still reference them. Added back as env-overridable defaults to keep the existing code path working without rewriting the optimizer/scheduler logic. Verified end-to-end on 1xH100 SXM: 50-step smoke test runs cleanly, loss decreases (10.14 -> 7.46), all stages complete (training, EMA, compression, eval roundtrip).
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
Why this direction
The current SOTA (PR #1493, 1.0810 BPB) uses 3-layer recurrence where layers 3-5 execute identically on every pass — no mechanism distinguishes pass 1 from pass 3. This submission adds two complementary per-pass specialization mechanisms:
Together they allow shared layers to condition behavior on recurrence depth at negligible cost, without incurring the quantization error amplification that kills deeper recurrence.
Status
Implementation complete and validated:
Full training runs (3 seeds + ablations) pending compute.
Test plan