Range Flags and Gradient Suppression Under a Fixed PPO Clip-Width Intervention

Authors

  • Dominic Johnston Author
  • Daniel Nelson Author
  • Gavin Bell Author

Abstract

PPO's outside-range flag ignores advantage sign, whereas its flat surrogate branch does not. We measured this distinction in 48 new CartPole simulations with 24 paired random streams and fixed clip widths 0.1 and 0.3. Across 6,291,456 reused sample-passes,2,476 flags lay outside the range;194 were not flat-branch observations. All occurred under the narrower width. Its diagnostic discrepancy exceeded the wider arm by 6.167 per 100,000 sample-passes. Final returns differed by 36.26, but the working 95% paired interval spanned−18.90 to 91.41 and nine pairs favored the wider arm. Independent gradient/GAE reconstruction and 960 policy-evaluation replays agreed. The experiment quantifies a known measurement distinction under rare clipping, without establishing a reliable return advantage.

References

  1. Agarwal, Rishabh; Schwarzer, Max; Castro, Pablo Samuel; Courville, Aaron; Bellemare, Marc G. (2021). Deep Reinforcement Learning at the Edge of the Statistical Precipice. Advances in Neural Information Processing Systems 34, 29304–29320. https://proceedings.neurips.cc/paper_files/paper/2021/hash/f514cec81cb148559cf475e7426eed5e-Abstract.html.
  2. Towers, Mark; Kwiatkowski, Ariel; Terry, Jordan; Balis, John U.; De Cola, Gianluca; Deleu, Tristan; Goulão, Manuel; Kallinteris, Andreas; Krimmel, Markus; KG, Arjun; Perez-Vicente, Rodrigo; Pierré, Andrea; Schulhoff, Sander; Tai, Jun Jet; Tan, Hannah; Younis, Omar G. (2025). Gymnasium: A Standardized Interface for Reinforcement Learning Environments. Advances in Neural Information Processing Systems, Datasets and Benchmarks Track 38. https://doi.org/10.52202/085713-4916.
  3. Engstrom, Logan; Ilyas, Andrew; Santurkar, Shibani; Tsipras, Dimitris; Janoos, Firdaus; Rudolph, Larry; Madry, Aleksander. (2020). Implementation Matters in Deep Policy Gradients: A Case Study on PPO and TRPO. arXiv preprint. https://arxiv.org/abs/2005.12729.
  4. Gebru, Timnit; Morgenstern, Jamie; Vecchione, Briana; Vaughan, Jennifer Wortman; Wallach, Hanna; III, Hal Daumé; Crawford, Kate. (2021). Datasheets for datasets. Communications of the ACM 64(12), 86-92. https://doi.org/10.1145/3458723.
  5. Anscombe, F. J. (1973). Graphs in Statistical Analysis. The American Statistician 27(1), 17-21. https://doi.org/10.1080/00031305.1973.10478966.
  6. Shala, Gresa; Pineda Arango, Sebastian; Biedenkapp, André; Hutter, Frank; Grabocka, Josif. (2024). HPO-RL-Bench: A Zero-Cost Benchmark for HPO in Reinforcement Learning. Proceedings of the Third International Conference on Automated Machine Learning, PMLR256, 18/1–31. https://proceedings.mlr.press/v256/shala24a.html.
  7. Pineau, Joelle; Vincent-Lamarre, Philippe; Sinha, Koustuv; Lariviere, Vincent; Beygelzimer, Alina; d'Alche-Buc, Florence; Fox, Emily; Larochelle, Hugo. (2021). Improving Reproducibility in Machine Learning Research(A Report from the NeurIPS 2019 Reproducibility Program). Journal of Machine Learning Research 22(164), 1–20. https://jmlr.org/papers/v22/20-303.html.
  8. Glasserman, Paul; Yao, David D. (1992). Some Guidelines and Guarantees for Common Random Numbers. Management Science 38(6), 884-908. https://doi.org/10.1287/mnsc.38.6.884.
  9. Henderson, Peter; Islam, Riashat; Bachman, Philip; Pineau, Joelle; Precup, Doina; Meger, David. (2018). Deep Reinforcement Learning That Matters. Proceedings of the AAAI Conference on Artificial Intelligence 32(1). https://doi.org/10.1609/aaai.v32i1.11694.
  10. Kassis, Timothy; Agarwal, Vinayak; He, Yuhuan; Patel, Darshil; Brueckner, Aubrey M. (2026). Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents. arXiv preprint. https://arxiv.org/abs/2609.00065.
  11. Student. (1908). The Probable Error of a Mean. Biometrika 6(1), 1. https://doi.org/10.2307/2331554.
  12. Ilyas, Andrew; Engstrom, Logan; Santurkar, Shibani; Tsipras, Dimitris; Janoos, Firdaus; Rudolph, Larry; Madry, Aleksander. (2020). A Closer Look at Deep Policy Gradients. International Conference on Learning Representations. https://openreview.net/pdf?id=ryxdEkHtPS.
  13. Wilkinson, Mark D.; Dumontier, Michel; Aalbersberg, IJsbrand Jan; Appleton, Gabrielle; Axton, Myles; Baak, Arie; Blomberg, Niklas; Boiten, Jan-Willem; da Silva Santos, Luiz Bonino; Bourne, Philip E.; Bouwman, Jildau; Brookes, Anthony J.; Clark, Tim; Crosas, Mercè; Dillo, Ingrid; Dumon, Olivier; Edmunds, Scott; Evelo, Chris T.; Finkers, Richard; Gonzalez-Beltran, Alejandra; Gray, Alasdair J.G.; Groth, Paul; Goble, Carole; Grethe, Jeffrey S.; Heringa, Jaap; ’t Hoen, Peter A.C; Hooft, Rob; Kuhn, Tobias; Kok, Ruben; Kok, Joost; Lusher, Scott J.; Martone, Maryann E.; Mons, Albert; Packer, Abel L.; Persson, Bengt; Rocca-Serra, Philippe; Roos, Marco; van Schaik, Rene; Sansone, Susanna-Assunta; Schultes, Erik; Sengstag, Thierry; Slater, Ted; Strawn, George; Swertz, Morris A.; Thompson, Mark; van der Lei, Johan; van Mulligen, Erik; Velterop, Jan; Waagmeester, Andra; Wittenburg, Peter; Wolstencroft, Katherine; Zhao, Jun; Mons, Barend. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data 3(1), 160018. https://doi.org/10.1038/sdata.2016.18.
  14. Sutton, Richard S.; Barto, Andrew G. (2018). Reinforcement Learning: An Introduction, second edition. MIT Press. http://incompleteideas.net/book/the-book-2nd.html.
  15. Bouthillier, Xavier; Laurent, César; Vincent, Pascal. (2019). Unreproducible Research is Reproducible. Proceedings of the 36th International Conference on Machine Learning, PMLR97, 725–734. https://proceedings.mlr.press/v97/bouthillier19a.html.
  16. Schulman, John; Moritz, Philipp; Levine, Sergey; Jordan, Michael; Abbeel, Pieter. (2016). High-Dimensional Continuous Control Using Generalized Advantage Estimation. International Conference on Learning Representations. https://arxiv.org/abs/1506.02438.
  17. Kleijnen, Jack P.C. (2015). Design and Analysis of Simulation Experiments. International Series in Operations Research & Management Science. https://doi.org/10.1007/978-3-319-18087-8.
  18. Harris, Charles R.; Millman, K. Jarrod; van der Walt, Stéfan J.; Gommers, Ralf; Virtanen, Pauli; Cournapeau, David; Wieser, Eric; Taylor, Julian; Berg, Sebastian; Smith, Nathaniel J.; Kern, Robert; Picus, Matti; Hoyer, Stephan; van Kerkwijk, Marten H.; Brett, Matthew; Haldane, Allan; del Río, Jaime Fernández; Wiebe, Mark; Peterson, Pearu; Gérard-Marchant, Pierre; Sheppard, Kevin; Reddy, Tyler; Weckesser, Warren; Abbasi, Hameer; Gohlke, Christoph; Oliphant, Travis E. (2020). Array programming with NumPy. Nature 585(7825), 357-362. https://doi.org/10.1038/s41586-020-2649-2.
  19. Williams, Ronald J. (1992). Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning 8(3-4), 229-256. https://doi.org/10.1007/bf00992696.
  20. Islam, Riashat; Henderson, Peter; Gomrokchi, Maziar; Precup, Doina. (2017). Reproducibility of Benchmarked Deep Reinforcement Learning Tasks for Continuous Control. arXiv preprint. https://arxiv.org/abs/1708.04133.
  21. Xu, Dan; Guo, Yunxiao; Yu, Zhongyi; Wang, Zhenfeng; Lan, Rongze; Zhao, Runhao; Xie, Xinjia; Long, Han. (2023). PPO-Exp: Keeping Fixed-Wing UAV Formation with Deep Reinforcement Learning. Drones 7(1), 28. https://doi.org/10.3390/drones7010028.
  22. Glasserman, Paul. (2003). Monte Carlo Methods in Financial Engineering. Stochastic Modelling and Applied Probability. https://doi.org/10.1007/978-0-387-21617-1.
  23. Schulman, John; Wolski, Filip; Dhariwal, Prafulla; Radford, Alec; Klimov, Oleg. (2017). Proximal Policy Optimization Algorithms. arXiv preprint. https://arxiv.org/abs/1707.06347.
  24. Zhao, Runhao; Xu, Dan; Jian, Shuoqu; Tan, Tianle; Sun, Xiaohui; Zhang, Wanchao. (2023). Quadratic Exponential Decrease Roll-Back: An Efficient Gradient Update Mechanism in Proximal Policy Optimization. 2023 2nd International Conference on Machine Learning, Cloud Computing and Intelligent Mining (MLCCIM), 65-70. https://doi.org/10.1109/mlccim60412.2023.00015.
  25. Dodge, Jesse; Gururangan, Suchin; Card, Dallas; Schwartz, Roy; Smith, Noah A. (2019). Show Your Work: Improved Reporting of Experimental Results. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2185-2194. https://doi.org/10.18653/v1/d19-1224.
  26. Virtanen, Pauli; Gommers, Ralf; Oliphant, Travis E.; Haberland, Matt; Reddy, Tyler; Cournapeau, David; Burovski, Evgeni; Peterson, Pearu; Weckesser, Warren; Bright, Jonathan; van der Walt, Stéfan J.; Brett, Matthew; Wilson, Joshua; Millman, K. Jarrod; Mayorov, Nikolay; Nelson, Andrew R. J.; Jones, Eric; Kern, Robert; Larson, Eric; Carey, C J; Polat, İlhan; Feng, Yu; Moore, Eric W.; VanderPlas, Jake; Laxalde, Denis; Perktold, Josef; Cimrman, Robert; Henriksen, Ian; Quintero, E. A.; Harris, Charles R.; Archibald, Anne M.; Ribeiro, Antônio H.; Pedregosa, Fabian; van Mulbregt, Paul; SciPy 1.0 Contributors; Vijaykumar, Aditya; Bardelli, Alessandro Pietro; Rothberg, Alex; Hilboll, Andreas; Kloeckner, Andreas; Scopatz, Anthony; Lee, Antony; Rokem, Ariel; Woods, C. Nathan; Fulton, Chad; Masson, Charles; Häggström, Christian; Fitzgerald, Clark; Nicholson, David A.; Hagen, David R.; Pasechnik, Dmitrii V.; Olivetti, Emanuele; Martin, Eric; Wieser, Eric; Silva, Fabrice; Lenders, Felix; Wilhelm, Florian; Young, G.; Price, Gavin A.; Ingold, Gert-Ludwig; Allen, Gregory E.; Lee, Gregory R.; Audren, Hervé; Probst, Irvin; Dietrich, Jörg P.; Silterra, Jacob; Webber, James T; Slavič, Janko; Nothman, Joel; Buchner, Johannes; Kulick, Johannes; Schönberger, Johannes L.; de Miranda Cardoso, José Vinícius; Reimer, Joscha; Harrington, Joseph; Rodríguez, Juan Luis Cano; Nunez-Iglesias, Juan; Kuczynski, Justin; Tritz, Kevin; Thoma, Martin; Newville, Matthew; Kümmerer, Matthias; Bolingbroke, Maximilian; Tartre, Michael; Pak, Mikhail; Smith, Nathaniel J.; Nowaczyk, Nikolai; Shebanov, Nikolay; Pavlyk, Oleksandr; Brodtkorb, Per A.; Lee, Perry; McGibbon, Robert T.; Feldbauer, Roman; Lewis, Sam; Tygier, Sam; Sievert, Scott; Vigna, Sebastiano; Peterson, Stefan; More, Surhud; Pudlik, Tadeusz; Oshima, Takuya; Pingel, Thomas J.; Robitaille, Thomas P.; Spura, Thomas; Jones, Thouis R.; Cera, Tim; Leslie, Tim; Zito, Tiziano; Krauss, Tom; Upadhyay, Utkarsh; Halchenko, Yaroslav O.; Vázquez-Baeza, Yoshiki. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods 17(3), 261-272. https://doi.org/10.1038/s41592-019-0686-2.
  27. Peng, Roger D. (2011). Reproducible Research in Computational Science. Science 334(6060), 1226-1227. https://doi.org/10.1126/science.1213847.
  28. Hunter, John D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering 9(3), 90-95. https://doi.org/10.1109/mcse.2007.55.
  29. Raffin, Antonin; Hill, Ashley; Gleave, Adam; Kanervisto, Anssi; Ernestus, Maximilian; Dormann, Noah. (2021). Stable-Baselines3: Reliable Reinforcement Learning Implementations. Journal of Machine Learning Research 22(268), 1–8. https://jmlr.org/papers/v22/20-1364.html.
  30. Donoho, D. L. (2010). An invitation to reproducible computational research. Biostatistics 11(3), 385-388. https://doi.org/10.1093/biostatistics/kxq028.

Downloads

Published

2026-09-14