Tokenizer Fusion - Chasing top score in Parameter Golf

November 2026

Fresh off a top score on Anthropic's performance eng take-home, I wanted to see if my recent transformer work and RL experiments could nab top score in OpenAI's Parameter Golf competition.

The goal is to train the best model you can, measured by lowest bits-per-byte (BPB) -- basically a tokenizer-agnostic measure of how much uncertainty your model has per raw byte of text.

image

The constraints are:

  • 10min on 8xH100s
  • Separate 10min to evaluate
  • 16 MB for the model and code

After looking for optimization opportunities in the top entries, one top-scoring approach had an angle I could test: combining a common punctuation pattern into a single token while keeping the vocabulary the same size.

But did the model learn more from the same text because of slightly more context, or did it win because it could read more text within the time limit?

(And can I use this result either way to eke out a better score?)

The answer turned out to be a little bit of both -- across two seeds, tokenizer fusion helped even when the models trained on exactly the same articles, and the larger gain came when the fused model kept training:

image

But interestingly additional fusions performed worse despite increasing throughput efficiency, and the number of training updates with a deeper recurrent network played a key role in deciding the winner.

Where the leading entries found gains

The first thing I did was browse published entries, which spanned four broad approaches with varying tactics within each.

1) Fit more model into 16 MB

Quantization - storing each weight in fewer bits leaves room for a larger model -- with the risk being that precision-loss changes its predictions.

image

To limit damage from rounding, the authors passed 32 batches of training text through the model and measured which inputs tended to activate together -- this let them offset the error from rounding one weight by adjusting another.

Recurrence - run text through the same two middle transformer blocks a second time, essentially getting more depth from weights you only have to store once.

image

The cost here comes from training time -- each update takes more work, which makes when to start repeating layers an interesting choice: an earlier switch gives the model more practice at full depth but leaves time for fewer updates.

I actually ran some ablations here to see what might yield but they never went anywhere.

2) Squeeze more training out of ten minutes

Document packing - reduces time spent processing padding

image

Train on short sequences first - some entries trained on short sequences early (when updates were cheaper), then switched to longer context.

image

This schedule let the model learn common local patterns cheaply early on and still practice using distant clues before evaluation.

3) Leverage what the model had already read

Repeated phrases - a repeated phrase could hint at the next token -- imagine an article that keeps referring to the "Securities and Exchange Commission", after several mentions the words "Security and Exchange" give a pretty good clue to what comes next.

image

The winning entry tracked repeated token sequences, or n-grams, and raised the probability of a continuation when earlier occurrences agreed strongly enough.

The tradeoff here is every boost takes probability away from other possible tokens, in some sense this could be viewed as a hyper-local test-time adjustment.

Test-time training - taking the previous idea further: after scoring a passage the model could update a small set of adapter weights and use what it learned on the next passage.

image

But how much is the extra compute spent on updates worth beyond regular attention?

4) Burn fewer tokens on the same sentence

Token fusion - this was the approach we ultimately ran with, finding adjacent tokens that can be compressed into one to increase throughput and learning.

image

The winning tokenizer used capitalization markers so "Paris" and "paris" could share the pieces spelling the word.

In "in Paris" it spent one token on the space, and another on the capitalization marker.

image

A post-deadline entry fused that space-capitalization pair, which yielded a better score but raised questions on whether this boost was from better learning or more training.

Which idea was worth renting GPUs for?

At this point I had two ideas for improving the score:

  1. Test-time compute - let the model learn from an article while reading it
  2. Tokenizer fusion - change how text was represented so the model can read more of it during training

But before paying for GPUs, I wanted to see what I could test on my laptop.

Can infrequent training on an article opener help the model predict the rest?

We know test-time training works, but in pursuit of a higher score I wanted to see if less-frequent test-time training on an article opener would yield enough prediction advantage to merit more time and compute.

image

I took 32 Wikipedia articles and 32 Python design proposals. For each document, I started with two copies of SmolLM2-135M as a stand-in.

Both read the same opening passage, but I let one copy make a small update to its weights using those first 192 tokens:

# Score the eighth passage with the frozen model.
frozen_loss = score(model, article)[-1].mean()

# Train the adapter on the opening 192 tokens.
adapt(model, adapter_params, article[:, :192])

# Score the same eighth passage with the same context.
adapted_loss = score(model, article)[-1].mean()

