jaxcalibur_author said:Jaxcalibur
Hi everyone! I am excited to share a new Pokémon bot named Jaxcalibur. It only plays Gen 9 Random Battles, but it plays them extremely well. Over the past three weeks, it has spent time at #1 on the ladder and reached a peak Elo of 2557 and peak GXE of 95.3. As far as I know, it is the first AI to reach the level of top human players at Pokémon battling, albeit in a narrow format. For comparison, the strongest previous bot I'm aware of,
FoulPlay, peaked around 2341 Elo and 88 GXE, which is roughly top-50 rather than top-1.
The ladder on August 10. This was Jaxcalibur's peak Elo (but not GXE)
That said, I can't say Jaxcalibur is the world's best random battler because one human outperformed it over this time period! MichaelderBeste2 held #1 on the ladder about 50% of the time compared to Jaxcalibur's 20%, and reached a slightly higher GXE of 95.5. I am really impressed that anyone can play better than a bot trained over millions of games and simulating thousands of possibilities each turn; that is an incredible feat!
How it works
Jaxcalibur uses a neural net trained with self-play reinforcement learning combined with pUCT search, similar to
AlphaGo Zero. It is built on
poke-env and
Jax (which is where the name comes from). There is much more on how it works in the technical write-up
here.
Some observations on how it plays: it is fairly conservative, preferring safe lines over hard reads. It is especially good at endgames because it can calculate several turns ahead. I think its clearest weaknesses are an imperfect understanding of PP stalling and a tendency to become predictable in some situations.
Current status
As of August 28, Jaxcalibur has stopped searching for ladder games and will let its rating decay. However, it will still accept randbats challenges if you'd like to play against it. It can only play one battle at a time, so it might not accept your challenge right away. Jaxcalibur currently plays random battles only, but I think it could be extended to other singles formats and, with more work, to doubles battles. It can't build teams itself, but you could use self-play with different teams to evaluate which ones are strongest
The open-sourcing question
When I started this project, I was intending to fully open-source Jaxcalibur, but it's strong enough I'm now a bit worried about how this could affect the community.
The case for releasing it: for me, the biggest benefit is that others could learn from it and build on it. Strong bots could also make single-player Pokémon more challenging, serve as practice partners, and be powerful tools for team building or balancing formats.
The case against: cheating is the big one. Someone could use Jaxcalibur to climb the ladder, obtain suspect reqs, or potentially even win tournaments in a way that's hard to detect. This feels especially relevant given the recent
discussion about bots and suspect reqs. I also wonder whether easily accessible information about which teams, leads, and openings perform best would make team building less interesting.
One possible middle ground would be to release the code but not the model weights. However, for now I am holding off releasing either.
I'd love to hear what people here think: should Jaxcalibur be open-sourced? If so, what would be a responsible way to release it? Strong, widely available Pokémon bots are probably coming sooner or later. This may be a useful chance to establish some norms around how they should be released and used.
Links
Click to expand...Click to collapse...
This is incredibly impressive, but I don't really think the conclusion should be "suspect reqs are cooked now" — at least not for something like OU.
Randbats is almost the perfect environment for a bot like this. The amount of hidden information is much more constrained: the possible sets, moves, items, abilities, EV structures, etc. come from a relatively defined distribution. Once you reveal a move/item/ability, the space of possible sets can shrink very quickly.
We already see a basic version of this with tools like
Showdex. It might not know your exact set immediately, but after seeing one or two pieces of information it can narrow down what you're likely to be and calc around the dangerous possibilities. A sufficiently good bot can do the same thing probabilistically and play conservatively around the scary possibilities until it has enough information.
OU is a completely different problem.
Yes, you see all 6 Pokemon at preview, but you don't know the actual sets. You don't know the EVs, nature, item, Tera, fourth move, random tech, speed creep, defensive benchmark, lure, etc. And one deviation can matter enormously.
If the bot thinks a mon is the standard set and searches its lines based on that assumption, then suddenly finding out it's faster than expected, lives a hit it wasn't supposed to live, has an unexpected coverage move, or is some weird Tera can
invalidate an entire line.
And unlike randbats, there isn't even a permanently fixed distribution to learn.
You would need a huge amount of current metagame information/replays to build sensible priors for what sets people are actually using. Then a ban happens, or a new Pokemon drops, or the meta shifts, and those priors can change dramatically. Usage changes, EV benchmarks change, common Teras change, movesets change, and people specifically start adapting to whatever is popular.
Tournament play makes that problem even worse because people intentionally bring stuff that is
NOT standard specifically to punish what the opponent expects.
Obviously none of this means an OU bot is impossible. You could train one on massive amounts of OU data, teach it distributions over sets, make it infer sets from revealed information/damage/speed, and make it account for uncertainty rather than assuming one exact set.
But that's a substantially harder problem than what Jaxcalibur is solving here.
So to me the
scary takeaway isn't "a randbats bot got #1, therefore it can just get OU reqs."
The impressive takeaway is that you built a bot capable of playing Pokemon at an
extremely high level in a format where the
hidden-state distribution is constrained enough for this approach to work incredibly well.
Whether you can make the same thing robust enough for an open-team-building format like OU — where creativity, meta shifts and even a single unexpected move/EV benchmark can completely alter a line — is a very different question.
I'd need to actually see that demonstrated before treating OU suspect reqs as solved.
Once again, props to you for creating jaxcalibur.