Abstract
Reinforcement learning is an essential class of machine learning for autonomous agents to acquire adaptive and reactive behaviors. Q-Learning is a widely-used reinforcement learning method which deals with only discrete-valued inputs (states) and outputs (actions). In this paper, we propose a new method of Q-Learning where fuzzy inference is introduced to represent Q-function (action value function) that evaluates state/action pairs, in order to deal with continuous-valued inputs and outputs. Within this method, the steepest descent method is utilized to update Q-function so that the parameters of fuzzy rules are tuned both in antecedent part and consequent part. Furthermore, we extend this method to the case of discrete actions by preparing a fuzzy inference system for each action in order to realize the speed up of learning. Finally we show the effectiveness of this method by comparing it with other methods through the applications to control problems such as the cart-pole balancing problem and the ship navigation problem.
Introduction: The Challenge of Continuous Spaces
Standard Q-Learning is a cornerstone of reinforcement learning, but it faces significant hurdles in real-world applications where states and actions are continuous. Traditionally, this is handled by discretizing the environment into a grid, leading to the "curse of dimensionality" and "choppy" behavior.
While neural networks (Q-nets) can handle continuous inputs, they often require massive amounts of data and can be difficult to interpret. The authors seek a middle ground: a method that is smooth, fast-learning, and more interpretable.
Proposed Method: Fuzzy Interpolation-Based Q-Learning
The authors propose Fuzzy Interpolation-Based Q-Learning. Instead of a lookup table, they use a set of fuzzy rules to approximate the Q-function.
Dual Tuning and Action Selection
The Q-value is calculated by interpolating between fuzzy rules. This method uses the steepest descent method to update both the "antecedent" (the "If" part, defining membership function shapes) and the "consequent" (the "Then" part, defining the resulting value). This allows the agent to dynamically refine its "perception" of the state space.
To handle continuous actions, they introduce an Extended Roulette Selection method based on the Boltzmann distribution, allowing the agent to pick specific values within a continuous range. For problems with discrete actions, they utilize a "One Action One Network" (OAON) approach, where a separate fuzzy inference system is dedicated to each possible action, speeding up convergence through modularity.
Experimental Evaluation
The algorithm was evaluated on two classic simulated control benchmarks:
- Cart-Pole Balancing: Testing the ability to handle four continuous state variables (position, velocity, angle, angular velocity) to keep a pole upright.
- Ship Navigation: A 2D task requiring the agent to manage heading and angular velocity to pass through a gate while avoiding boundaries and accounting for time delays.
Key Results and Insights
- Faster Convergence: In the cart-pole task, the fuzzy method reached stability significantly faster than both standard discrete Q-learning and neural-network-based Q-nets.
- Superior Success Rates: In ship navigation, the fuzzy approach achieved high success rates within 500-1000 trials, while Q-nets struggled even after 2000 trials.
- Smooth Generalization and Interpretability: Fuzzy logic's overlapping membership functions allow updates to one rule to "spread" to similar states, enabling learning about unvisited states. Furthermore, fuzzy rules are inherently more human-readable than neural network weights, providing insight into the agent's decision-making.
Conclusion
By integrating fuzzy inference into the Q-learning framework, the authors provide a robust method for handling continuous state and action spaces. This approach combines the benefits of smooth generalization, fast convergence, and human-interpretable logic. Future work may focus on the automatic generation and management of fuzzy rules to further reduce manual configuration requirements.
Summary updated