Skip to content

Non-record: 1.1354 BPB — 10L TTT 22ep AdamW Cosine + LeakyReLU(0.5)² + TrigramHash - #562

Open
bigbag wants to merge 1 commit into
openai:mainfrom
bigbag:submission/10L-ttt22-leaky-relu-trigram-1.1354
Open

bigbag wants to merge 1 commit into
openai:mainfrom
bigbag:submission/10L-ttt22-leaky-relu-trigram-1.1354

Conversation

@bigbag

@bigbag bigbag commented Mar 23, 2026 •

Copy link
Copy Markdown

Summary

  • val_bpb: 1.1354 (single seed, 8xH100 SXM)
  • Artifact: 15.35 MB (under 16MB limit)
  • Training: 600s | Eval (TTT + sliding window): 603s

Techniques

Architecture (10L, 512d, GQA 8/4)

  • Value Residual (ResFormer-style layer-0 V mixing, -0.015 BPB)
  • Gated Attention (per-head sigmoid gates, -0.003 BPB)
  • XSA on last 4 layers (-0.005 BPB)
  • LeakyReLU(0.5)² activation — preserves negative gradient flow (-0.003 BPB vs ReLU²)
  • TrigramHash — extends BigramHash to 3-token context via XOR hashing into shared embedding table
  • SmearGate, LN Scale (depth-scaled residuals), U-Net skip connections

Training

Quantization

  • Mixed int5 (MLP) / int6 (attention) + zstd-22
  • 3% magnitude pruning, FP16 passthrough for embeddings

Test-Time Training (22 epochs, within eval budget)

  • AdamW (lr=0.0005, wd=0.0) with per-step cosine LR decay to 0
  • Per-layer LR groups: 3x for output projections, 0.5x for input projections
  • Batched 32 sequences per GPU, distributed gradient sync via all_reduce
  • Gradient clipping at 1.0
  • TTT time: 406s, eval time: 197s

Key Findings

  1. Batched TTT (32 seqs/GPU) is ~500x faster than chunk-based (1 seq × 256 tokens)
  2. Per-step cosine decay (not per-epoch) prevents overfitting at high epoch counts
  3. Gradient sync per step (all_reduce on grads) is critical for multi-GPU TTT — syncing parameters at the end causes divergence
  4. Per-layer LR groups compensate for uneven quantization damage (output projections are most affected)
  5. LeakyReLU(0.5)² gives consistent -0.003 BPB improvement
  6. TrigramHash reuses BigramHash's embedding table for zero extra parameters

@bigbag bigbag changed the title Record: 1.1354 BPB — 10L TTT 22ep AdamW Cosine + LeakyReLU(0.5)² + TrigramHash Non-record: 1.1354 BPB — 10L TTT 22ep AdamW Cosine + LeakyReLU(0.5)² + TrigramHash Mar 23, 2026
@bigbag
bigbag force-pushed the submission/10L-ttt22-leaky-relu-trigram-1.1354 branch 2 times, most recently from 76c6512 to 5dca5af Compare March 23, 2026 18:12
…igramHash

Architecture: 10L 512d GQA 8/4, Value Residual, Gated Attention, XSA4,
LN Scale, LeakyReLU(0.5)², TrigramHash + BigramHash (shared table),
SmearGate, SWA 27ckpts, Late QAT 0.5, int5-MLP/int6-attn + zstd-22.

TTT: 22-epoch AdamW with per-step cosine LR decay, per-layer LR groups
(3x proj, 0.5x fc), batched 32 seqs/GPU, grad sync + clip 1.0.

Result: val_bpb=1.1354, artifact=15.35MB, train=600s, eval=603s.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@bigbag
bigbag force-pushed the submission/10L-ttt22-leaky-relu-trigram-1.1354 branch from 5dca5af to c7a96b3 Compare March 23, 2026 18:13
@MatoTeziTanka

Copy link
Copy Markdown

Community Review — Non-record: 1.1354 BPB — 10L TTT 22ep AdamW Cosine + LeakyReLU(0.5)² + TrigramHash

BPB: 1.1354 | Compliance: LOOKS CLEAN — pure-neural submission, no TTT/SLOT/n-gram-cache

What I found in the code (head SHA c7a96b3a375d, file records/track_10min_16mb/2026-03-22_10L_VR_GA_XSA4_SWA_LateQAT/train_gpt.py):

Static code review found no TTT adaptation function, no SLOT optimization loop, no n-gram-cache class, and no pre-quant val-token fine-tune. The eval path uses the standard sliding-window stride-64 pattern. The submission is a pure-neural architecture iteration on the standard SP1024/SP4096/SP8192 baseline.

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

Verdict: LOOKS CLEAN.

Recommendation to @cocohearts @valerio-oai @0hq @yuzhougu-oai @notapplica: MERGE pending the usual record-track checks (3-seed validation, under-16MB artifact cap, ≤600s train + ≤600s eval on 8×H100 SXM). No compliance flags from the classification pass — this looks like a clean pure-neural iteration on the standard baseline.

Auto-classification caveat: this review was drafted by the AST-based classifier. If there's a non-standard eval mechanism (logit postprocessing, hedge mixing, etc.) that I missed because it's factored into a helper file or a non-standard function name, 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.06s, dim=512, layers=10, vocab=1024, code=63033 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