OpenAI Five explained

OpenAI Five is a computer program by OpenAI that plays the five-on-five video game Dota 2. Its first public appearance occurred in 2017, where it was demonstrated in a live one-on-one game against the professional player Dendi, who lost to it. The following year, the system had advanced to the point of performing as a full team of five, and began playing against and showing the capability to defeat professional teams.

By choosing a game as complex as Dota 2 to study machine learning, OpenAI thought they could more accurately capture the unpredictability and continuity seen in the real world, thus constructing more general problem-solving systems. The algorithms and code used by OpenAI Five were eventually borrowed by another neural network in development by the company, one which controlled a physical robotic hand. OpenAI Five has been compared to other similar cases of artificial intelligence (AI) playing against and defeating humans, such as AlphaStar in the video game StarCraft II, AlphaGo in the board game Go, Deep Blue in chess, and Watson on the television game show Jeopardy!.

History

Development on the algorithms used for the bots began in November 2016. OpenAI decided to use Dota 2, a competitive five-on-five video game, as a base due to it being popular on the live streaming platform Twitch, having native support for Linux, and had an application programming interface (API) available.[1] Before becoming a team of five, the first public demonstration occurred at The International 2017 in August, the annual premiere championship tournament for the game, where Dendi, a Ukrainian professional player, lost against an OpenAI bot in a live one-on-one matchup.[2] [3] After the match, CTO Greg Brockman explained that the bot had learned by playing against itself for two weeks of real time, and that the learning software was a step in the direction of creating software that can handle complex tasks "like being a surgeon".[4] [5] OpenAI used a methodology called reinforcement learning, as the bots learn over time by playing against itself hundreds of times a day for months, in which they are rewarded for actions such as killing an enemy and destroying towers.[6] [7]

By June 2018, the ability of the bots expanded to play together as a full team of five and were able to defeat teams of amateur and semi-professional players.[8] [9] [10] At The International 2018, OpenAI Five played in two games against professional teams, one against the Brazilian-based paiN Gaming and the other against an all-star team of former Chinese players.[11] [12] Although the bots lost both matches, OpenAI still considered it a successful venture, stating that playing against some of the best players in Dota 2 allowed them to analyze and adjust their algorithms for future games.[13] The bots' final public demonstration occurred in April 2019, where they won a best-of-three series against The International 2018 champions OG at a live event in San Francisco.[14] A four-day online event to play against the bots, open to the public, occurred the same month.[15] There, the bots played in 42,729 public games, winning 99.4% of those games.[16]

Architecture

Each OpenAI Five bot is a neural network containing a single layer with a 4096-unit LSTM[17] that observes the current game state extracted from the Dota developer's API. The neural network conducts actions via numerous possible action heads (no human data involved), and every head has meaning. For instance, the number of ticks to delay an action, what action to select – the X or Y coordinate of this action in a grid around the unit. In addition, action heads are computed independently. The AI system observes the world as a list of 20,000 numbers and takes an action by conducting a list of eight enumeration values. Also, it selects different actions and targets to understand how to encode every action and observe the world.

OpenAI Five has been developed as a general-purpose reinforcement learning training system on the "Rapid" infrastructure. Rapid consists of two layers: it spins up thousands of machines and helps them ‘talk’ to each other and a second layer runs software. By 2018, OpenAI Five had played around 180 years worth of games in reinforcement learning running on 256 GPUs and 128,000 CPU cores,[18] using Proximal Policy Optimization, a policy gradient method.[19]

Comparison chart
OpenAI 1v1 bot (2017)OpenAI Five (2018)
CPUs60,000 CPU cores on Microsoft Azure128,000 pre-emptible CPU cores on the Google Cloud Platform (GCP)
GPUs256 K80 GPUs on Azure256 P100 GPUs on the GCP
Experience collected~300 years per day~180 years per day
Size of observation~3.3kB ~36.8kB
Observations per second of gameplay107.5
Batch size8,388,608 observations1,048,576 observations
Batches per minute~20~60

Comparisons with other game AI systems

Prior to OpenAI Five, other AI versus human experiments and systems have been successfully used before, such as Jeopardy! with Watson, chess with Deep Blue, and Go with AlphaGo.[20] [21] [22] In comparison with other games that have used AI systems to play against human players, Dota 2 differs as explained below:[23]

