[5/6] Add Late Move Reductions (LMR) and Principal Variation Search (PVS)#37
Open
luccabb wants to merge 1 commit intofeature/iterative-deepening-aspirationfrom
Open
[5/6] Add Late Move Reductions (LMR) and Principal Variation Search (PVS)#37luccabb wants to merge 1 commit intofeature/iterative-deepening-aspirationfrom
luccabb wants to merge 1 commit intofeature/iterative-deepening-aspirationfrom
Conversation
f205ab8 to
cda6ab5
Compare
3dd9239 to
42d2d60
Compare
cda6ab5 to
0a7dc0c
Compare
42d2d60 to
bd310e6
Compare
0a7dc0c to
134def0
Compare
bd310e6 to
caf3d13
Compare
🔬 Stockfish Benchmark Resultsvs Stockfish Skill Level 3
vs Stockfish Skill Level 4
vs Stockfish Skill Level 5
Configuration
|
…PVS) Implements two key search optimizations: **Late Move Reductions (LMR):** - Reduce search depth for late quiet moves (move_index >= 3) - Only apply when: depth >= 3, not in check, move is quiet - Quiet moves = no capture, no check, no promotion - Simple reduction of 1 ply (more aggressive formulas tested but hurt accuracy) - Re-search at full depth if reduced search finds promising score **Principal Variation Search (PVS):** - First move: search with full alpha-beta window - Later moves: search with zero window (alpha, alpha+1) - If zero window search beats alpha, re-search with full window - Saves time when first move is best (which is often true with good ordering) Both techniques work together: - PVS assumes first move is best (good with TT/killer/MVV-LVA ordering) - LMR reduces work on moves unlikely to be best - Combined, they significantly reduce nodes searched Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8e565c6 to
aa2d0a7
Compare
3f314f6 to
6e50edb
Compare
Owner
Author
|
/run-nps-benchmark |
⚡ NPS Benchmark Results
Per-position breakdown |
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.
Summary
Details
Late Move Reductions (LMR)
Reduce search depth for moves that are unlikely to be the best:
Conditions:
Implementation:
Principal Variation Search (PVS)
Optimize search based on the assumption that the first move is best:
Implementation:
Test plan
🤖 Generated with Claude Code