arXiv:2609.07389cs.SESep 2026

Manuscript Offprint

arXiv:2609.07389

A Surrogate-based Approach for Fast Multi-objective Architectural Refactoring Optimization

J. Andrés Diaz-Pace, Daniele Di Pompeo, Antonela Tommasel

J. Andres Diaz-Pace 1^{1}, Daniele Di Pompeo 2^{2}, and Antonela Tommasel 1,3^{1,3}

1^{1} ISISTAN, CONICET-UNCPBA, Tandil, Argentina

2^{2} SPENCER Lab, University of L'Aquila, L'Aquila, Italy

3^{3} Johannes Kepler University Linz, Austria

Abstract. Software model optimization is a process that generates architecture alternatives aimed at improving quantifiable non-functional properties of software systems, such as performance and reliability. Multi-objective evolutionary algorithms are commonly used to explore the search space and help designers identify trade-offs among competing non-functional properties (e.g., through a Pareto front). However, such algorithms face efficiency challenges in complex software models and large design spaces, since evaluating the fitness (i.e., the quality) of each architecture requires analysis tools that become computationally expensive when repeatedly invoked during the search process. In this paper, we explore the construction of surrogate models based on regression techniques to approximate the outputs of these analysis tools at significantly lower computational cost, while maintaining reasonable output accuracy. Our experimental results suggest that surrogate models provide savings of up to 30% in computational time and maintain the Pareto front quality provided by evolutionary algorithms. Also, we observed some differences in the architectural models produced by our approach. Overall, surrogate models constitute a promising approach for scaling multi-objective architecture optimization to larger spaces and complex architectural models.

Keywords: Software Architecture, Search-Based Software Engineering, Multi-objective Optimization, Surrogate Models, Machine Learning

1 Introduction

A software architecture is a high-level abstraction of a system that defines its internal structure in terms of components, connectors, properties and main functions. An architecture plays a crucial role in determining the blueprint of the software system and the non-functional properties that it should satisfy, such as maintainability, scalability, or performance, among others [26, 25]. Software architectures have been exploited to analyze non-functional properties of software systems [1, 5, 27]. These efforts normally rely on predefined analysis models (or solvers), such as Layered Queuing Networks (LQNs) for performance [15] or rule-based detection for performance antipatterns [10]. Beyond analysis, architectural refactoring has emerged as a complementary activity aimed at systematically modifying the architecture structure (e.g., by redistributing components, introducing replicas, or restructuring communication paths) to improve its quality attributes [31, 30, 26]. For example, Zhao et al. [30] analyzed the energy efficiency of microservices of different architectural decompositions, and Ni et al. [26] improved the performance of an architecture using rule-based refactoring.

When competing properties must be optimized together, multi-objective techniques—such as genetic algorithms [25, 24]—are well suited to this task, particularly when the properties can be expressed as numerical quantities. However, non-functional properties are often challenging to optimize due to the complexity of the architectural models, the computational cost of running the analysis solvers, and the large search space [1, 26]. A common strategy to mitigate computational cost is to impose time budgets on the optimization process [14, 3]. Although effective for execution time, such constraints may hinder the exploration of the design space, affecting the quality of architectural alternatives.

In this work, we address the high computational cost of evaluating the optimization objectives via solvers, which hampers multi-objective architectural optimization in practice. We propose a novel approach based on surrogate models to estimate non-functional properties of architectures, approximating the behavior of the solvers with cheaper Machine Learning models. In particular, our approach leverages regression techniques to build surrogate models based on features extracted from the architectures handled by the optimization engine.

We evaluate our approach on CoCoME [16], which is a well-known case study in the literature. Furthermore, we compare the surrogate results with those achieved by a state-of-the-art search-based technique [12]. Through this investigation, we aim to answer the following research questions:

  • RQ1: Can surrogate models reduce the overall execution time of multi-objective architectural refactoring optimization while maintaining solution quality?
  • RQ2: Are there differences in the structural characteristics of the architecture candidates generated by a surrogate-assisted approach and those generated by a standard search-based optimization engine?

Our results show that surrogate models can significantly reduce the evaluation time of non-functional properties (≈ 30%) during the optimization process, leading to faster convergence. A trade-off we observed here is less variability of architectural models in the exploration of the design space, as outlined by quality indicators employed to evaluate quality of Pareto fronts. With regard to the architectural models, we noticed that surrogate models lead to different models (in the Pareto front) than those generated by a standard evolutionary search.

References (31)