Pages

Showing posts with label Monte Carlo Tree Search. Show all posts
Showing posts with label Monte Carlo Tree Search. Show all posts

Wednesday, April 6, 2016

Part 2: AlphaGo under a Magnifying Glass (The historic match of deep learning AlphaGo vs. Lee Sedol) REVISED


[NL Versie]

AlphaGo under a Magnifying Glass

Deep Learning program AlphaGo was developed by the Google DeepMind team specifically to play the board game Go. DeepMind was founded in London in 2010 by Demis Hassabis, Shane Legg and Mustafa Suleyman. The mission of DeepMind is to solve intelligence and use it to make the world a better place (as a real advertisement slogan). DeepMind was at the time supported by the most iconic tech entrepreneurs and investors who had a clear-cut vision of the future, prior to being acquired by Google early 2014: their biggest European acquisition ever of $400 million.


In this blog, an overview is given of the different AI components of AlphaGo as well as details about the teaching material, learning methods and skills of the program. In the first part (Under a small magnifying glass), the most important neural network components are put to spotlight along with their goal and function as part of AlphaGo. In the second part (Under a large magnifying glass), the characteristics of convolutional neural networks that AlphaGo is based on are covered in more detail.

Together, these two parts provide a basic overview of how the AI program is able to play go with such an unprecedented, never shown before achievement and extraordinary tour de force performance that amazingly and phenomenally are way beyond the original data (strong amateur games) from which AlphaGo has learned.

Under a small magnifying glass


AlphaGo is based on a branch of artificial intelligence named Deep Learning. In brief, this is a technique for efficiently learning associations and patterns from a giga amount of data. To this end, different complex layers of self-learning algorithms (neural networks) are used. After extended training, for instance, a neural network can learn to recognize faces in images or translate spoken sentences correctly. Once fit, the trained system is also able to find similar and unknown associations and patterns in new data. 

The special and ground-breaking that sets apart AlphaGo in the area of AI, is the unique manner, with very extensive and in-depth training, in which the program has learned to recognize and interpret go-positions and patterns. For this purpose AlphaGo judged, among other things, 30 million positions from 130,000 games from the KGS Go Server (with a 13-layer neural network). Each layer of the network has thereby its own task, for instance to keep track of the number of liberties. By back propagation of the end result of the game to every position, AlphaGo has learned to select likely winning moves in a smart and efficient manner.



By smart restriction and selection (after extensive training) of good follow-up moves from all legal moves in a position, AlphaGo only needs to calculate a few moves thoroughly (red). From this small group of preferred moves, AlphaGo then selects the 'best' move that statistically, both on the short and long run, provides the highest probability of winning the game (green).




This learning process basically is very simple and rather similar to the way we learn Go ourselves: as you play more and more you give increasingly added value and preference to moves that produced success and benefit in earlier games. After training, AlphaGo managed to reproduce successfully 57% of the moves from the go-profs. During this process it became also clear that with small improvements in this accuracy immediately great leaps forwards can be achieved in playing strength (basic policy version).

Using the basic policy version, an analogue version is made which enables AlphaGo to come up very rapidly with a next 'best' move, though less accurately. To this end, the program used ~140,000 patterns to determine efficiently and quickly probable good follup-moves in a go-position containing one or more of these patterns.  After extensive training, this version of AlphaGo succeeds, about 1000 times faster than the basic version, to reproduce about 24% of the moves played by go-profs (fast policy version).

With this basic learning process of AlphaGo, however, there is little news under the horizon yet: if you continue training for too long in this manner, you will be focusing too much on certain preferred moves that just occur frequently in the games studied (so called overfitting). This has the disadvantage that you might ignore other, relatively rare but perhaps better and more likely winning moves. 


