Welcome, Guest. Please Login or Register.
Mar 29th, 2024, 4:25am

Home Home Help Help Search Search Members Members Login Login Register Register
Arimaa Forum « This is getting scary »


   Arimaa Forum
   Arimaa
   Off Topic Discussion
(Moderators: christianF, supersamu)
   This is getting scary
« Previous topic | Next topic »
Pages: 1 2  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: This is getting scary  (Read 31717 times)
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
This is getting scary
« on: Dec 10th, 2017, 1:51pm »
Quote Quote Modify Modify

A year after defeating the top Go player, the Google DeepMind project is continuing to make astonishing progress. Now they don't even need to use a database of expert games to train the AI, they just give it the rules and let it play itself to produce super human AI players. And not just for one game. The same AI can play Chess, Go and Shogi. It masters these games in a matter of hours.
 
https://goo.gl/c8RWx3
 
https://arxiv.org/pdf/1712.01815.pdf
 
If anyone is interested in reproducing these results for Arimaa and making the bot and bot generation code open source (along with a published paper describing the work), I would be willing to award a prize of $10,000. The program has to win a 10 game match against bot_Sharp2015CC to prove superior human level play.  
 
« Last Edit: Dec 17th, 2017, 7:32pm by omar » IP Logged
christianF
Forum Moderator
Forum Guru
*****



Arimaa player #4019

   


Gender: male
Posts: 804
Re: This is getting scary
« Reply #1 on: Dec 10th, 2017, 3:11pm »
Quote Quote Modify Modify

What exactly would you consider scary about these developments? I'm inclined to think your thoughts go beyond the fact that these programs can learn to play two-player strategy games - presumably all of them - on a superhuman level in a matter of days (or even less).
IP Logged
Lion
Forum Senior Member
****



Arimaa player #9500

   


Gender: male
Posts: 28
Re: This is getting scary
« Reply #2 on: Dec 11th, 2017, 8:12pm »
Quote Quote Modify Modify

Nice! I was actually seriously thinking about doing this before the new challenge was announced. Now I've got no excuse for not trying.
 
By the way, Omar, could you please post sharp_2015 (CC and other time controls) onto the bot ladder? This would be of great help -- and not just with respect to the new challenge.
IP Logged
Belteshazzar
Forum Guru
*****



Arimaa player #5094

   


Gender: male
Posts: 108
Re: This is getting scary
« Reply #3 on: Dec 17th, 2017, 2:18pm »
Quote Quote Modify Modify

on Dec 10th, 2017, 1:51pm, omar wrote:
https://www.sciencealert.com/it-took-4-hours-google-s-ai-world-s-best-chess-player-deepmind-alphazero

For some reason, in the displayed url there was a space in the word "chess", which broke the link for me.  I'm using Firefox.
 
At this rate, there could be a challenge to create a game, let AI play itself, and then defeat the AI at the game.
IP Logged
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
Re: This is getting scary
« Reply #4 on: Dec 17th, 2017, 7:29pm »
Quote Quote Modify Modify

on Dec 10th, 2017, 3:11pm, christianF wrote:
What exactly would you consider scary about these developments? I'm inclined to think your thoughts go beyond the fact that these programs can learn to play two-player strategy games - presumably all of them - on a superhuman level in a matter of days (or even less).

 
Yes, exactly. Applying this to games is a good testbed, but once the techniques and breakthroughs have been achieved, they can be applied to other problems. The scariest part for me is how fast progress is being made now and that the same neural net is being used to play multiple different games. Further progress can start us down the slippery slope of general AI. Maybe we've already started.
 
Reminds me of this article:
https://waitbutwhy.com/2015/01/artificial-intelligence-revolution-1.html  
 
 
 
IP Logged
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
Re: This is getting scary
« Reply #5 on: Dec 17th, 2017, 7:35pm »
Quote Quote Modify Modify

on Dec 17th, 2017, 2:18pm, Belteshazzar wrote:

For some reason, in the displayed url there was a space in the word "chess", which broke the link for me.  I'm using Firefox.
 
At this rate, there could be a challenge to create a game, let AI play itself, and then defeat the AI at the game.

 
Seems like the original URL was being too long and not being processed right.
 
https://www.sciencealert.com/it-took-4-hours-google-s-ai-world-s-best-ch ess-player-deepmind-alphazero
 
I have shortened it:
 
https://goo.gl/c8RWx3  
 
 
IP Logged
omar
Forum Guru
*****



Arimaa player #2

   


Gender: male
Posts: 1003
Re: This is getting scary
« Reply #6 on: Dec 17th, 2017, 7:40pm »
Quote Quote Modify Modify

on Dec 11th, 2017, 8:12pm, Lion wrote:
Nice! I was actually seriously thinking about doing this before the new challenge was announced. Now I've got no excuse for not trying.
 
