FIDE & Google Efficient Chess AI Challenge

Discussion of chess software programming and technical issues.

Moderators: hgm, chrisw, Rebel

Robert Pope
Posts: 562
Joined: Sat Mar 25, 2006 8:27 pm

FIDE & Google Efficient Chess AI Challenge

Post by Robert Pope »

FIDE just launched a chess tournament Kaggle event with $50,000 in prize money to the top five teams.

I haven't looked at the details much yet, but I thought some people here might be interested. It runs from now until early February.

https://www.kaggle.com/competitions/fid ... e/overview
User avatar
towforce
Posts: 12097
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: FIDE & Google Efficient Chess AI Challenge

Post by towforce »

Looks like a really good chess tournament - well done Google!

Summary of the rules:

* submit a program to run as an agent

* 64 Kb program

* 5 Mb RAM

* dedicated CPU with a single core

* 10s per move (each move - time not used is not carried forward)
Want to attract exceptional people? Be exceptional.
abulmo2
Posts: 440
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: FIDE & Google Efficient Chess AI Challenge

Post by abulmo2 »

I just gave a quick look.
As I understand, the chess "agent" should be written in python. Efficient and python sounds like an oxymoron to me.
Richard Delorme
User avatar
towforce
Posts: 12097
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: FIDE & Google Efficient Chess AI Challenge

Post by towforce »

abulmo2 wrote: Thu Nov 21, 2024 2:59 pmI just gave a quick look. As I understand, the chess "agent" should be written in python. Efficient and python sounds like an oxymoron to me.

Are you sure about this? I cannot find any rules that say the agent must be written in Python. All I have seen is the the standard Kaggle Docker container includes some Python libraries: these would not actually be usable: if you attempted to import them, you'd break the 5 Mb memory limit - link.

In the golden era of the dedicated chess computer, 5 Mb would have been an absolute luxury (many had 1 Kb of RAM) - now it seems like starvation rations: even a watch has 2 Gb of RAM now (link)!
Want to attract exceptional people? Be exceptional.
Vinvin
Posts: 5252
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: FIDE & Google Efficient Chess AI Challenge

Post by Vinvin »

That remember me the first microcomputer using the hash tables from 1987 ( https://www.chessprogramming.org/Excel ) :
The Excel 68000 (12 MHz) with 16 KB of HT : https://www.schach-computer.info/wiki/i ... xcel_68000
and the Excel 68000 Mach II (12 MHz) with 128 KB of HT : https://www.schach-computer.info/wiki/i ... 00_Mach_II
Information

Differences Mach II - Excel 68000
Basic equipment such as the Fidelity Excel 68000
Price was about one third higher than that of Fidelity Excel 68000
higher playing strength due to larger hash tables (128K)
in the middle game, the Mach II is approx. compared to Excel 68000. 20-60% faster
in final performances (King + farmers) the Mach II is approx. 3-6 times faster
in certain positions (see i.e. Diagram) is the Mach II approx. 200 times faster
Image
User avatar
hgm
Posts: 28265
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: FIDE & Google Efficient Chess AI Challenge

Post by hgm »

The one who designed this challenge obviously knows zilch about chess engines:
This competition aims to shift the focus from brute-force computation to elegant and efficient design. Forget massive pre-computed tables and endless search trees – we're leveling the playing field and focusing on efficiency and strategic thinking.

You're challenged to devise innovative and efficient solutions to play chess against other agents, thereby further expanding the frontiers of AI research. Your exploration of novel, optimized techniques can address a growing complexity and scale of problems, like advancements in modeling and inference techniques and improvements upon traditional heuristic-based algorithms, beyond the realm of chess.
With 64KB program (In the binary?) and 5MB RAM it is an illusion that anything but the conventional alpha-beta engines with hand-crafted eval would stand any chance of winning this.
User avatar
towforce
Posts: 12097
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: FIDE & Google Efficient Chess AI Challenge

Post by towforce »

hgm wrote: Fri Nov 22, 2024 9:56 pm The one who designed this challenge obviously knows zilch about chess engines:
This competition aims to shift the focus from brute-force computation to elegant and efficient design. Forget massive pre-computed tables and endless search trees – we're leveling the playing field and focusing on efficiency and strategic thinking.

You're challenged to devise innovative and efficient solutions to play chess against other agents, thereby further expanding the frontiers of AI research. Your exploration of novel, optimized techniques can address a growing complexity and scale of problems, like advancements in modeling and inference techniques and improvements upon traditional heuristic-based algorithms, beyond the realm of chess.
With 64KB program (In the binary?) and 5MB RAM it is an illusion that anything but the conventional alpha-beta engines with hand-crafted eval would stand any chance of winning this.
:)
Want to attract exceptional people? Be exceptional.
abulmo2
Posts: 440
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: FIDE & Google Efficient Chess AI Challenge

Post by abulmo2 »

towforce wrote: Thu Nov 21, 2024 5:25 pm
abulmo2 wrote: Thu Nov 21, 2024 2:59 pmI just gave a quick look. As I understand, the chess "agent" should be written in python. Efficient and python sounds like an oxymoron to me.
Are you sure about this? I cannot find any rules that say the agent must be written in Python. All I have seen is the the standard Kaggle Docker container includes some Python libraries: these would not actually be usable: if you attempted to import them, you'd break the 5 Mb memory limit - link.
For what I understand other languages are allowed but they need to be interfaced with a python file to communicate with the "kaggle environment". Many things are unclear to me. They use lawyers jargon everywhere and just give some (poorly written) code examples on how to proceed. I guess the usual UCI or xboard protocols are useless here.
As I understand the 64kb limit is the size of the compressed source code (with the docker configuration files), not the executable. You have to use Docker to compile your code & execute it. Of course limiting the size of source code is an invitation to write obfuscated code without comments, without indentation, and with unreadable short names every where. That way I guess stokfish with hand crafted evaluation can easily fit the limitation.
The 5Mb limits does not count python size & "the kaggle environment". They are above them...
The rules are not very smart either. For example using a 10s + 0.1s simple delay per move is something unseen on computer chess.
Terrible !
Richard Delorme
User avatar
mclane
Posts: 18839
Joined: Thu Mar 09, 2006 6:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub

Re: FIDE & Google Efficient Chess AI Challenge

Post by mclane »

Looks very interesting.
In 64 kb you can do a lot.
At least kittinger, spracklens, schroeder, rathsmann, kaplan and martin bryant , frans morsch and others COULD do.
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....
User avatar
hgm
Posts: 28265
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: FIDE & Google Efficient Chess AI Challenge

Post by hgm »

mclane wrote: Sat Nov 23, 2024 9:31 am Looks very interesting.
In 64 kb you can do a lot.
At least kittinger, spracklens, schroeder, rathsmann, kaplan and martin bryant , frans morsch and others COULD do.
Well, as said above, it seems the limits are so generous that even Stockfish HCE could enter, after feeding the source to an uglifyer and compressing it. So it is really no contest.