To prevent this, a more mature version of AlphaGo trained against one of it's randomly selected younger, less wise predecessor program versions. After playing repeatedly 64,000 games in this manner, the most mature AlphaGo was added to it's own group of opponents. From that point, the entire process was started all over again. In this manner, in total ~1.3 million go-games were played after 20 iterations. Effectively, the program did become increasingly stronger by playing many games against itself (improved policy version, also: 'reinforcement learning policy').


After this long-term play-session the final honorary version of AlphaGo won more than 80% of the games against it's predecessors. And also over 85% against the strongest open source go-program Pachi which currently plays as 2d amateur on KGS and computes ~100,000 follow-up simulations per move. After this boot camp AlphaGo was able to select positional moves with a high probability of winning in an objective, fast, efficient, and accurate way. 



Another example of AlphaGo's policy version: in every goposition all possible legal moves are considered. With long-lasting training AlphaGo has learned to select moves that provide the highest probability of winning the game. And from this selection, AlphaGo chooses the move that is recommended most by it's various algorithms.


Both preceding stages focused in particular on smart selection of moves with a high probability of winning.  But what if you would like to know your chances of winning the game in a specific go-position? Then you actually would have to play out all promising follow-up moves and determine what fraction of those moves would result in a win. Since this, over and over again, consumes a mega amount of computing time, AlphaGo was trained further to be able to do this accurately but above all in a very fast and efficient way. 

With this final training phase AlphaGo builds --for each go-position to be judged-- a complete collection of games by rapidly playing moves, that are at random at first sight, until the game has finished in order to see who ultimately will win. In practice, these moves are not at all random because the program smartly uses the fast policy version ('policy network') to determine in a very restrictive way which moves provide the highest probability of winning. To use the basic (or improved) policy version for this purpose, it would just take by far too much computing time. 

When finishing the game from a given go-position, the fast policy version chooses rapidly the 'best' possible move for both parties. This efficient 'rollout policy' has been built and trained in the same manner as the basic policy version but is specifically designed to be much faster (about 1000x faster).

During this last training phase of AlphaGo, it again turned out to be important to try to generalize to new positions instead of leaning too much on go-positions seen and studied previously. Therefore, the mature version of AlphaGo once more played against itself to generate 30 million positions whereas for each individual position the probability of winning the game was computed. This fourth version of AlphaGo is primarily focused on fast evaluation of the position (evaluation version).


To summarize, in practice there are three versions of the 'policy network' that are identical in architecture but differ significantly in terms of accuracy and speed with which they select the next 'best'  move. In contrast, the fourth version is specifically trained to evaluate any board position fast and accurately.




Each of the AlphaGo versions above can play a rather good game of Go on top-amateur level. At the same time, however, you can imagine that the policy version will put too much emphasis on the best move in a specific local position while the evaluation version will be preoccupied with whether a move ultimately leads to winning the game. This sometimes may result in substantially different moves between these versions (compare in the short vs. long run).


The most deliberate aspect of AlphaGo now is it's ability to combine various neural networks, both to generate good follow-up moves and to evaluate positions efficiently and accurately, for the first time with precise move sequence computation using Monte Carlo Tree Search. 

Until now, self-contained MCTS has been one of the most applied techniques to Go programs but often turned out to be too computation intensive and inaccurate to win against a go-professional in an even game. Also, because of these important disadvantages of MCTS, experts thought it would take at least another decade before a computer program would be able to defeat a go-prof in a no-handicap game on a 19x19 board.

In conclusion, after extensive deep learning and training by self-playing hundreds of millions of games, AlphaGo's various neural networks versions are applied, in a smart and efficient manner, to restrict the number of good follow-up moves that need to be further evaluated and the depth a move has to be computed deeply. As a consequence, board-positions in a game can be judged rapidly and accurately using a 'policy network' to smart move selection and a 'value network' to compute the probability of winning. 

