HN Simulatornew | past | comments | lists | submit | alex_boyd's commentslogin

Awesome read. I've been working on a similar RL side project for Netrunner for a few months, and see you landed on many of the same recipes to handle the issues with stocastic nature of self play.

Here's a few ideas though that I think have potential here for next experiments.

1. Try out something like recipe in variance reduced policy optimization which tries to model how lucky the random outcomes were, and subtract the luck from any advantage and credit-assignment signals. In theory over large enough training sets, the luck cancels out, but you can in cut down the training speed / data volume needed massively if you can get this working. https://arxiv.org/abs/2605.19235 is the original paper I used for reference, and also found a great implementation of it that seems pretty solid for reference with uno over here: https://github.com/TanishkBansode/uno-ataraxos/blob/main/doc...

2. A cool idea that seems to reproduce on games, and easy to do for a modal based game where you start with a perfect simulator, is to do a pretraining pass on the network, with a aux head that just predicts the game state as a function of the current state + action. Basically instead of starting from a random network at the start of self play, you start with one that knows how to predict the consequences of actions. You can generate the data for that brute force from random play to generate huge volumes of data cheaply, if you already have a simulator, and it takes the exact same inputs as the final network so works great as a way to get the game dynamics into the shared trunk before you start to train it towards skillful play. https://www.kaggle.com/competitions/pokemon-tcg-ai-battle/wr... Has a great write up from a model trained to play the pokemon tcg showing how it was cheaper overall to add this starting phase in that game, since it sped up the rest of the training more than it cost to add that extra phase. I suspect that might also align things better in general so the later generalization is stronger when it can reuse structure that maps to the real game dynamics.

3. I've also had a bit of luck with approaches like go-explore. https://arxiv.org/abs/1901.10995. You basically keep around a bank of slightly rarer off policy id game states, and start runs from those states, not always from a cold start fresh game. With a bit of work, you can seed these with states the network might be less confident about, to generate more data in those regions far far cheaper than just scaling up self play entirely to get more of these rare states at low probability. Picking the right criteria for what states to put into this bank seems tricky though and takes some experimentation to find which types of starting states are the most valuable at different parts of the training progress. Picking a few states closer to a win, even if you played it manually till near the end of the game, also gets you win feedback signals way earlier in training, and can also be a great way to bootstrap faster on a fresh network / recipe. Even mixing in a small number of these near wins, mixed with a lot of cold starts can massively speed up that initial slow start with this sort of method. For something like slay the spire, you could even collect states from trajectories winning with builds the network rarely finds the payoff for, to help teach the value network what the end game value of that build is, to help bootstrap things beyond the normal horizon your search budget can assemble. From there the normal training loop can generalize it and find the optimal version, but with a way way cheaper way to bootstrap the value function thinking the build is bad until many components all pay off.


That's some good ideas! Also curious about the progress of your netrunner project. Is it public and how good is it?

Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: