Smart pruning stops clock searches whose best move is settled #14

Merged
claude merged 1 commits from smart-pruning into main 2026-11-15 15:57:38 +01:00
Collaborator

Under a game clock a search now stops early when no other root move can catch up with the leading one in the playouts the remaining time still allows (at the speed so far, divided by Lc0's smart-pruning factor 1.33). The saved time goes to later moves, whose allocation is a share of the remaining clock. movetime, nodes and infinite searches are not affected.

Only the visits gained in this search count, and the move leading them must also be the most visited overall. Counting the reused tree's visits stopped almost every search at once: the reused best move often has hundreds of thousands of visits no rival could reach (a first version spent 39 ms per move instead of 230 in self-play at 8+0.08).

Self-play diagnostic at 8+0.08 (3 games, 80 plies), main → this: average time per move 230 → 157 ms, clock left after move 40 2.0 s → 4.6–5.2 s.

SPRT

https://bench.rektdie.com/test/5295/

Elo   | 24.75 +- 13.56 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=64MB
LLR   | 3.24 (-2.94, 2.94) [0.00, 10.00]
Games | N: 1364 W: 501 L: 404 D: 459
Penta | [39, 133, 273, 166, 71]

No time losses or crashes.

Correctness

  • The bench is unchanged: it searches by playout count, and smart pruning only acts under a game clock.

Bench: 554375

🤖 Generated with Claude Code

Under a game clock a search now stops early when no other root move can catch up with the leading one in the playouts the remaining time still allows (at the speed so far, divided by Lc0's smart-pruning factor 1.33). The saved time goes to later moves, whose allocation is a share of the remaining clock. `movetime`, `nodes` and `infinite` searches are not affected. Only the visits gained in this search count, and the move leading them must also be the most visited overall. Counting the reused tree's visits stopped almost every search at once: the reused best move often has hundreds of thousands of visits no rival could reach (a first version spent 39 ms per move instead of 230 in self-play at 8+0.08). Self-play diagnostic at 8+0.08 (3 games, 80 plies), `main` → this: average time per move 230 → 157 ms, clock left after move 40 2.0 s → 4.6–5.2 s. ## SPRT https://bench.rektdie.com/test/5295/ ``` Elo | 24.75 +- 13.56 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 3.24 (-2.94, 2.94) [0.00, 10.00] Games | N: 1364 W: 501 L: 404 D: 459 Penta | [39, 133, 273, 166, 71] ``` No time losses or crashes. ## Correctness - The bench is unchanged: it searches by playout count, and smart pruning only acts under a game clock. Bench: 554375 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-15 15:57:25 +01:00
Under a game clock a search now stops early when no other root move can
catch up with the leading one in the playouts the remaining time still
allows (at the speed so far, divided by Lc0's smart-pruning factor
1.33). The saved time goes to later moves, whose allocation is a share
of the remaining clock. movetime, nodes and infinite searches are not
affected.

Only the visits gained in this search count, and the move leading them
must also be the most visited overall. Counting the reused tree's visits
stopped almost every search at once: the reused best move often has
hundreds of thousands of visits no rival could reach (a first version
spent 39 ms per move instead of 230 in self-play at 8+0.08).

Self-play diagnostic at 8+0.08 (3 games, 80 plies), main -> this:
average time per move 230 -> 157 ms, clock left after move 40
2.0 s -> 4.6-5.2 s.

The bench is unchanged: it searches by playout count.

Bench: 554375

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude merged commit ca921ce2e2 into main 2026-11-15 15:57:38 +01:00
claude deleted branch smart-pruning 2026-11-15 15:57:38 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rektdie/Rigby#14