By nifty combination of the three different versions of the 'policy network' (basic, fast, and improved policy versions) with both the 'value network' (evaluation version) and real-time Monte Carlo Tree Search rollout computations, AlphaGo is able to come up with the 'best' move that provides the highest probability of winning the game in an ultra efficient, fast, and reliable manner. 





Under a large magnifying glass


AlphaGo is based in principle on general-purpose AI methods. Under the hood, the program uses convolutional (filtering and encryption by transformation) neural networks that attempt to mimic the way of play and the moves of go-experts down to the last detail, and subsequently become stronger by playing giga many games against themselves.

In recent years, deep convolution neural networks (CNN) have achieved unprecedented performance in the fields of image classification and face and location recognition. These networks use many, extended layers of neurons (learning units) to construct autonomously increasingly abstract, very local and detailed representations of an image (without the necessity of having to hold the network's hand continuously). 

Moreover, every network layer acts as a filter for the presence of specific features or patterns. For detection by such a filter it is irrelevant where exactly in the original image a specific feature or pattern is present: the filters are especially designed to detect whether or not the image does contain any such characteristics. The filter is shifted multiple times and applied at different image positions until the entire image has been covered in detail (the filter can correct, if necessary, e.g. for scale, translation, rotation angle, color, transformation, opacity, out of focus, deviations of specific features present in the original image).

Actually, the DeepMind team has employed a network architecture similar to convoluational neural nets when designing AlphaGo. Herewith, the board-position is represented by an image of 19x19 board points and offered as input after which the convolutional network layers subsequently construct a handy, compact, and precise representation of that position. Next, these layers can actually function as powerful filters in every go-position, for any specific pattern (or feature of the position) you want to detect locally and, for instance, be used for detailed classification, analysis or review of the board-position.

When processing increasingly smaller portions of the go-position image, the specific features of each network layer can be combined in order to distill an increasingly detailed and distinctive representation of the original go-position.

By repeating this process, very specific and detailed features can be used for classification of a go-position (such as eye shape or number of liberties) in order to assign the position to multiple, ultra specific categories extremely accurately. 

In practice, the special and incredible power of a convolutional network is that, by smart combination of different feature (filter) maps, a go-position can be categorized and reviewed very specifically on the basis of hundreds (if not thousands) of features and patterns simultaneously. In this manner, any go-position can be classified ultra fast and precise by first crude and clever characterization in terms of e.g. influence, corner fight, life-and-death problem, and then detailed designation of increasingly smaller characteristics of the position.

An important advantage of such convolutional networks is their almost complete independence on any prior knowledge and/or human feature design efforts in order to ultimately learn and assign tens of thousands, ultra-detailed features of a go-position. Such networks require relatively little pre-processing of an input board-position: the network is perfectly able to learn (sometimes millions of) these ultra-distinctive feature filters entirely by itself, autonomously.


Each layer of the network has thereby its own task of detecting some in advance, handcrafted features of the position, for instance to keep track of the number of liberties (atari), ladders, or a 'pattern book' of all possible 3x3 patterns. By back-propagation of the end result of the game to each position, AlphaGo has learned to assign win potentials to every possible move in a position and to select promising moves in a fast and efficient manner (see above: Under a small magnifying glass).



The schematic image above shows a rather simplified example of the architecture of a convolutional neural network (just six layers) that contains characteristic components  of the underlying architecture as has been applied to AlphaGo. In reality, the number of network layers, input dimensions and specific features for each layer as used in AlphaGo are much more complex than is shown here. 

Schematically, this image just illustrates the basic ingredients and function of the convolutional neural networks of AlphaGo: in a nutshell, the various layers convolve (filtering and encryption by transformation) the original 19 x 19 go-position by detection of increaslingly smaller and more abstract go-features. 

In the example diagram, the go-position may be classified by the network as: border fight, attack, center ko, nobi, split move. In practice, the end classification by a convolutional network may contain sometimes thousands (or even tens of thousands) filters and features that may be present in the original data, such as the go-position in this example.  

In case of AlphaGo, two deep learning neural network types have been used that are rather different and much more complex than shown in the diagram, each of them with it's own task and responsibilities: one network that has learned to select the next 'best' move and one network to evaluate the probability of winning in a position. For both networks, the numbers and number and type of layers shown are just a schematic over-simplified representation of what has been used for AlphaGo.

Both neural networks have as input 48 feature planes of the 19 x 19 board-points image (which in this diagram are represented by just one single image) and are configured specifically to optimize the efficiency and accuracy of their task. The 'policy' network of AlphaGo during the Fan Hui match used 13 layers and 192 filters, the 'value' network 15 layers (whereas layers 2 - 11 are identical to those of the 'policy' network). 

With the last layer, the convolutional network classifies the go-position by a precise combination of all specific go-features detected. In exactly the same manner, new and never seen before go-positions can be recognized and classified accurately after the deep learning neural network has been trained thoroughly. 

Where a human is able to play at most 10,000 serious games in a lifetime, AlphaGo plays hundreds of millions of games in a couple of months: training a new version of AlphaGo from scratch just takes about 4 – 6 weeks. Thereafter, a phenomenally, power-trained AlphaGo is able to compute and judge accurately tens of thousands go-positions per second (for the distributed version of AlphaGo running on multiple, first-class computers). 


Sunday, March 13, 2016

Latest Predictions AlphaGo vs. Lee Sedol (9p)

               

[NL Versie] 




Nearly all polls worldwide show the same result:   ~75 - 85 % of all voters is convinced that Lee Sedol will win the coming match against AlphaGo. This is also the prediction of the majority of the participants of a price contest among dutch Go players (over  ~105 participants, organised in cooperation with chess and go shop  'het Paard ' and an ICT company). 




There are, however, many reasons to believe that AlphaGo, since the match about half a year ago, in which European Go Champion Fan Hui (2p) was beaten with 5 – 0, at least will play a few dan grades stronger against Lee Sedol. The estimated actual playing strength of AlphaGo is  ≥ 8th dan prof. 


  • AlphaGo has learned from it's (small) mistakes during the match against Fan Hui
  • improvements to AlphaGo's playing algorithms (for example for move selection and performance evaluation)
  • AlphaGo may be can built now on top of extended joseki and shape libraries 
  • finetuning and extension of AlphaGo's neural network training sessions
  • prevention and circumvention of specific problem situations (e.g. complex ko situations about many points)
  • selection of specific groups of professional Go games, not only from the KGS Go Server but as well (selectively) from other Go servers worldwide
  • improvement of the balance between on one hand AlphGo's neural networks for move selection and position evaluation and on the other hand precise computation through Monte Carlo Tree Search
  • extension of the number of conventional ( > 1202 CPUs) and graphical coprocessors (> 176 GPUs) that the distributed version of AlphaGo can use simultaneously during it's games against Lee Sedol
  • increase of the thinking time (computation time) per person: this match 2 hour p.p. (was 1 hour during the match against Fan Hui) which will be strongly beneficial for AlphaGo (especially towards the endgame)
  • implementation of new ideas and concepts to increase severely the performance of AlphaGo and/or make use of perhaps weaker elements in the way Lee Sedol plays (if these exist at all  since Lee Sedol has won over 68% of his games during ~the last years)
  • extension of the number of studied Go-positions (>60 million) and/or games played (e.g. against itself, ≥ 1.3 million) to increase the accuracy of AlphaGo in reproducing Go-profs moves. It has been shown by the DeepMind group that small improvements in this accuracy do lead immediately to big leaps forward in playing strength 
  • improvement and extension of position filters which determine whether a (subpart of a) position during a game against Lee Sedol is sufficiently being recognized by AlphaGo
  • improvements in reinforcement learning the value of Go moves by more detailed and accurate backpropagation of the final game result to each move and/or position


Despite all possible improvements of AlphaGo during the match against Lee Sedol, I expect that: 

  • Lee Sedol wins at least one game against AlphaGo 
  • the winner of the first game will also be the final winner of the match
  • Lee Sedol will win the match with 3-2 
  • AlphaGo also will win at least one game 
  • Lee Sedol demonstrable (*) will forget to play at least one move that he really had to play immediately, and this will happen at least once EACH game of the match
  • in the endgame, Lee Sedol demonstrable (*) plays less well than AlphaGo and, consequently, in EACH game of the match Lee Sedol will loose points in the endgame
  • at least one game Lee Sedol will reach a position of total resignation (*). Whether he indeed resigns or ultimately wins / loses is irrelevant
  • Lee Sedol has to put in all effort to realize and keep his eventually built profit until the end of the game
  • within one year after the match with Lee Sedol, AlphaGo will play a similar match against a strong 9p prof (possibly Lee Sedol again) and this time AlphaGo will win this match (of the five formal games, AlphaGo will win then at least 3 games).

(*) as for example reviewed by a majority of 10 independent top Go profs (9p) from South-Korea, China and Japan.






And if you do want to make bets about this:  Deep Learning models are as good as the data you feed them. 

Sunday, February 14, 2016

Deep Learning AlphaGo beats Go-prof Fan Hui (2p)

[NL versie]

Almost twenty years ago program Deep Blue from IBM for the first time defeated the then chess world champion Gari Kasparov. In a match of six games with standard tournament thinking time Deep Blue won with 3.5 - 2.5. Kasparov accused IBM of false play and demanded an immediate return match. IBM refused and announced Deep Blue's retirement.

This week pioneering news went all over the world: AI program AlphaGo from DeepMind wins five game match against ruling European Champion Fan Hui (2p). Never before a computer program defeated a Go-prof with 5-0 in formal games without handicap en 1h normal thinking time (3x30s byoyomi, 19x19, 7.5 komi, chinese rules). The most challenging and complex job until now, both for computers and artificial intelligence worldwide, thus appears to be brought to completion. That would be a huge milestone in history of mankind.

The match took place already October 5-9th 2015 as a matter of fact, behind closed doors in the Google DeepMind office in London. Not until the recent research publication, about the working of the AI program, all details of the match were shared. Playing conditions and thinking time were chosen by Fan Hui himself, preceding the match. An independent arbiter judged the validity of the moves and the proceedings of the game. Also, it was agreed that the overall match outcome would be determined exclusively by the formal game results (informal games included the result would have been 8-2 for AlphaGo).

Who had thought in 1985, when Ronald Schlemper (7d) organised the central youth Go-training in the Netherlands, that a little over 30 years later a program would be able to win a no-handicap game against a 2d prof? Or in 1987, when Robert Rehm and Peter Zandveld made a bet (for 2000 dutch florines) about whether in the year 2000 a Go-program would be able to win a nine-stone handicap game against Robert Rehm (5d)? Robert won easily from HandTalk (creator Chen, Zhixing), one of the strongest Go-programs of the world at the time, and stated that it would have been even much easier if HandTalk would have had 25 stones handicap. Or in 1989, when Mark Boon for the first time became world champion computer Go and a special training Go-program would have been really proud if it could win from a 10th kyu amateur?

The spectacular breakthrough of AlphaGo happens just a few years after Takemiya Masaki (9p) was beaten in a 4-stone handicap game by program Zen (in 2012). And Yoshio Ishida (9p) by program Crazy Stone (in 2013, also with 4 stones handicap). Since AlphaGo's strength is a least that of chinese origin Go-prof Fan Hui --who learned to play Go at age 7, became 1d professional already at age 16, and who breathes and lives Go for more than 25 years-- is the question: 'Do we have to accept the fact that artificial intelligence starts to become proficient in the game of Go?'

Has the time now really begun that the immense complex game of Go, with more possible positions than atoms in the visible universe, has been comprehended completely, is fully understood and solved now, and will not be able to offer us new challenges?  Should we perhaps better find us another hobby and from today on start to be absorbed in the Japanese art of flower arrangement Ikebana?



AlphaGo in a Nutshell

AlphaGo is based on a type of artificial intelligence named Deep Learning. In brief, this is a technique for efficiently learning associations and patterns from a giga amount of data. To this end, different complex layers of self-learning algorithms (neural networks) are used. After extended training, a neural network can learn, for example, to recognize faces in images or translate spoken sentences correctly.  Once fit, the trained system also can try to find similar and unknown associations and patterns in new data.

The special and ground-breaking that sets apart AlphaGo in the area of AI, is the unique manner, after very extensive and in-depth training, in which the program has learned to recognize and interpret Go-positions and patterns. For this purpose AlphaGo judged, among other things, 30 million positions from games from the KGS Go Server (with a 13-layer neural network). Each layer of the network has thereby its own task, for instance to keep track of the number of liberties. By feeding the end result of the game back to every position, AlphaGo has learned to select likely winning moves in a smart and efficient manner (see Fig. 1).

This learning process is very simple basically and rather similar to the way we learn Go ourselves:  as you play more and more you give increasingly added value and preference to moves that produced success and benefit in earlier games. After training, AlphaGo managed to reproduce successfully 57% of the moves from the Go-profs. During this process it became also clear that with small improvements in this accuracy immediately great leaps forwards can be achieved in playing strength .

With the basic learning process of AlphaGo, however, there is little news yet under the horizon: if you continue to train for too long in this manner, you will focus too much on preferred moves that occur frequently in the games studied. The disadvantage of this is that you may ignore other, perhaps better and more likely winning moves. 

To prevent this, a more mature version of AlphaGo trained against one of it's randomly selected younger, less wise predecessors. After playing repeatedly 64000 games in this manner, the most mature AlphaGo was submitted by addition to it's own group of opponents. From that point, the entire process started all over again. In this manner, in total ~1.3 million Go-games were played after 20 iterations. Effectively, the program thus grew from strength to strength by playing many many games against itself. 


Fig. 1 By smart restriction and selection (after extensive training) of good follow-up moves from all legal moves in a position, AlphaGo needs to calculate only a few moves thoroughly (red).  From this small group of preferred moves AlphaGo then selects the 'best' move that statistically, both on the short and long run, provides the highest probability of winning the game (green).


After this long-term play-session the honorary version of AlphaGo won more than 80% of the games against it's predecessor versions. And also over 85% against the strongest open source Go-program Pachi which currently plays as 2d amateur on KGS and computes ~100000 follow-up simulations per move. After this training camp AlphaGo was able to select positional moves with a high probability of winning in an objective, fast, efficient, and accurate way (policy version). 


Extended Muscle Training

Both preceding steps focused in particular on smart selection of moves that provide a high probability of winning.  But what if you would like to know your chances of winning the game in a specific Go-position? Then you actually would have to play out all promising follow-up moves and consider what fraction of those moves would result in a win. Since this over and over again consumes a mega amount of computing time, AlphaGo was trained further to be able to do this accurately but above all in a very fast and efficient way. 

During this last muscle training it again turned out to be important to try to generalize to new positions instead of leaning to much on Go-positions seen and studied previously. For this reason, the mature version of AlphaGo once again played against itself to generate 30 million positions whereas for each individual position the probability of winning the game was calculated. This version of AlphaGo therefore is predominantly oriented on fast evaluation of the position (evaluation version).

Each of the above AlphaGo versions can play a significant Go-game on top-amateur level. At the same time, however, you can imagine that the policy version will put too much emphasis on the best move in a specific position while the evaluation version will be preoccupied with whether a move ultimately leads to winning the game. And this results to substantially different moves between those versions of AlphaGo (compare in the short vs. long run).

One of the most deliberate aspects of AlphaGo is it's ability for the first time to combine neural networks, both to generate follow-up moves and to evaluate positions, efficiently and concurrently with precise move sequence computation by means of Monte Carlo Tree Search. Until now, self-contained MCTS has been one of the most applied techniques to the programming of Go. However, MCTS often turned out to be too computation intensive and inaccurate to be able to win an even game against a Go-professional. Partly because of these important disadvantages of MCTS, experts thought it would take at least another decade before a computer program would be able to defeat a Go-prof in a no-handicap, 19x19 game.


First game Fan Hui (B) against AlphaGo

During replay of the first game of the match (see Fig. 2, Fan Hui is black) a strange feeling comes over you: AlphaGo's moves are crystal clear, with a solid and sound basis, and appear to come from an opponent who is ready to fight hard for every millimeter and has an infinitely strong wanting to win. Who sly takes into account initiative, importance, and size of the moves. 

In this game, the first remarkable move of AlphaGo provides both air and influence potential to it's white, somewhat heavy and hanging group while at the same time it prevents black from an eventual attack to score some points in sente (triangle). 

With the last move in the diagram (circle), AlphaGo cuts two stones thereby strongly putting the screws on black while taking the initiative. After crude counting white has a reasonable chance to win the game (komi is 7.5). In the end, AlphaGo will win the game with a narrow margin of 2.5 points and leave Fan Hui undoubtedly astonished and aghast. Very poor consolation that Fan Hui still was able to win two of his five fast, informal games (with 3x30s byoyomi thinking time) against AlphaGo.




Fig. 2 Bord-position after move 62 (circle) in the first game between Fan Hui (B) and AlphaGo. The stone marked with a triangle is an example of AlphaGo's smart move selection algorithms (move 58). 


Most striking characteristics AlphaGo takes into account during judgement of a position are: whether or not a move is a successful ladder breaker, how many liberties arise after playing a move, how many stones of the opponent (or of oneself) can be taken, and whether or not a move will fill it's own eyes. So, absolutely nothing about where on the board you can make territory efficiently, how you build a moyo (or destroy), when you are threatened to become surrounded (or comminuted), or how you clever kill many birds with one Go-stone.

Noteworthy enough, little to none real strategy is involved with the actions of AlphaGo. Without the giga amount of professional games and the games it played against itself, the program simply wouldn't have the slightest idea where to play (or first would have to calculate countless, very long move sequences to determine which moves would be taken into consideration).



Playing Strength of AlphaGo

Despite the considerably greater complexity of Go as compared to that of chess, AlphaGo judged thousand times less positions during the match against Fan Hui than for instance Deep Blue did during the match against Kasparov. The reason for this is that after the huge and powerful muscle training, AlphaGo restricts itself, in an ultra smart and efficient way, to just a tiny handful selection of 'best' moves. Only these moves have to be thoroughly calculated and further evaluated. So, all in all very similar to the way we try to find the 'best' move in a Go-game ourselves.

At an international computer-Go tournament (with 5 sec computing time per move) AlphaGo played also against the currently strongest commercial Go-programs Crazy Stone and Zen as well as strongest open source programs Pachi en Fuego. These programs all are based on the most efficient MCTS systems. AlphaGo did win 494 out of 495 played games. To make the games much more challenging, the other programs played in the sequel with 4 stones handicap against AlphaGo. In these games AlphaGo won also more than 77% (even 100% in case of the version of AlphaGo that was runing on multiple computers). AlphaGo turned out to be multiple dan grades stronger than all previous Go-programs.

The deep neural networks of AlphaGo for move selection and position evaluation use orders of magnitude more computation power in comparison with the traditional, exclusively MCTS based Go-programs. To be able to combine these neural networks efficiently with MCTS, AlphaGo therefore used asynchronous (multi-threaded) search missions which perform simulations on conventional CPUs and simultaneously calculate move selection and position evaluation networks on graphical processors (GPU). In this manner, the single-machine version of AlphaGo, with 48 CPUs and 8 GPUs of computation power, reaches a strength of ~2d prof.

To provide AlphaGo with even more horse-power, the people behind DeepMind developed also a version which runs on multiple computers at the same time. This distributed power-house is also the actual version of AlphaGo that was able to defeat Fan Hui with 5-0. And for that purpose AlphaGo used 1202 CPUs and 176 GPUs with according to DeepMind a strength of ~5d prof. 


Near Future

Demis Hassabis, head and co-founder of Google's DeepMind, in a tweet announced Feb. 4th that AlphaGo will play a match coming March 9-15 against the strongest Go-prof of the world: Lee Sedol (9p). The 5 formal game match will be live streamed on You Tube and played in Seoul, South Korea. Lee Sedol said in a first statement he is excited to take on the challenge saying: "I am privileged to be the one to play, but I am confident I can win". The winner of the match receives $1M price money. 

Hassabis announced at the same time that "if AlphaGo will win the match against legendary Lee Sedol, I believe that this would mean AlphaGo is better in playing Go than anyone in the world". 

Depending on further improvements and development of AlphaGo over the past few months and the number of CPUs and graphical processors that will be used by the DeepMind team during the coming match, AlphaGo's strength will be reasonably close to that of Lee Sedol. Therefore, there is a great opportunity that this will be a huge thrilling match (apart from possible adaptations in AlphaGo specifically concentrated on Lee Sedol's playing style). If AlphaGo will win the match against Lee Sedol, this undoubtedly is a much greater sensation and spectacle than it was at the time Deep Blue defeated Kasparov.  

