Record: 0.2873 BPB — Fine-Grained N-gram Cache (65K chunks)#840
Open
quietsmile wants to merge 1 commit intoopenai:mainfrom
Open
Record: 0.2873 BPB — Fine-Grained N-gram Cache (65K chunks)#840quietsmile wants to merge 1 commit intoopenai:mainfrom
quietsmile wants to merge 1 commit intoopenai:mainfrom
Conversation
Key innovation: reduce NGRAM_EVAL_CHUNK_TOKENS from 1M to 65K. The N-gram cache updates after each chunk, so smaller chunks mean more frequent cache refreshes and richer n-gram statistics. Results (3-seed mean): 0.2873 BPB (std 0.0001) Fully legal: no pre-eval TTT, score-first N-gram only. 11L 512d GQA 8/4, MLP 3.0x, XSA-4, LeakyReLU(0.9)², BigramHash(4096), GPTQ int5, LZMA. 600s train + 405s eval. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7 tasks
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
val_bpb: 0.2873 (3-seed mean, std 0.0001) | ~13.4 MB | 8xH100 SXM | 600s train + ~405s eval
Key Innovation: Fine-Grained N-gram Chunk Updates
The single most impactful change: reducing
NGRAM_EVAL_CHUNK_TOKENSfrom 1,000,000 to 65,536.The N-gram backoff cache only updates after each chunk is fully scored. With 1M-token chunks, the first million validation tokens see an empty cache — losing enormous predictive power. With 65K-token chunks, the cache refreshes 15x more frequently, giving each subsequent chunk a much richer set of n-gram statistics to draw from.
This is purely an eval-time optimization — no training changes, no TTT, no additional compute.
3-Seed Results
Architecture
11L 512d GQA 8/4, MLP 3.0x, XSA-4, LeakyReLU(0.9)², BigramHash(4096), GPTQ int5 + LZMA.
EMA(0.997) + SWA. Parallel Muon optimizer. Perplexity-sorted shard ordering.
N-gram Cache Details
Compliance
Credits
This builds on community work:
Our novel contribution: Fine-grained chunk updates for N-gram cache (65K vs 1M), demonstrating that cache update frequency is the dominant factor in N-gram BPB.
🤖 Generated with Claude Code