Research Article

Potential-Based Reward Shaping for Compute-Constrained Self-Play Reinforcement Learning in Animal Chess

Zezheng Liu*
University of Edinburgh

* Corresponding author: [email protected]

Abstract

Self-play reinforcement learning can produce capable game-playing policies without expert demonstrations, but its effectiveness under limited compute depends strongly on the learning signal. A complete self-play system for Animal Chess (Dou Shou Qi) was independently designed and implemented to test whether potential-based reward shaping improves sample efficiency under a fixed interaction budget. A vectorised Proximal Policy Optimisation pipeline used 48 synchronous environments, a residual policy-value network, legal-action masking, deterministic execution, and five pre-declared seeds per condition. Sparse terminal reward, potential-based shaping, and a non-potential dense reward were compared under one million nominal environment steps per run. The primary outcome was the number of environment steps required to sustain a 95% win rate against a fixed uniform-random legal-move opponent. Potential-based shaping reduced the mean threshold time from 95,894 to 61,488 steps, a 35.9% reduction supported by a stratified permutation test (p = 0.0317). Final game length did not differ detectably between the sparse and potential-based arms. The dense reward learned faster still but lacked the policy-invariance guarantee and was executed under a cross-machine caveat. These findings show that potential-based shaping offers a reproducible, theoretically grounded improvement in sample efficiency under constrained compute.

Keywords: Reinforcement learning; self-play; reward shaping; sample efficiency; Animal Chess
Published: November 24, 2026
DOI: 10.54254/2755-2721/2026.39319
Volume: ACE Vol.282
pp. 108-114
Download PDF

References

  1. Mnih, V., et al. (2015). Human-level control through deep reinforcement learning.Nature, 518, 529–533.
  2. Silver, D., et al. (2016). Mastering the game of Go with deep neural networks and tree search.Nature, 529, 484–489.
  3. Silver, D., et al. (2018). A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play.Science, 362(6419), 1140–1144.
  4. Bellemare, M. G., Srinivasan, S., Ostrovski, G., Schaul, T., Saxton, D., & Munos, R. (2016). Unifying count-based exploration and intrinsic motivation.Advances in Neural Information Processing Systems, 29.
  5. Pathak, D., Agrawal, P., Efros, A. A., & Darrell, T. (2017). Curiosity-driven exploration by self-supervised prediction.Proceedings of the 34th International Conference on Machine Learning, 2778–2787.
  6. Ng, A. Y., Harada, D., & Russell, S. J. (1999). Policy invariance under reward transformations: Theory and application to reward shaping.Proceedings of the Sixteenth International Conference on Machine Learning, 278-287.
  7. Wiewiora, E. (2003). Potential-based shaping and Q-value initialization are equivalent.Journal of Artificial Intelligence Research, 19, 205-208.
  8. van Rijn, J. N., & Vis, J. K. (2013). Complexity and retrograde analysis of the game Dou Shou Qi.Proceedings of the 25th Benelux Conference on Artificial Intelligence, 239-246.
  9. van Rijn, J. N., & Vis, J. K. (2014). Endgame analysis of Dou Shou Qi.ICGA Journal, 37(2), 120-124.
  10. Henderson, P., Islam, R., Bachman, P., Pineau, J., Precup, D., & Meger, D. (2018). Deep reinforcement learning that matters.Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 3207-3214.
  11. Agarwal, R., Schwarzer, M., Castro, P. S., Courville, A. C., & Bellemare, M. G. (2021). Deep reinforcement learning at the edge of the statistical precipice.Advances in Neural Information Processing Systems, 34, 29304-29320.
  12. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., & Klimov, O. (2017). Proximal policy optimization algorithms. arXiv Preprint, arXiv:1707.06347.
  13. Kocsis, L., & Szepesvári, C. (2006). Bandit based Monte-Carlo planning.Machine Learning: ECML 2006, Lecture Notes in Computer Science, 4212, 282-293. Springer.