By the way, Omar, could you please post sharp_2015 (CC and other time controls) onto the bot ladder? This would be of great help -- and not just with respect to the new challenge.

 
I've added Sharp2015* to the bot ladder.
IP Logged
Belteshazzar
Forum Guru
*****



Arimaa player #5094

   


Gender: male
Posts: 108
Re: This is getting scary
« Reply #7 on: Jan 5th, 2018, 7:05pm »
Quote Quote Modify Modify

on Dec 10th, 2017, 1:51pm, omar wrote:
A year after defeating the top Go player, the Google DeepMind project is continuing to make astonishing progress. Now they don't even need to use a database of expert games to train the AI, they just give it the rules and let it play itself to produce super human AI players. And not just for one game. The same AI can play Chess, Go and Shogi. It masters these games in a matter of hours.
 
https://goo.gl/c8RWx3
 
https://arxiv.org/pdf/1712.01815.pdf
 
If anyone is interested in reproducing these results for Arimaa and making the bot and bot generation code open source (along with a published paper describing the work), I would be willing to award a prize of $10,000. The program has to win a 10 game match against bot_Sharp2015CC to prove superior human level play.  
 

 
I guess I don't know enough to understand exactly what this would entail.  Giving the Arimaa rules to the same AI which has mastered the other games sounds simple enough.  But if it were, I'm sure you'd do it yourself.  
IP Logged
Lion
Forum Senior Member
****



Arimaa player #9500

   


Gender: male
Posts: 28
Re: This is getting scary
« Reply #8 on: Jan 5th, 2018, 8:40pm »
Quote Quote Modify Modify

The biggest obstacle might turn out to be hardware (computational time) ... but we shall see. I've created an account named "bot_0ArimaaZero" and plan to start working on this in a few weeks.
IP Logged
aaaa
Forum Guru
*****



Arimaa player #958

   


Posts: 768
Re: This is getting scary
« Reply #9 on: Jan 8th, 2018, 5:12pm »
Quote Quote Modify Modify

This thread should not go without a shout-out to Leela Zero, a distributed effort to replicate AlphaGo Zero. Since it's highly unlikely for any similar project for Arimaa to get anything near the same amount of computational resources, I have a hard time seeing a particularly strong Arimaa player coming into existence this way any time soon. On the other hand, it might just be within the realm of possibility to at least witness some kind of interesting evolution going on in playing behavior within a decent time scale.
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 883
Re: This is getting scary
« Reply #10 on: Jan 17th, 2018, 1:53am »
Quote Quote Modify Modify

@Omar, in original challenge you have limited computationa power by the common PC of fixed prize.
 
Don't you think about adding the simillar constraint to the new challenge?
 
The original challenge was limited by year 2020.
 
Don't you think about adding simillar constraint as well?
« Last Edit: Jan 17th, 2018, 1:54am by Hippo » IP Logged

elescondite
Forum Junior Member
**



Arimaa player #5660

   


Gender: male
Posts: 8
Re: This is getting scary
« Reply #11 on: Jan 19th, 2018, 9:40pm »
Quote Quote Modify Modify

Hi Omar, great to see that you're still interested in the development of general artificial intelligence.
 
Just FYI, some time ago I created a bot (bot_eliminator) with this kind of thing in mind.  The bot uses a set of neural networks for its evaluation function.  There are multiple levels, starting with each square of the board, which feeds into a net that evaluates quadrants, which feeds into a net that evaluates the board itself.  The neural networks were randomly initialized, and they have been playing each other using a highly modified version of the roundrobin.py script included in the AEI package.  Over a year ago I purchased a server on eBay for a little over $1000, and all it does is run this 24/7.  (For reference, it is a dual processor E5-2670 Sandy Bridge generation, 8 cores/processor, 2.6 GHz, 32 GB RAM.)  It currently plays games using a 2-ply depth search, and currently it completes approximately 130 games/hour.  It does not use any video cards at the moment, because I have not had the time to invest in incorporating CUDA support.  I did recently add AVX support, though frankly the neural networks are pretty small, and they aren't the performance bottleneck at the moment.  I have a group of 64 bots that play each round.  The top 32 get to survive and "mate", and the bottom 32 die.  Bots mate by randomly selecting groups of 32 values from one of the parent neural networks, and then adding some occasional random mutations to the values passed on.  During the mating phase, each bot randomly mates 8 times, and the 8 children then fight to the death.  The top bot out of the 8 is selected to replace one of the 32 that were killed.  This setup has been running for about 16 months now.  I have improved the performance of the software over that time from approximately 80 games/hour to the current 130.  It has been a very interesting project.
 
So, after 16 months of computing, the bot is, well, not very good… I have played it against various bots in the game room, with some interesting results at times.  I was very surprised when my bot won by immobilization, for example.  In general, it appears that the bots have evolved to try to bottle up their opponent, which isn't all that effective against a reasonable player.  I am assuming that over time the bots will evolve better strategies, but the evolution time appears to be an enormous.  Some better techniques are needed.
 
