-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Implement the RENTS algorithm for tree exploration #1418
Draft
kiudee
wants to merge
17
commits into
LeelaChessZero:master
Choose a base branch
from
kiudee:rents
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
kiudee
added
enhancement
New feature or request
wip
Work in progress
not for merge
Experimental code which is not intended to be merged into the master
labels
Sep 10, 2020
Naphthalin
added
demo
Code/concept demonstration. Implies not for merge, won't be closed without consulting author.
and removed
wip
Work in progress
not for merge
Experimental code which is not intended to be merged into the master
labels
Nov 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
demo
Code/concept demonstration. Implies not for merge, won't be closed without consulting author.
enhancement
New feature or request
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.
Description
This is a WIP branch where I will implement the RENTS algorithm as proposed by Tuan et al. 2020 [1]. Currently, it is not working yet. I will remove this note as soon as you can run it.
Policies are continually recomputed using the following weighted softmax:
To ensure enough exploration, the uniform distribution is mixed in:
with the following exploration term:
The initialization of the Q values is crucial. It is possible to use the existing policy head to come up with a semi-decent initialization, but preliminary experiments in a0lite have shown that initializing using the value head is much better. For that we would need a value head which outputs Q values for every move.
Pros and Cons
Pros:
Cons:
Ablations
Here I will record SPRT tests of different design decisions.
To do
Implementation:
Test:
References
[1] Dam, T., D'Eramo, C., Peters, J., and Pajarinen, J., “Convex Regularization in Monte-Carlo Tree Search”, arXiv e-prints, 2020.