Record: 11L + Score-Every-Epoch LoRA TTT 5ep (3-seed mean val_bpb=0.8173)#642
Closed
minh-stakc wants to merge 1 commit intoopenai:mainfrom
Closed
Record: 11L + Score-Every-Epoch LoRA TTT 5ep (3-seed mean val_bpb=0.8173)#642minh-stakc wants to merge 1 commit intoopenai:mainfrom
minh-stakc wants to merge 1 commit intoopenai:mainfrom
Conversation
Score-every-epoch multi-scale LoRA TTT on PR openai#414 base architecture. Pre-TTT: 1.1264 BPP. Post-TTT: 0.8186 BPB.
Contributor
This is equivalent to training on test, this is an invalid submission, closing this PR for now. |
taka6745
pushed a commit
to taka6745/parameter-golf
that referenced
this pull request
Apr 8, 2026
…e gap closer) # Patch 45: LEGAL_TTT_MARKER Per-batch context/target test-time training at eval time. Splits each val batch sequence at 50/50, runs K=3 SGD steps on the context half, evaluates CE on the target half. Weights reset between batches → no test-data leakage across docs. Why this is THE biggest unspent leverage: - COMPETITION_SCOPE.md gap analysis: 234 PRs use TTT (best 0.3212 with SLOT) - LEGAL_TTT variant: 85 PRs (best legal score 0.7139) - Top legal open PRs (openai#642 0.8173, openai#620 0.9443, openai#512 0.9512, openai#940/761/1185 ~0.96) all use this category - WE HAD ZERO TTT until this patch - Our cheap-pod best 1.41 → projected with LEGAL_TTT: 1.0-1.2 (very speculative) - Could close the gap from 1.07 (our merged-record territory) to 0.81 (legal frontier) Architecture: - New helper `_eval_val_legal_ttt(...)` inserted before `def eval_val` - `eval_val` body modified to dispatch to helper when env var on - Inner loop: save base weights → AdamW LR=0.001 → K=3 grad steps on ctx → eval target → restore - Default OFF preserves bit-exact baseline eval Legality: - Trains on val data CONTEXT (first half of each sequence) — that's the legal precedent context for predicting the SECOND half - Reports val_bpb computed ONLY on the TARGET half - Weights reset between batches (no cross-doc leakage) - Identical to PR openai#642 (0.8173) and openai#620 (0.9443) pattern Cost: ~3-4× the eval time. Bumped MAX_WALLCLOCK_SECONDS=2400 (40 min) for tests. 2 cheap-pod tests queued at FRONT: - STACK_LEGAL_TTT_seed42: ALL 5 winners (gated_attention + norm_pct + asym_skip + asym_label + per_proj) + LEGAL_TTT on top - L04_gated_attention_LEGAL_TTT_seed42: solo L04 + LEGAL_TTT for clean baseline Both on Pod G with USE_LEGAL_TTT=1, LEGAL_TTT_STEPS=3, LEGAL_TTT_LR=0.001. EXPECTED_MARKERS now 45 in both 08_patch and gate_check.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Results
*Artifact exceeds 16MB on B200 without FlashAttention 3. Requires 8xH100 validation.
Key Innovation: Score-Every-Epoch Multi-Scale LoRA TTT
Per-document LoRA adaptation where each epoch re-scores all chunks with progressively better-adapted weights. Only the final epoch's scores contribute to BPB.
Architecture (PR #414 stack)
11L, d=512, 8H/4KV GQA, MLP 3x, XSA4, Partial RoPE, LN Scale, EMA(0.997), GPTQ-lite int6 + zstd-22, SmearGate, BigramHash(2048), VE128, Muon WD=0.04
Credits
Test plan