An Automated Framework for Self-Adaptive Quality Assurance in Software Systems Using Policy-Based Reinforcement Learning

Authors

  • Hayfaa Subhi Malallah Information Technology Department, Technical College of Duhok, Duhok Polytechnic University, Kurdistan Region, Iraq https://orcid.org/0009-0006-8999-3097
  • Ayad Abdulrahman Saleem Computer Information Systems Department, Technical College of Zakho, Duhok Polytechnic University, Kurdistan Region, Iraq

DOI:

https://doi.org/10.65542/djei.v2i3.57

Keywords:

Self-adaptation, reinforcement learning, software engineering, autonomic computing, quality assurance

Abstract

Self-adaptive information systems must keep their quality requirements while their environment changes at run time. Building the adaptation logic by hand is difficult, because design-time uncertainty makes it impossible to foresee every environmental change. Online Reinforcement Learning (RL) can build this logic automatically. However, the value-based RL methods used so far have two practical limits: the exploration rate must be tuned by hand, and continuous states must be discretised by hand. Building on the policy-based approach of Palm, Metzger and Pohl (2020), this paper presents a framework that removes both limits by using policy-based RL. The Analyze and Plan phases of the MAPE-K loop are redefined as a single policy-based decision step, and Proximal Policy Optimization (PPO) is applied for online adaptation in continuous and discrete action spaces. The framework is evaluated on two systems: a self-adaptive web application and a predictive process-monitoring system. Across four workload patterns and two concept drifts, the framework learns effective policies without exploration tuning or state discretisation. It improves on a value-based baseline (DQN) with statistical significance and performs on par with a maximum-entropy method (SAC) under the tested settings, while keeping good sample efficiency and stability.

References

1. Aschoff, R.; Zisman, A. QoS-Driven Proactive Adaptation of Service Composition. International Conference on Service-Oriented Computing (ICSOC) 2011, 7084 LNCS, 421–435, doi:10.1007/978-3-642-25535-9_28.

2. Salehie, M.; Tahvildari, L. Self-Adaptive Software: Landscape and Research Challenges. ACM Transactions on Autonomous and Adaptive Systems 2009, 4, 1–42, doi:10.1145/1516533.1516538.

3. Palm, A.; Metzger, A.; Pohl, K. Online Reinforcement Learning for Self-Adaptive Information Systems. International conference on advanced information systems engineering 2020, 12127 LNCS, 169–184, doi:10.1007/978-3-030-49435-3_11.

4. Klein, C.; Maggio, M.; Arzén, K.E.; Hernández-Rodriguez, F. Brownout: Building More Robust Cloud Applications. Proceedings of the 36th international conference on software engineering 2014, 700–711, doi:10.1145/2568225.2568227.

5. Metzger, A.; Föcker, F. Predictive Business Process Monitoring Considering Reliability Estimates. International Conference on Advanced Information Systems Engineering 2017, 10253 LNCS, 445–460, doi:10.1007/978-3-319-59536-8_28.

6. Chen, T.; Bahsoon, R. Self-Adaptive and Online QoS Modeling for Cloud-Based Software Services. IEEE Transactions on Software Engineering 2017, 43, 453–475, doi:10.1109/TSE.2016.2608826.

7. D’Ippolito, N.; Braberman, V.A.; Kramer, J.; Magee, J.; Sykes, D.; Uchitel, S. Hope for the Best, Prepare for the Worst: Multi-Tier Control for Adaptive Systems. Proceedings of the 36th International Conference on Software Engineering (ICSE) 2014, 688–699.

8. Ramirez, A.J.; Jensen, A.C.; Cheng, B.H.C. A Taxonomy of Uncertainty for Dynamically Adaptive Systems. International Symposium on Software Engineering for Adaptive and Self-Managing Systems (SEAMS) 2012, 99–108.

9. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction, 2nd ed.; MIT Press: Cambridge, MA, USA, 2018.

10. Metzger, A.; Kley, T.; Palm, A. Triggering Proactive Business Process Adaptations via Online Reinforcement Learning. International Conference on Business Process Management (BPM) 2020, 12168 LNCS, 273–290, doi:10.1007/978-3-030-58666-9_16.

11. Amoui, M.; Salehie, M.; Mirarab, S.; Tahvildari, L. Adaptive Action Selection in Autonomic Software Using Reinforcement Learning. International Conference on Autonomic and Autonomous Systems (ICAS) 2008, 175–181.

12. Bu, X.; Rao, J.; Xu, C.-Z. Coordinated Self-Configuration of Virtual Machines and Appliances Using a Model-Free Learning Approach. IEEE Transactions on Parallel and Distributed Systems 2013, 24, 681–690, doi:10.1109/TPDS.2012.174.

13. Dutreilh, X.; Kirgizov, S.; Melekhova, O.; Malenfant, J.; Rivierre, N.; Truck, I. Using Reinforcement Learning for Autonomic Resource Allocation in Clouds: Towards a Fully Automated Workflow. International Conference on Autonomic and Autonomous Systems (ICAS) 2011, 67–74.

