Approximate Dynamic Programming Finally Performs Well in the Game of Tetris

Victor Gabillon, Mohammad Ghavamzadeh, Bruno ScherrerNeurIPS 2013

The Tetris Challenge: A Historical Performance Gap

Tetris is a notoriously difficult benchmark for Reinforcement Learning (RL) and optimization. With a staggering state space of roughly $10^{60}$ configurations, finding an optimal strategy is an NP-hard problem. For decades, Approximate Dynamic Programming (ADP) struggled to master the game, consistently losing to simpler "black-box" optimization methods.

Historically, researchers observed a strange performance gap in the literature:

  1. Value-based ADP: Methods that attempt to estimate the "value" (expected future score) of a board state performed poorly, often clearing only a few thousand lines.
  2. Black-box Optimization: Methods like Cross-Entropy (CE) search, which ignore the game's internal dynamics and directly "tweak" policy parameters, reached scores in the tens of millions.

This paper identifies the culprit behind this gap: searching for a complex value function is inherently harder in Tetris than searching for a simpler policy. By introducing a classification-based algorithm, the authors set a new world record of 51 million lines while being significantly more sample-efficient than previous leaders.

Bridging the Gap with CBMPI

The authors hypothesize that in Tetris, a "good policy" (knowing which move to make) is much easier to represent and learn than a "good value function" (knowing exactly how many lines a state is worth). Value functions in Tetris are likely highly non-linear and noisy, making them hard to approximate with linear models. The logic for a good move, however, is more stable.

To prove this, they employ Classification-Based Modified Policy Iteration (CBMPI), an approach that bridges the gap between traditional dynamic programming and direct policy search.

  • The "Modified" Part: Unlike standard Policy Iteration, which alternates between full evaluation and improvement, CBMPI uses a parameter $m$ to perform multi-step lookaheads. This allows for a flexible trade-off between accurate value estimation and computational speed.
  • The "Classification" Part: Instead of deriving a policy implicitly from a value function, CBMPI treats the "greedy step" as a multi-class classification problem. It asks: "Given these possible moves, which one would a greedy agent choose?" and trains a classifier to predict that action directly.
  • Optimization: The algorithm maintains a regressor to approximate the value function and a classifier to represent the policy, using the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) to minimize empirical error during policy improvement.

Key Results and Sample Efficiency

The authors evaluated their approach on both a "Small" $10 \times 10$ board and the standard "Large" $10 \times 20$ board, utilizing established feature sets like the Dellacherie-Thiery (D-T) features and a new set of RBF Height features.

Dominating the Small Board

On the $10 \times 10$ board, CBMPI reached approximately 4,300 lines, significantly outperforming standard ADP methods like $\lambda$-PI (which historically scored around 400 lines) and the Cross-Entropy method.

CBMPI performance on the 10x10 board

As seen above, CBMPI's performance scales effectively with different rollout sizes ($m$), quickly converging to high scores. In contrast, the Cross-Entropy method plateaus lower, averaging around 3,000 lines.

CE performance on the 10x10 board

Setting a New State-of-the-Art on the Large Board

On the standard $10 \times 20$ board, the results were even more striking. CBMPI achieved an average score of 51,000,000 lines, shattering the previous best-reported result of ~35,000,000 lines.

Furthermore, because CBMPI uses the Bellman operator and "understands" the transition dynamics of the game, it requires far fewer game simulations to learn. To reach these elite performance levels, CBMPI used approximately 256 million samples, compared to the 1.7 billion samples required by the Cross-Entropy method. This represents a nearly 6x improvement in sample efficiency, proving that ADP can "squeeze" more information out of every sample than black-box methods.

Limitations and Future Directions

While CBMPI is powerful, it still relies heavily on hand-crafted features (like "number of holes" or "column heights"). The authors note that the choice of features is often the difference between clearing millions of lines and only a few hundred. Additionally, the internal optimization (CMA-ES) and regression steps are computationally intensive per iteration.

However, this classification-based framework opens exciting future directions. It could be extended to other domains where the policy is simpler than the value function, potentially paving the way for deep learning architectures to learn these features automatically from raw board pixels.

Summary updated

BibTeX
@inproceedings{gabillon2013approximate,
  author = {Victor Gabillon and Mohammad Ghavamzadeh and Bruno Scherrer},
  title = {{Approximate Dynamic Programming Finally Performs Well in the Game of Tetris}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=BkW6JwW_-B},
}
Figure