Record: 0.0498 bpb - Packed Training N-gram Artifact + Learned Weighting Gate (updated) #931
Closed
AnirudhRahul wants to merge 2 commits intoopenai:mainfrom
Closed
Conversation
added 2 commits
March 27, 2026 04:21
9 tasks
newjordan
pushed a commit
to newjordan/parameter-golf-1
that referenced
this pull request
Mar 28, 2026
Three improvements over Green v1 (baseline: sliding=1.1129, ngram9=0.4489): PR openai#931 (packed training oracle): after training, reads 2 train shards (~200M tokens) and seeds eval n-gram tables before val token openai#1. Eliminates cold-start penalty where early val chunks score with empty cache. Legal: oracle is training-data-only, eval remains single-pass causal. PR openai#900 (Dirichlet smoothing): replaces linear alpha mixing with p = (ng_count + c * neural_p) / (ctx_count + c) Count-sensitive weighting: high-count matches trust n-gram, low-count matches stay close to neural prior. No hand-tuned alpha per-order needed. NGRAM_EVAL_MIN_COUNT=1 (formula handles low counts naturally). PR openai#859 (matrix_lr): MATRIX_LR=0.03 vs 0.025 in Green — higher LR found across 79-experiment sweep to train stronger base model. Both new features are independent toggles (ARTIFACT_NGRAM, NGRAM_DIRICHLET) for A/B isolation. Co-Authored-By: Claude Sonnet 4.6 <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.
3-seed mean val_bpb = 0.04979 ± 0.00014 | 15.86 MB max total size
All within budget: training < 600s ✓, eval < 600s ✓, artifact < 16MB ✓
Summary
TTT_EPOCHS=0.Results
Current compliant 3-seed results:
TTT_EPOCHS=0TTT_EPOCHS=0TTT_EPOCHS=0Final 3-seed mean final val_bpb:
0.04979253with sample std0.00013740.Equivalent statistical view: the 99% one-sided upper confidence bound on the mean is
0.05034499BPB, so the 3-seed result supports mean BPB< 0.0504without relying on ambiguous p-value shorthand.The packed training n-gram payload is still a 32K-bucket order-2..9 cache serialized as 32-bit count tables (
2,097,152raw bytes) inside the artifact itself, so the warm-start cache loaded at eval step 0 comes directly from the submitted artifact rather than any external side input, and validation then continues causal online updates from there.Causal Inference Scheme
TTT_EPOCHS=0, so there is no backward adaptation step in the submission path.Key Changes
#880stack.Bucket-Size Ablation
In our ablations, smaller n-gram bucket sizes tended to do better for this learned-gate setup than the larger bucket sizes we tried. The 32K setting was the best practical point because it improved BPB while also making it possible to pack the training cache into the artifact and stay under the 16MB limit.
Compliance
TTT_EPOCHS=0, so there is no backward test-time adaptation in the final submission path.Reproduction