Optimizing language models for chess : the impact of custom notation and Elo-based fine-tuning. Schmid, L. & Maag, J. Bachelor's thesis, 2024.
Optimizing language models for chess : the impact of custom notation and Elo-based fine-tuning [link]Paper  doi  abstract   bibtex   
This research investigates the potential for large language models to learn to generate valid chess moves solely through pre-training on chess game data. The primary objective of this study is to investigate the impact of custom notation systems and tokenisation methods specifically designed for use with chess games. The study aims to improve the models' understanding of game states and move sequences by developing and implementing a custom notation system, xLAN+. This notation system incorporates additional information about captures, checks and checkmates in order to increase the performance of the models. Furthermore, the strategic gameplay capabilities of the models are to be enhanced by fine-tuning them on datasets filtered by Elo rating. This approach postulates that filtering games by skill level can help models develop a deeper understanding of strategic gameplay, thereby improving their ability to generate high-quality moves. The research uses two different architectures, Transformer, based on OpenAI's GPT-2 configuration, and Mamba, a State Space Model (SSM) optimised for long sequence processing. Initial findings indicate that the custom notation xLAN+ significantly improves the models' ability to generate valid moves and maintain game state accuracy over extended sequences. The comparison between GPT-2 and Mamba reveals that while both architectures can learn chess rules and generate plausible moves, the SSM offers slight advantages in handling long-range dependencies and maintaining game context. This project demonstrates the potential of language models to learn complex tasks like chess through data-driven approaches, paving the way for their application in other strategic and decision-making domains.
@thesis{schmid:2024:optimizing-language-models-for-chess-impact-of-custom-notation-elo-based-fine-tuning,
  title         = {Optimizing language models for chess : the impact of custom notation and Elo-based fine-tuning},
  author        = {Schmid, Lars and Maag, Jerome},
  year          = {2024},
  doi           = {10.21256/zhaw-31999},
  url           = {https://digitalcollection.zhaw.ch/items/2ca7f5f3-535c-406a-87af-432ea6ba940b},
  type          = {Bachelor's thesis},
  institution   = {Z{\"u}rcher Hochschule f{\"u}r Angewandte Wissenschaften},
  supervisor    = {Cieliebak, Mark      and von D\"{a}niken, Pius},
  abstract      = {This research investigates the potential for large language models to learn to generate valid chess moves solely through pre-training on chess game data. The primary objective of this study is to investigate the impact of custom notation systems and tokenisation methods specifically designed for use with chess games. The study aims to improve the models' understanding of game states and move sequences by developing and implementing a custom notation system, xLAN+. This notation system incorporates additional information about captures, checks and checkmates in order to increase the performance of the models. Furthermore, the strategic gameplay capabilities of the models are to be enhanced by fine-tuning them on datasets filtered by Elo rating. This approach postulates that filtering games by skill level can help models develop a deeper understanding of strategic gameplay, thereby improving their ability to generate high-quality moves. The research uses two different architectures, Transformer, based on OpenAI's GPT-2 configuration, and Mamba, a State Space Model (SSM) optimised for long sequence processing. Initial findings indicate that the custom notation xLAN+ significantly improves the models' ability to generate valid moves and maintain game state accuracy over extended sequences. The comparison between GPT-2 and Mamba reveals that while both architectures can learn chess rules and generate plausible moves, the SSM offers slight advantages in handling long-range dependencies and maintaining game context. This project demonstrates the potential of language models to learn complex tasks like chess through data-driven approaches, paving the way for their application in other strategic and decision-making domains.},
  keywords      = {AI, Chess, GPT-2, LLM, Mamba, NLP, KI, Schach},
  affiliation   = {Z{\"u}rcher Hochschule f{\"u}r Angewandte Wissenschaften},
}

Downloads: 0