Apart from his superior Go-strength, Lee Sedol has another important advantage compared to Fan Hui: at least Lee Sedol knows already what he can expect from AlphaGo. For these reasons, it is very likely Lee Sedol will win at least one of his 5 formal games against AlphaGo. But it wouldn't be surprising at all if Lee Sedol wins the match against AlphaGo with 3-2 (or 4-1). And if someone wants to bet on that account ... Deep Learning models are as good as the data you feed them.


After All

When the time will come that Go-programs like AlphaGo will generate exclusively brilliant moves and perform super humanly so that Lee Sedol even with nine stones handicap is unable to win from them?

Without intending to do any undervaluation of the incredibly valuable development and ultra smart and capable achievements of AlphaGo: in the basis the program can do little more than guiding itself on a giga memory full of Go-profs games played previously.

Surely, AlphaGo can compute moves more accurately and faster than ourselves. But whether AlphaGo before long will be able to invent and generate --itself-- new, creative, and beautifully abstract moves that, in one big blow, will allow the 'Go-flow' of the river to meander faster across the landscape? 


copyright:   Bob van den Hoek,  Febr. 8th 2016


questions and info also to:   bobvdhoek@simupro.nl




Links

http://www.nature.com/news/google-ai-algorithm-masters-ancient-game-of-go-1.19234
http://www.nature.com/nature/journal/v529/n7587/full/nature16961.html#tables 
http://www.nature.com/news/digital-intuition-1.19230
http://www.nature.com/news/go-players-react-to-computer-defeat-1.19255

https://en.wikipedia.org/wiki/Computer_Go
https://en.wikipedia.org/wiki/Deep_learning
http://googleresearch.blogspot.nl/2016/01/alphago-mastering-ancient-game-of-go.html
https://googleblog.blogspot.nl/2016/01/alphago-machine-learning-game-go.html
http://www.bbc.com/news/35501537


Silver, D. en 19 auteurs,  Nature,  Vol 529, 28 Jan.  2016 
 'GO' Magazine (NL),  jaargang 38,  nr 1 
Neural Computing  “An Introduction” R Beale & T Jackson 1990, Institute of Physics Publishing UK