AI & Computingarticle2026-11-29

Training machine learning agent behaviors in Unity: proximal policy optimization vs. soft actor-critic algorithms

Open access0 citations

Abstract

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.

// Source

View paper (DOI)Open access versionOpenAlexAdvances in Science and Technology – Research JournalPublished 2026-11-29

Authors: Krystian Czajkowski, Maria Skublewska‐Paszkowska, Paweł Powroźnik, Marcin Barszcz, Krzysztof Dziedzic, Sylwester Korga, Kinga Chwaleba

Institutions: Lublin University of Technology