Application of machine learning to monster level prediction in tabletop RPG game design
This paper demonstrates that tree-based ensemble models can effectively predict monster levels in tabletop RPGs from their attributes, offering a reliable, explainable, and human-aligned tool to assist designers in balancing adversaries.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a Game Master (GM) sitting around a table with friends, ready to tell a story where your heroes fight a terrifying dragon. But before the dice roll, you have a massive, boring job: you need to make sure that dragon isn't too strong (so the heroes don't die instantly) or too weak (so the fight is boring). In games like Pathfinder, every monster has a "Level" number that tells you exactly how tough it is. This number isn't just a guess; it's calculated from dozens of stats like strength, armor, magic spells, and how fast it can fly.
For years, game designers have had to do this math by hand or by playing the game over and over with a group of friends to see if the monster feels right. It's slow, expensive, and prone to human error.
This paper asks a simple, exciting question: Can a computer learn to do this math for us?
The Monster Recipe Book
The researchers built a giant digital library containing 6,007 different monsters from the Pathfinder Second Edition game. Think of this as a massive recipe book where every monster is a dish, and its "Level" is the difficulty rating. They didn't just look at the final rating; they fed the computer the raw ingredients: the monster's six main stats (like Strength and Dexterity), its health points, its armor, its spells, and even how many times it can resist fire or ice.
They treated this like a puzzle where the computer has to look at the ingredients and guess the difficulty rating. But there's a catch: the ratings are ordinal. This means a Level 4 monster is harder than a Level 3, but it's not necessarily "twice as hard" in a simple math sense. It's more like a ladder: you have to climb the rungs in order.
The Great Computer Showdown
To solve this, the researchers pitted 16 different types of AI against each other. It was like a tournament where some contestants were old-school math wizards (linear models), some were deep-learning neural networks (the fancy, complex ones), and others were tree-based decision makers (models that ask a series of "yes or no" questions).
They tested these AIs in two ways:
- Random Mix: Shuffling the monsters randomly between training and testing.
- Time Travel: Training on older monsters and testing on brand-new ones (simulating how a real game designer works, creating new monsters based on old ones).
The Winner: The Tree-Huggers
Here is the big surprise: The fancy neural networks lost.
Despite all the hype about deep learning, the paper found that the "tree-based ensembles" (specifically Random Forest and LightGBM) were the clear champions. These models work like a committee of decision trees. Imagine asking 100 different experts, "Is this monster strong?" and then taking a vote.
- The Result: The best models got the monster's level right 88% of the time.
- The Near-Perfect Score: If you count being off by just one level as "good enough" (which is usually fine in a game), the accuracy jumped to 99%.
- The Ranking: The models were almost perfect at sorting monsters from weakest to strongest, scoring a 0.99 on a scale where 1.0 is perfect order.
The paper explicitly argues against the idea that complex neural networks are the best tool for this specific job. They found that for this kind of "tabular" data (rows and columns of numbers), the simpler, robust tree models were more stable and accurate. The neural networks were also more "jittery," meaning their results varied more depending on which monsters they were trained on.
Why the "Time Travel" Test Matters
The researchers were smart enough to realize that if you just shuffle the data randomly, the AI might cheat by memorizing similar monsters from the future. So, they used a "Time Travel" test: they trained the AI on monsters published up to 2025 and asked it to predict monsters published in 2026.
Even with this harder test, the tree-based models held up. They showed that the AI wasn't just memorizing; it was actually learning the rules of the game. When the researchers looked under the hood (using Explainable AI), they saw the model was paying attention to the right things: high armor meant a higher level, and more powerful spells meant a higher level. It matched human intuition perfectly.
What This Means for Your Next Game
The paper concludes that machine learning is a reliable tool for game designers. It's not a magic wand that writes the story for you, but it is a super-fast calculator that can tell a designer, "Hey, if you give this goblin a fire breath and 50 more hit points, its level should probably go up from 3 to 5."
The authors are confident that these tools can help speed up the creation of new monsters, making game design less of a chore and more of a creative adventure. They didn't claim to have solved every problem in game design, but they proved that for balancing monster strength, a computer can do the heavy lifting better than a human guessing game.
In short: If you want to build a balanced monster for your tabletop game, don't ask a neural network to do the math. Ask a committee of decision trees instead—they've got the numbers down to a science.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.