Piece value Analysis With Neural networks
Incorporating intermediate position representations derived using a CNN autoencoder as additional inputs to MLP-based chess piece relative value prediction systems significantly increases their accuracy.
All ♝s on g7 are created equal, but some ♝s on g7 are more equal than others.
We open-source Dataset MC-large and TF along with the best MLP and MLP+CNN model configurations trained for both datasets.
Both datasets also include many other helpful and unused columns such as:
- FEN + evaluation pairs for anyone wanting to optimize position evaluations for chess engines
- Misc. metadata like side-to-move, material strings, and opening code/name for data analysis/visualization
pip install torch torchvision torchaudio scikit-learntorchvision and torchaudio are likely redundant (I was experimenting with graphs/GNNs for piece value prediction but gave up halfway)
pip install python-chess stockfishpip install numpy pandas psutil pyarrow tqdmPlease reference shell scripts included in each folder for additional information about how to run each step!
- Gather a selection of chess games/positions in a single file (using some database like the Lichess Open Source Games Database or ChessBase).
- Download Stockfish (or some other version of it/another chess engine).
- Run
python -u pgn_to_piecevals.py
- Run
python -u pval_train_val_split.py - Run
python -u train_all_models.py
./pval_stats— contains a helper file used with slurm output files to calculate the number of timeouts per worker (when evaluating positions for calculating piece values)../pvp_example— contains a Jupyter Notebook used to generate figures and piece values used in the main PAWN paper for Figures 1, 3, and 5../sample_run— contains input/output files from a sample run completed on the Sol supercomputer using 32 games (sample_games.pgn) from GM Garry "Chess" Kasparov's 1985 simul against 32 chess computers (in which he scored 32-0), sourced from: chessprogramming.org/Kasparov_Simul_vs_32_Micros_Hamburg_1985
@misc{tang2026pawnpiecevalueanalysis,
title={PAWN: Piece Value Analysis with Neural Networks},
author={Ethan Tang and Hasan Davulcu and Jia Zou and Zhongju Zhang},
year={2026},
eprint={2604.15585},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2604.15585},
}