[Paper Review] Continuous-action Reinforcement Learning for Playing Racing Games: Comparing SPG to PPO
This paper introduces a continuous-control racing environment for OpenAI Gym and compares Sampled Policy Gradient (SPG) and Proximal Policy Optimization (PPO) in learning to control a car on randomly generated tracks. It proposes a weighted action sampling extension for SPG and a hybrid experience replay technique that improves training speed without sacrificing performance, finding that SPG with experience replay outperforms PPO, while PPO does not benefit from experience replay in continuous action spaces.
In this paper, a novel racing environment for OpenAI Gym is introduced. This environment operates with continuous action- and state-spaces and requires agents to learn to control the acceleration and steering of a car while navigating a randomly generated racetrack. Different versions of two actor-critic learning algorithms are tested on this environment: Sampled Policy Gradient (SPG) and Proximal Policy Optimization (PPO). An extension of SPG is introduced that aims to improve learning performance by weighting action samples during the policy update step. The effect of using experience replay (ER) is also investigated. To this end, a modification to PPO is introduced that allows for training using old action samples by optimizing the actor in log space. Finally, a new technique for performing ER is tested that aims to improve learning speed without sacrificing performance by splitting the training into two parts, whereby networks are first trained using state transitions from the replay buffer, and then using only recent experiences. The results indicate that experience replay is not beneficial to PPO in continuous action spaces. The training of SPG seems to be more stable when actions are weighted. All versions of SPG outperform PPO when ER is used. The ER trick is effective at improving training speed on a computationally less intensive version of SPG.
Motivation & Objective
- To develop a novel, extensible continuous-action racing environment for benchmarking deep reinforcement learning algorithms.
- To compare the performance of SPG and PPO in a continuous control setting with complex, real-world-like dynamics.
- To investigate the impact of experience replay on PPO and SPG in continuous action spaces.
- To propose and evaluate a novel hybrid experience replay technique that improves training speed while preserving performance.
- To introduce and test a weighted action sampling method for SPG to improve training stability and performance.
Proposed method
- Developed a custom racing environment in OpenAI Gym with continuous state and action spaces, simulating real-world car dynamics including speed, steering, and track constraints.
- Implemented SPG with a Q-value network to sample actions and update the policy, using a weighted sampling strategy that prioritizes high-value actions during policy updates.
- Modified PPO to operate in log space, enabling the use of experience replay in continuous action spaces by reweighting old action probabilities.
- Proposed a hybrid experience replay technique that splits training into two phases: first training on replay buffer transitions, then on recent experiences, to accelerate learning while maintaining performance.
- Used multilayer perceptrons (MLPs) with tanh activations for actor and critic networks, with separate optimization steps per episode and minibatch SGD.
- Conducted five independent runs per algorithm using different randomly generated racetracks to ensure statistical robustness and fairness.
Experimental results
Research questions
- RQ1Does experience replay improve learning performance for PPO in continuous-action reinforcement learning tasks?
- RQ2Can a weighted action sampling strategy enhance the stability and performance of SPG in continuous control?
- RQ3How does a hybrid experience replay method that combines old and recent experiences affect training speed and final performance in SPG?
- RQ4Does SPG outperform PPO in a continuous-action racing environment, especially when experience replay is applied?
- RQ5To what extent does the proposed log-space PPO variant enable effective use of experience replay in continuous action spaces?
Key findings
- Experience replay does not improve PPO performance in continuous action spaces, with both standard and log-space variants showing nearly identical results and no significant gains from replay.
- The hybrid experience replay technique significantly improves training speed in SPG while maintaining or exceeding final performance, outperforming both standard and multiple-epoch SPG variants.
- Weighted action sampling in SPG leads to more stable training with fewer performance spikes and lower variance, though it does not substantially improve final performance.
- SPG with experience replay consistently outperforms PPO across all configurations, with the faster one-epoch SPG variant matching the performance of the slower multi-epoch version when using hybrid replay.
- PPO fails to benefit from experience replay, and the log-space variant with mixed replay data suffers from gradient explosion, preventing long-term training.
- The multiple-epoch SPG variant is less stable than the one-epoch version, showing more frequent negative reward spikes, suggesting that simpler training schedules may be preferable for SPG.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.