Skip to content

Record: [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227 - #1182

Open
adityakm24 wants to merge 1 commit into
openai:mainfrom
adityakm24:submission/run36-1.1227
Open

adityakm24 wants to merge 1 commit into
openai:mainfrom
adityakm24:submission/run36-1.1227

Conversation

@adityakm24

@adityakm24 adityakm24 commented Mar 31, 2026 •

Copy link
Copy Markdown

Summary

  • 11-layer parameter-banking GPT with XSA on 7 layers, BigramHash(2048×96) + TrigramHash(1024×128), ValueResidual, ValueEmbedding at layers 5/9/10, LeakyReLU(0.5)², int6+lzma compression, and legal score-first TTT
  • Best run: val_bpb=1.12265 (legal TTT), val_bpb=1.12468 (sliding window stride=64)
  • 3-seed mean: val_bpb=1.12327 ± 0.00082
  • Artifact: 15,944,685 bytes (under 16,000,000 cap)
  • Training: 600s on 8×H100 SXM (~90.8 ms/step, 6,487 steps)
  • Evaluation: <600s (quant roundtrip ~90s + sliding window ~300s + TTT ~475s)

3-Seed Evidence

Seed Steps legal_ttt_val_bpb final_val_bpb (sliding window)
1337 6,487 1.12265 1.12468
2025 6,547 1.12295 1.12514
27182 6,281 1.12421 1.12616
Mean 1.12327 1.12533
Std 0.00082 0.00075

Submission Checklist

  • One new folder under records/track_10min_16mb/
  • Included README.md
  • Included submission.json
  • Included train_gpt.py
  • Included train.log
  • Artifact ≤ 16,000,000 bytes (15,944,685)
  • Training completes in <600s on 8×H100 SXM (600,069 ms)
  • Evaluation completes in <600s on 8×H100 SXM
  • Legal score-first TTT (no two-pass full-rescore leakage)
  • No tokenizer/dataset modifications
  • 3-seed statistical evidence provided
  • No other files modified

Key Techniques

  • Flash Attention 3 (Hopper kernel) for ~90ms/step
  • Parallel Muon optimizer with parameter banking and batched Newton-Schulz
  • Cross-Sequence Attention (XSA) on last 7 layers
  • BigramHash + TrigramHash n-gram hash embeddings
  • Value Residual (ResFormer-style) connections
  • Value Embedding token identity reinjection
  • SWA + EMA + Late QAT for quantization-friendly convergence
  • Legal score-first TTT with SGD (lr=0.002, 4 epochs, all blocks unfrozen)

11-layer parameter-banking GPT with XSA on 7 layers, BigramHash(2048),
TrigramHash(1024), ValueResidual, ValueEmbedding, int6+lzma compression,
and legal score-first TTT. 3-seed mean val_bpb=1.12327 on 8xH100 under
600s training + 600s eval budget. Artifact size 15,944,685 bytes.

Made-with: Cursor
@adityakm24 adityakm24 changed the title [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227 RECORD [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227 Mar 31, 2026
@adityakm24 adityakm24 changed the title RECORD [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227 Record: [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227 Mar 31, 2026
@MatoTeziTanka

Copy link
Copy Markdown

Community Review — Record: [track_10min_16mb] XSA7 + BigramHash + ValueResidual + Legal TTT — val_bpb=1.1227

BPB: 1.1227 | Compliance: LOOKS CLEAN — score-first-per-chunk TTT (legal #1416/#1423 pattern)

What I found in the code (head SHA 60822cd54da0, file records/track_10min_16mb/2026-03-31_XSA7_BigramHash_ValueResidual_TTT/train_gpt.py):

The TTT path at line 1123 implements the score-first-per-chunk pattern: each chunk is scored under torch.no_grad() / inference_mode() before the base_model.train() + SGD adaptation runs on that same chunk, with an is_last_chunk guard so the final chunk gets no adaptation pass. This is the structural shape the legal frontier uses (PRs #1416 erichroepke, #1423 aryanbhosale).

Per Issue #402 and Issue #677, TTT is legal when each token is scored before the adapter updates on it, and that's what the code does here — chunk ci is scored under weights adapted only on chunks 0..ci-1. No prequant_ttt_adapt_adamw(val_tokens, ...) multi-epoch fine-tune, no scored-region SLOT, no target-in-key n-gram cache.

CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.05s, dim=512, layers=11, vocab=1024, code=91881 B, SMOKE_TEST_PASS

Verdict: LOOKS CLEAN.

Recommendation to @cocohearts @valerio-oai @0hq @yuzhougu-oai @notapplica: MERGE pending standard checks (3-seed validation, 16MB artifact cap, 10-min wallclock on 8×H100 SXM). The compliance picture matches the legal reference frontier and no flags were raised by the classification pass.

Auto-classification caveat: this review was drafted by the AST-based classifier against a template derived from manually-reviewed cluster PRs (#1420, #1450, #1487, #1541, #1529, #1533, #1518). If I've misread a subtlety in your eval path — e.g., multi-epoch TTT that I mistook for single-pass, or a target-in-key lookup I missed in a helper function — please flag it and I'll re-run the audit manually.


Reviewed by @MatoTeziTanka — The Agora. CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.05s, dim=512, layers=11, vocab=1024, code=91881 B, SMOKE_TEST_PASS. Classification via deterministic AST-based classify_prs.py (pattern bank derived from ~65 manually-reviewed PRs earlier in the 2026-04-11 sweep). This review was auto-drafted from a template and spot-checked before posting — if the template misread your code, please call it out so I can iterate the classifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants