The PUCT (Predictor-Upper Confidence Bounds applied to Trees) formula used in AlphaGo is a mathematical combination of two important concepts in reinforcement learning: Monte Carlo Tree Search (MCTS) and Upper Confidence Bounds (UCB) algorithm.
Here's a breakdown of the mathematical justification:
- Monte Carlo Tree Search (MCTS): This is a search algorithm that is used to find the optimal action in a given state by simulating a large number of random games (rollouts) and analyzing the results. The basic idea is that the more promising a move appears to be, the more times it is likely to be explored. This is achieved by expanding the search tree in the direction of moves that have shown promise in previous simulations.
- Upper Confidence Bounds (UCB) algorithm: This is a mathematical algorithm that helps balance the trade-off between exploration and exploitation in decision-making problems. The basic idea is that the algorithm favors actions that have not been explored much in the past (to encourage exploration), but also takes into account the rewards obtained from previous experiences (to encourage exploitation). The UCB algorithm uses a formula that combines the average reward of an action with an exploration term that increases with the uncertainty associated with that action.
The PUCT formula used in AlphaGo is a combination of the MCTS algorithm and the UCB algorithm. Specifically, it uses the following formula to determine which node to explore next:
PUCT(s,a)=Q(s,a)+U(s,a)
where:
- (s) is the current state of the game
- (a) is the action being considered
- (Q(s,a)) is the estimated value of taking action (a) in state (s) (based on the results of previous simulations)
- (U(s,a)) is the exploration term, which encourages the algorithm to explore less-visited actions
The exploration term (U(s,a)) is defined as follows:
U(s,a)=c⋅1+N(s,a)
where:
- (c) is a constant that controls the level of exploration (typically set to around 1.5)
- (N(s,a)) is the number of times action (a) has been taken in state (s)
- (N(s,b)) is the number of times any action (b) has been taken in state (s)
The first term in the PUCT formula, (Q(s,a)), is calculated using a value network that has been trained to predict the expected outcome of a game given a particular state and action. The second term, (U(s,a)), encourages exploration of less-visited actions by adding a bonus to the estimated value of those actions. The bonus is proportional to the uncertainty associated with those actions, as measured by the number of times they have been visited in the past.
By combining these two terms, the PUCT formula is able to balance the trade-off between exploration and exploitation in a principled way, leading to efficient and effective search for the optimal move in a complex game like Go.