RecurLoRA v2: Pass Index Embeddings + Low-Rank Adapters on SP8192 Depth Recurrence#1552
Open
Tanush1912 wants to merge 1 commit intoopenai:mainfrom
Open
RecurLoRA v2: Pass Index Embeddings + Low-Rank Adapters on SP8192 Depth Recurrence#1552Tanush1912 wants to merge 1 commit intoopenai:mainfrom
Tanush1912 wants to merge 1 commit 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).
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