Non-record: BESE Novel Tokenizer — 38-Token Structured Alphabet + BPE, 288 Vocab, 12.9MB#973
Open
mrbese wants to merge 2 commits intoopenai:mainfrom
Open
Non-record: BESE Novel Tokenizer — 38-Token Structured Alphabet + BPE, 288 Vocab, 12.9MB#973mrbese wants to merge 2 commits intoopenai:mainfrom
mrbese wants to merge 2 commits intoopenai:mainfrom
Conversation
… BPE, 288 vocab, 12.9MB
37a8ee1 to
3be7151
Compare
- Move heapq import to module top-level (was re-imported per call) - Fix merge ID display (new_id not new_id-1) - Remove stale None check in result collection - Add error handling for missing tokenizer in runpod_v2 - Add all upstream-required fields to submission.json (hardware, training_time, compressed_model_bytes, code_bytes, etc.) Co-Authored-By: Claude Opus 4.6 <[email protected]>
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
BESE (Base-Efficient Subword Encoding) is a novel two-layer tokenizer that replaces the standard 1,024-token BPE vocabulary with a 38-token linguistically structured alphabet, then applies 250 BPE merges on top (total vocab: 288). This is the first submission to explore tokenizer-level optimization for the parameter golf challenge.
Why This Approach is Different
Every submission on the leaderboard optimizes architecture, quantization, or training — all using the default 1,024-token vocabulary. Nobody has rethought the tokenizer. BESE explores a fundamentally different axis: trading vocabulary size for model depth.
Layer 1: Structured Alphabet (38 tokens)
Layer 2: BPE on Structured Tokens (250 merges)
BPB Byte Accounting (Critical for Tokenizer Submissions)
Every BESE token maps to a known number of UTF-8 bytes. Group tokens = 0 bytes, position tokens = 1 byte, single-letter tokens = 1 byte. BPE merged tokens = sum of constituent bytes (transitive). Verified correct across ASCII, multi-byte Unicode, and emoji. See README.md in the submission folder for full details.
Why the BPB is High
Our initial pipeline could only encode 10K documents due to a Python BPE bottleneck. The model exhausted its training data immediately and cycled through the same small corpus. We've since built a fast O(N log N) BPE trainer and fixed critical training bugs (node-0 merge count corruption, stale position drift). A full-data run is pending.
What's Next
Files
Only adds
records/track_non_record_16mb/2026-03-27_BESE_NovelTokenizer_38Base_250BPE_288Vocab/containing:README.md— Detailed write-up with approach, results, byte accounting proofsubmission.json— Metadatatrain_gpt.py— Modified training script with BESE LUT supporttokenizer/— BESE constants, fast BPE trainer, base tokenizerscripts/— RunPod pipeline, shard exportrequirements.txt— Dependenciestrain_log_1xH100_data_starved.log— Training log from initial runFull source: https://github.com/mrbese/parameter-golf/tree/experiment-results