r/chess • u/EvilNalu • Oct 14 '17
15 Years of Chess Engine Development
Fifteen years ago, in October of 2002, Vladimir Kramnik and Deep Fritz were locked in battle in the Brains in Bahrain match. If Kasparov vs. Deep Blue was the beginning of the end for humans in Chess, then the Brains in Bahrain match was the middle of the end. It marked the first match between a world champion and a chess engine running on consumer-grade hardware, although its eight-processor machine was fairly exotic at the time.
Ultimately, Kramnik and Fritz played to a 4-4 tie in the eight-game match. Of course, we know that today the world champion would be crushed in a similar match against a modern computer. But how much of that is superior algorithms, and how much is due to hardware advances? How far have chess engines progressed from a purely software perspective in the last fifteen years? I dusted off an old computer and some old chess engines and held a tournament between them to try to find out.
I started with an old laptop and the version of Fritz that played in Bahrain. Playing against Fritz were the strongest engines at each successive five-year anniversary of the Brains in Bahrain match: Rybka 2.3.2a (2007), Houdini 3 (2012), and Houdini 6 (2017). The tournament details, cross-table, and results are below.
Tournament Details
- Format: Round Robin of 100-game matches (each engine played 100 games against each other engine).
- Time Control: Five minutes per game with a five-second increment (5+5).
- Hardware: Dell laptop from 2006, with a 32-bit Pentium M processor underclocked to 800 MHz to simulate 2002-era performance (roughly equivalent to a 1.4 GHz Pentium IV which would have been a common processor in 2002).
- Openings: Each 100 game match was played using the Silver Opening Suite, a set of 50 opening positions that are designed to be varied, balanced, and based on common opening lines. Each engine played each position with both white and black.
- Settings: Each engine played with default settings, no tablebases, no pondering, and 32 MB hash tables, except that Houdini 6 played with a 300ms move overhead. This is because in test games modern engines were losing on time frequently, possibly due to the slower hardware and interface.
Results
| Engine | 1 | 2 | 3 | 4 | Total |
|---|---|---|---|---|---|
| Houdini 6 | ** | 83.5-16.5 | 95.5-4.5 | 99.5-0.5 | 278.5/300 |
| Houdini 3 | 16.5-83.5 | ** | 91.5-8.5 | 95.5-4.5 | 203.5/300 |
| Rybka 2.3.2a | 4.5-95.5 | 8.5-91.5 | ** | 79.5-20.5 | 92.5/300 |
| Fritz Bahrain | 0.5-99.5 | 4.5-95.5 | 20.5-79.5 | ** | 25.5/300 |
I generated an Elo rating list using the results above. Anchoring Fritz's rating to Kramnik's 2809 at the time of the match, the result is:
| Engine | Rating |
|---|---|
| Houdini 6 | 3451 |
| Houdini 3 | 3215 |
| Rybka 2.3.2a | 3013 |
| Fritz Bahrain | 2809 |
Conclusions
The progress of chess engines in the last 15 years has been remarkable. Playing on the same machine, Houdini 6 scored an absolutely ridiculous 99.5 to 0.5 against Fritz Bahrain, only conceding a single draw in a 100 game match. Perhaps equally impressive, it trounced Rybka 2.3.2a, an engine that I consider to have begun the modern era of chess engines, by a score of 95.5-4.5 (+91 =9 -0). This tournament indicates that there was clear and continuous progress in the strength of chess engines during the last 15 years, gaining on average nearly 45 Elo per year. Much of the focus of reporting on man vs. machine matches was on the calculating speed of the computer hardware, but it is clear from this experiment that one huge factor in computers overtaking humans in the past couple of decades was an increase in the strength of engines from a purely software perspective. If Fritz was roughly the same strength as Kramnik in Bahrain, it is clear that Houdini 6 on the same machine would have completely crushed Kramnik in the match.
45
u/Gary_Internet Oct 14 '17
Very interesting experiment. Thanks for doing this. I can only imagine what Houdini 6 would be capable of doing when running on a mid range consumer laptop from 2017 but no other changes in the settings you used.
TCEC Season 10 started today, so this is a very timely post.
12
u/Woett Oct 14 '17
Thanks, this is awesome!! (I don't have anything to add myself, but I did want to thank you for doing this experiment and the write-up. Well done!)
9
u/[deleted] Oct 14 '17
What does that mean?
Thanks for doing this tournament.
5
u/[deleted] Oct 15 '17
What kind of education background do you have? It strikes me that a mathematician or computer scientist could write a pretty compelling paper by going deeper into this.
But then again, I've drunk enough beer tonight that I was just checkmated by a player rated 200 pts lower than me on lichess, so who knows.
3
u/nexus6ca NCM Oct 14 '17
Whats interesting is if you put the older program on modern hardware and see how it scales that way.
I expect the results about the same.
3
u/Scumtacular Oct 15 '17
Will chess become solved? What is preventing it from being solved? What do you think about the applications of quantum computing for chess?
2
u/sunkill Oct 15 '17
Fascinating.
Best guesses from you guys who know about this—if Magnus played a 100 game match like this against top software and hardware how would he fare?
2
u/SebastianDoyle Oct 15 '17
I'd be interested in the results of some games with longer time controls, if you're up for that. 5 minute games might disadvantage some programs that like to "think harder". Does that make any sense? I mean there are human players of medium strength at regular time controls but extremely strong at 5 minute, and vice versa.
Congrats and thanks for the experiment either way. Fwiw there's a youtube video of Carlsen playing a game against his mobile phone (maybe comparable to your 2006 laptop in cpu speed), getting in some trouble, but eventually beating it.
96
u/[deleted] Oct 14 '17
I would just like to say thank you for performing this 'experiment.' Your hypothesis is something I (and others) suspected as being 100% correct, and now it's nice to have some empirical verification.
6
u/[deleted] Oct 14 '17
I just want to thank you for your efforts. This is a very interesting topic.
1
u/ursvp Oct 14 '17
Under similar experimental conditions, what would be Stockfish's rating?
1
u/sozzZ Oct 14 '17
Very cool post. Just curious how you ran the actual games, did you write code? How did you simulate the computers playing one another on the same board..
1
u/[deleted] Oct 15 '17
You have to be a bit careful here. Playing different versions of the same engine against each other will inflate the rating difference. If you look at the origin of Houdini, you will see that it is related not only to itself but also to Rybka/Fruit (it is based on an open sourced reverse engineering of Rybka 4) . I don't disagree with the eventual conclusion though. Software has massively improved.
1
u/d_ahura Oct 15 '17
Here's a similar experiment from 2010 comparing Crafty over fifteen years. From 1995 to 2010:
http://www.talkchess.com/forum/viewtopic.php?t=36059
1
u/_felagund lichess 2050 Dec 06 '17
Google Deep Mind crushed Stockfish just by 4 hours of self training (no databases - no programing)
https://www.theverge.com/2017/12/6/16741106/deepmind-ai-chess-alphazero-shogi-go
6
u/factotumjack Oct 14 '17
Upvoted. Saved.
If you posted this as an article on some chess or AI blog or news site as a guest contributor, you could get some revenue for it.
3
u/Twitch_Smokecraft Oct 15 '17
This was a very enjoyable read. Thanks for the great post
2
u/kartoqraf Team Ding Oct 14 '17
Awesome job! Thanks, OP!
2
u/electricmaster23 Oct 15 '17
What about a modern engine on an old machine vs. an old engine on a modern machine?
3
u/ducksauce Oct 14 '17
This is incredible. Yes, engines have made huge advances over the past 15 years. Another event from almost 15 years ago was the publication of Modern Chess Analysis by Robin Smith. If you read through it now, about half of it is irrelevant because those areas where engines made poor decisions and could be outsmarted by humans don't exist anymore.
There are still some areas where engines are much weaker than humans (e.g. schematic thinking, understanding many kinds of endgames, closed positions), but they have evolved into different creatures than they were even 10 years ago.
0
u/daytodave 1200 chess.com rapid Oct 14 '17
Something I've always wondered about computer versus human chess: How much of the human's brain, by weight or by volume, is actually contributing to their chess in some way (not counting vision and making your arm move)?
How would the Carlsen vs. Stockfish match play if both players were restricted to the same weight or volume of hardware for running their algorithms?
1
u/MelissaClick Oct 15 '17
Excellent work, OP. Thank you.
1
u/ckfng Oct 15 '17
Wow very insightful thanks for sharing. This is always a hot topic for discussion glad you were able to provide us more concrete information.
1
u/Kurdock Oct 15 '17
Brains in Bahrain ahahaha. Never heard of it but that's an interesting name.
Great work by the way!
1
u/TheGreatRao Oct 15 '17
Wonderful analysis that quantifies and reveals what we've all suspected. Projecting from this analysis, I wonder what machine learning and AI engines will be able to do in the next twenty years.
1
u/TotesMessenger Oct 20 '17
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/Gary_Internet Oct 22 '17
From the Wikipedia entry on the Brains in Bahrain:
Kramnik was given several advantages in his match against Fritz. The code of Fritz was frozen some time before the first match and Kramnik was given a copy of Fritz to practice with for several months. Another difference was that in games lasting more than 56 moves, Kramnik was allowed to adjourn until the following day, during which time he could use his copy of Fritz to aid him in his overnight analysis of the position.
Kramnik had all those advantages and was playing against the worst performing engine (Deep Fritz 7) from in the original post and managed a 4-4 draw. This is Kramnik, a world champion with an ELO rating of at least 2600.
Look how poorly that same software did even against Rybka 2.3.2a.
1
u/_felagund lichess 2050 Oct 14 '17 edited Oct 15 '17
I really liked your approach. Now machine learning ai is on rise so we can expect even far stronger engines. (deep mind, open ai etc..)
-1
u/tommygeek Oct 14 '17 edited Oct 14 '17
I wonder how much of this has to do with the fact that more modern engines can take advantage of advances in hardware that your machine actually has. Even if you underclock, hyperthreading, virtual processors and the like could be taken advantage of by the more modern software. And without tablebases, and given otherwise equal resources, this would allow the modern engines to edge out the older one.
I also wonder if they were both running simultaneously on the same machine. It could be that the newer engines "starved" the old engines of resources.
Edit: just read that it was a 2006 laptop, but I would still be willing to bet that both hyperthreading and virtual processors would be a factor.
Edit 2: Apparently the Pentium Ms were single core chips with no hyperthreading. Interesting. I rescind that part of my commentary.