The Google AlphaZero engine is based on a Monte Carlo approach, I believe, and I think that technique has more promise than I originally thought.  In essence, their approach tries to pick the best move, rather than trying to pick the best board.  It's a minor distinction, but pretty important one in that focusing on the best move automatically prioritizes your search order, as opposed to my case where I have to discover "killer moves" to try to optimize pruning.  Based on the limited reading I have done about bot_Sharp, I believe lightvector put quite a bit of work in identifying promising moves.  This really is the key to strengthening play.  The quicker an algorithm can identify promising lines, the more effective pruning will be.
 
I wish I had more time to devote to this.  Unfortunately, I have a day job that demands my attention… Smiley Still, I am trying to accomplish exactly what you are proposing.  I think Arimaa provides an interesting challenge, because I think it is probably more resistant to the Monte Carlo approach used by AlphaZero.  Of course, that was originally the case for chess, and they have clearly overcome some of the limitations.  They are not exactly using desktop hardware at the moment for their bot, either.  They have developed custom ASICs that process their neural networks even faster than standard video cards.  Still, I suspect that this technology will become more commonplace over the next 10 years, so I don't really hold that against them.  But it does mean that a six-year-old used server is at a unique disadvantage when trying to compete with AlphaZero.
 
I do intend to make modifications and keep trying.  If I get anywhere with it, you'll be the first to know.
 
Lance
IP Logged
Lion
Forum Senior Member
****



Arimaa player #9500

   


Gender: male
Posts: 28
Re: This is getting scary
« Reply #12 on: Jan 20th, 2018, 2:38pm »
Quote Quote Modify Modify

Great info. Thanks for sharing. How many games in total has the bot played against itself?
IP Logged
elescondite
Forum Junior Member
**



Arimaa player #5660

   


Gender: male
Posts: 8
Re: This is getting scary
« Reply #13 on: Jan 20th, 2018, 11:35pm »
Quote Quote Modify Modify

I don't actually know the exact number of games played, though I can estimate.  Each round of 64 can require a total of 2016 games to complete, though I have modified the script to continually keep a tally of wins and losses, and schedule winning bots to play subsequent games.  The script plays 32 games simultaneously, one for each hyperthread in the system.  Obviously some games finish quickly, and others will go on forever if you let it.  I set an upper time limit of 60 minutes for each of these games, and then choose the winner on whichever bot has the most pieces, regardless of their "value".  (I wanted to avoid injecting my valuation of the pieces.)  As the top bots play, the bottom ones get games only to allow the top bots to complete the round.  As the bottom bots accumulate losses, they eventually have too many losses to make it into the top 32.  When the top 32 bots have been established and it is numerically impossible for it to change, the script concludes the round, avoiding playing unnecessary games.  It seemed like a great idea when I wrote it, but in reality it doesn't generally save that many games during the round of 64.  For example, I just checked and the last round played 1999 games, avoiding 17 out of 2016.  So, not a real big deal… But it does help during the next part.  The eight offspring of each bot fight to the death.  That's 28 games if they must all be played, but if one bot dominates quickly, several games can be avoided each round.  (Note that each of these games gets two threads, and 16 simultaneous games are played, to keep the processors loaded.)  Sometimes a bot dominates, and sometimes it doesn't, but I'm going to estimate that on average 20 games get played.  So that's 32 offspring times 20 games on average, or 640 games during the "reproduction" phase.  Add the 2000 for the combat round, and that's 2640 on average per generation.  I haven't kept close track, but I believe there have been a little over 300 generations over the past 16 months.  (I have things sped up a little bit now, and now I'm getting a generation every 23 hours or so.  It used to be a little over 36 hours.)  So that math works out to around 800,000 games.
 
I was kind of hoping it would be a little better with that many games… Smiley Having said that, there are a total of 1851 weights in the various neural networks that have to be chosen "correctly".  Because this approach has been evolutionary, with no reinforcement learning about “correct" evaluations, it takes a long time to get that many numbers set right.  And really, it's a very tiny neural network, perhaps too small.  Still, with only 300 generations, there just haven't been enough iterations to know for sure.
 
I would have done something differently already if I had the time, but it only costs me electricity to let the server run and see what happens.
IP Logged
Lion
Forum Senior Member
****



Arimaa player #9500

   


Gender: male
Posts: 28
Re: This is getting scary
« Reply #14 on: Jan 21st, 2018, 6:04am »
Quote Quote Modify Modify

Looking at the AlphaZero paper (on Arxiv), the bot needed around 6 million games to get really strong at any of the three games (Go, chess, shogi) . At 3 million games, the bot was much weaker, but it was apparent that quick progress was being made at that point. At less than 1 million games, the bot was weak indeed. On the one hand, these numbers are encouraging, since it suggests your bot might start making quick progress after only 1 million more games or so. On the other hand, this translates to approximately another 2 years, or so, given your current system. Still, looking at some recent games by bot_eliminator, it looks like things are on the right track.
IP Logged
Pages: 1 2  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.