- Research Article
60
- 10.1016/j.icte.2020.05.003
Implementing action mask in proximal policy optimization (PPO) algorithm
- May 20, 2020
- ICT Express
- Cheng-Yen Tang + 3 more +3
Implementing action mask in proximal policy optimization (PPO) algorithm
Autonomous vehicles must make quick and accurate decisions to operate efficiently in complex and dynamic urban traffic environments, necessitating a reliable and stable learning mechanism. The proximal policy optimization (PPO) algorithm stands out among reinforcement learning (RL) methods for its consistent learning process, ensuring stable decisions under varying conditions while avoiding abrupt deviations during execution. However, the PPO algorithm often becomes trapped in a limited search space during policy updates, restricting its adaptability to environmental changes and alternative strategy exploration. To overcome this limitation, we integrated Lévy flight's chaotic and comprehensive exploration capabilities into the PPO algorithm. Our method helped the algorithm explore larger solution spaces and reduce the risk of getting stuck in local minima. In this study, we collected real-time data such as speed, acceleration, traffic sign positions, vehicle locations, traffic light statuses, and distances to surrounding objects from the CARLA simulator, processed via Apache Kafka. These data were analyzed by both the standard PPO and our novel Lévy flight-enhanced PPO (LFPPO) algorithm. While the PPO algorithm offers consistency, its limited exploration hampers adaptability. The LFPPO algorithm overcomes this by combining Lévy flight's chaotic exploration with Apache Kafka's real-time data streaming, an advancement absent in state-of-the-art methods. Tested in CARLA, the LFPPO algorithm achieved a 99% success rate compared to the PPO algorithm's 81%, demonstrating superior stability and rewards. These innovations enhance safety and RL exploration, with the LFPPO algorithm reducing collisions to 1% versus the PPO algorithm's 19%, advancing autonomous driving beyond existing techniques.
Implementing action mask in proximal policy optimization (PPO) algorithm
Implementing action mask in proximal policy optimization (PPO) algorithm
The application of improved PPO algorithm in microgrid energy management
The uncertainties associated with renewable energy generation and the challenges in the precise modeling of microgrids present significant difficulties for conventional planning algorithms. Owing to its model-free nature, strong hyperparameter robustness, and broad applicability, the Proximal Policy Optimization (PPO) algorithm, which is based on the Actor-Critic architecture, shows considerable promise as an ideal solution for the optimal scheduling of microgrids. However, in the standard PPO training process, the update of the value network lags behind that of the policy network, which compromises training efficiency. Moreover, the inherent randomness in agent exploration can lead to instability in policy updates. To address these limitations, this study proposes an enhanced PPO algorithm that incorporates a policy feedback mechanism and employs a segmented clipping mechanism. These improvements significantly accelerate the overall training convergence speed and effectively mitigate severe fluctuations during training, thereby enhancing the stability of the network updates. Experimental results in a microgrid energy management scenario demonstrate that the proposed algorithm achieves faster convergence and greater stability during the training phase. During the testing phase, it is capable of generating high-quality intra-day scheduling strategies based on real-time electricity consumption conditions. Over a testing period of ten days, the proposed algorithm achieved a 19.87% reduction in cumulative electricity costs and a 20.25% decrease in cumulative power imbalance compared to the standard PPO. The proposed algorithm outperforms the existing PPO method, offering an effective solution for microgrid energy management and demonstrating substantial application value.
Read moreResearch on Behavioral Decision at an Unsignalized Roundabout for Automatic Driving Based on Proximal Policy Optimization Algorithm
Unsignalized roundabouts have a significant impact on traffic flow and vehicle safety. To address the challenge of autonomous vehicles passing through roundabouts with low penetration, improve their efficiency, and ensure safety and stability, we propose the proximal policy optimization (PPO) algorithm to enhance decision-making behavior. We develop an optimization-based behavioral choice model for autonomous vehicles that incorporates gap acceptance theory and deep reinforcement learning using the PPO algorithm. Additionally, we employ the CoordConv network to establish an aerial view for spatial perception information gathering. Furthermore, a dynamic multi-objective reward mechanism is introduced to maximize the PPO algorithm’s reward pool function while quantifying environmental factors. Through simulation experiments, we demonstrate that our optimized PPO algorithm significantly improves training efficiency by enhancing the reward value function by 2.85%, 7.17%, and 19.58% in scenarios with 20, 100, and 200 social vehicles, respectively, compared to the PPO+CCMR algorithm. The effectiveness of simulation training also increases by 11.1%, 13.8%, and 7.4%. Moreover, there is a reduction in crossing time by 2.37%, 2.62%, and 13.96%. Our optimized PPO algorithm enhances path selection during autonomous vehicle simulation training as they tend to drive in the inner ring over time; however, the influence of social vehicles on path selection diminishes as their quantity increases. The safety of autonomous vehicles remains largely unaffected by our optimized PPO algorithm.
Read moreMultiple-UAV Reinforcement Learning Algorithm Based on Improved PPO in Ray Framework
Distributed multi-agent collaborative decision-making technology is the key to general artificial intelligence. This paper takes the self-developed Unity3D collaborative combat environment as the test scenario, setting a task that requires heterogeneous unmanned aerial vehicles (UAVs) to perform a distributed decision-making and complete cooperation task. Aiming at the problem of the traditional proximal policy optimization (PPO) algorithm’s poor performance in the field of complex multi-agent collaboration scenarios based on the distributed training framework Ray, the Critic network in the PPO algorithm is improved to learn a centralized value function, and the muti-agent proximal policy optimization (MAPPO) algorithm is proposed. At the same time, the inheritance training method based on course learning is adopted to improve the generalization performance of the algorithm. In the experiment, MAPPO can obtain the highest average accumulate reward compared with other algorithms and can complete the task goal with the fewest steps after convergence, which fully demonstrates that the MAPPO algorithm outperforms the state-of-the-art.
Read moreReal-World Autonomous Driving Control: An Empirical Study Using the Proximal Policy Optimization (PPO) Algorithm
This article preprocesses environmental information and use it as input for the Proximal Policy Optimization (PPO) algorithm. The algorithm is directly trained on a model vehicle in a real environment, allowing it to control the distance between the vehicle and surrounding objects. The training converges after approximately 200 episodes, demonstrating the PPO algorithm's ability to tolerate uncertainty, noise, and interference in a real training environment to some extent. Furthermore, tests of the trained model in different scenarios reveal that even when the input information is processed and does not provide a comprehensive view of the environment, the PPO algorithm can still effectively achieve control objectives and accomplish challenging tasks.
Read moreTraffic Navigation for Urban Air Mobility with Reinforcement Learning
Assuring stability of the guidance law for quadrotor-type Urban Air Mobility (UAM) is important since it is assumed to operate in urban areas. Model free reinforcement learning was intensively applied for this purpose in recent studies. In reinforcement learning, the environment is an important part of training. Usually, a Proximal Policy Optimization (PPO) algorithm is used widely for reinforcement learning of quadrotors. However, PPO algorithms for quadrotors tend to fail to guarantee the stability of the guidance law in the environment as the search space increases. In this work, we show the improvements of stability in a multi-agent quadrotor-type UAM environment by applying the Soft Actor-Critic (SAC) reinforcement learning algorithm. The simulations were performed in Unity. Our results achieved three times better reward in the Urban Air Mobility environment than when trained with the PPO algorithm and our approach also shows faster training time than the PPO algorithm.KeywordsDeep reinforcement learningMulti-agent systemTraffic networkUrban Air Mobility (UAM)Proximal Policy Optimization (PPO)Soft Actor-Critic (SAC)
Read moreOptimizing intelligent startup strategy of power system using PPO algorithm
This article aimed to use the proximal policy optimization (PPO) algorithm to address the limitations of power system startup strategies, to enhance the adaptability, coping ability, and overall robustness of the system to variable grid demand and integrated renewable energy, the constraints in the power system start-up strategy are optimized. Firstly, this article constructed a dynamic model of the power system, including key components such as generators, transformers, and transmission lines; secondly, it integrated the PPO algorithm and designed interfaces that allow the algorithm to interact with the power system model; afterward, the state variables of the power system were determined, and a reward function was designed to evaluate the startup efficiency and stability of the system. Next, this article adjusted the reward function and trained and iterated multiple times in the simulation environment to guide the algorithm to learn the optimal startup strategy. Finally, an effective evaluation of the strategy can be conducted. The research results showed that after optimization by the PPO algorithm, the stable frequency startup of the power system only took about 23 seconds, and the system recovery time was reduced by 33.3% under a sudden load increase. The algorithm used can significantly optimize the intelligent startup strategy of the power system.
Read moreA dual-arm cooperative control method based on improved proximal policy optimization
To address the challenges of high-dimensional control in dual-arm collaborative tasks, the complexity of multi-stage decision-making, and the limitations of traditional Proximal Policy Optimization (PPO) algorithms due to their single constraint mechanism, which results in policy bias and insufficient convergence efficiency, this paper proposes a dual-arm collaborative control method based on an improved Proximal Policy Optimization algorithm. Based on deep reinforcement learning, the state space and action space of the dual-arm system are first defined, and a perception-decision-update closed-loop interaction mechanism is constructed. Subsequently, a Hierarchical Constrained Hybrid Proximal Policy Optimization algorithm (HCH-PPO) is proposed, which designs a dual-timescale hierarchical policy, establishes dynamic hybrid constraints, and incorporates an adaptive parameter adjustment mechanism. While maintaining the efficiency of Proximal Policy Optimization (PPO), the algorithm introduces Trust Region Policy Optimization (TRPO) to enhance the stability of the optimization process and the policy exploration capability. This hierarchical optimization framework effectively enables efficient state-to-action mapping learning. Finally, experimental results demonstrate that, compared to traditional PPO, the proposed method achieves a 56.82% improvement in convergence speed and a 12% increase in task success rate in dual-arm collaborative grasping and placing tasks, indicating significant performance enhancement.
Read moreHybrid intelligent optimization strategy of battery swapping station for electric vehicles based on reinforcement learning
Smart transportation is an important application scenario in the field of urban computing. As the popularity of electric vehicles increases, the demand for fast charging is growing rapidly. In response to this, battery swapping stations are being proposed as a solution, but their operational efficiency is challenged by factors such as battery life, vehicle queues, and grid load management. In this paper, a mixed intelligent optimization strategy combining the proximal policy optimization (PPO) algorithm from reinforcement learning and the goat swarm optimization (GSO) algorithm is proposed. The GSO-PPO algorithm is constructed, where PPO algorithm learns the optimal scheduling strategy for the battery swapping station in a dynamic environment, and the GSO algorithm optimizes the hyperparameters of PPO and adjusts the weight of the reward function to achieve the multi-objective optimization of minimizing battery life, shortening vehicle waiting time, and efficiently managing grid load. The experimental results show that compared with random strategies and traditional PPO algorithms, GSO-PPO reduces vehicle waiting time and improves service efficiency, making the overall operation of the battery swapping station more stable. The study demonstrates the potential of combining reinforcement learning and swarm intelligence algorithms in smart energy infrastructure and solving multi-objective optimization problems.
Read moreStabilizing Electric Vehicle Systems Using Proximal Policy-Based Self-structuring Control
An active disturbance rejection control (ADRC) has been developed for stabilizing electric vehicle (EV) systems without the need for model identification. The proximal policy optimization (PPO) algorithm, along with actor and critic neural networks, has been used to fine-tune the adjustable parameters of the ADRC controller to achieve optimal performance in a specific case study. The architecture of PPO implements separate neural networks and ameliorates the PPO adaptability to handle continuous action spaces. By maximizing a reward function based on system output, the PPO agent optimally tunes the gains to reduce undesired speed fluctuations of EVs and improve system stability. Performance evaluation under the new European driving cycle and federal test procedure has been conducted to examine the feasibility of the suggested controller. The disturbance rejection capability of the ADRC controller designed by the PPO algorithm has been tested and compared with prevalent control methodologies. Moreover, real-time examinations of the dynamic behavior of EV systems have been made to identify the capability of the suggested controller in real-world hardware. The results show that the suggested controller outperforms other designed controllers in terms of transient behavior and numerical performance metrics.
Read moreProximal policy optimization via enhanced exploration efficiency
Proximal policy optimization via enhanced exploration efficiency
Proximal policy optimization with model-based methods
Model-free reinforcement learning methods have successfully been applied to practical applications such as decision-making problems in Atari games. However, these methods have inherent shortcomings, such as a high variance and low sample efficiency. To improve the policy performance and sample efficiency of model-free reinforcement learning, we propose proximal policy optimization with model-based methods (PPOMM), a fusion method of both model-based and model-free reinforcement learning. PPOMM not only considers the information of past experience but also the prediction information of the future state. PPOMM adds the information of the next state to the objective function of the proximal policy optimization (PPO) algorithm through a model-based method. This method uses two components to optimize the policy: the error of PPO and the error of model-based reinforcement learning. We use the latter to optimize a latent transition model and predict the information of the next state. For most games, this method outperforms the state-of-the-art PPO algorithm when we evaluate across 49 Atari games in the Arcade Learning Environment (ALE). The experimental results show that PPOMM performs better or the same as the original algorithm in 33 games.
Read moreAn Improved Distributed Sampling PPO Algorithm Based on Beta Policy for Continuous Global Path Planning Scheme
Traditional path planning is mainly utilized for path planning in discrete action space, which results in incomplete ship navigation power propulsion strategies during the path search process. Moreover, reinforcement learning experiences low success rates due to its unbalanced sample collection and unreasonable design of reward function. In this paper, an environment framework is designed, which is constructed using the Box2D physics engine and employs a reward function, with the distance between the agent and arrival point as the main, and the potential field superimposed by boundary control, obstacles, and arrival point as the supplement. We also employ the state-of-the-art PPO (Proximal Policy Optimization) algorithm as a baseline for global path planning to address the issue of incomplete ship navigation power propulsion strategy. Additionally, a Beta policy-based distributed sample collection PPO algorithm is proposed to overcome the problem of unbalanced sample collection in path planning by dividing sub-regions to achieve distributed sample collection. The experimental results show the following: (1) The distributed sample collection training policy exhibits stronger robustness in the PPO algorithm; (2) The introduced Beta policy for action sampling results in a higher path planning success rate and reward accumulation than the Gaussian policy at the same training time; (3) When planning a path of the same length, the proposed Beta policy-based distributed sample collection PPO algorithm generates a smoother path than traditional path planning algorithms, such as A*, IDA*, and Dijkstra.
Read moreSample Efficient Proximal Policy Optimization for Effective Aircraft Stall Recovery
An agent can find optimal policies using reinforcement learning during its interaction with the environment. Reinforcement learning balances exploitation and exploration in the interaction for sample efficiency and policy effectiveness. To achieve effective policies, the learning steps keep the divergence from the behavior policy in a close neighborhood; whereas the exploration is considered by stochastic searching or noise injecting. Proximal Policy Optimization (PPO) algorithms achieve good sample efficiency and policy effectiveness by clipping the surrogate functions and the gradients. However, PPO algorithms are still not sufficiently sample efficient for a few applications. We extends PPO algorithm with adaptive sample selection for good sample efficiency. We apply the extended PPO for recovering an aircraft from stalls which are highly dangerous situation. We also design an appropriate reward function for the learning process. Our experimental results demonstrate that the proposed algorithm and functions are effective for aircraft recovery.
Read moreRobust Topology Generation of Internet of Things Based on PPO Algorithm Using Discrete Action Space
The rapid proliferation of Internet of Things (IoT) devices has led to the deployment of numerous sensor nodes in various industrial scenarios. These nodes play a crucial role in collecting, relaying, processing, and transmitting data through wireless communication. The interconnections between these nodes form diverse topologies, each exhibiting varying degrees of robustness against different types of attacks. To make the robustness of topology more robustness, this article proposes a robust topology generation method for IoT nodes. The method leverages the proximal policy optimization (PPO) algorithm in reinforcement learning, combined with a discrete action space that closely aligns with real-world deployment environments. By utilizing PPO and discrete actions, the method effectively optimizes the topology of IoT nodes, considering the constraints and limitations of the deployment scenario. In addition, this article introduces a novel metric called <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$S$</tex-math></inline-formula> -value to evaluate the robustness of the generated topology. Unlike existing metrics, the <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$S$</tex-math></inline-formula> -value provides a more practical and meaningful assessment of topology robustness, taking into account the ability of the topology to withstand attacks and maintain connectivity to the server even when nodes with high degrees fail. Experimental results demonstrate the effectiveness of the proposed method in generating robust topologies for IoT nodes.
Read more