AI RESEARCH
Strategies for Guiding LLMs to Use Software Design Patterns: A Case of Singleton
arXiv CS.AI
•
ArXi:2605.26898v1 Announce Type: cross Large Language Models (LLMs) can generate functional source code from natural-language prompts, but often fail to consistently follow higher-level architectural structures or design patterns. Since LLMs are increasingly used in software engineering, their ability to apply established design principles to generated code is crucial to the long-term success of software products. Therefore, the goal of this paper is to identify strategies for guiding LLMs to incorporate design patterns into the generated source code.