Long run view: The bots run at 30 frames per second for an average match time of 45 minutes, which results in 80,000 ticks per game. OpenAI Five observes every fourth frame, generating 20,000 moves. By comparison, chess usually ends before 40 moves, while Go ends before 150 moves.

Partially observed state of the game: Players and their allies can only see the map directly around them. The rest of it is covered in a fog of war which hides enemies units and their movements. Thus, playing Dota 2 requires making inferences based on this incomplete data, as well as predicting what their opponent could be doing at the same time. By comparison, Chess and Go are "full-information games", as they do not hide elements from the opposing player.

Continuous action space: Each playable character in a Dota 2 game, known as a hero, can take dozens of actions that target either another unit or a position. The OpenAI Five developers allow the space into 170,000 possible actions per hero. Without counting the perpetual aspects of the game, there are an average of ~1,000 valid actions each tick. By comparison, the average number of actions in chess is 35 and 250 in Go.

Continuous observation space: Dota 2 is played on a large map with ten heroes, five on each team, along with dozens of buildings and non-player character (NPC) units. The OpenAI system observes the state of a game through developers’ bot API, as 20,000 numbers that constitute all information a human is allowed to get access to. A chess board is represented as about 70 lists, whereas a Go board has about 400 enumerations.

Reception

OpenAI Five have received acknowledgement from the AI, tech, and video game community at large. Microsoft founder Bill Gates called it a "big deal", as their victories "required teamwork and collaboration".[24] [25] Chess player Garry Kasparov, who lost against the Deep Blue AI in 1997, stated that despite their losing performance at The International 2018, the bots would eventually "get there, and sooner than expected".[26]

In a conversation with MIT Technology Review, AI experts also considered OpenAI Five system as a significant achievement, as they noted that Dota 2 was an "extremely complicated game", so even beating non-professional players was impressive.[27] PC Gamer wrote that their wins against professional players was a significant event in machine learning.[28] In contrast, Motherboard wrote that the victory was "basically cheating" due to the simplified hero pools on both sides, as well as the fact that bots were given direct access to the API, as opposed to using computer vision to interpret pixels on the screen.[29] The Verge wrote that the bots were evidence that the company's approach to reinforcement learning and its general philosophy about AI was "yielding milestones".

In 2019, DeepMind unveiled a similar bot for Starcraft II, AlphaStar. Like OpenAI Five, AlphaStar used reinforcement learning and self-play. The Verge reported that "the goal with this type of AI research is not just to crush humans in various games just to prove it can be done. Instead, it’s to prove that — with enough time, effort, and resources — sophisticated AI software can best humans at virtually any competitive cognitive challenge, be it a board game or a modern video game." They added that the DeepMind and OpenAI victories were also a testament to the power of certain uses of reinforcement learning.[30]

It was OpenAI's hope that the technology could have applications outside of the digital realm. In 2018, they were able to reuse the same reinforcement learning algorithms and training code from OpenAI Five for Dactyl, a human-like robot hand with a neural network built to manipulate physical objects.[31] In 2019, Dactyl solved the Rubik's Cube.[32]

