Levin Tree Search (LTS) is a best-first search policy tree search method that uses a policy to guide the search. Rather than ordering nodes solely by the policy , it also incorporates the node depth to account for nodes which increases in depth but remain constant in path probability.
where is the path probability from the root to node , and is the depth of node .
Analysis
The novelty of policy tree search algorithms is that they come with a bound on the number of node expansions before expanding a goal node.
Theorem
The number of node expansions LTS requires before reaching the goal node with minimal Levin cost is bounded by
The Levin cost is not merely a priority rule; for a goal node , the quantity upper-bounds the amount of search effort required to read that node. In this sense, the evaluation function serves as a proxy for first-solution search effort rather than an unrelated priority score.
Implementation
Numerical Stability
The path probabilities may decrease exponentially with depth, which can lead to numerical underflow. Since applying a monotone transformation preserves the expansion order induced by the evaluation function, it is often preferable to compute Levin-style costs in log-space:
Moreover, if is a child of , then the log-path probability can be updated incrementally:
Avoiding Zero Probabilities
To avoid zero probabilities being assigned to various paths, one can mix the policy with a uniform policy: