Tournament selection in zeroth-level classifier systems based on average reward reinforcement learning

Zhaoxiang Zang, Zhao Li, Junying Wang, Zhiping Dan · DOI

Abstract

As a genetics-based machine learning technique, zeroth-level classifier system (ZCS) is based on a discounted reward reinforcement learning algorithm, bucket-brigade algorithm, which optimizes the discounted total reward received by an agent but is not suitable for all multi-step problems, especially large-size ones. There are some undiscounted reinforcement learning methods available, such as R-learning, which optimize the average reward per time step. In this paper, R-learning is used as the reinforcement learning employed by ZCS, to replace its discounted reward reinforcement learning approach, and tournament selection is used to replace roulette wheel selection in ZCS. The modification results in classifier systems that can support long action chains, and thus is able to solve large multi-step problems.

Introduction

Learning Classifier Systems (LCSs) represent a powerful synthesis of Genetic Algorithms (GAs) and Reinforcement Learning (RL), evolving populations of condition-action rules to solve complex tasks. The Zeroth-level Classifier System (ZCS) is a foundational model in this field. However, ZCS traditionally relies on the "bucket-brigade" algorithm, a discounted reward RL method. While effective for short sequences, this approach struggles with "long action chains" typical of large-scale environments. In such cases, the reinforcement signal decays exponentially as it propagates backward from the goal, often vanishing before reaching the initial actions in a sequence.

Methodology: ZCSAR

To address the limitations of discounted rewards, this research introduces ZCSAR (ZCS with Average Reward). The system incorporates two fundamental changes to the standard architecture:

1. R-learning for Average Reward

The standard bucket-brigade mechanism is replaced with R-learning. Unlike discounted RL, which uses a factor $\gamma$ to prioritize immediate rewards, R-learning optimizes the average reward per time step ($\rho$). By treating every step in a sequence as equally significant to the long-term average, R-learning prevents the signal attenuation that plagues traditional ZCS in large environments.

2. Tournament Selection

The transition to R-learning introduces a challenge: the update rule involves subtracting the average reward from the current payoff. This frequently results in classifiers with negative strength values. Traditional ZCS uses "roulette wheel selection," which is mathematically incompatible with negative values. To resolve this, the authors implement tournament selection. By selecting the best individual from a random subset based on relative rank rather than absolute magnitude, tournament selection remains robust even when classifier strengths are negative.

Experimental Environments

The performance of ZCSAR was evaluated using two distinct "Grid World" benchmarks: Maze6 and Woods14.

Figure 1: The Maze6 (a) and Woods14 (b) grid world environments used for testing.
  • Maze6: A complex environment requiring approximately 5-6 steps to reach the goal. It serves as a baseline for general problem-solving complexity.
  • Woods14: A "long chain" environment consisting of a corridor of 18 blank cells. With an optimal path of 9.5 steps, it specifically tests the agent's ability to maintain reinforcement signals over extended sequences.

Results and Discussion

The experimental results demonstrate a clear advantage for the ZCSAR architecture in long-chain scenarios.

Maze6 Performance

In the shorter Maze6 environment, all tested systems—standard ZCS, ZCSAR with roulette selection, and ZCSAR with tournament selection—performed comparably, converging to near-optimal paths of roughly 6 steps. This confirms that the average reward approach maintains the efficacy of the original system for standard problems.

Woods14 Performance

The Woods14 environment highlighted the critical necessity of combining R-learning with tournament selection. While standard ZCS lagged at 10.7 steps, ZCSAR with Tournament Selection successfully reached the optimal solution of 9.5 steps. Conversely, ZCSAR with roulette selection failed significantly, averaging 21.36 steps. This failure underscores that simply changing the RL algorithm is insufficient; the selection mechanism must also be adapted to handle the resulting fitness distribution.

Table 2: Performance results in the Woods14 environment, highlighting the superiority of ZCSAR with tournament selection.

Conclusion

The integration of R-learning and tournament selection into the ZCS framework effectively overcomes the "vanishing signal" problem inherent in discounted reward systems. ZCSAR demonstrates superior stability and performance in environments requiring long action chains. While early learning phases may exhibit some oscillation, the system's ability to reach optimal solutions in large-scale multi-step problems marks a significant advancement for zeroth-level classifier systems.

Summary updated

BibTeX
@misc{zang2016tournament,
  author = {Zhaoxiang Zang and Zhao Li and Junying Wang and Zhiping Dan},
  title = {{Tournament selection in zeroth-level classifier systems based on average reward reinforcement learning}},
  year = {2016},
  eprint = {1604.07704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.07704},
}
Figure