A Study of Randomization-Based Improvement in CartPole
Abstract
This paper studies whether reset randomization can improve the robustness of PPO in the CartPole-v1 task. CartPole is easy to solve under the default setting, but that easy setting does not always show whether a learned policy can still perform well when the starting state becomes less favorable. To address this issue, the study keeps the PPO algorithm unchanged and focuses on the environment reset process. A simple curriculum randomization strategy is used: the initial-state bound is widened gradually during training, from +/-0.05 to +/-0.10 and then to +/-0.15. The experiment compares baseline PPO and randomized PPO under a multi-seed, multi-bound evaluation design. In addition to training curves, both methods are tested under stronger reset bounds up to +/-0.40. The results show that both methods reach ceiling-level performance under mild settings, so the difference is hard to observe there. Once the evaluation becomes more difficult, the randomized method shows better robustness at part of the harder range, although the advantage is not consistent at every bound. The study suggests that randomization can be useful in CartPole, but its value depends on whether the evaluation protocol is strong enough to reveal meaningful differences.
References
- Sutton, R. S., & Barto, A. G. (2018).Reinforcement learning: An introduction(2nd ed.). MIT Press. Cambridge, MA.
- Farama Foundation. (2026). Cart pole.Gymnasium Documentation, Version 1.3.0. Accessed 21 September 2026.
- Schulman, J., Wolski, F., Dhariwal, P., Radford, A., & Klimov, O. (2017). Proximal policy optimization algorithms.arXiv Preprint, arXiv:1707.06347.
- Schulman, J., Moritz, P., Levine, S., Jordan, M., & Abbeel, P. (2016). High-dimensional continuous control using generalized advantage estimation.arXiv Preprint, arXiv:1506.02438.
- Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., & Dormann, N. (2021). Stable-Baselines3: Reliable reinforcement learning implementations.Journal of Machine Learning Research, 22, 1–8.
- Narvekar, S., Peng, B., Leonetti, M., Sinapov, J., Taylor, M. E., & Stone, P. (2020). Curriculum learning for reinforcement learning domains: A framework and survey.Journal of Machine Learning Research, 21, 1–50.
- Chen, X., Hu, J., Jin, C., Li, L., & Wang, L. (2022). Understanding domain randomization for sim-to-real transfer.arXiv Preprint, arXiv:2110.03239.
- Henderson, P., Islam, R., Bachman, P., Pineau, J., Precup, D., & Meger, D. (2018). Deep reinforcement learning that matters.Proceedings of the AAAI Conference on Artificial Intelligence, 32, 3207–3214.
- Agarwal, R., Schwarzer, M., Castro, P. S., Courville, A., & Bellemare, M. G. (2021). Deep reinforcement learning at the edge of the statistical precipice.Advances in Neural Information Processing Systems, 34.
- Towers, M., Kwiatkowski, A., Terry, J., et al. (2024). Gymnasium: A standard interface for reinforcement learning environments.arXiv Preprint, arXiv:2407.17032.
- Eimer, T., Lindauer, M., & Raileanu, R. (2023). Hyperparameters in reinforcement learning and how to tune them.Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, 202, 9104–9149.
- Curtis, A., Li, E., Noseworthy, M., Gothoskar, N., Chitta, S., Li, H., Kaelbling, L. P., & Carey, N. E. (2025). Flow-based domain randomization for learning and sequencing robotic skills.Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, 267, 11692–11709.