LeelaChessZero / lc0

The rewritten engine, originally for tensorflow. Now all other backends have been ported here.
GNU General Public License v3.0
2.38k stars 525 forks source link

Modify legacy TM to allow a bonus for first move if we expect shallow openings #1891

Closed Naphthalin closed 1 year ago

Naphthalin commented 1 year ago

adds a first-move-bonus to legacy time manager to accompany book-ply-bonus for shallow openings especially in FRC and DFRC.

Reasoning: Due to high % of tree reuse and saved time from smart pruning, LTC games at TCEC without spending more time on the first move have nearly linearly increasing node counts for the first 8-12 moves (see #1493). When playing chess from regular startpos, this isn't an issue due to policy head agreeing with value head. However, we can't rely on policy in FRC and DFRC, so having an option which does the same without book exits would be required. Based on the 8-12 move observation which is (nearly) made equal for 12+ ply exits with book-ply-bonus=0.4, I recommend using first-move-bonus=5.0.