•
18 min read

YoloYamb: Getting to a Superhuman Generalist Player

This is Part 3 of a four-part series on YoloYamb. Part 1: the original model · Part 2: Monte Carlo Tree Search · Part 3: a superhuman generalist · Part 4: testing with Yahtzee

After the MCTS debacle, I decided to forget about chasing superhuman play and just focus on getting the model to play every Yamb variant well and call it good.

Three months of training later, the multi-variant YoloYamb is now complete and averages 1,476 on the Yumbee variant, 108 points more than my iteration 1000 champion from Part 1. On Classic it averages 1,213, about 100-200 points above experienced human players. And on Pro it averages 2,536, beating my mom’s all-time record of 2,800 in 1 game out of every 25.

Getting to this superhuman, or at least expert, level required several tricks: tiny solved games, canceling out dice luck in measurement, yet more bug hunting and fixing, and borrowing GRPO and PPO techniques from LLM training.

Starting Small

Though the YoloYamb architecture supports many variants like Classic and Pro, for simplicity I only trained iteration 1000 on the Yumbee variant. This didn’t generalize well to the massive boards of Pro that regularly score over 2,000 points, and iteration 1000 played very poorly, averaging only about 1,430 points per game.

My previous post talked about the core solution to this. If I can solve a small version of Yamb exactly in a few seconds, I can create hundreds of minigames, then train the model on their solutions. With this in mind, I used Claude to build a generator that makes random minigames with only one or two columns, a random subset of rows, and various rules toggled on and off. Since each minigame is small enough to be solved exactly, the model is trained on the perfect move for every state.

This is similar to how LLMs pre-train on text. A model that only ever plays one board can get away with memorizing that board, but a model that plays hundreds of different boards has to eventually learn underlying concepts: what a row is worth given what’s left, when a column’s ordering forces a hand, how much a bonus is worth chasing, etc. Those instincts then translate to any board. Pre-training on about 490,000 states across 300+ minigames created a massive improvement across variants! Pro went from 1,430 to 1,830 and Classic from 880 to 960, while the Yumbee variant held steady, given it was already strong.

At this point, I remembered that I experimented with teaching different rule sets during my MCTS saga. I re-ran those checkpoints on Pro and found that, despite MCTS itself not working properly, one model checkpoint averaged 1,945 points on Pro. Somehow, this busted MCTS model was outperforming my new approach by 118 points.

Instead of throwing this model away, I figured I could distill it back into a unified model. So I used it to teach Pro and Classic, combining iteration 1000’s descendants to teach the Yumbee variant. With this, my Frankenstein unified network started beating every specialist, with Pro hovering around a record high of 1,966.

The Tug of War

Unfortunately, with one network now playing every variant competently, the variants soon started interfering with each other, similar to the fight between the policy and value heads I faced in Part 1.

In a controlled test, adding either Classic or the Yumbee variant to Pro’s training cost Pro about 1.4 points, and adding both cost about 3 points, even with Pro getting a ton of its own training. At first, I thought the other variants were messing with how attention routes information from dice to columns, which Pro uses very differently. But when I compared the trained models, the damage appeared spread across the shared trunk instead, with lots of small changes helping Classic while nudging Pro the wrong way.

As I wrote in Part 1, in these interference situations architecture tweaks can make a big difference. Around this time, Qwen published Qwen3.8-Flash-Next with Engram memory and looped layers were also getting some hype. So I ran an architecture bake-off with those ideas alongside basics like adding width and attention heads. Each option was evaluated on 20,000 paired games per variant. I tried to make sure all the architecture improvements roughly added the same number of parameters and the baseline got the same training time to provide a control.

change                          net gain
wider shared trunk (192->256)     +17.9
Engram memory                      +5.4
baseline (no change)               +3.4
6 attention heads instead of 4     +3.2
mixture of experts                 +2.4

Engrams were the idea I was most excited about since I figured they’d free up capacity by putting a bunch of context in a big lookup table of learned memories, keyed on dice, column, and rules. But the Engram gained only 2 points over the baseline, while spending the same number of parameters on width gained 14.

