Your browser is not supported. Please update it.

18 August 2017

OpenAI ganks Dota 2 champ, in AI videogame win – slightly hyped

The OpenAI project notched up a victory in online videogame Dota 2, pummeling the world’s best human player at The International – Dota’s global championship, with a $24m prize pool. Backer Elon Musk was quick to sing the praises of the OpenAI bot, declaring Dota 2 “vastly more complex than traditional board games likes chess and Go,” the latter being the game that Alphabet’s DeepMind made headlines in – but the victory wasn’t as one-sided as the PR makes it sound.

It comes in the same week that rival AI evangelist DeepMind announced a similar project using the StarCraft 2 videogame (see separate article), as AI developers turn to videogames as a way to train their machine-learning systems in complex pre-built models, that sometimes act as simulations of the physical world (like using Grand Theft Auto to train self-driving vehicle software).

So while videogames are typically viewed as a distraction for teenagers, they can provide a framework for developers to exploit. Their competitive online communities act as valuable supplies of training data that can be used, and when it comes to testing an AI, it’s hard to think of a better demographic than nerd-leaning gamers who are looking for bragging rights.

The first OpenAI challenger, a 27-year-old Ukrainian going by the name Dendi, was beaten in the best-of-three format, playing on-stage in front of The International’s crowd. He said that the bot was ‘scary,’ sentiments that were shared by two other pro-gamers that OpenAI beat earlier (SumaiL and Arteezy). But once the challenge was opened up to other gamers, the humans went to work, finding ways to trick the computer.

OpenAI was launched in December 2015, with around $1bn in funding contributed by Musk and Peter Thiel, alongside notable researchers and scientists in the field, with AWS, Infosys, and YC Research as commercial backers. The OpenAI objective is to create a safe Artificial General Intelligence (AGI), with the main focus being ensuring that the AI can’t act in a manner that is harmful to humans – something that Musk is vocally concerned about.

It’s important to note that a 1v1 match in this particular game is not the standard format – as Dota and most similar games use 5 players on each team. Additional human players may well have better handled the OpenAI bot, especially in a situation where they were first exposed to it – unlike poor Dendi, who appeared to be on the back-foot at all times.

So while Musk is correct in that simulating a game of Dota 2 is much more complex than Go, to claim that the system is essentially the best Dota 2 player in the world is disingenuous – at least until the bots are beating the best human teams in the more conventional format, and not a 1v1 match that was conveniently well-positioned to generate some great publicity for OpenAI.

And in its current guise, other challengers that wanted to take a crack at OpenAI’s bot found ways to do so, even in the 1v1 format. Imperfect information is also at play here, in a game more akin to Battleships, than chess – a perfect information game in which all players can see all the pieces in play. Later in the day, around 50 gamers managed to defeat the system, which it should be reiterated is not playing Dota 2 in the same manner as humans, as it has access to the game’s API – in order to understand the position of objects in the environment.

So while we have some criticisms of the event’s branding (unconventional format, long list of rules, character limitations), we are not saying that the bot is a dud. Over time, it will learn to adapt to anything it faces, and we don’t doubt OpenAI’s ability to tweak the formula and create a team of these bots that would wipe the floor with the best 5v5 teams playing Dota2. Had OpenAI waited a year or so, it could have launched with a claim in this manner, almost indisputable, and silenced its critics.

Instead, some first-hand accounts make the bot sound a little confused. Reddit user menohaxor provided his account of beating the bot, in a strategy that boiled down to making the bot chase him in a conga line around the arena instead of protecting the tower objective – noting that “for some reason it can’t really decide between chasing you or defending the tower. So after about 5 minutes of doing this, your creep waves will eventually destroy the tower, and you win the 1v1.”

Thanks to the wonders of machine-learning, OpenAI should find that its system adapts to these strategies – meaning that humans shouldn’t be able to exploit that weakness again. The system doesn’t really understand how to tackle a new situation, and in this specific scenario, it didn’t seem to have been coded correctly to prioritize protecting the objective.

This seems to be the fault of its training regime – where OpenAI essentially matched two versions of the bot against each other, and later collated the newly learned abilities. The humans that were able to beat the bot at The International were mostly relying on the system encountering something it hadn’t seen before, and reacting poorly to it. In theory, it won’t make that mistake again.

The bots were pitted against each other over two weeks of “real-time” training time, which scales into millions of hours when you factor in the accelerated playing time available to the bots (where hours of game time can be played in seconds inside the simulation).

It wasn’t given a set of rules, it was essentially playing via random movements and actions and then through a series of small improvements, it eventually learns the more intricate tactics – playing the equivalent of multiple lifetimes of games, exploring all manner of strategies, through trial and error, learning how something works, but not so much why it worked. However, it hadn’t encountered some of the weirder and unorthodox strategies that challengers came up with.

Another factor in the bot’s favor was the use of only one of the playable characters. Dota 2 has 113 characters that can be selected, each with a number of unique abilities. Once you factor in other game items (power-ups), the number of variables rockets – compounding the difficulty for humans. OpenAI chose to focus on just a single character, in its learning and the challenge, which apparently used only that self-play method, and not imitation learning or tree search.

The next step for OpenAI is developing a team of bots, to take part in the 5v5 matches – although that should be relatively straightforward, the team might find the teammate communications tricky, as humans are typically speaking to each other to coordinate, and they will need to find a way to replicate that in order to keep the matches with humans ‘fair.’ On-stage, OpenAI said it planned to return to The International next year, for the 5v5.