One man's years-long quest to train an 'unbeatable' Trackmania AI may have finally crossed the line
Years of human experience vs hours of training.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Every Friday
GamesRadar+
Your weekly update on everything you could ever want to know about the games you already love, games we know you're going to love in the near future, and tales from the communities that surround them.
Every Thursday
GTA 6 O'clock
Our special GTA 6 newsletter, with breaking news, insider info, and rumor analysis from the award-winning GTA 6 O'clock experts.
Every Friday
Knowledge
From the creators of Edge: A weekly videogame industry newsletter with analysis from expert writers, guidance from professionals, and insight into what's on the horizon.
Every Thursday
The Setup
Hardware nerds unite, sign up to our free tech newsletter for a weekly digest of the hottest new tech, the latest gadgets on the test bench, and much more.
Every Wednesday
Switch 2 Spotlight
Sign up to our new Switch 2 newsletter, where we bring you the latest talking points on Nintendo's new console each week, bring you up to date on the news, and recommend what games to play.
Every Saturday
The Watchlist
Subscribe for a weekly digest of the movie and TV news that matters, direct to your inbox. From first-look trailers, interviews, reviews and explainers, we've got you covered.
Once a month
SFX
Get sneak previews, exclusive competitions and details of special events each month!
If the constant talk about AI these days only leaves you confused then this visually satisfying video may be just the balm you need. Using a neural network and reinforcement learning, YouTuber Yosh set out on a 3 year journey to train an AI to supersede his own 17 years of Trackmania experience.
The premise is a simple one: train an AI to improve at the game and, as Yosh himself puts it, "the more it trains the better it gets". This isn't Yosh's first rodeo either: he's made previous videos experimenting with the tech and trying to create a Trackmania AI capable of beating himself. His YouTube channel has accumulated over 18 million views worldwide and sits at just under 100,000 subscribers.
The neural network is described in the video as a "mathematical tool which roughly models how a brain works", and takes in parameter data like turning rate, and speed, and then in response instructs the car what to do. The more it plays, the more data is gathered to optimise performance. Any actions taken by the AI that were predetermined as beneficial, provided it with a reward. This reinforcement learning pushed its decision making towards faster times and more efficient choices.
The venerable Trackmania is almost the perfect focus for this kind of approach: simple and clear rules on tracks and movements, combined with a trial-and-error style of play that itself is visualised by replays which can be layered atop one another. The shots of hundreds of cars attempting, failing, and learning to progress makes the whole learning process easy to understand. It is also extremely satisfying to watch.
Yosh starts the AI on a simple track and, as it begins to develop, more complex ones are introduced as well as the option to brake which initially was left out. This added braking ability was introduced to try and encourage drifting and therefore quicker times. To do this any kind of drifting was initially rewarded, which was a mistake: the AI managed to outsmart its creator and found a way to constantly drift, resulting in plentiful positive feedback for the model but a low top speed. This unintended behaviour was fixed with a simple speed requirement added in so it would only get rewarded for drifting over a certain speed.
The AI's progress is significant throughout the video and I quickly became invested on how far it could be pushed. If you want to find out if it was able to become truly unbeatable then join the millions of us who have watched it to see for yourself: and if you just want to see the man versus machine showdown, here's the timestamp.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
Dave's PC gaming journey began with an Age of the Empires 2 session so intense that it rendered the poor household PC inoperable. Then the internet came along. While in University his fascination with online video inspired him to create and share content which sparked a career as a content creator. From hit Minecraft parodies to working on a YouTube Red series, he has spent almost 10 years making videos for creators from around the world. One of his greatest achievements is a fully self-sustaining Rimworld colony, one of his greatest shames is how long he spent building it.