Looping the trunk was another neat idea. The core idea with looping is to run the three shared layers multiple times in a row using the same weights. With proper training, this means the model gets more thinking steps without needing more parameters. In a separate sweep, two passes beat a matched control by about 2.6 points. That’s no bigger than Engram’s gain, but it came without adding a single parameter, so I kept it. Four passes added nothing. Oddly, running it for one or three passes at test time made it much worse, though I never figured out why.

Increasing width was the all-around winner, adding a whopping 14 points. However, part of that result turned out to be an accident since a bug made the new layers train at 100x the normal learning rate, so some of the “width” gain was probably just faster learning.

The trunk eventually grew to 384 wide, about 7.1M parameters in total. I tried increasing the width further to 512 but it performed strictly worse. One key thing is I kept attention at the original 192 dimensions, projecting from the wider trunk and back up, and allowing the heads to remain as-is (4 heads of 48). This way, changes wouldn’t disturb what the model had already learned and the old weights could copy straight into the wider model, making the same moves in the beginning.

Measuring Better, Yet Again

As usual, all my improvements still hinged on measurement, and unfortunately Yamb measurement is a constant battle against luck. Two identical models playing different dice can easily differ by over 100 points a game, while the tactical improvements I was chasing were becoming tiny, less than 10 points.

The first issue was that my test games weren’t as different as I thought. Each game’s dice come from a seed number, and the engine reshuffles the dice every turn by XORing the seed with the turn number. I’d always used consecutive seeds: 1, 2, 3, and so on. The problem is that XORing small numbers gives another small number, and different pairs give the same answer. For example, 5 XOR 2 and 4 XOR 3 are both 7, so game 5’s second turn got exactly the same dice as game 4’s third turn. In my 192-game test bank, every turn of every game landed on one of just 192 dice sequences, so 97.5% of the turns were repeats of a turn from another game. Those 192 games also happened to play about 62 points easier than truly random games, with 24% more noise. Hashing the seeds fixed all of that.

The big breakthrough in measurement was actually inspired by GRPO (and classic signal processing techniques I learned in CompEng). GRPO judges each answer an LLM gives by comparing it against a group of answers to the same prompt. Answers that are better than the group’s average are considered better overall. In this same way, I wanted to judge each Yamb roll. After every roll, the critic (the value head) estimates not just how good the position is with the dice that landed, but also how good it is on average across 16 other ways that same roll could have statistically landed. The difference between the two is how “lucky” the roll was. To extract “skill”, you can subtract every roll’s luck from the raw game score. Since luck averages to exactly zero no matter how good or bad the critic is, it can’t systematically bias the result.

My first attempt using this technique measured nothing, because the test was broken (the “alternative” positions were identical to the real one, so the luck was always zero). Once I fixed it, the method came alive and crushed the dice noise so much that I needed only half as many games to reach the same confidence level on a change!

The Pile of Bugs

With a better measurement system, I got tempted and went back to trying search as a teacher. MCTS had looked many turns ahead by sampling a few random dice outcomes at each step, so its estimates were noisy. A single turn, though, is small enough to skip sampling entirely: you roll up to three times, and five dice can only land in 252 distinct ways. So I used Claude to build a “turn solver”, which calculates all possible holds after a roll, every way rerolled dice can land, etc. and then asks the critic how good each resulting board position is, effectively finding the exact best play for that turn.

The model then simply trains to copy the turn solver’s choices and a feedback loop forms: a better model makes a better critic, which makes the turn solver a better teacher, which makes a better model, and so on.

This loop didn’t work at first, so I audited every piece of the codebase again, suspecting hidden bugs. I was right:

  • Target clipping. The value head’s bins topped out at 1,500 points, a leftover from when YoloYamb only played the Yumbee variant. The problem is Pro openings average about 1,990 points still to go, so 28% of Pro training targets were getting clipped. Even some Yumbee variant tails were getting clipped. After raising the cap to 2,700, the teacher beat the raw model by about 134 points on Pro.

  • Data leakage. The tools that estimated how good each move was replayed the game’s real next turn every time. The same clairvoyance bug from before was back!

  • Seed overlap. A new self-play path brought back the consecutive-seed bug. In 200 Pro games of 104 turns each, 98.8% of dice rolls were repeats. Luckily, I caught this one after a single iteration.

