[Paper Review] TDLeaf(lambda): Combining Temporal Difference Learning with Game-Tree Search
TDLeaf(λ) is a novel temporal difference learning algorithm that trains evaluation functions using leaf-node values from deep minimax game-tree searches, significantly improving performance in chess by enabling online self-play against human and computer opponents. In experiments, a chess program using TDLeaf(λ) improved from 1650 to 2100 rating in 308 games, demonstrating that leaf-node training yields superior policy learning compared to root-node or self-play methods.
In this paper we present TDLeaf(lambda), a variation on the TD(lambda) algorithm that enables it to be used in conjunction with minimax search. We present some experiments in both chess and backgammon which demonstrate its utility and provide comparisons with TD(lambda) and another less radical variant, TD-directed(lambda). In particular, our chess program, ``KnightCap,'' used TDLeaf(lambda) to learn its evaluation function while playing on the Free Internet Chess Server (FICS, fics.onenet.net). It improved from a 1650 rating to a 2100 rating in just 308 games. We discuss some of the reasons for this success and the relationship between our results and Tesauro's results in backgammon.
Motivation & Objective
- To address the challenge of training effective evaluation functions in deterministic, deep-search games like chess, where standard TD(λ) struggles due to poor generalization from root-node states.
- To improve learning efficiency and convergence speed by leveraging leaf-node values from deep minimax searches, which better reflect actual game outcomes.
- To compare TDLeaf(λ) with TD-directed(λ) and standard TD(λ) in both chess and backgammon, evaluating performance across different search depths and training regimes.
- To investigate whether on-line, human-in-the-loop training outperforms self-play in deterministic games, particularly when starting from suboptimal weights.
- To determine whether leaf-node training yields better generalization than root-node training in games requiring deep tactical evaluation.
Proposed method
- TDLeaf(λ) extends TD(λ) by using the temporal difference update rule but applies it to leaf-node state values extracted from deep minimax search trees, rather than root-node values.
- The algorithm stores the leaf-node values from the principal variation at each move, using them as targets for temporal difference updates to refine the evaluation function.
- It employs a parameterized function approximator (e.g., linear or neural network) to represent the evaluation function, with weights updated online after each game move using the TD(λ) update rule applied to leaf states.
- The method supports on-line learning during actual gameplay, allowing the agent to improve its evaluation function in real time against diverse opponents.
- For backgammon, the algorithm was adapted to handle stochasticity and tested with two-ply search, comparing performance against standard TD(λ) and TD-directed(λ) using fixed weights.
- Experiments used both self-play and human opponent play, with performance measured via match results and rating changes on online servers (FICS, FIBS).
Experimental results
Research questions
- RQ1Does training on leaf-node values from deep minimax search lead to faster and more effective learning of evaluation functions than training on root-node values?
- RQ2Can TDLeaf(λ) significantly improve performance in deterministic games like chess, where deep tactical evaluation is essential?
- RQ3How does on-line learning against real human and computer opponents compare to self-play in terms of convergence speed and final performance?
- RQ4Is the improvement from leaf-node training dependent on the depth of search, and does it generalize across different games (chess vs. backgammon)?
- RQ5Does the optimal evaluation function for one-ply search remain optimal for deeper search, or does deeper search require a different function?
Key findings
- KnightCap, a chess program using TDLeaf(λ), improved from a 1650 rating to a 2100 rating in just 308 games of on-line play against human and computer opponents on FICS.
- Self-play training alone was ineffective, as a version trained only on self-play achieved only 11 points out of 100 in a match against the FICS-trained version, indicating that on-line, diverse opponent play is critical for fast convergence.
- The improvement in chess performance was attributed to the more representative distribution of leaf-node states compared to root-node states, which better reflect actual game outcomes after deep search.
- In backgammon, no significant performance gain was observed when using TDLeaf(λ) over standard TD(λ), suggesting that the optimal evaluation function for one-ply play is already near-optimal for two-ply search.
- TD-directed(λ) and TDLeaf(λ) both failed to outperform standard TD(λ) in backgammon, indicating that the solution space may already be near-optimal after standard training.
- Starting near a good set of initial weights was crucial for fast convergence, as a second experiment with random initialization showed only a 280-point gain after 600 games—much slower than the 450-point gain in the FICS experiment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.