Discovering High-Quality Chess Puzzles with Offline Reinforcement Learning
Organizations: Stanford University · UC Berkeley
Abstract
Learning and skill mastery require extensive and deliberate practice. In many learning settings, producing high-quality pedagogical materials can require a high level of domain expertise and be very time-consuming. Pedagogical materials often need to train students to engage in different thinking patterns. In some domains, such as chess, puzzles are used to help students practice their skills in calculating the next moves and recognizing known patterns on a board. Giving students a practice set of puzzles to help them learn different modes of thinking is challenging because the teacher needs to carefully balance between different motifs and how many look-ahead steps a student needs to perform. Popular online platforms like Chess.com and Lichess offer players millions of puzzles. Unlike chess tactics puzzles procured by human experts, where chess beginners can learn valuable insights, these puzzles are automatically generated and often regarded as having low pedagogical value. These platforms also rely on a heuristic to recommend puzzles to users for practice. Using the user history data over an entire year, a total of 1.5 billion puzzle-solving histories, we learn the pedagogical value of a puzzle and how to automatically choose a set of puzzles to better support chess learners using insights from offline reinforcement learning. We show that using offline policy evaluation, our trained policy has significant impact on beginners with puzzle-solving Elo range of 100--1000, particularly for the group of beginners whose learning growth was stagnant. We also performed a qualitative analysis of the puzzles discovered by our model by collecting annotation ratings from expert chess players. The success of our pipeline shows promise for a future where we can understand the pedagogical values of practice items given general user interaction data.
Figures & tables
| Category | Range |
|---|---|
| Calculation | 1–4 |
| Pattern | 1–3 |
| Informativeness | 1–5 |
| Appropriateness | 1–5 |
| Quality | 1–5 |
| Fun | 1–5 |
| Elo | Stagnant Group | Growth Group | Average | |||
|---|---|---|---|---|---|---|
| 100–600 | 14.3\,\text{\scriptsize\pm}\,\text{\scriptsize 1.5} | \mathbf{52.9}\,\text{\scriptsize\pm}\,\text{\scriptsize{3.0}} | {17.7}\,\text{\scriptsize\pm}\,\text{\scriptsize{0.4}} | \mathbf{58.8}\,\text{\scriptsize\pm}\,\text{\scriptsize{1.7}} | 16.9\,\text{\scriptsize\pm}\,\text{\scriptsize 0.5} | \mathbf{57.4}\,\text{\scriptsize\pm}\,\text{\scriptsize{1.5}} |
| 600–1000 | 14.1\,\text{\scriptsize\pm}\,\text{\scriptsize 1.2} | \mathbf{27.0}\,\text{\scriptsize\pm}\,\text{\scriptsize{6.7}} | {20.9}\,\text{\scriptsize\pm}\,\text{\scriptsize{0.5}} | \mathbf{42.3}\,\text{\scriptsize\pm}\,\text{\scriptsize{3.2}} | 19.5\,\text{\scriptsize\pm}\,\text{\scriptsize 0.4} | \mathbf{39.2}\,\text{\scriptsize\pm}\,\text{\scriptsize{2.9}} |
| 1000–1500 | 12.3\,\text{\scriptsize\pm}\,\text{\scriptsize 0.4} | 12.1\,\text{\scriptsize\pm}\,\text{\scriptsize 1.2} | 18.3\,\text{\scriptsize\pm}\,\text{\scriptsize 0.6} | 19.7\,\text{\scriptsize\pm}\,\text{\scriptsize 2.4} | 15.3\,\text{\scriptsize\pm}\,\text{\scriptsize 0.4} | 16.0\,\text{\scriptsize\pm}\,\text{\scriptsize 1.4} |
| 1500+ | 12.2\,\text{\scriptsize\pm}\,\text{\scriptsize 0.2} | 12.2\,\text{\scriptsize\pm}\,\text{\scriptsize 1.2} | {15.9}\,\text{\scriptsize\pm}\,\text{\scriptsize{0.3}} | 16.1\,\text{\scriptsize\pm}\,\text{\scriptsize 1.1} | 13.5\,\text{\scriptsize\pm}\,\text{\scriptsize 0.2} | 13.6\,\text{\scriptsize\pm}\,\text{\scriptsize 0.9} |
| Method | Calculation | Pattern Recognition | Fun | Rating | Quality | Informativeness |
|---|---|---|---|---|---|---|
| (Chess.com) | 70.17 | 58.89 | 65.57 | 67.95 | 69.83 | 75.11 |
| (Ours) | 72.39 | 61.48 | 70.34 | 72.73 | 71.31 | 75.11 |
| +2.22 | +2.59 | +4.77 ∗∗ | +4.78 ∗ | +1.48 | 0.00 |
| Name | USCF Profile | Title |
|---|---|---|
| Alexander Su | 12857329 | Expert |
| Robbie Selwyn | 17281090 | N/A |
| Iris Zhou | 14467261 | Expert |
| Tony Kukavica | 13853062 | National Master |
| Justin Paul | 14323420 | FIDE Master |
| Matt Larson | 14278511 | International Master |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Field | Example 1 | Example 2 |
|---|---|---|
| Puzzle | #1004456 | #955974 |
| Player Elo (Puzzle Elo) | 951 (1317) | 1361 (1615) |
| Solved correctly | Yes | Yes |
| Primary emphasis | Pattern Recognition | Both |
| Calculation | N/A | 1 – easy to guess first move w/o seeing solution |
| Pattern recognition | 1 – banal/boring pattern | 1 – banal/boring pattern |
| Field | Example 1 (Ours) | Example 2 (Chess.com) |
|---|---|---|
| Puzzle | #760014 | #1072600 |
| Player Elo (Puzzle Elo) | 2175 (3053) | 951 (1317) |
| Solved correctly | Yes | Yes |
| Primary emphasis | Both | Calculation |
| Calculation | 4 – requires full understanding of solution to solve | 2 |
| Pattern recognition | 3 – interesting and useful | 1 – banal/boring pattern |
| Annotator | Pattern Recognition | Quality | ||
|---|---|---|---|---|
| Ours | Chess.com | Ours | Chess.com | |
| A | 3 | 2 | 3 | 4 |
| B | N/A | 2 | 5 | 4 |
| C | N/A | N/A | 4 | 5 |
| D | 3 | 1 | 5 | 3 |
| E | 3 | 3 | 3 | 4 |
Chess
Chess research develops and evaluates engines, human-like play models, strategic reasoning systems, and tools for analyzing boards and games.
See all 31 papers