Training machine learning agent behaviors in Unity: proximal policy optimization vs. soft actor-critic algorithms
The gaming evolution is strictly associated with machine learning development, such as Reinforcement Learning. Thus, there is an ongoing need to study and apply machine learning algorithms to games to achieve human-like agent behavior. Among various algorithms, Proximal Policy Optimization (PPO) and Soft Actor-Critic (SAC) are among the state-of-the-art reinforcement learning methods. They have been widely adopted due to their optimal balance of performance, stability, and ease of implementation. Factors such as the test environment, reward function, neural network architecture, and computational resource availability significantly influence the relative performance of both algorithms. Thus, the main aim of our study is to analyze PPO and SAC reinforcement learning methods across three Unity-created environments, utilizing parallel learning with discrete and continuous actions. Using cumulative reward as the primary metric, SAC performed slightly better in simpler scenarios up to 1.1%, whereas PPO achieved better results in more complex environments up to 7.4%. The ablation study assesses hyperparameter sensitivity. Batch size had a stronger impact on SAC performance, whereas buffer size had a stronger impact on PPO.
Authors
- Krzysztof Dziedzic (ORCID: https://orcid.org/0000-0003-4909-9980)
- Sylwester Korga (ORCID: https://orcid.org/0000-0002-1327-0320)
- Marcin Barszcz (ORCID: https://orcid.org/0000-0002-9061-4414)
- Paweł Powroźnik (ORCID: https://orcid.org/0000-0002-5705-4785)
- Maria Skublewska‐Paszkowska (ORCID: https://orcid.org/0000-0002-0760-7126)
- Kinga Chwaleba (ORCID: https://orcid.org/0009-0007-3458-5464)
- Krystian Czajkowski
Institutions
- Lublin University of Technology (PL)
Publication Details
- Journal
- Advances in Science and Technology – Research Journal
- Published
- 2026-11-29
- DOI
- https://doi.org/10.12913/22998624/235821
- Primary Topic
- Reinforcement Learning in Robotics
- Type
- article
- Field-Weighted Citation Impact
- 0.00