News for hackers. Stuff that matters.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Tuesday December 05, 2017 @11:12PM (#15858419)
This is an incredible demonstration that the AG Zero expert iteration method is a general method. If you go back to the discussions of AG Zero lo a month ago, there was a lot of skepticism that NNs would ever challenge Stockfish et al - they are just too good, too close to perfection, and chess not well suited for MCTS and NNs. Well, it turns out that AG Zero doesn't work as well in chess: it works better as it only takes 4 hours of training to beat Stockfish. This is going to be an impetus for researchers to explore solving many more MDPs than just chess or Go using expert iteration... ("There is no fire alarm.")
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by deepnotderp on Tuesday December 05, 2017 @11:52PM (#15858623)
See the thing is though, Giraffe's evaluation actually was better than Stockfish's evaluation function, but it took much longer, and thus wasn't able to search as deep as Stockfish et al. So in a way, the real triumph of the AlphaGo series was the TPU and GPU army.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Tuesday December 05, 2017 @11:56PM (#15858651)
> So in a way, the real triumph of the AlphaGo series was the TPU and GPU army.

Eh. It's still searching many fewer positions than Stockfish is.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by skybrian on Wednesday December 06, 2017 @01:09PM (#15863352)
Unlike in most algorithms where correctness and performance are independent, chess engines can't be evaluated without testing performance at the same time; faster is not just faster, it changes the results.

So there is a tradeoff between the depth of the search and quality of evaluation. For traditional chess algorithms, better evaluation was rarely worth the cost; it would slow down the search so much that it didn't pay for itself.

But this performance tradeoff (like all optimizations) critically depends on hardware. Change the hardware and you change which optimizations are "worth it".

AlphaZero is clearly good at using TPU's to maximum effect. But what would its performance be in a CPU only environment? Maybe dumb but deeper searches still win there? This evaluation hasn't been done.

This isn't to say that the AlphaZero evaluation is "unfair". Rather that chess engines evolved to be too dependent on their environment. Getting maximum use out of CPU's is a strength, but not being able to use TPU's or even GPU's is a weakness.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:11AM (#15869662)
Agree with this. Stockfish is fast enough to run on modern iphone and Android phones. AlphaZero most probably not.

But the fact that a generic algorithm absolutely destroys humans and their human crafted programs is the most interesting.

Yes TPU + GPU army is a huge amount of computation power but I'm sure they'll be research coming out trying to compress the algorithms enough to use the same computation power as stock fish.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @02:07AM (#15859162)
It searches fewer positions because it decides where to search using 4 TPUs, which are 180 teraflops each according to Google.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @12:02PM (#15862679)
That's not clear, each (second generation) TPU is 45 FP16ish unspecific TFLOPs. A single board consists of 4 TPUs at 180 TOPs total. This is similar to the Dual P100 NVLINKed Quadro which is an absolutely killer HPC/DL card. I believe they have a similar Volta option, but that kind of HW is above my pay grade these days.

Further, they used 5,000 (first generation) TPUs at 90 INT8 TOPS each, page 4, to run the network during MCTS and 64 (second generation) TPUs to train this thing according to the methods. That's a nice mix of using INT8 for inference and FP16ish for training IMO.

In contrast, I personally own 8 GTX Titan XP class GPUs and 8 more GTX Titan XM GPUs across 4 desktops in my home network. I'd love to experiment with algorithms like this, but I suspect I'd get just about nowhere due to insufficient sampling. These algorithms are insanely inefficient at sampling at the beginning. So I guess I will seed the network with expert training data to see if that speeds things up.

That said, more brilliant work from David Silver's group! But not all of us have 5,000 TPUs/GPUs just sitting around so there's still a lot more work/research to make this more accessible to less sexy problems.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:23AM (#15869734)
It's definitely worth a shot reproducing the results.

On the other hand, Google will make a shit load of money when they make TPUs available on gcloud. Papers like this are great marketing for them.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by skybrian on Wednesday December 06, 2017 @01:13PM (#15863399)
I wonder how much the hardware would cost to rent for a researcher not working at Google?
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @01:37PM (#15863624)
So 3 2nd generation TPUs are ~= 1 Volta class GPU ~= $3 per hour on-demand on AWS: https://aws.amazon.com/ec2/pricing/on-demand/ and ~$1 (75 cents at the moment with p3.8xlarge and its 4 GPUs) in spot: https://aws.amazon.com/ec2/spot/pricing/ if you take the time to build a robust framework.

And to make things simple, let's do it all in FP16 because INT8 on Volta ~= 1/2 a first generation TPU, but FP16 ~= 3 first generation TPUs at INT8 (sad, right?), an accident that occurred because P100 didn't support INT8, but consumer variants did.

So, 5,064/3 = 1,688 Volta GPUs ~= $5000 per hour, probably half that reserved, a quarter of that in spot.

Say you need a week to train this, so $200K-$800K...

You can buy DGX-1Vs off-label for about $75K. Say they costs $20K annually to host. Say you use them for 3 years, so total TCO is ~135K, which comes down to $0.64/hour.

Conclusion: p3.8xl spot instances are currently a steal! But I don't have ~$200K burning a hole in my pocket, so I guess I'm out of luck.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Chickenosaurus on Friday December 08, 2017 @12:46PM (#15880426)
Google provides 1000 TPUs free of charge to researchers https://www.tensorflow.org/tfrc/
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:54PM (#15866280)
I don't think that the specific numbers are relevant for what deepnotderp and I were saying: that Giraffe already demonstrated the potential, and all that was missing was a boatload of compute.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by EvgeniyZh on Thursday December 07, 2017 @02:15AM (#15868303)
P100 is 20 FP16 TFLOPs, V100 is ~30. So 4 TPU gen 2 is ~9 P100 or 6 V100
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @06:20AM (#15860246)
TPUs aren't "cheating" though, as they can be used for generalized machine learning models, and not just Go.

Computer graphics is still an impressive achievement even when done on a GPU instead of a CPU.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @08:35AM (#15860920)
I think his point is if you devote X Flops to something then a fair comparison would be to also give X Flops to the competitor. The specifics of how an algorithm does not matter as much as the total resources used and outcome.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @09:32AM (#15861254)
A more fair comparison would be to cap the hardware used at a certain cost. That's much more reflective of the real world. There are plenty of tasks that perhaps you could do more efficiently on a CPU for a given number of operations, e.g. maybe some graphics operations, but in practice it's completely irrelevant because a GPU gives so much more performance for the given cost. There's nothing special about an operation, but dollars do matter.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @10:53AM (#15862001)
Only if you're buying hardware based on the algorithm used. Useful chess programs need to actually run on people's phones where performance on a cluster of ASIC's is mostly meaningless.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @12:04PM (#15862705)
I think we need to start capping total electricity and total $$$. I'd love to see AlphaZero 20W pitted against that other 20W supercomputer. When humans fall to that, be afraid(tm).

I'll even be charitable in order to simulate the existence of school/teachers/books: training from the start gets 2KW. But gameplay still gets capped to 20W.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @12:31PM (#15862955)
Electricity isn't free though; why can't it simply be rolled into cost? Just assign it a standard cost per kW-hr and charge accordingly. This more accurately reflects economic incentives driving hardware development.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @12:40PM (#15863046)
Sure, why not, but then how do we compare to a human?
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @01:02PM (#15863267)
I don't think you can, and such a comparison is not really needed here anyway. People are not chattel slaves and cannot be racked into data centers to solve boring problems.

Of course, you can hire people, and that has a well-defined cost, so it does all come down to money again.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @01:08PM (#15863344)
Sure, but the whole point of the above idea is to compare our 20W computers to what we can build that eats 20W. And don't give Silicon Valley ideas about disrupting the lucrative Mechanical Turk ecosystem by scaling it up with ideas borrowed from growing veal because some VC sociopath will take it seriously. Just sayin'...
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @02:15PM (#15863976)
And I'm saying that this 20W limitation isn't particularly meaningful, as many organizations have way more power at their disposal to throw at a problem than that. The economics of a given solution, on the other hand, is applicable at all scales.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:17AM (#15869698)
Meaningful in the sense that if an AI plays against humans, is it smarter at the same energy efficiency of humans.

We are comparing machine intelligence vs human intelligence.

It can be said that with more computational power, you can raise intelligence. Human brains consume the most power relative to body size than any other animal.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @12:30PM (#15862948)
This argument is about state-of-the-art chess, not chess as a mobile phone game. Humans are so bad at chess compared to the best programs now that even a smartphone app can't be defeated by people.

Also, mobile phones have Internet access, so there's no reason the algorithm has to run on the phone itself. It could run on TPUs in the cloud. It's common for many games to have server-side components. Though this isn't even necessary except maybe if Magnus Carlsen wants to play it.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @02:06PM (#15863906)
I think you misunderstood. Sure, if you are willing to deal with the increased costs and lowered reliability you could write a chess program that required massive server resources.

But, I don't think a lot of people would pay for that vs. having a program that just runs on there phone and still beats them. So, in practice without a significant subscription fee you are going to be limited to cellphone hardware.

PS: In practice most games take about as much computing power from a server as a chat app as companies need to pay for that hardware. Remember 1,000,000+ X get's big unless you keep X very low.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @02:13PM (#15863959)
Again, this entire article and discussion is about state-of-the-art chess. As in, literally working to "solve" the game and develop optimal strategy. I don't understand what relevance casual mobile chess games have. Computer chess is already very far beyond human capabilities, and it can't be pressed further just using mobile phone hardware (nor is that a reasonable restriction).

It'd be like in a discussion about SpaceX's BFR designs to colonize Mars, someone comes in and questions why they're using retropropulsion since the requisite control systems are infeasibly expensive for amateur model rockets. It's a completely different discussion.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @06:44PM (#15866209)
That's not why this is relevant. Given equivalent hardware it's still a worse solution for chess. The value is you can get results of similar quality with vastly more compute power even without 1,000+ years of analysis.

Otherwise the only takeaway is this failed to improve the state of the art.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @11:36PM (#15867659)
"Equivalent hardware" is only relevant if we're talking about cost. When measured by that metric, the TPUs are indeed superior. Raw operations is an irrelevant metric given the existence of economic purpose-specific hardware that can perform a lot more of the operations required for matrix multiplication than for general computation. GPUs work exactly the same.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Thursday December 07, 2017 @06:51AM (#15869274)
Again, cost is relative to hardware you have. If you own a supercomputer already and you want to run chess on it for whatever reason it matters what the performance you get from each algorithm on that hardware. If your going to buy new hardware it's design depends on performance across every algorithm you expect to use.

So, the only case where chess performance per $ matters is if you are only going to ever use that hardware to run chess. In every other case which is the vast majority of the time you care about diffent metrics.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by empath75 on Thursday December 07, 2017 @08:01AM (#15869608)
Why? Just do the computation in the cloud.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by modeless on Wednesday December 06, 2017 @01:07PM (#15863325)
Several phones already have neural net acceleration hardware in them today, including the latest iPhones.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @02:10PM (#15863941)
Some iPhones are manufactured with this, but again if you have paid for the hardware you care about performance on that hardware. If you have yet to buy anything then theoretical performance per $ becomes the meaningful metric.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by jacksmith21006 on Thursday December 07, 2017 @12:36PM (#15872036)
Same with the Pixel 2. But the Pixel 2 appears to be a bit more powerful than the iPhone neural chip. The PVC is able to do 3 TOPS but we really need instructions supported and word size to truly compare.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Wednesday December 06, 2017 @11:28AM (#15862358)
But better evaluation gives you asymptotic speedups. You can give Stockfish several times its computation (which is already a lot, I mean, 64 threads, come on) and it doesn't make good use of it since it just runs into the search wall. If you gave Stockfish the equivalent in CPU power (and I'm not sure this is a fair hypothetical since part of the appeal of NNs is that they have such efficient hardware implementations, so it seems unfair to then grant a less efficient algorithm equivalent computing power by fiat), I'm not sure it would be restored to parity or superiority.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @04:32PM (#15865208)
Absolutely. This required an exorbitant amount of compute, but DeepMind had to do novel, nontrivial research to make use of those resources.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:50PM (#15866253)
Edit: DeepMind's victory over Stockfish didn't need novel research. Giraffe already demonstrated that the asymptotic speedup was possible; it just needed more compute.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nl on Wednesday December 06, 2017 @03:54AM (#15859631)
The number of positions evaluated is the number evaluated. Speed doesn’t change that.

Speed probably made the initial self play training quicker though.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:22AM (#15860257)
Compute absolutely matters. With tree search, there's a tradeoff between scoring cost and positions evaluated. AlphaZero can evaluate fewer positions because it uses a huge amount of compute to accurately score each position.

It's not just training. Training used 5,000 TPUs.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by arcticfox on Wednesday December 06, 2017 @08:15AM (#15860815)
Can't those teraflops be applied to evaluating more positions instead of deciding which positions to evaluate?

It seems that the metric should be compute time, not positions evaluated.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nl on Wednesday December 06, 2017 @09:30AM (#15861243)
Presumably they both had equal clock time - that is a standard chess rule so it would be surprising to see it different.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by setr on Wednesday December 06, 2017 @10:20AM (#15861667)
Wall clock != cpu clock

I can do more in the same wall time with a faster cpu(s); I can afford inefficiencies that the opponent cannot, and accomplish just as much.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by deepnotderp on Wednesday December 06, 2017 @12:23AM (#15858746)
Right right, but my comparison was between giraffe and AlphaGo , not neural networks and Stockfish.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by joshuamorton on Wednesday December 06, 2017 @01:44AM (#15859085)
But it looks like AlphaGo is searching fewer positions per second than Giraffe did.

AlphaZero evaluates 80K positions per second, according to this paper, and the Giraffe paper says that Giraffe averaged 258570 evaluations per second when running STS.

While we can't directly compare the computer power, this implies that AZ has learned a better representation.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:38PM (#15866177)
It's unclear how much of the "better representation" was due to better algorithm vs. more compute/deeper NN.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by joshuamorton on Wednesday December 06, 2017 @10:33PM (#15867428)
Giraffe was trained until convergence. Maybe if there was more compute power then, a different model would have been used, but that's deep into the world of silly hypotheticals.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Retric on Wednesday December 06, 2017 @08:39AM (#15860944)
By starving the competitor of computing power, if you compare A and B you can't give A 10+x the compute power and assume a fair comparison. What's interesting is a demonstration that enough compute power let's NN reach beyond human level play. Though, I don't think that was ever really in doubt.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by backpropaganda on Wednesday December 06, 2017 @01:07AM (#15858927)
While I'm glad to see you're excited about this, take note that this is still an approach which requires that an exact model is known, the state is fully visible, and the reward is perfectly define-able and known. Progress in this setup isn't necessarily correlated with the kind of AI for which we'd need a fire alarm.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by visarga on Wednesday December 06, 2017 @05:47AM (#15860090)
It's easy for many to think that solving Go and chess means we can also solve household work like cleaning, cooking and washing dishes but it's actually harder.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by backpropaganda on Wednesday December 06, 2017 @06:01AM (#15860157)
Next up: Google's Deepmind AI learns to perform arithmetic tabula rasa.

More seriously, it seems Deepmind and the AI community in general is having a Streetlight effect problem, i.e. looking for AI in what works now, rather than coming to terms with the hard challenges. This explains why there are so many papers on GANs. People are just doubling down on what works (where the streetlight is), rather than acknowledging that where we need to look for AI is dark. Since it's become such a cut-throat race to be the next one to say "we made a breakthrough!", it makes much more economic sense to solve simple problems and advertise them as huge challenges.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by visarga on Wednesday December 06, 2017 @06:10AM (#15860205)
I wouldn't dismiss GANs so easily. Yann LeCun was singing odes to GANs - as the most interesting idea in the last decade. The interesting thing about GANs is that they don't use a predefined loss, but instead the discriminator acts as the loss function for the generator - thus, it is learning a loss fn instead of using human guesswork to create it. That's quite a powerful new idea. Applications of GANs include making simulated images look more real, which is essential for RL, generating 'artificial' training images for other tasks and using the discriminator as an image embedding generator or classifier.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:33PM (#15866153)
I agree that the average Joe will misinterpret the significance of AlphaGo, to Google's benefit.

But most people in the research community already know how amazing it would be to make an affordable household robot or a search-and-rescue robot or a self-driving car. Many labs (including mine) are working on it. The streetlight adds a small bias, but the bigger problem is that we have no idea how to build human-level AI.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:52AM (#15869937)
The biggest problem in robotics is vision. How do you translate pixels to a 3D scene graph with objects attributes and correlate with prior knowledge.

Do that in real time, on device without using a crazy amoubt of power because of batteries.

CNNs and faster GPUs are the biggest breakthrough in that regards but it's still a long way to go before we get to human level visual cortex.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Thursday December 07, 2017 @01:39PM (#15872707)
Vision is part of the puzzle--a large part in the case of self-driving cars. But blind people are way better than computers at everyday tasks, so I don't think that it's the Big Problem.

Translating to 3D is low-level and relatively easy. That's not the reason why we don't have household robots/self-driving cars.

Framing vision as "object attributes" and "correlate to prior knowledge" might be a good approach for current research. But humans do more--we understand what we look at. We form concepts and models of the world that allow us to adapt to very novel situations.

The main reason why we haven't solved vision, language, playing chess like a human, etc is that NNs are a poor approximation of human concepts. I agree that we probably need more compute and better compute.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by skybrian on Wednesday December 06, 2017 @01:32PM (#15863589)
Yes, but it doesn't seem like much of a problem? Exploiting a breakthrough before moving on to harder problems isn't cheating, it's the smart thing to do. It might even turn out to be the fastest way to make progress on the harder problems.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Cybiote on Wednesday December 06, 2017 @02:21AM (#15859212)
Let's break this down and consider things carefully. To informed researchers, what is most surprising here is not that the AlphaGo Zero algorithm beat stockfish but that MCTS managed to outperform Alpha-beta search. I'll venture a hypothesis as to why this was.

Informed skepticism would have discounted MCTS against alpha-beta search but wouldn't have put much stock into the idea that Neural Networks couldn't learn better features than what has been painstakingly handcrafted. We know that given sufficient data and an appropriate architecture, neural nets have achieved better local minima than humans. This shouldn't be surprising anymore. A structurally adapted searcher will always do better in its adapted to domain. A Cat is so good at being a cat, it doesn't even have to think about how to cat. Choice of optimization method, input pre-processing, loss function, hyper-parameters and architecture together define a search space, a structural prior and how to navigate.

Returning to alpha-beta vs MCTS, my view is that earlier work on the chess search space being ill-suited to MCTS has not been invalidated once you account for the synergy between the neural net and search method brought about by the imitation learning approach. What might be happening here is the neural net not only learns to correct when it goes out of bounds, it also learns to account for missteps of MCTS!

The AlphaGo Zero Chess Program is clearly smarter than stockfish from the perspective of its ability to better navigate the search space but before talking about fire alarms there are some things to note.

Assuming the paper, AlphaGo zero does well if you hold compute fixed and adjust time, but how does it do as you move along both compute and time? This is of relevance to the general community, especially if AlphaGoZero skill degrades gracefully enough to allow it to be a better tutor than current engines.

Contrary to the no fire alarm claim, we should see sudden improvements everywhere due to how close joint, structured prediction, reinforcement and imitation learning are to each other. Unexpected improvement across a broad class of problems is a fire alarm. Right now, POMDP or games with hidden information and multiple interacting agents are still very difficult. Structured prediction is still difficult. Granted, this was before AGZ, but Neural Nets+MCTS had to be modified to Neural Self-Play before it could work just ok in poker-like games.

What we should take away is the power of combining searching and learning. I'll argue that what is now being called expert iteration was presaged in an antique 2006 paper [1] where Hal Daume et al discuss the power of a learning algorithm trained to imitate a search computed policy. Even with limited compute and data, you can use similar ideas under the learning to search framework. The imitation approach is what's consistently yielded great results, whether applied to neural nets or logistic regression.

[1] http://www.umiacs.umd.edu/~hal/docs/daume06searn-practice.pd...

https://link.springer.com/content/pdf/10.1007/s10994-009-510...

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Cybiote on Wednesday December 06, 2017 @08:19AM (#15860833)
Correction to the above: I stated Deepmind applied Neural Nets+MCTS and achieved ok results. I was actually misremembering two David Silver (Deepmind) papers as one. Smooth UCT modified UCT (popular brand of MCTS) to be able to handle imperfect information games. MCTS does not converge under imperfect information. Smooth UCT is strong at limit poker. Limit is much simpler than no-limit.

Neural Fictitious Self Play based on fictitious play (invented 1950s), is an approach to reinforcement learning using neural nets for function approximation. Typical RL methods like DQN are highly exploitable. Against strong programs, NFSP did okay, with a win rate of -50 mbb/h against the best bot it played against.

Looking not just at Deepmind, there's Deepstack. It's similar to AlphaGo OG, combining CFR+Neural nets. Deepstack did not win convincingly against humans at 2 player no limit hold em.

The general point I'm trying to make here is that Chess and Go are closer to checkers than to poker, which is itself a constrained game with known rules. I mention all this and this Deepmind paper: https://arxiv.org/pdf/1711.00832.pdf, to provide a sense of scale to those talking about smoke and fire alarms.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nopinsight on Wednesday December 06, 2017 @10:33AM (#15861803)
What do you think of Libratus which won quite convincingly against top players in no-limit Texas hold ‘em poker?

https://en.m.wikipedia.org/wiki/Libratus

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by xoroshiro on Wednesday December 06, 2017 @04:04AM (#15859674)
Probably the wrong engine to test this with then. Although it's interesting nonetheless. It's pretty well known that chess engines have this trade-off between searching and evaluating. Among the consistent top 3 I suppose Stockfish is the easiest to test, being open source and all. It's pretty well regarded that Komodo has the best evaluation function though. Even if it doesn't keep up with the nodes/sec of Houdini and Stockfish, it's consistently up there with the top 3. The other chess engines doen't even come close. (Fire is probably number 4 but is on a league of it's own. Not quite good enough to challenge the top 3, but eats everything else.)

I know it's complicated, between the hardware differences, search method used, etc. But when claiming that NNs beat hand crafted evaluation functions, keep in mind that Stockfish is probably are not the best choice to compare, since it has made different tradeoff choices to get more depth (which goes back to search method and hardware choices).

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gcp on Wednesday December 06, 2017 @04:34AM (#15859785)
Your comments about Stockfish, Komodo etc are entirely subjective. "It's pretty well regarded". No it's not.

You can't disconnect the search part from the discussion, as the search selectivity is ALSO learned by the neural network.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nlperguiy on Wednesday December 06, 2017 @03:02AM (#15859396)
Yeah, I'm quite confused that there's no mention of SEARN or LOLS or similar imitation learning algorithms in the references of the Alpha Zero paper. The algorithm for learning looks severely derived from that 10 year old idea.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by sanxiyn on Wednesday December 06, 2017 @02:37AM (#15859282)
I agree that Searn is rather prophetic in retrospective.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Houshalter on Tuesday December 05, 2017 @11:26PM (#15858502)
They aren't the first to apply NNs to chess though. What are they doing differently? And does anyone else smell smoke?
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Tuesday December 05, 2017 @11:30PM (#15858520)
It's certainly not the first NN chess program. You may remember one of OP author's Giraffe NN (https://arxiv.org/abs/1509.01549) which was essentially 'AlphaGo for chess'. But like the original AG, it struggles to learn and Lai had a lot less computation as a student than he does now at DM. What they're doing is applying AlphaGo Zero expert iteration with some simplifications and TPUs. And that pwns previous work like Giraffe the way AlphaGo Zero pwns AlphaGo. Quantity becomes a quality all its own.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by evandijk70 on Wednesday December 06, 2017 @04:16AM (#15859718)
Look at Figure 2, and remember that DM has access to a lot of hardware. At short thinking times, AlphaZero is weaker than Stockfish. This is equivalent to longer thinking times with weaker hardware, and it is likely that the former applications of NNs to chess had hardware that was a 1000-fold slower than what DM has access to. This means that even if the approach was identical to DMs, they would not have seen a better performance of NNs than the classical alpha beta approach.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:33AM (#15869816)
In essence MCTS + NN is just another way of tree search just like AlphaBeta or its brute force cousin Minimax.

AlphaZero just tries to be smarter about which branches to evaluate so it can go deeper.

But I would love to see AlphaZero (trained) run side by side with stockfish on an iPhone hardware and defeat it. That would be a more apples to apples comparison.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by make3 on Wednesday December 06, 2017 @07:53AM (#15860693)
they are a huge company (Google) with access to top top top talent (experts) and infinite hardware resources. I don't know why it would be surprising if they acheived performance that hadn't been acheived before
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by grumpopotamus on Wednesday December 06, 2017 @01:58AM (#15859130)
>it only takes 4 hours of training to beat Stockfish

In that time I figure they used the equivalent of about 1000 cpu-years. Imagine the things we'll be able to achieve as we can do more and more computation in less and less time.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by cdancette on Wednesday December 06, 2017 @03:59AM (#15859656)
But how many "cpu hours" of human work were used to design stockfish? You can't really compare that.

Some scientist say the brain has a power of several petaflops, so if you use this, I guess the design of stockfish was way less efficient.

You can't really compare things to cpu years, it doesn't make sense. Power consumption would be a better metric I think.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @06:25AM (#15860276)
The best metric is total cost, including the cost of the hardware as well as the electricity. It might be worth prorating the hardware by the amount of time it spends on the task, too, assuming the hardware is general enough for many purposes (like TPUs are), vs say something like EFF's DES cracker which was not.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Wednesday December 06, 2017 @11:31AM (#15862389)
A ton of CPU has gone into Stockfish, if only for their distributed computing project fishnet: http://tests.stockfishchess.org/tests
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by gwern on Wednesday December 06, 2017 @02:57PM (#15864402)
To be a little more precise: Stockfish has used >5,667,382 CPU-hours (5.6 million CPU-hours) adding up just the participants who contributed >10,000 CPU-hours according to https://github.com/mcostalba/Stockfish/blob/master/Top%20CPU...
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:45AM (#15869882)
Yes but that's training time. At runtime AlphaZero got magnitudes more computation power than stockfish.

A more fair comparison would be use as much computation needed for training but for runtime, use equal wattage hardware.

E.g 20W of cpu in mobile phone running stockfish to 20W of GPU in nvidia TX2 running AlphaZero to 20W human brain.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @06:22AM (#15860254)
> In that time I figure they used the equivalent of about 1000 cpu-years.

Are you using some kind of conversion factor from TPUs to CPUs? If so, what is it? And is it valid to do that?

You could convert the amount of time it took to render an hour's worth of gameplay from 1 GPU-hour to 50 CPU-days (or whatever), but is that really meaningful?

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @05:50PM (#15865886)
The conversion factor seems to be 1 TPU-hour ~ 500 CPU-hours in terms of flops. We can nitpick that number, but it won't change the conclusion that AlphaZero needs a boatload of compute.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by CydeWeys on Wednesday December 06, 2017 @11:34PM (#15867650)
I don't see how this is relevant though. A GPU also provides graphics rendering performance equivalent to some boatload of CPU-hours, but who cares? GPUs exist and are used for the tasks they are good at. TPU hardware isn't theoretical; it does exist and it is being mass-produced.

Yes, it needs a boatload of very simple compute (8 bit operations), the kind that CPUs are not even close to ideal at providing economically.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by red75prime on Wednesday December 06, 2017 @09:29PM (#15867136)
It needs huge amount of computations to perform a task which previously required a boatload of domain experts' brainpower too.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by tantalor on Wednesday December 06, 2017 @09:55AM (#15861427)
> doesn't work as well in chess: it works better

That's not how "as well" works.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by dragonwriter on Wednesday December 06, 2017 @09:59AM (#15861461)
Yes, it is; while the idiom standing on its own implicitly includes a leading “at least”, it is also idiomatic to use it in exactly the way used by the grandparent post, in an explicit contrast with better, where it comes with an implicit (or sometimes explicit) leading “merely” instead of “at least”.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by T-hawk on Wednesday December 06, 2017 @11:27AM (#15862345)
It's unnecessary, though, and makes the point harder to read. "It works even better" would be a perfectly sufficient description. "It works not as well as but better" is an unnecessary rhetorical flourish.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by suchow on Wednesday December 06, 2017 @12:46PM (#15863121)
The misdirection is being used as a rhetorical device — you're supposed to feel a brief confusion when you get to the colon; it's then quickly resolved.