Revolutionizing Architectural Tactics Detection with Small Model-Augmented Prompt Engineering

Sunday 06 April 2025


Researchers have developed a new framework for detecting architectural tactics in code, which could significantly improve the accuracy and comprehensibility of software detection systems.


Architectural tactics are the concrete implementation of design decisions in code, addressing non-functional requirements such as scalability, security, or performance. However, these tactics can be difficult to identify and understand, especially in complex software systems. As a result, developers may inadvertently alter or remove them during code modifications, leading to architectural erosion and undermining the system’s original design.


To address this challenge, scientists have created a small model-augmented prompting framework called Prmt4TD. This innovative approach combines fine-tuned small models with in-context learning to equip large language models (LLMs) with additional domain knowledge. By leveraging the remarkable processing and reasoning capabilities of LLMs, Prmt4TD can generate easily interpretable architectural tactic detection results.


The new framework was tested on a balanced dataset and achieved accuracy improvement of 13-23% compared to baseline methods. Furthermore, it demonstrated enhanced comprehensibility of detection results, making it easier for developers to confirm the accuracy of their systems.


Prmt4TD’s success is attributed to its ability to effectively capture essential contextual information in code implementation. By using small models as prompts, the framework can distill complex knowledge and provide LLMs with relevant domain expertise. This allows LLMs to generate accurate and interpretable results without requiring extensive architectural knowledge.


The development of Prmt4TD has significant implications for software engineering. It could enable developers to more easily identify and understand architectural tactics in code, leading to improved system design, maintenance, and evolution. Moreover, the framework’s ability to enhance comprehensibility can facilitate collaboration between architects, developers, and other stakeholders.


While Prmt4TD is a promising innovation, its practical performance across different programming languages remains an area of ongoing research. As the software development landscape continues to evolve, it is essential to ensure that detection systems remain effective and reliable in diverse contexts.


Cite this article: “Revolutionizing Architectural Tactics Detection with Small Model-Augmented Prompt Engineering”, The Science Archive, 2025.


Software Engineering, Architectural Tactics, Code Analysis, Artificial Intelligence, Machine Learning, Detection Systems, Software Development, Programming Languages, Scalability, Security


Reference: Lingli Cao, He Zhang, Shanshan Li, Danyang Li, Yanjing Yang, Chenxing Zhong, Xin Zhou, Yue Xie, “Enhancing the Accuracy and Comprehensibility in Architectural Tactics Detection via Small Model-Augmented Prompt Engineering” (2025).


Leave a Reply