r/chess • u/EvilNalu • Nov 16 '24
Miscellaneous 20+ Years of Chess Engine Development
About seven years ago, I made a post about the results of an experiment I ran to see how much stronger engines got in the fifteen years from the Brains in Bahrain match in 2002 to 2017. The idea was to have each engine running on the same 2002-level hardware to see how much stronger they were getting from a purely software perspective. I discovered that engines gained roughly 45 Elo per year and the strongest engine in 2017 scored an impressive 99.5-0.5 against the version of Fritz that played the Brains in Bahrain match fifteen years earlier.
Shortly after that post there were huge developments in computer chess and I had hoped to update it in 2022 on the 20th anniversary of Brains in Bahrain to report on the impact of neural networks. Unfortunately the Stockfish team stopped releasing 32 bit binaries and compiling Stockfish 15 for 32-bit Windows XP proved to be beyond my capabilities.
I gave up on this project until recently I stumbled across a compile of Stockfish that miraculously worked on my old laptop. Eager to see how dominant a current engine would be, I updated the tournament to include Stockfish 17. As a reminder, the participants are the strongest (or equal strongest) engines of their day: Fritz Bahrain (2002), Rybka 2.3.2a (2007), Houdini 3 (2012), Houdini 6 (2017), and now Stockfish 17 (2024). 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 Pentium M processor underclocked to 800 MHz to simulate 2002-era performance (roughly equivalent to a 1.4 GHz Pentium IV which was 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. Houdini 6 and Stockfish 17 were set to use a 300ms move overhead.
Results
| Engine | 1 | 2 | 3 | 4 | 5 | Total |
|---|---|---|---|---|---|---|
| Stockfish 17 | ** | 88.5-11.5 | 97.5-2.5 | 99-1 | 100-0 | 385/400 |
| Houdini 6 | 11.5-88.5 | ** | 83.5-16.5 | 95.5-4.5 | 99.5-0.5 | 290/400 |
| Houdini 3 | 2.5-97.5 | 16.5-83.5 | ** | 91.5-8.5 | 95.5-4.5 | 206/400 |
| Rybka 2.3.2a | 1-99 | 4.5-95.5 | 8.5-91.5 | ** | 79.5-20.5 | 93.5/400 |
| Fritz Bahrain | 0-100 | 0.5-99.5 | 4.5-95.5 | 20.5-79.5 | ** | 25.5/400 |
Conclusions
In a result that will surprise no one, Stockfish trounced the old engines in impressive style. Leveraging its neural net against the old handcrafted evaluation functions, it often built strong attacks out of nowhere or exploited positional nuances that its competitors didn’t comprehend. Stockfish did not lose a single game and was never really in any danger of losing a game. However, Houdini 6 was able to draw nearly a quarter of the games they played. Houdini 3 and Rybka groveled for a handful of draws while poor old Fritz succumbed completely. Following the last iteration of the tournament I concluded that chess engines had gained about 45 Elo per year through software advances alone between 2002 and 2017. That trend seems to be relatively consistent even though we have had huge changes in the chess engine world since then. Stockfish’s performance against Houdini 6 reflects about a 50 Elo gain per year for the seven years between the two.
I’m not sure whether there will be another iteration of this experiment in the future given my trouble compiling modern programs on old hardware. I only expect that trouble to increase over time and I don’t expect my own competence to grow. However, if that day does come, I’m looking forward to seeing the progress that we will make over the next few years. It always seems as if our engines are so good that they must be nearly impossible to improve upon but the many brilliant programmers in the chess world are hard at work making it happen over and over again.
74
u/EvilNalu Nov 16 '24
As an additional note, I want to acknowledge that Houdini and Rybka were the result of improper use of source code from open-source engines in violation of the licenses under which such code was released. Their inclusion in this experiment is a necessary evil to maintain historical perspective and continuity with the previous iteration and shouldn’t be interpreted as an endorsement of these actions.
18
u/farseer4 Nov 16 '24
Probably using a modern Stockfish on that hardware is a bit unfair towards modern Stockfish, as it hasn't been designed or optimized for that hardware (if I'm not mistaken, Stockfish is designed to take advantage very efficiently of large multiprocessor machines).
Of course, the difference is enough that it doesn't matter anyway.
3
u/boredcynicism Nov 16 '24
Thanks for running this test, it is nice to refer to if people think program improvement is due to hardware.
If you consider what we now know about Houdini, to some extent you are showing that new Stockfish is stronger than old Stockfish. So in retrospect that choice was unfortunate.
6
u/PangolinZestyclose30 Nov 16 '24
A nitpick, but Pentium 4 1.4 GHz was not a common processor (neither in 2002, nor ... ever). This was the first generation of Pentium 4 which was expensive (also needing expensive Rambus RAM), slow and power hungry, overall worse than P3 and the competing Athlon (or even Duron).
Your Pentium M is pretty much a revision of Pentium 3, downclocking it to 800 MHz results in a pretty representative reconstruction of what the 2002 CPUs were like.
6
u/pier4r negative elo gang Nov 16 '24 edited Nov 17 '24
great update, thank you! I referenced your older post a lot
5
u/Tin_Foiled Nov 16 '24
Great read, thank you
1
u/FlailingDino Nov 16 '24
can you DM me some details on the issues you ran into with compiling stockfish for 32 bit windows XP? might be able to help there
3
u/in-den-wolken Nov 17 '24
This is such an interesting project - thank you for sharing!
I did some digging, and it turns out the Stockfish NNUE was specifically designed to run on CPUs, for greater availability even when users around the world don't have advanced (GPU) hardware. How cool.
3
u/edwinkorir Sindarov Will Win The Candidates Nov 17 '24
Any pgn of this?
1
u/Fusillipasta 1900 OTB national Nov 16 '24
I don't know if, in the future, it might be worth contacting the team producing the top engine and seeing if they'd be interested in providing a version that is compatible with old hardware? It's really interesting that the growth has only grown very slightly even with the nnue step forward in engines.
2
u/SitasinFM Nov 16 '24
That's super interesting, thanks for doing that. It's impressive how steady progress has been year on year where each iteration dominates the previous iteration. I assume at some point things will start to slow down in terms of progress just due to it being continually harder to find new ways to improve performance and efficiency, but I suppose the recent addition of NNUEs will help to stave off any stagnation for a while
2
u/gmnotyet Nov 16 '24
| However, Houdini 6 was able to draw nearly a quarter of the games they played.
Houdini 6 was the Stockfish of its day.
Houdart did a great job with that.
2
u/MagicalEloquence Nov 16 '24
I have a question - I understand the engine is getting better, but at some point won't there be a ceiling in terms of how much it can help a human ? For example, I think a human taking help from a 3000 engine or 3400 engine would yield almost similar results. At what point do we say engines are strong enough that there is no extra benefit to humans ?
2
u/Stonehills57 Nov 16 '24
It’s incredible what great work goes into the whole ball of wax! All areas of chess life. Thank you , everyone, for the great chess advice, assistance and incredible engines! You are the champions, you are models of humanity’s best. ❤️🏆
1
u/forceghost187 Resigns Nov 19 '24
WOW Fritz. Can’t even beat Rybka