As software architecture grows in complexity, understanding the implications of design decisions becomes increasingly challenging. Large Language Models (LLMs) offer new opportunities for enhancing explainability during architecture modeling and evaluation by generating natural language explanations that support comprehension, learning, and decision-making. This potential is particularly valuable in domains with increased technical complexity—such as elasticity in cloud-based systems. In this work, we integrate and evaluate LLM-based explanations in supporting design-time evaluation of software architectures, focusing on the detection of elasticity antipatterns. Elasticity antipatterns are flawed autoscaling policy configurations that potentially lead to inefficient or unreliable system behavior. We extend an existing modeling and simulation approach with a novel feature that generates contextualized, textual explanations derived from simulation data. These explanations aim to guide architects in understanding scaling behaviors, identifying design issues, and refining their models. Our contribution includes the conceptualization of explanation types relevant to elasticity modeling, the design of prompt templates to elicit effective responses from LLMs, and an evaluation of the generated explanations’ usefulness and quality. Results indicate that LLM-assisted feedback enhances the interpretability of elasticity models and supports the early identification of antipatterns, albeit with some limitations in precision and conciseness with only a slight agreement between expert evaluations ( \(\kappa \)  = 0.202). The explanation quality across types of explanations differs. Even though most explanations contain factual information, a large portion was deemed as imprecise especially in explaining problem and solution, the policy and target and service level objectives.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

LLM-Based Explainability at Design Time: Detecting Elasticity Antipatterns in Software Architectures

  • Floriment Klinaku,
  • Jonas Lammert,
  • Steffen Becker

摘要

As software architecture grows in complexity, understanding the implications of design decisions becomes increasingly challenging. Large Language Models (LLMs) offer new opportunities for enhancing explainability during architecture modeling and evaluation by generating natural language explanations that support comprehension, learning, and decision-making. This potential is particularly valuable in domains with increased technical complexity—such as elasticity in cloud-based systems. In this work, we integrate and evaluate LLM-based explanations in supporting design-time evaluation of software architectures, focusing on the detection of elasticity antipatterns. Elasticity antipatterns are flawed autoscaling policy configurations that potentially lead to inefficient or unreliable system behavior. We extend an existing modeling and simulation approach with a novel feature that generates contextualized, textual explanations derived from simulation data. These explanations aim to guide architects in understanding scaling behaviors, identifying design issues, and refining their models. Our contribution includes the conceptualization of explanation types relevant to elasticity modeling, the design of prompt templates to elicit effective responses from LLMs, and an evaluation of the generated explanations’ usefulness and quality. Results indicate that LLM-assisted feedback enhances the interpretability of elasticity models and supports the early identification of antipatterns, albeit with some limitations in precision and conciseness with only a slight agreement between expert evaluations ( \(\kappa \)  = 0.202). The explanation quality across types of explanations differs. Even though most explanations contain factual information, a large portion was deemed as imprecise especially in explaining problem and solution, the policy and target and service level objectives.