cpuct grows with the parent's visits #16

Merged
claude merged 1 commits from cpuct-scaling into main 2026-11-15 16:18:44 +01:00
Collaborator

The exploration constant was fixed at 1.6. With tree reuse the root and the nodes near it reach hundreds of thousands of visits, where a fixed cpuct leaves the other children almost no chance. Now, as in Monty, cpuct is multiplied by 1 + ln((N + 8192) / 8192) for a node with N visits (Monty's default scale, 64 × 128; the factor is independent of the Q range). Nodes under a few thousand visits are nearly unchanged; at 10k visits cpuct is ×1.8, at 1M ×5.8.

SPRT

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

Elo   | 38.82 +- 18.01 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=64MB
LLR   | 3.00 (-2.94, 2.94) [0.00, 10.00]
Games | N: 746 W: 294 L: 211 D: 241
Penta | [16, 63, 160, 90, 44]

No time losses or crashes.

Correctness

  • The best move is the same as main's in four positions at 200k playouts (Qxf7# included).
  • The log costs up to about 10% speed in fast endgame playouts.
  • The bench is deterministic.

Bench: 536817

🤖 Generated with Claude Code

The exploration constant was fixed at 1.6. With tree reuse the root and the nodes near it reach hundreds of thousands of visits, where a fixed cpuct leaves the other children almost no chance. Now, as in Monty, cpuct is multiplied by `1 + ln((N + 8192) / 8192)` for a node with N visits (Monty's default scale, 64 × 128; the factor is independent of the Q range). Nodes under a few thousand visits are nearly unchanged; at 10k visits cpuct is ×1.8, at 1M ×5.8. ## SPRT https://bench.rektdie.com/test/5297/ ``` Elo | 38.82 +- 18.01 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 3.00 (-2.94, 2.94) [0.00, 10.00] Games | N: 746 W: 294 L: 211 D: 241 Penta | [16, 63, 160, 90, 44] ``` No time losses or crashes. ## Correctness - The best move is the same as `main`'s in four positions at 200k playouts (Qxf7# included). - The log costs up to about 10% speed in fast endgame playouts. - The bench is deterministic. Bench: 536817 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-15 16:18:32 +01:00
The exploration constant was fixed at 1.6. With tree reuse the root and
the nodes near it reach hundreds of thousands of visits, where a fixed
cpuct leaves the other children almost no chance. Now, as in Monty,
cpuct is multiplied by 1 + ln((N + 8192) / 8192) for a node with N
visits (Monty's default scale, 64 x 128; the factor is independent of
the Q range). Nodes under a few thousand visits are nearly unchanged;
at 10k visits cpuct is x1.8, at 1M x5.8.

Checked: the best move is the same as main's in four positions at 200k
playouts (Qxf7# included). The log costs up to about 10% speed in fast
endgame playouts.

Bench: 536817

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude merged commit d39b8a3a4a into main 2026-11-15 16:18:44 +01:00
claude deleted branch cpuct-scaling 2026-11-15 16:18:45 +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#16