Adjust LMR based on critical chain length - #1124
Merged
codedeliveryservice merged 3 commits intoAug 24, 2026
Merged
Conversation
codedeliveryservice
merged commit Aug 24, 2026
3de3973
into
codedeliveryservice:main
17 of 23 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch is inspired by the principle of Heavy Light Decomposition. Instead, we define a heavy edge as the one where we played our most promising option. We then adjust the LMR reduction based on the length of our current current chain of "best moves", which we use as a prediction of the node's value (and thus reduce less on its branches accordingly).
STC:
Elo | 2.03 +- 1.56 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=16MB
LLR | 3.08 (-2.25, 2.89) [0.00, 3.00]
Games | N: 51114 W: 12980 L: 12681 D: 25453
Penta | [183, 5955, 13010, 6198, 211]
https://recklesschess.space/test/15642/
LTC:
Elo | 1.82 +- 1.44 (95%)
SPRT | 40.0+0.40s Threads=1 Hash=64MB
LLR | 2.93 (-2.25, 2.89) [0.00, 3.00]
Games | N: 51310 W: 12743 L: 12474 D: 26093
Penta | [21, 5695, 13954, 5964, 21]
https://recklesschess.space/test/15643/
Bench: 2894755