Then I compared how well the two copies predicted the text one, four, and eight passages later (note: both could still see the opening and everything they'd read since, so any difference came from the weight update).

image

Eight passages later the updated model was negligibly better on Python proposals, slightly better on Wikipedia, but the gain 75% below the minimum bar we'd set for a GPU run -- so we set this aside.

What about tokenizer fusion?

The tokenizer idea was easier to picture: by fusing the space and capitalization marker as described above, we could reduce a token on every encounter, basically a form of compression.

image

I applied the published merges to the first training file, and that material went from 100 million tokens to 91.5 million, a 9% reduction, and undoing this recovered the original sequence exactly.

This clear compression gain showed a clear efficiency path and gave us a reason to rent GPUs, with two comparisons worth making:

  1. After the same amount of training time, which model predicted unseen text better?
  2. After both models had trained on the same amount of original text, did fusion still help?

Experiment 1 - Does fusion help when training time is fixed?

To compare equal time with equal text, I trained two models:

  1. a baseline
  2. a fusion model

for twenty minutes each on the same 4xH100 setup, using the same seed and articles in the same order.

When it finished a particular article (roughly ~6.35 GB into training), I saved each model, and again when the twenty minutes ran out.

image

Both were evaluated on the same 50,000 documents, and measuring loss per byte (expressed as BPB) gave them a common denominator despite using different numbers of tokens.

Fusion read 10% more text and won at twenty minutes

At twenty minutes, fusion had read 10% more text and scored 1.05524 bits per byte, ahead of the baseline's 1.05727.

But at the earlier checkpoint, where both models had read exactly the same articles, fusion's averaged weights scored substantially worse.

image

Why?

The recurrence switch + moving averages

Turns out there were two things at play:

First was a time-gated recurrence switch that triggered 7 minutes into training.

The second was our checkpoint, which was triggered not by time, but by reaching a specific article 6.35 GB into training.

image

Because fusion got to the article faster (by 7:18), after the recurrence switch it only got 66 updates.

The baseline got there slower (at 8:17), after 279 post-recurrence switch updates, more than 4x as many as the fusion model.

image

This was only exacerbated by our baseline leveraging a moving average of weights to smooth out fluctuations, meaning our fusion model had 79% of the pre-recurrence weights in the checkpoint while the baseline had only 38%.

This is likely why our fusion model scored 1.175 bits per byte, worse than the baseline's 1.132.

Both models had read the same articles, but the baseline's scored weights reflected far more training with the deeper network.

Experiment 2 - Would the halfway gap survive if both models changed depth at the same article?

If fusion fell behind because it had barely trained with the deeper network, then switching both models at the same article should shrink the gap.

So with two new seeds, I trained each model with one change: when each model finished the article at 5.66 GB of original text, the recurrence switch triggered.

We also tied learning rate (which sets the size of each weight update) to text progress instead of time-gated, so when the models reached the same article they were also at the same point in the learning-rate schedule.

image

I ran this pair twice with different random seeds, and at five points along the way saved both the live weights (the values after the latest update) and the moving average -- with the most important checkpoint being the 6.35 GB article where fusion had looked so much worse in the first experiment.

Fusion pulls ahead

With the recurrence switch tied to a specific article, both models had trained on the same stretch of text with the deeper network -- this took 256 updates for fusion and 280 for the baseline.

At 6.35 GB fusion's live weights scored slightly better in both seeds. Averaging improved both models' scores, but it helped the baseline enough to surpass fusion.

image

By the next checkpoint at 7.5 GB fusion led on both measures, confirming that aligning the schedules removed ~95% of the gap across the two seeds.

Would fusion still help after both models had settled?

This comparison still left one of our original questions open -- once both models had plenty of time using the deeper network, would fusion still help if they read exactly the same articles?

Or was it merely the ability to read more that led to gains?

To test I trained each pair of models through 12.59 GB with the schedules aligned by text.

image

Then after saving both, let each fusion model keep training on another 10% of text to represent the time-based scenario where fusion received more training thanks to its efficiency.

Training endpoint
Seed 2718
Seed 31415
Baseline after 12.59 GB
1.058063
1.058213
Fusion after the same 12.59 GB
1.057427
1.057687
Same fusion model continued to 13.85 GB
1.053531
1.053762

This answered our question: at equal text, fusion improved the score in both seeds by 0.00058 BPB on average. Continuing the train 10% improved it by another 0.00391 BPB, roughly seven times as much.

image

Decision to try a leaderboard run

To me our discoveries hinted at two possible angles for a winning run:

  1. Making the recurrence switch text-based so it started earlier with fusion
  2. Finding an additional token fusion candidate

I kicked off a 8xH100 run to establish a baseline, using the tokenizer fusion entry along with the default clock-based schedule to see how it fared with my training and evaluation setup.

image

We got a score of 1.05660 BPB as our control.

Leaderboard run #1 - Text-based recurrence switch

After running the 8xH100 setup with a text-based recurrence switch that triggered at 5.66 GB, we got a slightly improved score of 1.05658 BPB.

image

Interestingly the clock-based run began reusing layers 199.57 seconds into training, and this text-based run hit 5.66 GB and switched at 196.82 seconds, meaning we only had 3 additional seconds of training.

Similarly, the text-based run had 2,648 updates with the repeated layers, almost exactly the control's 2,653 -- which I'd call a tie.

Whether making the switch even earlier would help is an open question.

Leaderboard run #2 - Fusing a period with the next marker

The next candidate was token fusion that merged a period followed by the existing space-and-capitalization marker, as in "It rained. Paris was quiet".

Combining them saved an additional 2.25% of training tokens.

image

This model read 13.75 GB (higher, as expected), but surprisingly scored 1.05696 BPB, worse than either of the earlier runs.

Why?

My guess is asking the model to predict both a period and the capitalization marker is too big of a step for our model / data, so if I did it again I'd try a smaller optimization within the same word.

What I'd try next

From our results I'd try two things next:

  1. An earlier recurrence switch
  2. A same-word token merge

Repeat layers earlier

The two schedules on our recurrence switch run differed by less than three seconds, I'd try switching at 25% of the training budget instead of 35% to try and land a minute earlier, while keeping the learning-rate schedule and remaining recipe fixed.

image

The model would get more practice at the depth is uses for evaluation, but each of those deeper updates takes longer.

Token fusion within a word boundary

As mentioned earlier, my theory on why the period merge underperformed was because we asked too much of the model by getting it to predict both a period and capitalization marker across words.

A smaller bet would be combining the apostrophe and 's' in words like company's.

image

That specific merge would save 0.42% of tokens, so maybe I'd find a few optimizations within that family that score well on shorter runs before trying them together for a leaderboard run.

Recap

I set out to beat 1.05651 bits per byte, my best run within the competition limits scored 1.05658, with one model scoring 1.05612 but exceeding the time limits for evaluation.

image

A key part of the game is optimizing for that 10min limit, meaning there's a bound on techniques that would work well in absolute terms, but not within the constraints.

But we developed a nice process for discovering and testing -- I feel confident we could find a winning angle with enough time and compute, but following this exercise I think those resources are better spent on RL experiments or kernel fusion for the moment.