Notes and References

  1. Web site: OpenAI. OpenAI Five . openai.com/five . 10 October 2018 . https://web.archive.org/web/20180901172612/https://openai.com/five/#timeline . 1 September 2018 . live . dmy-all.
  2. Web site: Savov . Vlad . My favorite game has been invaded by killer AI bots and Elon Musk hype . The Verge . 14 August 2017 . 25 June 2018 . https://web.archive.org/web/20180626030145/https://www.theverge.com/2017/8/14/16141938/dota-2-openai-bots-elon-musk-artificial-intelligence . 26 June 2018 . live . dmy-all .
  3. Web site: Frank. Blair Hanley. OpenAI's bot beats top Dota 2 player so badly that he quits. Venture Beat. 12 August 2017. dead. https://web.archive.org/web/20170812065202/https://venturebeat.com/2017/08/11/openais-bot-beats-top-dota-2-player-so-badly-that-he-quits/. 12 August 2017.
  4. Web site: OpenAI. Dota 2. blog.openai.com. 11 August 2017 . 12 August 2017. https://web.archive.org/web/20170811235617/https://blog.openai.com/dota-2/. 11 August 2017. live. dmy-all.
  5. Web site: OpenAI. More on Dota 2. blog.openai.com. 16 August 2017 . 16 August 2017. https://web.archive.org/web/20170816161246/https://blog.openai.com/more-on-dota-2/. 16 August 2017. live. dmy-all.
  6. Simonite . Tom . 25 June 2018 . Can Bots Outwit Humans in One of the Biggest Esports Games? . Wired . 25 June 2018 . https://web.archive.org/web/20180625213810/https://www.wired.com/story/can-bots-outwit-humans-in-one-of-the-biggest-esports-games/ . 25 June 2018 . live . dmy-all .
  7. News: Kahn . Jeremy . A Bot Backed by Elon Musk Has Made an AI Breakthrough in Video Game World . Bloomberg.com . 25 June 2018 . 27 June 2018 . https://web.archive.org/web/20180627144300/https://www.bloomberg.com/news/articles/2018-06-25/musk-backed-bot-conquers-e-gamer-teams-in-ai-breakthrough . 27 June 2018 . live . dmy-all .
  8. Web site: OpenAI . OpenAI Five Benchmark . blog.openai.com . 18 July 2018 . 25 August 2018 . https://web.archive.org/web/20180826043935/https://blog.openai.com/openai-five-benchmark/ . 26 August 2018 . live . dmy-all .
  9. Web site: Vincent . James . AI bots trained for 180 years a day to beat humans at Dota 2 . The Verge . 25 June 2018 . 25 June 2018 . https://web.archive.org/web/20180625183203/https://www.theverge.com/2018/6/25/17492918/openai-dota-2-bot-ai-five-5v5-matches . 25 June 2018 . live . dmy-all .
  10. Web site: Savov . Vlad . The OpenAI Dota 2 bots just defeated a team of former pros . The Verge . 6 August 2018 . 7 August 2018 . https://web.archive.org/web/20180807113227/https://www.theverge.com/2018/8/6/17655086/dota2-openai-bots-professional-gaming-ai . 7 August 2018 . live . dmy-all .
  11. Simonite . Tom . Pro Gamers Fend off Elon Musk-Backed AI Bots—for Now . Wired . 25 August 2018 . https://web.archive.org/web/20180824120523/https://www.wired.com/story/pro-gamers-fend-off-elon-musks-ai-bots/ . 24 August 2018 . live . dmy-all .
  12. Web site: Quach . Katyanna . Game over, machines: Humans defeat OpenAI bots once again at video games Olympics . The Register . 25 August 2018 . https://web.archive.org/web/20180825110329/https://www.theregister.co.uk/2018/08/24/openai_bots_eliminated_dota_2/ . 25 August 2018 . live . dmy-all .
  13. Web site: OpenAI . The International 2018: Results . blog.openai.com . 24 August 2018 . 25 August 2018 . https://web.archive.org/web/20180824131639/https://blog.openai.com/the-international-2018-results/ . 24 August 2018 . live . dmy-all .
  14. Web site: Wiggers . Kyle . OpenAI Five defeats professional Dota 2 team, twice . Venture Beat . 13 April 2019 . 13 April 2019 . https://web.archive.org/web/20190413210513/https://venturebeat.com/2019/04/13/openai-five-defeats-a-team-of-professional-dota-2-players/ . 13 April 2019 . live . dmy-all .
  15. News: Statt . Nick . OpenAI's Dota 2 AI steamrolls world champion e-sports team with back-to-back victories . live . 15 April 2019 . The Verge . Vox Media . 13 April 2019 . https://web.archive.org/web/20190415011925/https://www.theverge.com/2019/4/13/18309459/openai-five-dota-2-finals-ai-bot-competition-og-e-sports-the-international-champion . 15 April 2019 . dmy-all.
  16. Web site: Wiggers . Kyle . OpenAI's Dota 2 bot defeated 99.4% of players in public matches . Venture Beat . 22 April 2019 . 22 April 2019.
  17. Web site: Understanding LSTM Networks. colah's blog. 27 August 2015. https://web.archive.org/web/20170801085410/http://colah.github.io/posts/2015-08-Understanding-LSTMs/#lstm-networks. 1 August 2017. live. dmy-all.
  18. Web site: Why are AI researchers so obsessed with games?. QUARTZ. 4 August 2018 . 4 August 2018. https://web.archive.org/web/20180804131643/https://qz.com/1348177/why-are-ai-researchers-so-obsessed-with-games/. 4 August 2018. live. dmy-all.
  19. Proximal Policy Optimization Algorithms. 1707.06347. Schulman. John. Wolski. Filip. Dhariwal. Prafulla. Radford. Alec. Klimov. Oleg. cs.LG. 2017.
  20. News: IBM computer Watson wins Jeopardy clash. The Guardian. 17 February 2011. 17 February 2011. Gabbatt. Adam. https://web.archive.org/web/20130921060018/http://www.theguardian.com/technology/2011/feb/17/ibm-computer-watson-wins-jeopardy. 21 September 2013. live. dmy-all.
  21. Web site: Chess grandmaster Garry Kasparov on what happens when machines 'reach the level that is impossible for humans to compete'. Business Insider. 29 December 2017. https://web.archive.org/web/20171229122316/http://www.businessinsider.com/garry-kasparov-talks-about-artificial-intelligence-2017-12. 29 December 2017. live. dmy-all.
  22. Web site: DeepMind's Go-playing AI doesn't need human help to beat us anymore. Verge. 18 October 2017. 18 October 2017. https://web.archive.org/web/20171018195425/https://www.theverge.com/2017/10/18/16495548/deepmind-ai-go-alphago-zero-self-taught. 18 October 2017. live. dmy-all.
  23. Web site: OpenAI. OpenAI Five. blog.openai.com. 25 June 2018. 25 June 2018. https://web.archive.org/web/20180625140124/https://blog.openai.com/openai-five/. 25 June 2018. live. dmy-all.
  24. Web site: Bill Gates says gamer bots from Elon Musk-backed nonprofit are 'huge milestone' in A.I.. CNBC. 28 June 2018. 28 June 2018. https://web.archive.org/web/20180628231125/https://www.cnbc.com/2018/06/27/bill-gates-openai-robots-beating-humans-at-dota-2-is-ai-milestone.html. 28 June 2018. live. dmy-all.
  25. Web site: Bill Gates hails 'huge milestone' for AI as bots work in a team to destroy humans at video game 'Dota 2'. Business Insider. 27 June 2018. https://web.archive.org/web/20180627131504/http://www.businessinsider.com/bill-gates-hails-huge-milestone-for-ai-as-bots-beat-humans-at-dota-2-2018-6. 27 June 2018. live. dmy-all.
  26. Web site: Garry Kasparov's Twitter. 24 August 2018. 24 August 2018.
  27. Web site: Knight. Will. 25 June 2018. A team of AI algorithms just crushed humans in a complex computer game. MIT Tech Review. 25 June 2018.
  28. News: Park . Morgan . How the OpenAI Five tore apart a team of Dota 2 pros . 25 May 2020 . PC Gamer . 11 August 2018.
  29. News: Gault . Matthew . OpenAI Is Beating Humans at 'Dota 2' Because It's Basically Cheating . 25 May 2020 . Vice . 17 August 2018 . en.
  30. News: Statt . Nick . DeepMind's StarCraft 2 AI is now better than 99.8 percent of all human players . 25 May 2020 . The Verge . 30 October 2019 . en.
  31. OpenAI . Andrychowicz . Marcin . Baker . Bowen . Chociej . Maciek . Józefowicz . Rafał . McGrew . Bob . Pachocki . Jakub . Petron . Arthur . Plappert . Matthias . Powell . Glenn . Ray . Alex . Schneider . Jonas . Sidor . Szymon . Tobin . Josh . Welinder . Peter . Weng . Lilian . Zaremba . Wojciech . 2019 . Learning Dexterous In-Hand Manipulation . 1808.00177v5 . cs.LG.
  32. OpenAI . Akkaya . Ilge . Andrychowicz . Marcin . Chociej . Maciek . Litwin . Mateusz . McGrew . Bob . Petron . Arthur . Paino . Alex . Plappert . Matthias . Powell . Glenn . Ribas . Raphael . 2019 . Solving Rubik's Cube with a Robot Hand . 1910.07113v1 . cs.LG.