With those fixed, the loop finally worked! The first generation beat its parent by 53 points on Pro, measured over 600 paired games. After a few days of training the raw model was up 142 points on Pro and had surpassed its search teacher.

Unfortunately, it was at this point that it suddenly started regressing by about 3 points per iteration. After much investigation, I found the problem. The critic learned from self-play games, which include random exploration. But play with exploration enabled scores about 175 points worse than the model at full strength, so the critic was valuing positions based on a sloppier player. Retraining the critic on the model’s best play fixed it. By late September, the champion reached about 2,333 on Pro and matched every search teacher I had, so no further learning was possible.

PPO, Like an LLM

I was running out of ideas for new teachers, since the model was already quite good. So I turned to another LLM-inspired idea: PPO (Proximal Policy Optimization).

The key idea behind PPO is that it doesn’t need a teacher. The model plays games, and then moves that led to better-than-expected scores are made more likely going forward, while worse ones are made less likely. As with distillation, a KL penalty keeps it from drifting too far from the starting model. For Yamb, the reward is just the actual points scored. The critic provides the baseline for what was expected.

The catch with using PPO in Yamb is that naively chasing “better than expected” games would be chasing pure luck, like a gambler. I had to figure out a way to remove the luck element. Conveniently, I had already built the exact tool for this when I needed cleaner measurements earlier!

By feeding PPO projections of luck-adjusted scores instead of raw game scores, I unlocked a whole new level of play. Here’s the first head-to-head, run on the same dice:

                         Pro            Classic
plain PPO              -1.4 ± 4.7      +5.2 ± 3.9
luck-adjusted PPO     +10.3 ± 4.8      +8.3 ± 3.6

Where vanilla PPO learned noise, luck-adjusted PPO started climbing and climbing and climbing. Within 24 cycles it was 42 points better on Pro. Soon after, it hit highs of 2,455 on Pro and 1,439 on the Yumbee variant.

There were plenty of bugs along the way, of course. For a while, every PPO segment replayed the same dice, because the seed didn’t properly reset. The gains still held up on fresh dice, but the model had been practicing on far fewer games than I thought. The model also changed its moves around 10% of the time when I simply shuffled the order of the dice, which makes no sense. I fixed that by training it to give the same answer regardless of dice order, which brought the move changes down to 0.7%.

The other training unlock was increasing game speed. Every move in a training game needs the network to pick a move and then the game engine to make that move. The engine, written in plain Python, had become the bottleneck, requiring 45 ms per move for a batch of games. I had Claude rewrite it to run on the GPU next to the network, which dropped moves to a near-instant 1.5 ms. Playing 5,000 Pro games went down to just 90 seconds, enabling me to 4x the amount of games for PPO.

At the start of November, YoloYamb crossed 2,500 on Pro in a pre-registered test of 5,000 fresh games. This time the spectacular number survived the measurement. A few more rounds later, I called it. The model was at its limits: an ensemble of its best checkpoints could barely beat it and trying 1,024 playouts of each top candidate move literally couldn’t find any better move. If there was more juice to squeeze, it would be extremely difficult and I was kind of over it.

Where It Ended Up

The final v4 model is the same basic architecture as v3.3, which powered iteration 1000. The shared trunk is twice as wide and runs twice with the same weights.

The YoloYamb v4 architecture with 7.1M parameters: same tokenizer and heads as version 3.3, with the shared trunk projected from 192 to 384 dimensions, run twice with the same weights, then projected back to 192, followed by four-layer policy and value branches and a value head spanning 0 to 2,700 points

Average score and middle 80% of games for every champion since iteration 1000, in order, in three panels. Pro rises from 1,435 to 2,536, mostly in two jumps: minigame pre-training in late August and the ratchet after the bug fixes in late September, then steadily under PPO. Classic rises from 876 to 1,213, passing the Ljubljana study's experienced humans at 1,045. The Yumbee variant stays flat near 1,370 until PPO starts in late September, then climbs to 1,476, passing the clairvoyant MCTS at 1,383

Pre-training on minigames and better teachers fixed Pro and Classic, but did nothing for the Yumbee variant, since iteration 1000 already played extremely well. PPO was able to push all three variants much further. The grey branches are various dead ends: the MCTS model went nowhere, the blunder fixes earned a small gain on full Yumbee games but made the model worse on the solved minigames, so they weren’t a good base for a generalist, and two later single-variant specialists (that I intended to distill) never did better than the all-rounder.

                    iteration 1000     final
