Saved in:
Bibliographic Details
Main Authors: Santos, Filipe, Fernandes, João Paulo, Macedo, Luís
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.04371
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909604821073920
author Santos, Filipe
Fernandes, João Paulo
Macedo, Luís
author_facet Santos, Filipe
Fernandes, João Paulo
Macedo, Luís
contents Action selection based on flags is a Reinforcement Learning (RL) exploration policy that improves the exploration of the state space through the use of flags, which can identify the most promising actions to take in each state. The quantum counterpart of this exploration policy further improves upon this by taking advantage of a quadratic speedup for sampling flagged actions. This approach has already been successfully employed for the game of Checkers. In this work, we describe the application of this method to the context of Connect Four, in order to study its performance in a different setting, which can lead to a better generalization of the technique. We also kept track of a metric that wasn't taken into account in previous work: the average number of iterations to obtain a flagged action. Since going second is a significant disadvantage in Connect Four, we also had the intent of exploring how this more complex scenario would impact the performance of our approach. The experiments involved training and testing classical and quantum RL agents that played either going first or going second against a Randomized Negamax opponent. The results showed that both flagged exploration policies were clearly superior to a simple epsilon-greedy policy. Furthermore, the quantum agents did in fact sample flagged actions in less iterations. Despite obtaining tagged actions more consistently, the win rates between the classical and quantum versions of the approach were identical, which could be due to the simplicity of the training scenario chosen.
format Preprint
id arxiv_https___arxiv_org_abs_2505_04371
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Extending a Quantum Reinforcement Learning Exploration Policy with Flags to Connect Four
Santos, Filipe
Fernandes, João Paulo
Macedo, Luís
Machine Learning
Quantum Physics
Action selection based on flags is a Reinforcement Learning (RL) exploration policy that improves the exploration of the state space through the use of flags, which can identify the most promising actions to take in each state. The quantum counterpart of this exploration policy further improves upon this by taking advantage of a quadratic speedup for sampling flagged actions. This approach has already been successfully employed for the game of Checkers. In this work, we describe the application of this method to the context of Connect Four, in order to study its performance in a different setting, which can lead to a better generalization of the technique. We also kept track of a metric that wasn't taken into account in previous work: the average number of iterations to obtain a flagged action. Since going second is a significant disadvantage in Connect Four, we also had the intent of exploring how this more complex scenario would impact the performance of our approach. The experiments involved training and testing classical and quantum RL agents that played either going first or going second against a Randomized Negamax opponent. The results showed that both flagged exploration policies were clearly superior to a simple epsilon-greedy policy. Furthermore, the quantum agents did in fact sample flagged actions in less iterations. Despite obtaining tagged actions more consistently, the win rates between the classical and quantum versions of the approach were identical, which could be due to the simplicity of the training scenario chosen.
title Extending a Quantum Reinforcement Learning Exploration Policy with Flags to Connect Four
topic Machine Learning
Quantum Physics
url https://arxiv.org/abs/2505.04371