14. Huang, Z.; van der Aalst, W.M.P.; Lu, X.; Duan, H. Reinforcement Learning Based Resource Allocation in Business Process Management. Data & Knowledge Engineering 2011, 70, 127–145, doi:10.1016/j.datak.2010.09.002.

15. Zhao, T.; Zhang, W.; Zhao, H.; Jin, Z. A Reinforcement Learning-Based Framework for the Generation and Evolution of Adaptation Rules. IEEE International Conference on Autonomic Computing (ICAC) 2017, 103–112.

16. Wang, H.; et al. Integrating Reinforcement Learning with Multi-Agent Techniques for Adaptive Service Composition. ACM Transactions on Autonomous and Adaptive Systems 2017, 12, 8:1–8:42.

17. Arabnejad, H.; Pahl, C.; Jamshidi, P.; Estrada, G. A Comparison of Reinforcement Learning Techniques for Fuzzy Cloud Auto-Scaling. IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGRID) 2017, 64–73.

18. Tesauro, G.; Jong, N.K.; Das, R.; Bennani, M.N. On the Use of Hybrid Reinforcement Learning for Autonomic Resource Allocation. Cluster Computing 2007, 10, 287–299, doi:10.1007/s10586-007-0035-6.

19. Xu, C.-Z.; Rao, J.; Bu, X. URL: A Unified Reinforcement Learning Approach for Autonomic Cloud Management. Journal of Parallel and Distributed Computing 2012, 72, 95–105, doi:10.1016/j.jpdc.2011.10.003.

20. Moustafa, A.; Zhang, M. Learning Efficient Compositions for QoS-Aware Service Provisioning. IEEE International Conference on Web Services (ICWS) 2014, 185–192.

21. Silvander, J. Business Process Optimization with Reinforcement Learning. International Symposium on Business Modeling and Software Design (BMSD) 2019, 356 LNBIP, 203–212, doi:10.1007/978-3-030-24854-3_13.

22. Hasselt, H. Van; Guez, A.; D Silver Deep Reinforcement Learning with Double Q-Learning. Proceedings of the AAAI conference on artificial intelligence 2016.

23. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347 2017.

24. Mnih, V.; Puigdomènech Badia, A.; Mirza, M.; Graves, A.; Harley, T.; Lillicrap, T.P.; Silver, D.; Kavukcuoglu, K. Asynchronous Methods for Deep Reinforcement Learning. International conference on machine learning 2016.

25. Haarnoja, T.; Zhou, A.; Abbeel, P.; Levine, S. Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. Proceedings of the 35th International Conference on Machine Learning (ICML), PMLR 2018, 80, 1861–1870.

26. de la Iglesia, D.G.; Weyns, D. MAPE-K Formal Templates to Rigorously Design Behaviors for Self-Adaptive Systems. ACM Transactions on Autonomous and Adaptive Systems 2015, 10, 15:1–15:31, doi:10.1145/2724719.

27. Kephart, J.O.; Chess, D.M. The Vision of Autonomic Computing. Computer (Long. Beach. Calif). 2003, 36, 41–50, doi:10.1109/MC.2003.1160055.

28. de Lemos, R.; et al. Software Engineering for Self-Adaptive Systems: A Second Research Roadmap. In Software Engineering for Self-Adaptive Systems II; LNCS 7475; Springer: Berlin/Heidelberg, Germany, 2013; pp. 1–32, doi:10.1007/978-3-642-35813-5_1.

29. Schulman, J.; Moritz, P.; Levine, S.; Jordan, M.I.; Abbeel, P. High-Dimensional Continuous Control Using Generalized Advantage Estimation. arXiv preprint arXiv:1506.02438 2016.

30. R. Hogendoorn Workload Patterns for Self-Adaptive Systems, Delft University of Technology, 2012.

31. Urdaneta, G.; Pierre, G.; van Steen, M. Wikipedia Workload Analysis for Decentralized Hosting. Computer Networks 2009, 53, 1830–1845, doi:10.1016/J.COMNET.2009.02.019.

32. Dulac-Arnold, G.; Evans, R.; Van Hasselt, H.; Sunehag, P.; Lillicrap, T.; Hunt, J.; Mann, T.; Weber, T.; Degris, T.; Coppin, B.; et al. Deep Reinforcement Learning in Large Discrete Action Spaces. arXiv preprint arXiv:1512.07679 2016.

33. Filho, R.V.R.; Porter, B. Defining Emergent Software Using Continuous Self-Assembly, Perception, and Learning. ACM Transactions on Autonomous and Adaptive Systems 2017, 12, 16:1–16:25, doi:10.1145/3092691.

Downloads

Published

2026-07-12

How to Cite

Subhi Malallah, H., & Abdulrahman Saleem, A. (2026). An Automated Framework for Self-Adaptive Quality Assurance in Software Systems Using Policy-Based Reinforcement Learning. Dasinya Journal for Engineering and Informatics, 2(3). https://doi.org/10.65542/djei.v2i3.57

Similar Articles

1 2 3 4 > >> 

You may also start an advanced similarity search for this article.