Yumbee variant          1,368          1,476
Classic                   876          1,213
Pro                     1,435          2,536

Averages can hide what changed game to game, but distributions make things clearer:

Histograms of single-game scores for iteration 1000 and the final model on Pro, Classic, and the Yumbee variant. The whole distribution shifts right on every variant. Pro games of 2,800 or more go from 0% to 3.8%, Classic games of 1,300 or more from 0% to 20.9%, and Yumbee games of 1,600 or more from 2.8% to 15.6%

The whole distribution moved up, not just the average. On the Yumbee variant, the worst 1% of games and the best 1% both went up by about 100 points. The biggest change is in the tail end: 1,600-point monsters used to be rare, about 1 in 36 games, and now they’re closer to 1 in 6.

Here’s what 10,000 games of the final model look like on each variant:

                  worst    bottom 1%    median    top 1%     best
Yumbee variant      951      1,177       1,475     1,757    1,996
Classic             766        944       1,213     1,454    1,583
Pro               1,926      2,143       2,537     2,870    3,051

On the Yumbee variant, the latest model beats iteration 1000 by 108.4 ± 1.8 points and scores higher on 81% of the same dice. Funnily enough, that’s also 93 points higher than the MCTS model from my last post, which could literally see the future due to a bug. The model’s best game hit an incredible 1,996.

On Classic, a typical game is 1,213 and only 1 in 100 games drops below 944. 1 in 10 games beats 1,348, which would be an exceptionally strong game for a human.

On Pro, its worst game out of 10,000 was 1,926, far above the 1,435 from iteration 1000. Half its games clear 2,537, it beats mom’s 2,800 about 1 in 25 games, and its best ever score was a whopping 3,051.

YoloYamb’s strength also isn’t limited to the three presets. Yumbee lets you play custom games and YoloYamb can play strongly across all of them. Minigame pre-training and mixed-variant training are what make this work: the model learned the game from hundreds of different boards, so a new combination is no big deal.

How It Compares

I still don’t fully know where YoloYamb sits compared to humans and theoretically optimal play. Unlike chess or Go, Yamb has no leaderboards, so it’s hard to decisively prove it’s superhuman, though I strongly suspect it is.

Despite extensive searching, the only academic work on Yamb seems to be from the University of Ljubljana. In a 2025 paper, researchers pitted PPO, AlphaZero, ChatGPT, and three experienced human players against each other. Their version of Yamb is the same layout as Yumbee’s Classic variant:

experienced humans (3 players)    1,045
PPO                                 865
AlphaZero                           807
ChatGPT-5-mini (10 games)           740
YoloYamb on Classic               1,213

The rules don’t match exactly and their AlphaZero trained on only 400 games, so the two are slightly different. Still, the paper implies YoloYamb’s Classic play is about 170 points above experienced humans, bracketed around 1,000-1,300. YoloYamb’s best Classic game, 1,583, is nearly 300 points higher.

What It Cost

All training for YoloYamb ran on a single RTX 4090. Adding up every training job since starting in the spring:

                                   job-hours     games
final model's lineage                 ~645       ~3.0M
  iteration 1000 (March)               208
  minigames to ratchet (Aug-Sep)        75
  luck-adjusted PPO (Sep-Nov)          360
dead ends                           ~2,000       ~2.0M
  self-play outside the lineage      1,300
  PPO runs I didn't keep               530
  supervised experiments           150-300
total                               ~2,600         ~5M

In total, I spent about 2,600 hours on training, not counting evaluation, though some jobs shared the GPU. Only about a quarter went into the final model’s lineage though, with the rest burned on the MCTS saga, abandoned branches, and many A/B tests that didn’t pan out.

For scale, AlphaZero’s chess run played 44 million games in about 9 hours on 5,000 TPUs, plus more for training the network. Of course, the hardware and games are very different, but it’s still shocking to me that I was able to get YoloYamb to this level on one consumer GPU in my house.

I’m working on getting the new model live on Yumbee so you can play it, should be any day now. What a fun ride!