{"id":45746,"date":"2019-02-13T06:00:57","date_gmt":"2019-02-13T11:00:57","guid":{"rendered":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=45746"},"modified":"2019-02-13T05:27:17","modified_gmt":"2019-02-13T10:27:17","slug":"human-ingenuity-beats-ais-machine-precision","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=45746","title":{"rendered":"Human Ingenuity Beats AI\u2019s Machine Precision"},"content":{"rendered":"<p>My column this week talks about <a href=\"https:\/\/www.escapistmagazine.com\/v2\/2019\/02\/12\/human-ingenuity-beats-ais-machine-precision\/\">the final game between pro Starcraft II player MaNa and the AlphaStar AI<\/a>. As you&#8217;ve probably figured out from the subtle hints in the title, the human won this time around. My article talks about how MaNa won and gives some historical context<span class='snote' title='1'>In this case, me talking about games I was playing 20 years ago counts as &#8220;historical context&#8221;.<\/span> to the matchup.<\/p>\n<p>How AlphaStar was developed:<\/p>\n<p>They seeded the system with some of the basics of the game: Building a base, creating units, attacking the opponent. From there:<\/p>\n<p><!--more--><\/p>\n<ol>\n<li>Make many copies of the AI. Each of these copies is an agent.<\/li>\n<li>Randomly alter the behavior of each agent by slightly scrambling its parameters. Build units slightly sooner. Build different units. Send units to random spots on the map. Attack at different times.<\/li>\n<li>Most of these changes will be nonsense garbage, but a few will be slight improvements. To figure out which ones are best, have the agents fight each other. Part of the reason the team chose StarCraft II for this project is that Blizzard opened up its API to make it easy to connect an AI to the engine that runs the in-game rules. It&#8217;s possible to have two agents play an entire 20 minute match in just a few seconds, because you can run the game as fast as you like. The system is deterministic, so you get the exact same result at 100x speed as you do at normal speed. This means the agents can play an entire tournament worth of games in seconds. (Assuming you&#8217;ve got a beefy supercomputer to run everything on.)<\/li>\n<li>Out of the myriad of goofball malformed agents, a few will rise to the top. Keep these, and discard the rest.<\/li>\n<li>GOTO 1<\/li>\n<\/ol>\n<p>Because of this, every AlphaStar agent has experienced about 200 years worth of StarCraft games. Assuming the average game would run for 10 minutes if experienced in real time, that comes to just over 10 million games of StarCraft.<\/p>\n<p>Ten million games of practice,\u00a0just to be able to play one race against the same race on one particular map using one particular strategy. This is obviously a very brute-force way of developing AI and it doesn&#8217;t really reflect how meat-based thinking machines operate. It&#8217;s obviously much more like evolution than cognition.<\/p>\n<p>When Humans want to master a task, they don&#8217;t try random things. Instead they visualize a goal like &#8220;I want to win the game&#8221; and then try to imagine what steps they need to take to make that happen. Their guesses might be terrible or wrong, but they obviously don&#8217;t need to daydream 10 million games in their head before they come up with an idea like, &#8220;Maybe I should build more siege tanks and fewer turrets&#8221;.<\/p>\n<p>But that&#8217;s the trick, isn&#8217;t it? We don&#8217;t really know how humans do their thing, even though we&#8217;re all humans and <em>we&#8217;re doing it right now<\/em>.\u00a0AI is an amazing field and we&#8217;ve made fantastic strides. Brilliant people have worked very hard and gotten amazing results. But we&#8217;ve barely put a dent in the problem.<\/p>\n<p>Ah well. At least we got some fun StarCraft games out of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My column this week talks about the final game between pro Starcraft II player MaNa and the AlphaStar AI. As you&#8217;ve probably figured out from the subtle hints in the title, the human won this time around. My article talks about how MaNa won and gives some historical contextIn this case, me talking about games [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-45746","post","type-post","status-publish","format-standard","hentry","category-weekly-column"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/45746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45746"}],"version-history":[{"count":7,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/45746\/revisions"}],"predecessor-version":[{"id":45753,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/45746\/revisions\/45753"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}